/**
 * Ironwood Millworks child theme -- Contact page layout + the shared
 * .quote-form component (used here and again, in its dark variant, inside
 * the homepage's #contact band in front-page.php). Loaded on both by
 * ironwood_enqueue_styles() in functions.php. Palette/fonts match the
 * rest of the site (see the shared :root block in style.css).
 */

/* ── CONTACT PAGE LAYOUT ── */
.contact-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 76px 80px 130px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.contact-info-item { margin-bottom: 30px; }
.contact-info-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-info-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--forest);
  text-decoration: none;
  display: inline-block;
}
a.contact-info-value:hover { color: var(--gold); }
.contact-info-note {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-mid);
  padding-top: 14px;
  border-top: 1px solid rgba(74,63,53,0.14);
  max-width: 340px;
}
.contact-form-panel {
  background: var(--cream-warm);
  padding: 44px 46px;
}

/* ── QUOTE FORM (shared, light context) ── */
.quote-form { text-align: left; }
.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.quote-field { margin-bottom: 20px; }
.quote-field label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 9px;
}
.quote-field .req { color: var(--gold); }
.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--forest);
  background: #fff;
  border: 1px solid rgba(74,63,53,0.22);
  padding: 12px 14px;
  /* The theme ships its own "input[type=...], select { height: 40px; }"
     rule (Astra's inline global-styles CSS). 40px isn't tall enough for
     our font-size/line-height/padding combo (needs ~48px), so that fixed
     height was clipping the text no matter what we did with line-height --
     this is the actual cause of the "select one cut off" bug. Overriding
     back to auto lets the box grow to fit its own content/padding instead
     of being capped by the theme's fixed number. */
  height: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* Selects need their own rule: the native widget's own vertical metrics
   (which vary by OS/browser) were fighting the padding above and clipping
   the bottom of the text -- turning off the native appearance and drawing
   our own arrow means the padding above is the only thing controlling the
   box, so the text sits centered reliably everywhere. */
.quote-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B0903D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
}
.quote-form.is-dark .quote-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A84C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.contact-form-panel .quote-field input,
.contact-form-panel .quote-field select,
.contact-form-panel .quote-field textarea {
  /* background-color, not the background shorthand -- shorthand resets
     background-image to none, which was silently deleting the select
     arrow drawn below. */
  background-color: var(--cream);
}
.quote-field textarea { resize: vertical; min-height: 110px; }
.quote-field select { cursor: pointer; }
.quote-field input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
}
.quote-optional {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  opacity: 0.6;
}
.quote-field-hint {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  color: var(--text-mid);
  opacity: 0.75;
  margin-top: 7px;
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,144,61,0.15);
}
.quote-field.has-error input,
.quote-field.has-error select,
.quote-field.has-error textarea {
  border-color: #B5473B;
}
.quote-field-error {
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  color: #B5473B;
  margin-top: 7px;
}

/* Honeypot -- off-screen, not display:none (some bots skip hidden fields
   entirely; this stays "visible" to a scraper but unreachable/invisible
   to a real visitor). */
.quote-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form-foot {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.quote-submit {
  border: none;
  cursor: pointer;
  font: inherit;
}
.quote-submit:disabled { opacity: 0.6; cursor: default; }
.quote-form-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--gold-muted);
}
.quote-form-status {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  margin-top: 16px;
}
.quote-form-status.is-error { color: #B5473B; }

.quote-form-success {
  text-align: center;
  padding: 30px 10px;
}
.quote-form-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 12px;
}
.quote-form-success-body {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  color: var(--text-mid);
  max-width: 380px;
  margin: 0 auto;
}

