/* Contact page: the form is the opener, beside the crescent photo */
.c-open { background: linear-gradient(180deg, var(--paper), var(--clinic)); padding-block: clamp(24px, 4vh, 48px) clamp(48px, 7vh, 80px); position: relative; overflow: clip; }
.c-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: stretch; }
.c-photo { position: relative; min-height: 420px; height: min(calc(100svh - var(--head-h) - 90px), 760px); }
.c-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.c-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 22px; color: #fff; display: grid; gap: 6px; background: linear-gradient(0deg, rgba(8, 16, 30, .86), rgba(8, 16, 30, 0)); }
.c-clock { font: 500 1.05rem/1.2 var(--sans); color: #D4DEE8; }
.c-clock span { font: 600 2rem/1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; margin-right: 6px; }
.c-cap-line { font: 400 italic 1.3rem/1.3 var(--serif); }
.c-ecg { width: 100%; height: 30px; stroke: #FF4A52; margin-top: 6px; }
.c-form-wrap { display: grid; gap: 18px; align-content: center; }
.c-title { font: 500 clamp(2.3rem, 3.9vw, 3.6rem)/1.06 var(--serif); letter-spacing: -.015em; display: flow-root; }
.c-title em { color: var(--pulse); font-style: italic; font-weight: 450; white-space: nowrap; }
.c-lede { font-size: 1.12rem; }
.c-form { position: relative; display: grid; gap: 14px; background: var(--paper); border-radius: var(--r); padding: clamp(26px, 2.8vw, 36px) clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(12, 26, 43, .45); border-top: 2px solid rgba(217, 20, 30, .25); }
.c-form-pulse { position: absolute; left: 0; right: 0; top: -15px; height: 28px; pointer-events: none; }
.form-ecg { width: 100%; height: 100%; stroke-width: 2.2; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; color: var(--ink); font-size: .98rem; }
.field small { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--clinic);
  border: 1px solid #C9D4DD; border-radius: var(--r); padding: 13px 14px; min-height: 50px; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 48px; background: var(--clinic) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2312202F' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 18px center / 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pulse); background-color: #fff; box-shadow: 0 0 0 3px rgba(217, 20, 30, .15); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--pulse); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-send { display: flex; align-items: center; gap: 20px; }
.c-btn { flex: none; overflow: hidden; }
.btn-ecg { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 14px; stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; opacity: 0; }
.c-btn.is-sending .btn-ecg { opacity: 1; }
.c-note { font-size: .92rem; line-height: 1.5; }
.c-status { font-weight: 600; color: #11734A; min-height: 0; }
.c-status.is-error { color: var(--pulse); }
.c-status:empty { display: none; }

.routes { background: var(--clinic); }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.route { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); background: var(--paper); border-radius: var(--r); overflow: clip; text-decoration: none; color: inherit; box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px rgba(12, 26, 43, .45); }
.route-media { aspect-ratio: 16 / 10; overflow: clip; position: relative; }
.route-media img { width: 100%; height: 100%; object-fit: cover; }
.route-body { padding: 24px 26px 28px; display: grid; gap: 10px; align-content: start; }
.route-body h3 { font: 500 1.6rem/1.15 var(--serif); }
.route-more { font-weight: 600; color: var(--pulse); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.route:hover h3 { color: var(--pulse); }
.sos-media { background: var(--night); display: grid; place-items: center; }
.sos-ecg { position: absolute; left: 0; right: 0; top: 50%; height: 60px; margin-top: -30px; width: 100%; stroke: #FF3B44; stroke-width: 2; }
.sos-n { position: relative; font: 500 clamp(3.4rem, 6vw, 5rem)/1 var(--serif); color: #fff; letter-spacing: .02em; background: var(--night); padding: 0 18px; }

/* short laptop screens: the whole form, send button included, stays on the first screen */
@media (min-width: 961px) and (max-height: 820px) {
  .c-open { padding-block: 16px 40px; }
  .c-form-wrap { gap: 12px; }
  .c-title { font-size: clamp(2.1rem, 3vw, 2.7rem); }
  .c-lede { font-size: 1rem; line-height: 1.5; }
  .c-form { gap: 10px; padding: 24px 24px 20px; }
  .c-row { gap: 12px; }
  .field { gap: 4px; }
  .field input, .field select, .field textarea { min-height: 44px; padding: 10px 14px; }
  .field select { padding-right: 48px; }
  .field textarea { min-height: 72px; }
  .c-photo { height: calc(100svh - var(--head-h) - 56px); min-height: 0; }
}
@media (max-width: 960px) {
  .c-grid { grid-template-columns: 1fr; }
  .c-form-wrap { order: -1; }
  .c-photo { height: 300px; min-height: 0; }
  .route-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .c-row { grid-template-columns: 1fr; }
  .c-send { flex-direction: column; align-items: stretch; }
  .c-btn { width: 100%; }
}

.js:not(.reduced) [data-c-title] { visibility: hidden; }
.js:not(.reduced) [data-c-fade], .js:not(.reduced) [data-c-field], .js:not(.reduced) [data-route] { opacity: 0; }
.no-gsap [data-c-title] { visibility: visible; }
.no-gsap [data-c-fade], .no-gsap [data-c-field], .no-gsap [data-route] { opacity: 1; }
