/* ═══════════════════════════════════════════════════════════════════════
   BOH inquiry form — compact professional layout for the CMS-driven
   contact / partnership forms (formParts.tsx → .inquiry-form).

   Scoped entirely to .inquiry-form / .inquiry-form-card so the template's
   .default-form styles keep applying to any form without the class.
   Loaded last in TEMPLATE_STYLESHEETS so these rules win equal-specificity
   ties against style.css without !important.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Card container ────────────────────────────────────────────────────── */
.inquiry-form-card {
  background: #fff;
  border: 1px solid #eee4dc;
  border-radius: 12px;
  box-shadow: 0 24px 55px -28px rgba(31, 23, 18, 0.22);
  padding: 42px 40px 38px;
}

@media (max-width: 767px) {
  .inquiry-form-card {
    padding: 28px 20px;
  }
}

/* The template offsets .form-inner 31px down (for stacked layouts); at lg
   the card sits beside the left content column, so drop the offset and
   align the card's top edge with the text block. */
@media (min-width: 992px) {
  .contact-page-section .inquiry-form-card {
    margin-top: 0;
  }
}

/* ── Vertical rhythm ───────────────────────────────────────────────────── */
.inquiry-form .form-group {
  margin-bottom: 14px;
}

.inquiry-form .form-group:last-child {
  margin-bottom: 0;
}

/* ── Group divider — serif-italic eyebrow (shared tier in boh-fonts.css)
   with a hairline rule trailing to the right edge. Rendered by
   renderContactField when a field carries `group_label`. ─────────────── */
.inquiry-form__divider {
  margin-bottom: 16px;
}

.inquiry-form__divider .cf-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0;
  color: #8f7d74;
}

.inquiry-form__divider .cf-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8ded5;
}

/* ── Field labels — Inter caps (FS labels-label tier) ──────────────────── */
.inquiry-form .cf-label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4c5a68;
}

.inquiry-form .cf-label .req {
  color: #e06a42;
  margin-left: 3px;
}

/* ── Inputs, selects, textarea — soft warm fill, hairline border,
   accent focus ring ──────────────────────────────────────────────────── */
.inquiry-form .form-group input[type="text"],
.inquiry-form .form-group input[type="email"],
.inquiry-form .form-group input[type="tel"],
.inquiry-form .form-group input[type="date"],
.inquiry-form .form-group select,
.inquiry-form .form-group textarea {
  display: block;
  width: 100%;
  height: 48px;
  padding: 11px 15px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: #33414f;
  background-color: #faf7f4;
  border: 1px solid #e7ddd4;
  border-radius: 7px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.inquiry-form .form-group textarea {
  height: auto;
  min-height: 108px;
  padding-top: 12px;
}

.inquiry-form .form-group input::placeholder,
.inquiry-form .form-group textarea::placeholder {
  color: #a89990;
  font-weight: var(--weight-regular);
}

.inquiry-form .form-group input:focus,
.inquiry-form .form-group select:focus,
.inquiry-form .form-group textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: #e06a42;
  box-shadow: 0 0 0 3px rgba(224, 106, 66, 0.16);
}

/* ── Native select — custom chevron, no nice-select (className="ignore"
   keeps script.js's transform away; the arrow is drawn here instead) ──── */
.inquiry-form .form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5d66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Placeholder option state — muted until a real value is chosen. */
.inquiry-form .form-group select:required:invalid {
  color: #a89990;
  font-weight: var(--weight-regular);
}

/* ── Submit — centred, fixed-width CTA rather than a full-width bar ────── */
.inquiry-form .form-group.message-btn {
  margin-top: 8px;
}

.inquiry-form .form-group.message-btn button {
  display: inline-block;
  width: auto;
  min-width: 240px;
}

@media (max-width: 575px) {
  .inquiry-form .form-group.message-btn button {
    width: 100%;
    min-width: 0;
  }
}

/* ── Wizard stepper — "Step N of M" + group eyebrow + hairline progress.
   Shown only when the form fields carry group_label boundaries; single
   group renders the plain stacked form. ───────────────────────────────── */
.inquiry-form__stepper {
  margin: 2px 0 20px;
}

.inquiry-form__step-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.inquiry-form__step-count {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a89990;
}

.inquiry-form__step-title {
  color: #8f7d74;
  text-align: right;
}

.inquiry-form__progress {
  height: 3px;
  background: #efe6de;
  border-radius: 2px;
  overflow: hidden;
}

.inquiry-form__progress > span {
  display: block;
  height: 100%;
  background: #e06a42;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Steps stay mounted (values persist into FormData); the inactive ones are
   hidden via the [hidden] attribute — enforced here so stray display rules
   can't unhide them. */
.inquiry-form__step[hidden] {
  display: none;
}

/* ── Wizard actions — ghost Back on the left, accent Continue/Submit on
   the right (falls back to right-aligned when Back is absent). ────────── */
.inquiry-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.inquiry-form__actions > :last-child {
  margin-left: auto;
}

.inquiry-form__actions .theme-btn-one {
  min-width: 200px;
}

.inquiry-form__back {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5d66;
  background: transparent;
  border: 1px solid #e7ddd4;
  border-radius: 7px;
  padding: 13px 24px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}

.inquiry-form__back:hover,
.inquiry-form__back:focus-visible {
  border-color: #e06a42;
  color: #e06a42;
  outline: none;
}

@media (max-width: 575px) {
  .inquiry-form__actions {
    flex-wrap: wrap;
  }

  .inquiry-form__actions > :last-child {
    margin-left: 0;
    width: 100%;
  }

  .inquiry-form__actions .theme-btn-one {
    min-width: 0;
    width: 100%;
  }

  .inquiry-form__back {
    flex: 1;
  }
}
