/* ============================================================================
   contact.css — Contact page components
   ============================================================================
   The About page is the design reference. This file does NOT restate its
   system: contact.html loads about.css first and inherits the same token
   block (.about-page, .contact-page), then reuses its section shell,
   typography roles, icon tile, matrix, ladder and CTA verbatim.

   Only what Contact genuinely adds lives here — the form, the quotation
   table, the office cards, the map switcher and the FAQ. Every value below
   is expressed in --ab-* tokens, so the two pages cannot drift apart.

   inner.css is no longer loaded by this page. Class names that js/contact.js
   depends on (.form-control-custom, .form-group, .is-invalid, .q-*,
   .faq-item, .quote-line-total) are preserved exactly, so no JavaScript
   behaviour had to change for the redesign.
   ========================================================================= */


/* ----------------------------------------------------------------------------
   1. FORM
   ------------------------------------------------------------------------- */
.cn-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ab-white);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  box-shadow: var(--ab-shadow);
}

.form-group { margin-bottom: 1.1rem; }

.form-label-custom {
  display: block;
  margin-bottom: .45rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ab-navy);
}

.form-label-custom .req { color: var(--ab-accent); }

.form-control-custom {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--ab-tint);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-sm);
  font-family: inherit;
  font-size: .94rem;
  color: var(--ab-ink);
  transition:
    border-color 260ms var(--ab-ease),
    background 260ms var(--ab-ease),
    box-shadow 260ms var(--ab-ease);
}

.form-control-custom::placeholder { color: var(--ab-ink-2); opacity: .85; }

.form-control-custom:focus {
  outline: none;
  background: var(--ab-white);
  border-color: var(--ab-navy);
  box-shadow: 0 0 0 3px rgba(6, 58, 120, .10);
}

textarea.form-control-custom { resize: vertical; min-height: 132px; }

select.form-control-custom {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235B6B82'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 13px;
  padding-right: 2.5rem;
}

/* validation — the exact classes js/contact.js toggles */
.field-error {
  display: none;
  margin: .4rem 0 0;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ab-accent);
}

.is-invalid .form-control-custom {
  border-color: var(--ab-accent);
  background: #FDF6F5;
}

.is-invalid .field-error { display: block; }

.form-note {
  margin: .9rem 0 0;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ab-ink-2);
}

.form-alert {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: var(--ab-r-sm);
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.form-alert.success { background: #F0F8F4; border-color: #CBE8D8; color: #1B6B45; }
.form-alert.error   { background: #FDF6F5; border-color: #F0D3CE; color: #8A1301; }


/* Deep-link target for "Get a Quote" from every other page. The header is
   position:fixed, so without this the form's top would land behind it.
   .ab-section already carries scroll-margin-top:100px, but this anchor sits
   on the panel INSIDE the section, which does not inherit it. */
#send-message { scroll-margin-top: 110px; }

/* ----------------------------------------------------------------------------
   Sections 2 (TAB SWITCH) and 3 (QUOTATION BUILDER) removed with the
   "Create a quotation" tab. Every selector in them — .tab-switch,
   .quote-block, .quote-table, .totals-*, .btn-add-row, .btn-remove-row,
   .quote-line-total, #quotePreview — targeted markup that no longer exists.
   The map's own office switcher uses .map-switch, which is separate and
   untouched.
   ------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------------
   4. OFFICE CARDS — the .ab-person hover language, applied to a location
   ------------------------------------------------------------------------- */
.cn-office {
  height: 100%;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  background: var(--ab-white);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  transition:
    box-shadow 420ms cubic-bezier(.22, 1, .36, 1),
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    border-color 420ms cubic-bezier(.22, 1, .36, 1);
}

.cn-office:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 74, 150, .22);
  box-shadow: 0 2px 6px rgba(6, 58, 120, .04), 0 16px 40px -20px rgba(6, 58, 120, .28);
}

.cn-office-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ab-line);
}

.cn-office-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ab-navy);
  margin: 0 0 .2rem;
}

.cn-badge {
  display: inline-block;
  padding: .18rem .55rem;
  background: var(--ab-tint-2);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ab-navy);
}

.cn-list { list-style: none; margin: 0; padding: 0; }

.cn-list li {
  display: flex;
  gap: .7rem;
  padding: .5rem 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ab-ink-2);
}

