/* Contact page — extends the shared homepage shell */

.contact-page {
  --contact-surface: #f5fbfd;
  --contact-soft: #eaf9fc;
  --contact-card: #ffffff;
  --contact-danger: #a32f52;
  --contact-danger-bg: #fff2f6;
}

.contact-page main {
  background: #fff;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page .contact-method-link {
  font-family: "Poppins", "Figtree", sans-serif;
}

.contact-page .nav-links a.active {
  color: var(--navy);
}

.contact-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 28%, rgba(255,255,255,.95), transparent 30%),
    linear-gradient(100deg, #effafe 0%, #f8fcfd 50%, #e8f7f9 100%);
}

.contact-hero-inner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.contact-hero-copy {
  position: relative;
  z-index: 4;
  width: 56%;
  max-width: 745px;
  padding: 24px 0 22px;
}

.contact-kicker {
  width: max-content;
  margin: 0 0 12px;
  padding: 6px 17px;
  color: #2d8198;
  background: #ddf5f8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(42px, 3.8vw, 58px);
  font-weight: 600;
  letter-spacing: -2.3px;
  line-height: 1.03;
}

.contact-hero h1 span {
  display: block;
  color: var(--cyan);
}

.contact-hero-lead {
  max-width: 650px;
  margin: 0 0 8px;
  color: #486d88;
  font-size: 17px;
  line-height: 1.38;
}

.contact-hero-detail {
  max-width: 680px;
  margin: 0 0 16px;
  color: #628096;
  font-size: 13px;
  line-height: 1.4;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: clamp(16px, 2.4vh, 26px);
}

.contact-hero-actions .button.secondary .icon:first-child {
  width: 16px;
  height: 16px;
}

.contact-hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 690px;
}

.contact-hero-trust-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-hero-trust-item .contact-icon {
  width: 38px;
  height: 38px;
  flex: none;
}

.contact-hero-trust-item small {
  display: block;
  margin-top: 3px;
  color: #6e899c;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.25;
}

.contact-hero .contact-benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-hero-photo {
  position: absolute;
  z-index: 1;
  top: 0;
  right: calc(50% - 50vw);
  bottom: 0;
  width: 55vw;
  background:
    linear-gradient(90deg, rgba(239,250,254,1) 0%, rgba(239,250,254,.8) 12%, rgba(239,250,254,.16) 36%, transparent 55%),
    url("contact-nurses-headsets.jpg") center 44% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 16%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 16%, #000 34%);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--cyan-dark);
  background: #e1f7fa;
  border: 1px solid #c9edf2;
  border-radius: 50%;
}

.contact-icon .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
}

.contact-methods {
  padding: 36px 0 39px;
  background:
    radial-gradient(circle at 7% 40%, rgba(8,180,194,.08), transparent 28%),
    linear-gradient(180deg, #effafe, #eaf8fb);
}

.contact-section-head {
  max-width: 860px;
  margin: 0 auto 24px;
  text-align: center;
}

.contact-section-head h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
}

.contact-section-head p {
  margin: 0;
  color: #6b8799;
  font-size: 13px;
}

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.contact-method {
  min-height: 220px;
  padding: 19px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #52728a;
  background: rgba(255,255,255,.9);
  border: 1px solid #e0eef2;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(12,70,103,.05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

a.contact-method:hover,
a.contact-method:focus-visible {
  border-color: #9adce4;
  box-shadow: 0 10px 26px rgba(12,70,103,.1);
  transform: translateY(-2px);
}

.contact-method .contact-icon {
  width: 49px;
  height: 49px;
  margin-bottom: 12px;
}

.contact-method-body {
  width: 100%;
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}

.contact-method h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.contact-method-link {
  margin: 0 0 8px;
  color: #057f9b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-method-desc {
  margin: 0;
  color: #6c8799;
  font-size: 13px;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.contact-method-desc-key {
  margin: 8px 0 0;
  max-width: 100%;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-form-section {
  padding: 28px 0 32px;
  background: #fff;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(310px, .95fr);
  gap: 22px;
  align-items: stretch;
}

.contact-form-card,
.audience-card,
.contact-emergency {
  background: #fff;
  border: 1px solid #dcecef;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15,70,100,.035);
}

.contact-form-card {
  padding: 24px 27px 26px;
}

.contact-form-card h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.5px;
}

.contact-form-intro {
  margin: 0 0 20px;
  color: #688499;
  font-size: 12px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 18px;
}

.contact-field {
  min-width: 0;
}

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

.contact-field label,
.consent-label {
  display: block;
  color: #335f7b;
  font-size: 12px;
  font-weight: 700;
}

.contact-field label {
  margin-bottom: 6px;
}

.required {
  color: #b3264f;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #cbdde3;
  border-radius: 7px;
  outline: none;
  font: inherit;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-field textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.45;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #98aab6;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: #a9cbd3;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px rgba(8,180,194,.14);
}

.contact-field input:user-invalid,
.contact-field select:user-invalid,
.contact-field textarea:user-invalid {
  border-color: #c74965;
}

.contact-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 1px;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--cyan-dark);
}

