
/* Contact page only: when no hero image is supplied, make the hero text full width. */
.dhm-home-hero--no-image .dhm-home-hero__grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.dhm-home-hero--no-image .dhm-home-hero__copy {
  max-width: 860px;
}

.dhm-contact-page {
  padding: clamp(56px, 7vw, 96px) 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(54, 214, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
}

.dhm-contact-page__head {
  margin-bottom: clamp(28px, 4vw, 46px);
}

.dhm-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.92fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}

.dhm-contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 34px);
}

.dhm-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 86% 8%, rgba(54, 214, 255, 0.16), transparent 28%);
}

.dhm-contact-card > * {
  position: relative;
  z-index: 1;
}

.dhm-contact-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.dhm-contact-card__header h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.dhm-contact-form-intro {
  margin: 10px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}


.dhm-contact-table-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
}

.dhm-contact-table {
  width: 100%;
  border-collapse: collapse;
}

.dhm-contact-table th,
.dhm-contact-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(7, 95, 159, 0.12);
  vertical-align: middle;
}

.dhm-contact-table tr:last-child th,
.dhm-contact-table tr:last-child td {
  border-bottom: 0;
}

.dhm-contact-table th {
  width: 34%;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dhm-contact-table a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dhm-contact-table a:hover {
  text-decoration: underline;
}

.dhm-contact-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(10, 167, 223, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, #f5fcff 0%, #ffffff 100%);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.dhm-contact-note strong {
  color: var(--navy);
}

.dhm-contact-form {
  display: grid;
  gap: 16px;
}

.dhm-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dhm-contact-field {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--navy);
  font-weight: 900;
}

.dhm-contact-label-text {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding-left: 2px;
}

.dhm-contact-required {
  position: absolute;
  top: 39px;
  left: 12px;
  z-index: 3;
  width: auto;
  height: auto;
  display: block;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.dhm-contact-field--message .dhm-contact-required {
  top: 39px;
}

.dhm-contact-form input,
.dhm-contact-form select,
.dhm-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 95, 159, 0.22);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}


.dhm-contact-field--required input,
.dhm-contact-field--required select,
.dhm-contact-field--required textarea {
  padding-left: 30px;
}

.dhm-contact-form select {
  min-height: 52px;
}

.dhm-contact-form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.55;
}

.dhm-contact-form input:focus,
.dhm-contact-form select:focus,
.dhm-contact-form textarea:focus {
  border-color: var(--bright);
  box-shadow: 0 0 0 4px rgba(54, 214, 255, 0.18);
}

.dhm-contact-form .is-invalid {
  border-color: #c03221;
  background: #fff8f7;
}

.dhm-contact-form small {
  min-height: 18px;
  color: #a8271a;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}

.dhm-contact-form__footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.dhm-contact-form__footer .dhm-btn {
  min-width: 180px;
}

.dhm-contact-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.dhm-contact-status.is-success {
  color: #106b3a;
}

.dhm-contact-status.is-error {
  color: #a8271a;
}

.dhm-contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 860px) {
  .dhm-contact-layout,
  .dhm-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .dhm-contact-card {
    border-radius: 24px;
  }

  .dhm-contact-card__header {
    display: block;
    text-align: left;
  }

  .dhm-contact-card__header > div {
    text-align: left;
  }

  .dhm-contact-card__header .dhm-eyebrow,
  .dhm-contact-card__header h3 {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .dhm-contact-card__header {
    gap: 12px;
  }


  .dhm-contact-table th,
  .dhm-contact-table td {
    display: block;
    width: 100%;
    padding: 14px 16px;
  }

  .dhm-contact-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .dhm-contact-table td {
    padding-top: 4px;
  }

  .dhm-contact-form__footer {
    display: grid;
    gap: 12px;
  }

  .dhm-contact-form__footer .dhm-btn {
    width: 100%;
  }
}