.cn-list i { flex: none; margin-top: .2rem; color: var(--ab-navy); }
.cn-list a { color: var(--ab-ink-2); text-decoration: none; transition: color 240ms var(--ab-ease); }
.cn-list a:hover { color: var(--ab-accent); }


/* ----------------------------------------------------------------------------
   5. BUSINESS HOURS
   ------------------------------------------------------------------------- */
.cn-hours { list-style: none; margin: 0; padding: 0; }

.cn-hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--ab-line);
  font-size: .9rem;
}

.cn-hours li:last-child { border-bottom: 0; }
.cn-hours-day { font-weight: 700; color: var(--ab-navy); }
.cn-hours-time { color: var(--ab-ink-2); text-align: right; white-space: nowrap; }
.cn-hours li.is-closed .cn-hours-time { color: var(--ab-accent); }

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
  padding: .5rem .9rem;
  background: var(--ab-tint-2);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ab-navy);
}

.hours-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ab-ink-2); flex: none; }
.hours-status[data-open="true"] .hours-dot { background: #1B8A55; }
.hours-status[data-open="false"] .hours-dot { background: var(--ab-accent); }


/* ----------------------------------------------------------------------------
   6. MAP
   ------------------------------------------------------------------------- */
.map-switch {
  display: inline-flex;
  gap: .25rem;
  padding: .3rem;
  background: var(--ab-white);
  border: 1px solid var(--ab-line);
  border-radius: 999px;
  margin-bottom: 1.35rem;
}

.map-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: .6rem 1.25rem;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ab-ink-2);
  cursor: pointer;
  transition: background 260ms var(--ab-ease), color 260ms var(--ab-ease);
}

.map-switch button[aria-selected="true"] { background: var(--ab-navy); color: var(--ab-white); }
.map-switch button:focus-visible { outline: 2px solid var(--ab-navy); outline-offset: 2px; }

.map-stage {
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  overflow: hidden;
  background: var(--ab-tint);
}

.map-stage iframe { display: block; width: 100%; height: 420px; border: 0; }

.map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--ab-line);
  background: var(--ab-white);
  font-size: .86rem;
  color: var(--ab-ink-2);
}

.map-caption strong { color: var(--ab-navy); }
.map-caption a { color: var(--ab-navy); text-decoration: none; }
.map-caption a:hover { color: var(--ab-accent); }

@media (max-width: 575.98px) {
  .map-stage iframe { height: 300px; }
  .map-switch { display: flex; width: 100%; }
  .map-switch button { flex: 1; padding: .6rem .4rem; }
}


/* ----------------------------------------------------------------------------
   7. FAQ
   ------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--ab-line); }
.faq-item { border-bottom: 1px solid var(--ab-line); }

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ab-navy);
  transition: color 240ms var(--ab-ease);
}

.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--ab-accent); }
.faq-item > summary:focus-visible { outline: 2px solid var(--ab-navy); outline-offset: 3px; border-radius: 4px; }

.faq-sign {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ab-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .76rem;
  color: var(--ab-navy);
  transition: transform 320ms var(--ab-ease), background 320ms var(--ab-ease), color 320ms var(--ab-ease);
}

.faq-item[open] .faq-sign {
  transform: rotate(45deg);
  background: var(--ab-navy);
  border-color: var(--ab-navy);
  color: var(--ab-white);
}

.faq-answer {
  margin: 0;
  padding: 0 3rem 1.35rem 0;
  font-size: .94rem;
  line-height: 1.8;
  color: var(--ab-ink-2);
  max-width: 72ch;
}

@media (max-width: 575.98px) { .faq-answer { padding-right: 0; } }


/* ----------------------------------------------------------------------------
   8. MOTION SAFETY
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cn-office,
  .cn-office:hover,
  .faq-sign {
    transition: none !important;
    transform: none !important;
  }
}


/* ----------------------------------------------------------------------------
   9. PRINT — the quotation
   ------------------------------------------------------------------------- */
@media print {
  .navbar-premium, .footer-premium, .back-to-top, .tab-switch,
  .ab-hero, .map-stage, .faq, .btn-add-row, .btn-remove-row,
  .col-remove, .ab-cta { display: none !important; }
  body { background: #fff; padding-top: 0 !important; }
  .cn-form { box-shadow: none; border: 0; padding: 0; }
}
