/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.25fr .75fr; } }

/* ---- Form ---------------------------------------------------------------- */
.contact-form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-progress {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-xs); color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.form-progress__track { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.form-progress__fill {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width var(--dur) var(--ease-out);
}

/* Budget selector as pill radios */
.pill-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill-group input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill-group label {
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  font-weight: 400;
}
.pill-group label:hover { border-color: var(--line-strong); color: var(--text); }
.pill-group input:checked + label {
  background: var(--text); border-color: var(--text); color: var(--bg);
}
.pill-group input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

.char-count { font-size: var(--fs-xs); color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.char-count.is-over { color: #C0392B; }

/* ---- Aside --------------------------------------------------------------- */
.contact-aside { display: grid; gap: var(--space-6); align-content: start; }

.contact-card {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: grid; gap: var(--space-3);
}
.contact-card h3 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.contact-card a { font-size: var(--fs-sm); color: var(--accent); }
.contact-card p { font-size: var(--fs-sm); color: var(--text-muted); }

.office-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.office {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
  display: grid; gap: var(--space-2);
}
.office h3 { font-size: var(--fs-md); }
.office p { font-size: var(--fs-sm); color: var(--text-muted); }
.office .clock { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); letter-spacing: .08em; }

/* ---- Map placeholder ----------------------------------------------------- */
.map {
  aspect-ratio: 21 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); }
[data-theme="dark"] .map iframe { filter: grayscale(1) invert(.92) contrast(.85); }
.map__pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---- Success state ------------------------------------------------------- */
.form-success {
  display: none;
  padding: var(--space-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
  gap: var(--space-4);
}
.form-success.is-visible { display: grid; animation: page-in 500ms var(--ease-out) both; }
.form-success__mark {
  width: 56px; height: 56px; margin-inline: auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent);
}
.form-success__mark svg { width: 24px; height: 24px; }

/* ---- Light opening-hours table (used in the aside on a pale surface) ---- */
.hours-table--light .hours-row {
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.hours-table--light .hours-row span:first-child { color: var(--text-muted); }
.hours-table--light .hours-row span:last-child { color: var(--text); font-weight: 600; }
.hours-table--light .hours-row.is-today span:first-child { color: var(--accent); font-weight: 700; }
.hours-table--light .hours-row.is-today span:last-child { color: var(--accent-hover); font-weight: 700; }

/* The live clock renders inline in a sentence, so keep it snug */
.contact-card .clock { color: var(--accent); font-weight: 700; font-family: var(--font-mono); }

/* ---- Contact CTA (email + WhatsApp buttons, replaces the form) --------- */
.contact-cta { display: grid; gap: var(--space-5); align-content: start; }
.contact-cta h2 { font-size: var(--fs-xl); }
.contact-cta .muted { font-size: var(--fs-sm); max-width: 48ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-btns .btn { justify-content: center; }
.cta-note { font-size: var(--fs-sm); color: var(--text-muted); }
.cta-note a { color: var(--accent); font-weight: 700; }

.btn--whatsapp { --btn-bg: #25D366; --btn-fg: #fff; border-color: #25D366; }
.btn--whatsapp::before { background: #1EBE5B; }
.btn--whatsapp:hover { color: #fff; border-color: #1EBE5B; }
.btn--whatsapp svg { width: 18px; height: 18px; }
