/* =========================================================
   Medsure – Talk with us
   Fonts, tokens, base styles, header and footer come from
   base.css (shared by every page). Only the page lives here.
   ========================================================= */

:root {
  --neutral-600: #5B5D6B;
  --r-card: 16px;
  --r-tile: 12px;
  --r-input: 8px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.btn--md { min-height: 56px; padding: 16px 32px; font-size: 17px; line-height: 24px; }
.btn[disabled] { opacity: .6; cursor: progress; }
/* =========================================================
   5. Page: Talk with us
   ========================================================= */

/* Intro: eyebrow, condensed two-line title, intro offset right */
.contact-hero {
  padding: calc(var(--header-h) + 96px) 0 96px;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 20px; line-height: 28px; font-weight: 500;
}
.contact-title {
  margin: 0;
  font-family: "Mona", sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 128px;
  line-height: 118px;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}
.contact-title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.contact-title .line-inner { display: block; will-change: transform; }
.contact-intro {
  max-width: 480px;
  margin: 32px 0 0 50%;
  font-size: 20px; line-height: 28px; font-weight: 400;
}

@media (max-width: 1199px) {
  .contact-title { font-size: 104px; line-height: 96px; }
}
@media (max-width: 991px) {
  .contact-hero { padding: calc(var(--header-h) + 72px) 0 72px; }
  .contact-title { font-size: 76px; line-height: 72px; }
  .contact-intro { margin-left: 40%; font-size: 18px; line-height: 26px; }
}
@media (max-width: 767px) {
  .contact-hero { padding: calc(var(--header-h) + 48px) 0 56px; }
  .eyebrow { font-size: 17px; line-height: 24px; margin-bottom: 12px; }
  .contact-title { font-size: 48px; line-height: 46px; }
  .contact-intro { margin: 24px 0 0; font-size: 17px; line-height: 24px; }
}

/* Form: white card on a grey band */
.contact-form-section {
  background: var(--neutral-100);
  padding: 80px 0 120px;
}
.form-card {
  max-width: 1040px; margin: 0 auto;
  padding: 48px 40px 56px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--r-card);
}

.form-heading {
  padding: 0; margin: 0 0 32px;
  font-size: 44px; line-height: 52px; font-weight: 400;
  letter-spacing: -0.01em;
}
.service-group { border: 0; margin: 0 0 48px; padding: 0; }
.service-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-tile {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px 20px 52px;
  background: var(--neutral-100);
  border: 1px solid transparent;
  border-radius: var(--r-tile);
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
}
.service-tile:hover { border-color: var(--neutral-300); }
.service-tile input {
  position: absolute; left: 20px; top: 21px;
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 0;
  background: var(--white);
  border: 1.5px solid var(--neutral-300); border-radius: 50%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service-tile input:checked { border-color: var(--navy-950); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 9px var(--navy-950); }
.service-tile:has(input:checked) { border-color: var(--navy-950); background: var(--neutral-50); }
.service-tile:has(input:focus-visible) { outline: 2px solid var(--orange-500); outline-offset: 2px; }
.tile-title { font-size: 17px; line-height: 24px; font-weight: 500; }
.tile-text { font-size: 13px; line-height: 18px; color: var(--neutral-600); }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 20px; row-gap: 28px;
}
.field-full { grid-column: 1 / -1; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 500; }
.req { color: var(--orange-text); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%; min-height: 48px;
  padding: 12px 14px;
  font: 400 15px/22px var(--font-body);
  color: var(--neutral-950);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--r-input);
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 128px; }
.field ::placeholder { color: #8a8c9a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--neutral-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--navy-950);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error-500); }
.field-error { margin: 8px 0 0; min-height: 0; font-size: 13px; line-height: 20px; color: #C9262A; }
.field-error:empty { display: none; }

.consent { display: flex !important; gap: 14px; align-items: flex-start; font-size: 15px !important; line-height: 22px !important; font-weight: 400 !important; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box {
  flex: 0 0 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--neutral-300); border-radius: 4px;
  position: relative; transition: background-color .2s ease, border-color .2s ease;
}
.consent input:checked + .box { background: var(--navy-950); border-color: var(--navy-950); }
.consent input:checked + .box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.consent input:focus-visible + .box { outline: 2px solid var(--orange-500); outline-offset: 2px; }
.consent a { color: var(--orange-text); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.req-note { font-size: 13px; line-height: 20px; color: var(--neutral-600); }
.form-status { margin: 16px 0 0; font-size: 15px; color: #C9262A; }
.form-status:empty { display: none; }

.form-success { padding: 40px 0; text-align: left; }
.form-success:focus { outline: none; }
.form-success p { max-width: 640px; margin: 32px 0 0; font-size: 28px; line-height: 36px; font-weight: 500; }
.success-tick { width: 64px; height: 64px; fill: none; stroke: var(--navy-950); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-tick circle { stroke: var(--orange-500); }

@media (max-width: 991px) {
  .contact-form-section { padding: 56px 0 96px; }
  .form-card { padding: 40px 32px 48px; }
  .form-heading { font-size: 36px; line-height: 44px; }
  .service-options { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .contact-form-section { padding: 32px 0 72px; }
  .form-card { padding: 28px 20px 36px; }
  .form-heading { font-size: 28px; line-height: 36px; margin-bottom: 24px; }
  .service-group { margin-bottom: 36px; }
  .form-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 32px; }
  .req-note { text-align: center; }
  .form-success p { font-size: 20px; line-height: 28px; }
}
@media (max-width: 479px) {
  .field-pair { grid-template-columns: 1fr; gap: 24px; }
}

/* Contact details: section heading + one soft panel */
.contact-details { padding: 120px 0 160px; }
.details-head { max-width: 760px; }
.section-title {
  margin: 0;
  font-size: 56px; line-height: 62px; font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}
.section-text { max-width: 520px; margin: 24px 0 0; font-size: 15px; line-height: 22px; color: var(--neutral-600); }
.details-panel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 56px;
  padding: 40px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-card);
}
.detail-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 50%;
  color: var(--navy-950);
}
.detail-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.detail-label {
  margin: 0 0 12px;
  font-size: 13px; line-height: 18px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-text);
}
.detail p { margin: 0; font-size: 17px; line-height: 24px; }
.detail a { text-decoration: none; border-bottom: 1px solid var(--neutral-300); transition: border-color .2s ease; }
.detail a:hover { border-color: var(--orange-500); }
@media (max-width: 991px) {
  .contact-details { padding: 96px 0 120px; }
  .section-title { font-size: 40px; line-height: 46px; }
  .details-panel { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .detail:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .contact-details { padding: 72px 0 80px; }
  .section-title { font-size: 30px; line-height: 36px; }
  .details-panel { margin-top: 36px; padding: 28px 20px; }
}
@media (max-width: 479px) { .details-panel { grid-template-columns: 1fr; } }


/* Pre-animation state (removed by JS if GSAP fails) */
.anim .contact-title .line-inner { transform: translateY(105%); }
.anim [data-reveal] { opacity: 0; }

/* Motion off: everything visible, no transforms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