/* ── QUOTE FORM (dark context -- embedded in the homepage's .cta-band) ── */
.quote-form.is-dark {
  max-width: 540px;
  margin: 0 auto;
}
.quote-form.is-dark .quote-field label { color: var(--gold); }
.quote-form.is-dark .quote-field input,
.quote-form.is-dark .quote-field select,
.quote-form.is-dark .quote-field textarea {
  /* background-color, not the shorthand -- see the comment on the light
     .contact-form-panel rule above; same shorthand-resets-the-image trap. */
  background-color: rgba(244,239,230,0.06);
  border-color: rgba(176,144,61,0.32);
  color: #EDE4D0;
}
.quote-form.is-dark .quote-field input::placeholder,
.quote-form.is-dark .quote-field textarea::placeholder { color: rgba(237,228,208,0.4); }
.quote-form.is-dark .quote-field select option { color: #1a1a1a; }
.quote-form.is-dark .quote-field input:focus,
.quote-form.is-dark .quote-field select:focus,
.quote-form.is-dark .quote-field textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(176,144,61,0.2);
}
.quote-form.is-dark .quote-field.has-error input,
.quote-form.is-dark .quote-field.has-error select,
.quote-form.is-dark .quote-field.has-error textarea {
  border-color: #E08577;
}
.quote-form.is-dark .quote-field-error { color: #E08577; }
.quote-form.is-dark .quote-form-note { color: rgba(237,228,208,0.5); }
.quote-form.is-dark .quote-optional,
.quote-form.is-dark .quote-field-hint { color: rgba(237,228,208,0.5); opacity: 1; }
.quote-form.is-dark .quote-form-status.is-error { color: #E08577; }
.quote-form.is-dark .quote-form-success-title { color: var(--gold-light); }
.quote-form.is-dark .quote-form-success-body { color: rgba(237,228,208,0.6); }

.cta-email-fallback {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: rgba(237,228,208,0.45);
  margin-top: 30px;
}
.cta-email-fallback a { color: var(--gold); }
.cta-email-fallback a:hover { color: var(--gold-light); }

/* ── TRADE APPLICATION PAGE LAYOUT ──
   Deliberately reuses .quote-form/.quote-field/.quote-row/.quote-submit
   etc. above instead of a parallel set of rules -- the trade form looks
   and behaves like the quote form, it just has more fields and a review
   step on the back end (see ironwood_trade_form() in functions.php), so
   there's nothing to gain from a second copy of this styling. */
.trade-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 76px 80px 130px;
}
.trade-intro { margin-bottom: 48px; }
.trade-intro p { margin-bottom: 18px; }
.trade-intro ul { margin: 22px 0 0; }

/* ── CONSENT CHECKBOXES (SMS opt-in + Terms agreement) ──
   Shared markup from ironwood_consent_fields() in functions.php: two
   optional SMS opt-in cards, then a plain required "I agree to the
   Terms/Privacy" line. The required checkbox's wrapper reuses .quote-field
   so it picks up the site's existing inline-error styling for free (see
   .quote-field.has-error below) -- nothing new needed there.

   .quote-field input, select, textarea (above) sets width:100%, padding,
   a border, etc. for text-style fields -- without an override that would
   turn every checkbox below into a full-width bordered bar, so this resets
   a checkbox back to its native, compact appearance first. */
.quote-field input[type="checkbox"],
.consent-option input[type="checkbox"] {
  width: auto;
  height: auto;
  flex: none;
  margin: 3px 0 0;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(74,63,53,0.22);
  border-radius: 6px;
  padding: 14px 16px;
  cursor: pointer;
}
.consent-option-title {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest);
  margin-bottom: 4px;
}
.consent-option-body {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mid);
}
.quote-field.consent-field { margin-bottom: 20px; }
.consent-tos {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-tos-text {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mid);
}
.consent-tos-text a { color: var(--gold); text-decoration: underline; }
.consent-tos-text a:hover { color: var(--gold-light); }
.quote-field.consent-field .quote-field-error { margin-top: 8px; }

/* Dark context -- homepage's #contact band (.quote-form.is-dark) */
.quote-form.is-dark .consent-option { border-color: rgba(176,144,61,0.32); background: rgba(244,239,230,0.05); }
.quote-form.is-dark .consent-option-title { color: var(--gold-light); }
.quote-form.is-dark .consent-option-body,
.quote-form.is-dark .consent-tos-text { color: rgba(237,228,208,0.65); }
.quote-form.is-dark .consent-tos-text a { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact-wrap { padding: 60px 40px 100px; gap: 50px; }
  .trade-wrap { padding: 60px 40px 100px; }
}
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 34px 28px; }
}
@media (max-width: 560px) {
  .quote-row { grid-template-columns: 1fr; gap: 0; }
  .contact-wrap { padding: 48px 20px 80px; }
  .contact-form-panel { padding: 28px 20px; }
  .trade-wrap { padding: 48px 20px 80px; }
}