/* ==========================================================================
   CONTACT / QUOTE FORM
   ========================================================================== */

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .contact-panel { padding: 2.5rem; } }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field label { display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.45rem; }
.field label .optional-tag { text-transform: none; font-weight: 600; color: var(--text-muted); letter-spacing: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.field .field-error { display: none; color: var(--red-600); font-size: 0.75rem; margin-top: 0.35rem; font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-500); }
.field.has-error .field-error { display: block; }

/* Captcha answer + refresh + submit, all in one row */
.captcha-row { display: flex; align-items: stretch; gap: 0.5rem; }
.captcha-row input { flex: 1 1 6rem; min-width: 0; }
.captcha-refresh {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.captcha-refresh svg { width: 1.05rem; height: 1.05rem; }
.captcha-refresh:hover { color: var(--red-600); border-color: var(--red-500); }
.captcha-refresh.spin svg { animation: captchaSpin 0.5s ease; }
@keyframes captchaSpin { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .captcha-refresh.spin svg { animation: none; } }
.captcha-submit { flex-shrink: 0; padding-left: 1.1rem; padding-right: 1.1rem; }
@media (max-width: 420px) {
  .captcha-submit { padding-left: 0.8rem; padding-right: 0.8rem; font-size: 0.8rem; }
}

.form-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: 0.85rem; }
.form-success { display: none; text-align: center; padding: 2.5rem 0; }
.form-success.show { display: block; }
.form-success .check { height: 4rem; width: 4rem; border-radius: 999px; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.75rem; }
html[data-theme="dark"] .form-success .check { background: rgba(34,197,94,0.15); }

/* Contact page: form panel on the left, office/phone/email stacked on the right.
   Capped narrower than the page container so the section reads compact instead
   of stretching edge-to-edge on wide screens. */
.contact-form-section { padding-top: 0; padding-bottom: 0; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; max-width: 68rem; margin: 0 auto; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1.4fr 1fr; gap: 1.75rem; } }
/* On the 2-column desktop layout .contact-side stretches to match the form's
   height (align-items: stretch above). The 3 cards stay their own natural,
   compact height (not stretched — that made short-copy cards like "Email Us"
   center their text in a lot of dead space) and space-between spreads any
   leftover height out as extra gap between cards instead, so the column's
   total height still lines up with the form. */
.contact-side { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }

.contact-layout .bento { padding: 1.75rem; }
@media (min-width: 640px) { .contact-layout .bento { padding: 2rem; } }
.contact-layout .form-row { gap: 0.85rem; margin-bottom: 0.85rem; }

/* Contact info cards on contact.html: colored icon badge on the left, a
   header row (title + action button/pill) plus value/subtext on the right.
   justify-content is pinned to flex-start (overriding the base .card's
   space-between) so the icon-to-copy gap is always the fixed gap below,
   instead of stretching to whatever's left over based on each card's own
   text width. */
.contact-info-card { position: relative; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 1rem; padding: 1.1rem 1.25rem; height: auto; flex-shrink: 0; }

.cic-icon {
  flex-shrink: 0;
  height: 2.75rem; width: 2.75rem;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}
.cic-icon svg { width: 1.35rem; height: 1.35rem; }
.contact-info-card:hover .cic-icon { transform: scale(1.1) translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .cic-icon { transition: none; } }

