.openx-contact-form {
  display: grid;
  gap: 0.82rem;
  width: min(48rem, 100%);
  margin-top: 1.05rem;
}

.openx-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.openx-contact-field {
  display: grid;
  gap: 0.34rem;
}

.openx-contact-field--wide {
  grid-column: 1 / -1;
}

.openx-contact-field label {
  color: #173a58;
  font-size: 0.78rem;
  font-weight: 700;
}

.openx-contact-field input,
.openx-contact-field select,
.openx-contact-field textarea {
  width: 100%;
  min-height: 2.78rem;
  border: 1px solid rgba(151, 190, 221, 0.58);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0f2b47;
  padding: 0.72rem 0.82rem;
  font: inherit;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.openx-contact-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.openx-contact-field input:focus,
.openx-contact-field select:focus,
.openx-contact-field textarea:focus {
  border-color: rgba(241, 116, 36, 0.78);
  box-shadow: 0 0 0 3px rgba(241, 116, 36, 0.14);
}

.openx-contact-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.openx-contact-submit {
  justify-self: start;
  min-height: 2.9rem;
  border: 1px solid rgba(241, 117, 36, 0.76);
  border-radius: 0.76rem;
  background: linear-gradient(132deg, #f68a3e 0%, #f06924 100%);
  color: #fff;
  padding: 0 1.18rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(240, 107, 36, 0.24);
}

.openx-contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.openx-contact-status {
  min-height: 1.45rem;
  color: #244764;
  font-size: 0.88rem;
  font-weight: 650;
}

.openx-contact-status[data-state="success"] {
  color: #17613a;
}

.openx-contact-status[data-state="error"] {
  color: #9f3f07;
}

.openx-contact-note {
  color: #516c84;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .openx-contact-grid {
    grid-template-columns: 1fr;
  }

  .openx-contact-submit {
    width: 100%;
  }
}
