/* ==========================================================================
   Contact page (contact.html) — prefix ct-
   ========================================================================== */

/* ---------- Hero ---------- */
.ct-hero .page-hero__grid { align-items: center; }
.ct-hero .h1 { max-width: 15ch; }

.ct-status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 24px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-s); line-height: 1.35; }
.ct-status.is-open { background: var(--green-tint); border-color: var(--green-tint-2); color: var(--green-700); }
.ct-status__time { color: var(--muted); font-weight: 500; }
.ct-status__time:empty { display: none; }
.ct-status.is-open .ct-status__time { color: var(--green-700); }

/* Dispatch desk card */
.ct-desk { justify-self: end; width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; }
.ct-desk__media { position: relative; aspect-ratio: 16 / 9; background: var(--ice-2); }
.ct-desk__media img { width: 100%; height: 100%; object-fit: cover; }
.ct-desk__tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 18, 63, .84); color: #fff; font-size: .78rem; font-weight: 600; backdrop-filter: blur(6px); }
.ct-desk__tag .live-dot, .ct-desk__tag .live-dot::after { background: var(--green); }
.ct-desk__rows { margin: 0; padding: 6px 22px 10px; }
.ct-desk__rows > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ct-desk__rows > div:last-child { border-bottom: 0; }
.ct-desk__rows dt { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.ct-desk__rows dt .icon { width: 18px; height: 18px; color: var(--green-600); }
.ct-desk__rows dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); text-align: right; }
.ct-desk__rows dd.mono { font-family: var(--font-mono); font-size: .92rem; }
.ct-desk__rows dd.is-open { color: var(--green-700); }
@media (max-width: 960px) { .ct-desk { justify-self: stretch; max-width: none; } }

/* ---------- Contact methods ---------- */
.ct-method { display: flex; flex-direction: column; height: 100%; color: var(--ink-2); }
.ct-method h3 { margin-top: 20px; }
.ct-method__value { margin-top: 6px; font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--ink); overflow-wrap: anywhere; transition: color .2s; }
.ct-method p { margin-top: 10px; font-size: .93rem; color: var(--muted); }
.ct-method__note { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .84rem; font-weight: 600; color: var(--green-700); }
.ct-method p + .ct-method__note { margin-top: 18px; }
.ct-method__note .icon { width: 16px; height: 16px; }
.ct-method:hover .ct-method__value { color: var(--green-700); }