.consent-label {
  color: #607f93;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.consent-label a {
  color: #167e96;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-submit {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
  margin-top: 1px;
  border-radius: 7px;
}

.contact-form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: -3px 0 0;
  color: #417289;
  font-size: 12px;
  line-height: 1.4;
}

.contact-form-status.is-error {
  color: #a22e4d;
  font-weight: 600;
}

.contact-asides {
  display: grid;
  grid-template-rows: auto;
  gap: 14px;
  align-content: start;
  align-self: start;
  height: auto;
}

.audience-card {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr);
  gap: 13px;
}

.audience-card h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.22;
}

.audience-card p {
  margin: 0 0 9px;
  color: #6b8799;
  font-size: 14px;
  line-height: 1.42;
}

.audience-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-card li {
  position: relative;
  margin: 7px 0;
  padding-left: 23px;
  color: #50738a;
  font-size: 14px;
  line-height: 1.48;
}

.audience-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--cyan-dark);
  font-size: 15px;
  font-weight: 800;
}

.audience-card-patients {
  grid-template-rows: auto auto;
}

.audience-card-patients .audience-card-body {
  min-width: 0;
}

.audience-card .audience-card-notice {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding: 10px 12px 10px 11px;
  border-left: 3px solid var(--cyan-dark);
  border-radius: 0 8px 8px 0;
  color: #4a6678;
  background: linear-gradient(90deg, #edf9fb 0%, #f8fcfd 100%);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.contact-emergency {
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 11px;
  color: #77445a;
  background: var(--contact-danger-bg);
  border-color: #f2cfdb;
  box-shadow: none;
}

.contact-emergency .icon {
  width: 28px;
  height: 28px;
  color: #cc3f68;
  stroke-width: 2;
}

.contact-emergency h3 {
  margin: 0 0 7px;
  color: var(--contact-danger);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.contact-emergency p {
  margin: 0;
  font-size: 14px;
  line-height: 1.52;
}

.contact-emergency-nums {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.contact-emergency-nums a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #77445a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.contact-emergency-nums a:hover,
.contact-emergency-nums a:focus-visible {
  color: var(--contact-danger);
  text-decoration: underline;
}

.contact-emergency-num {
  min-width: 28px;
  padding: 2px 7px;
  color: var(--contact-danger);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: #fff;
  border: 1px solid #efb8c8;
  border-radius: 6px;
}

.contact-emergency-legal {
  margin: 22px 0 0;
  padding-top: 2px;
  color: var(--contact-danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.contact-reassurance {
  padding: 26px 0 30px;
  background:
    radial-gradient(circle at 12% 50%, rgba(8,180,194,.08), transparent 24%),
    linear-gradient(180deg, #eefafd, #eaf8fb);
}

.contact-reassurance .contact-section-head {
  margin-bottom: 20px;
}

.contact-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.contact-feature {
  padding: 7px 34px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.contact-feature + .contact-feature {
  border-left: 1px solid #cfe8ed;
}

.contact-feature h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.contact-feature p {
  margin: 0;
  color: #6a8698;
  font-size: 11px;
  line-height: 1.4;
}

.contact-faq {
  padding: 28px 0 35px;
  background: #fff;
}

.contact-faq-shell {
  padding: 20px 24px 18px;
  border: 1px solid #dcebef;
  border-radius: 12px;
}

.contact-faq-heading {
  margin-bottom: 17px;
}

.contact-faq-heading h2 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 600;
}

.contact-faq-heading p {
  margin: 0;
  color: #718b9d;
  font-size: 11px;
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-faq-item {
  min-width: 0;
  padding: 0 24px;
}

.contact-faq-item:first-child {
  padding-left: 0;
}

.contact-faq-item:last-child {
  padding-right: 0;
}

.contact-faq-item + .contact-faq-item {
  border-left: 1px solid #dcebef;
}

.contact-faq-item summary {
  min-height: 45px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.contact-faq-item summary::-webkit-details-marker {
  display: none;
}

.contact-faq-plus {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--cyan-dark);
  background: #e8f8fa;
  border: 1px solid #cfeef2;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.contact-faq-item[open] .contact-faq-plus {
  color: #fff;
  background: var(--cyan-dark);
  transform: rotate(45deg);
}

.contact-faq-item p {
  margin: 4px 0 0 42px;
  color: #6b8799;
  font-size: 10px;
  line-height: 1.45;
}

.contact-faq-more {
  width: 190px;
  min-height: 41px;
  margin: 19px auto 0;
  display: flex;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .contact-hero-copy {
    width: 58%;
  }

  .contact-hero h1 {
    font-size: 54px;
  }

  .contact-hero-photo {
    width: 58vw;
  }

  .contact-method-grid {
    gap: 15px;
  }

  .contact-method {
    padding-inline: 16px;
  }

  .contact-form-layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(290px, .85fr);
  }
}

@media (max-width: 920px) {
  .contact-hero,
  .contact-hero-inner {
    min-height: 0;
  }

  .contact-hero-inner {
    width: 100%;
    display: block;
    padding-top: 0;
  }

  .contact-hero-copy {
    width: min(calc(100% - 48px), 760px);
    max-width: none;
    margin-inline: auto;
    padding: 28px 0 24px;
    text-align: center;
  }

  .contact-kicker {
    margin-inline: auto;
  }

  .contact-hero-actions {
    justify-content: center;
  }

  .contact-hero-lead,
  .contact-hero-detail,
  .contact-hero-trust {
    margin-right: auto;
    margin-left: auto;
  }

  .contact-hero-photo {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 280px;
    background:
      linear-gradient(180deg, #effafe 0%, rgba(239,250,254,.15) 25%, transparent 45%),
      url("contact-nurses-headsets.jpg") 58% 44% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 100%);
  }

  .contact-method-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .contact-asides {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .contact-emergency {
    grid-column: 1 / -1;
  }

  .contact-feature {
    padding-inline: 22px;
  }
}

@media (max-width: 700px) {
  .contact-hero-copy {
    width: min(calc(100% - 28px), 520px);
    padding: 24px 0 20px;
  }

  .contact-hero h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .contact-hero-lead {
    font-size: 16px;
  }

  .contact-hero-detail {
    font-size: 13px;
  }

  .contact-hero-trust {
    grid-template-columns: 1fr;
    width: max-content;
    max-width: 100%;
    gap: 12px;
    text-align: left;
  }

  .contact-hero-photo {
    height: 240px;
  }

  .contact-methods,
  .contact-form-section,
  .contact-reassurance,
  .contact-faq {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .contact-section-head h2 {
    font-size: 28px;
  }

  .contact-method-grid {
    grid-template-columns: 1fr;
  }

  .contact-method {
    min-height: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 0 15px;
    padding: 19px 18px;
  }

  .contact-method .contact-icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .contact-method-body {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
  }

  .contact-method h3 {
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1.25;
  }

  .contact-method-link {
    width: 100%;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 16px;
  }

  .contact-method-desc {
    width: 100%;
    min-height: 0;
    display: block;
    overflow: visible;
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .contact-method-desc-key {
    width: 100%;
    margin-top: 8px;
    overflow: visible;
    font-size: 13px;
    white-space: normal;
    text-overflow: clip;
  }

  .contact-form-card {
    padding: 21px 18px 22px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-field-full,
  .contact-consent,
  .contact-submit,
  .contact-form-status {
    grid-column: auto;
  }

  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .contact-asides {
    grid-template-columns: 1fr;
  }

  .contact-emergency {
    grid-column: auto;
  }

  .contact-emergency-legal {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact-feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-feature {
    padding: 17px 4px;
  }

  .contact-feature + .contact-feature {
    border-top: 1px solid #cfe8ed;
    border-left: 0;
  }

  .contact-faq-shell {
    padding: 20px 18px;
  }

  .contact-faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-faq-item,
  .contact-faq-item:first-child,
  .contact-faq-item:last-child {
    padding: 14px 0;
  }

  .contact-faq-item:first-child {
    padding-top: 0;
  }

  .contact-faq-item + .contact-faq-item {
    border-top: 1px solid #dcebef;
    border-left: 0;
  }

  .contact-faq-item summary {
    min-height: 32px;
    font-size: 13px;
  }

  .contact-faq-item p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-method,
  .contact-faq-plus {
    transition: none;
  }
}
