/* ==========================================================================
   Banexco Traders Inc. — css/contact.css  (§4.8)
   Page-local styles only. Linked AFTER css/main.css.
   Tokens only — no token redefinition, no color literals.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page head
   -------------------------------------------------------------------------- */
.contact-head {
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.contact-lede {
  max-width: 38rem;
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Two-column layout: form left, details right
   -------------------------------------------------------------------------- */
.contact-main {
  padding-block: clamp(2.5rem, 5vw, 4rem) var(--space-section);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
/* Grid items must be allowed to shrink so .table-scroll can engage at 360px
   instead of stretching the page (grid default min-width:auto). */
.contact-form-col,
.contact-details-col { min-width: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Inquiry form — labels above fields, 44px inputs (§4.8)
   -------------------------------------------------------------------------- */
.form-field { margin-bottom: 1.25rem; }

.inquiry-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.inquiry-form .req { color: var(--pine); }

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
}
.inquiry-form textarea {
  min-height: 9rem;
  resize: vertical;
}
.inquiry-form select { cursor: pointer; }

.inquiry-form input:hover,
.inquiry-form select:hover,
.inquiry-form textarea:hover {
  border-color: var(--pine);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 30rem;
}

/* --------------------------------------------------------------------------
   Details column — .spec-table rows (styles inherited from main.css)
   -------------------------------------------------------------------------- */
.contact-details a {
  display: inline-block;
  padding-block: 0.15rem; /* comfortable touch target inside table rows */
}

/* --------------------------------------------------------------------------
   Map — lazy iframe, 16:9
   -------------------------------------------------------------------------- */
.contact-map-section { padding-block: 0 var(--space-section); }

.map-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage-tint);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Keyboard focus indicator for the embedded map — drawn on the wrapper so the
   ring is not clipped by the wrapper's overflow:hidden. */
.map-embed:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Mobile WhatsApp pill repeat — hidden on desktop (§4.8)
   -------------------------------------------------------------------------- */
.whatsapp-repeat { display: none; }

.contact-whatsapp-btn {
  background: transparent;
  color: var(--pine);
  border: 1px solid var(--pine);
}
.contact-whatsapp-btn:hover {
  color: var(--pine-deep);
  border-color: var(--pine-deep);
  background: var(--sage-tint);
}

@media (max-width: 720px) {
  .whatsapp-repeat {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }
  .contact-whatsapp-btn { width: 100%; max-width: 22rem; }
}