.cic-icon-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.cic-icon-green { background: linear-gradient(135deg, var(--green-500), var(--green-600)); }
.cic-icon-fuchsia { background: linear-gradient(135deg, #d946ef, #ec4899); }
.cic-icon-teal { background: linear-gradient(135deg, #14b8a6, #0891b2); }

.contact-info-body { min-width: 12rem; text-align: left; flex: 1; overflow-wrap: anywhere; }
.contact-info-body p { line-height: 1.5; }

/* Title and action button(s) share a header row at the top of the card, so
   the value line below (email, phone, etc.) gets the body's full width to
   itself instead of competing with a button for space. */
.cic-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.4rem; }
.cic-top h3 { margin: 0; font-size: 1rem; }

.cic-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cic-btn { border-radius: 999px; justify-content: center; min-width: 6.75rem; }
.cic-btn svg { width: 0.85rem; height: 0.85rem; }
.cic-btn-whatsapp:hover { border-color: var(--green-500); color: var(--green-600); }

/* "Call Us or WhatsApp" card only: the buttons are pinned to the card's
   top-right corner via absolute positioning (relying on .contact-info-card's
   position: relative above) instead of sharing a flex row with the heading,
   so the heading text box never has to stretch/shrink to make room for them.
   padding-right on the body reserves clear space so the heading and value
   text can't run underneath the pinned buttons. */
h3.cic-heading-plain { margin: 0 0 0.3rem; font-size: 1rem; }
.cic-body-reserve-right { padding-right: 8rem; }
.cic-actions-corner { position: absolute; top: 1.1rem; right: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }

.cic-value { display: flex; align-items: center; gap: 0.4rem; font-weight: 800; color: var(--text-strong); font-size: 0.95rem; margin: 0; }
.cic-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  background: var(--surface-raised); color: var(--text-muted);
  cursor: pointer; padding: 0; transition: color 0.2s ease, border-color 0.2s ease;
}
.cic-copy svg { width: 0.8rem; height: 0.8rem; }
.cic-copy:hover { color: var(--red-600); border-color: rgba(239,68,68,0.3); }
.cic-copy .ico-check { display: none; }
.cic-copy.copied { color: var(--green-600); border-color: rgba(34,197,94,0.3); }
.cic-copy.copied .ico-copy { display: none; }
.cic-copy.copied .ico-check { display: inline-flex; }

.cic-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--surface); color: var(--text-muted); flex-shrink: 0;
}
.status-pill::before { content: "●"; font-size: 0.6rem; }
.status-pill.status-open { background: var(--green-100); color: #166534; }
.status-pill.status-closed { background: var(--red-50); color: var(--red-600); }
html[data-theme="dark"] .status-pill.status-open { background: rgba(34,197,94,0.14); color: #86efac; }
html[data-theme="dark"] .status-pill.status-closed { background: rgba(239,68,68,0.12); color: #fca5a5; }

.hours-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; padding: 0.3rem 0; }
.hours-row span:first-child { color: var(--text-muted); font-weight: 700; }
.hours-row span:last-child { color: var(--text-strong); font-weight: 700; }
.hours-row + .hours-row { border-top: 1px dashed var(--border-soft); }

/* ---- Contact hero: light, centered, brand-gradient headline (adapted from
   the live site's contact page layout, recolored to our red/rose theme) ---- */
.contact-hero-light {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1.75rem 0 0;
  background: #ffffff;
}
html[data-theme="dark"] .contact-hero-light { background: var(--surface-raised, #09090b); }
@media (min-width: 640px) { .contact-hero-light { padding: 2.5rem 0 0; } }
.contact-hero-light .container { position: relative; z-index: 1; }

.contact-hero-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-strong); line-height: 1.15;
  font-size: 1.9rem; margin: 1.25rem 0 1rem;
}
@media (min-width: 480px) { .contact-hero-title { font-size: 2.3rem; } }
@media (min-width: 640px) { .contact-hero-title { font-size: 2.75rem; } }
.contact-hero-title .accent-huge {
  background: linear-gradient(to right, var(--red-600), var(--rose-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.contact-hero-lede { max-width: 42rem; margin: 0 auto; color: var(--text-muted); line-height: 1.75; font-size: 0.95rem; }
@media (min-width: 640px) { .contact-hero-lede { font-size: 1rem; } }
.contact-hero-lede strong { color: var(--text-strong); font-weight: 800; }

/* Breadcrumb pill styling now lives in the shared .hero-breadcrumb-pill class
   (css/hero-slider.css) so every inner-page hero can reuse it. */

.map-frame {
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 16/7;
  position: relative;
  background: var(--surface);
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
}
.map-frame img, .map-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