/* ---------- Form + aside ---------- */
.ct-form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); gap: clamp(20px, 2.6vw, 32px); align-items: start; }
.ct-form-card { padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--shadow); }
.ct-form-card__intro { margin: 12px 0 28px; max-width: 64ch; }
.ct-form-card__intro .link-arrow { display: inline-flex; }
.ct-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ct-urgency legend { padding: 0; margin-bottom: 8px; }
.ct-urgent-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--green-tint); color: var(--green-700); font-size: .9rem; line-height: 1.5; }
.ct-urgent-note[hidden] { display: none; }
.ct-urgent-note .icon { width: 18px; height: 18px; margin-top: 2px; }
.ct-urgent-note a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.ct-consent .ct-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; font-weight: 400; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.ct-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-600); cursor: pointer; }
.ct-check a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.ct-consent.is-invalid .ct-check input { outline: 2px solid #d64545; outline-offset: 2px; }

.ct-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.ct-form__foot .form-note { display: inline-flex; align-items: center; gap: 8px; }
.ct-form__foot .form-note .icon { width: 16px; height: 16px; color: var(--green-600); }
.ct-form [type="submit"][aria-busy="true"] { opacity: .75; cursor: progress; }

.ct-aside { display: grid; gap: 20px; }
.ct-aside .card { padding: 24px; }
.ct-aside__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.ct-hours__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.ct-hours__table th, .ct-hours__table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ct-hours__table tr:last-child th, .ct-hours__table tr:last-child td { border-bottom: 0; }
.ct-hours__table th { text-align: left; font-weight: 500; color: var(--ink-2); }
.ct-hours__table td { text-align: right; color: var(--ink); font-weight: 600; }
.ct-hours__table td.mono { font-size: .86rem; }
.ct-hours__table tr[data-day="5"] td { color: var(--muted); font-weight: 500; }
.ct-hours__table tr.is-today th, .ct-hours__table tr.is-today td { background: var(--green-tint); color: var(--green-700); font-weight: 700; border-bottom-color: transparent; }
.ct-hours__table tr.is-today th { border-radius: 8px 0 0 8px; }
.ct-hours__table tr.is-today td { border-radius: 0 8px 8px 0; }
.ct-today { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 4px; background: var(--green-600); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.ct-hours__emergency { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .88rem; font-weight: 600; color: var(--ink); }

.ct-nap address { font-style: normal; line-height: 1.75; color: var(--ink-2); }
.ct-nap address strong { color: var(--ink); font-family: var(--font-head); }
.ct-nap address a { color: var(--green-700); font-weight: 600; }
.ct-nap address a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-nap__licence { margin-top: 12px; color: var(--muted); }

.ct-next__list { display: grid; gap: 16px; margin-top: 16px; }
.ct-next__list li { display: flex; gap: 14px; align-items: flex-start; }
.ct-next__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--green-tint); color: var(--green-700); font-size: .78rem; }
.ct-next__list strong { display: block; font-family: var(--font-head); color: var(--ink); line-height: 1.3; }
.ct-next__list span:not(.ct-next__num) { display: block; margin-top: 3px; font-size: .9rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 1024px) {
  .ct-form-layout { grid-template-columns: 1fr; }
  .ct-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-next { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ct-aside { grid-template-columns: 1fr; }
  .ct-form__foot .btn { width: 100%; }
}

/* ---------- Map ---------- */
.ct-map { position: relative; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--ice-2); box-shadow: var(--shadow); }
.ct-map__frame { aspect-ratio: 21 / 9; min-height: 440px; background: var(--ice-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%230c1b56' stroke-opacity='.07'/%3E%3C/svg%3E"); }
.ct-map__frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.03); }
.ct-map__card { position: absolute; left: 24px; top: 24px; z-index: 1; width: min(340px, calc(100% - 48px)); display: grid; gap: 10px; justify-items: start; padding: 24px; background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.ct-map__name { font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.ct-map__card p { color: var(--muted); }
.ct-map__meta { display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }
.ct-map__meta li { display: flex; align-items: center; gap: 8px; }
.ct-map__meta .icon { width: 16px; height: 16px; color: var(--green-600); }
.ct-map__meta a:hover { color: var(--green-700); }
@media (max-width: 760px) {
  .ct-map__frame { aspect-ratio: 4 / 3; min-height: 280px; }
  .ct-map__card { position: static; width: auto; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
}

.ct-areas { margin-top: clamp(40px, 5vw, 56px); }
.ct-areas__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 18px; }
.ct-areas__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-areas__list li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--gray-50); font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s, background .2s; }
.ct-areas__list li:hover { border-color: var(--green-tint-2); background: var(--green-tint); }
.ct-areas__list .icon { width: 14px; height: 14px; color: var(--green-600); }

/* ---------- FAQ ---------- */
.ct-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.ct-faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.ct-faq__intro .lead { margin-top: 16px; }
.ct-faq .acc-panel__inner a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .ct-faq__grid { grid-template-columns: 1fr; } .ct-faq__intro { position: static; } }

/* ---------- Closing CTA ---------- */
.ct-book__card { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px); background-color: var(--ice); border: 1px solid var(--ice-2); border-radius: 20px; overflow: hidden; }
.ct-book__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--green-600); }
.ct-book__copy .lead { margin-top: 16px; }
.ct-book__side { display: grid; gap: 24px; }
.ct-book__side .check-list li { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .ct-book__card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ct-book__side .btn { width: 100%; } }
