/* ──────────────────────────────────────────────────────────────
   XENA CONTACT FORM — shared styles
   Used by pre-footer.html (site-wide) and the lp/* landing pages.
   Theme is var-driven; defaults match dark contexts (pre-footer).
   Override the vars on a parent (e.g. .hero-form-card .xcf-body)
   for light contexts.
   ──────────────────────────────────────────────────────────── */

.xcf-body,
.xcf-success {
  --xcf-text:              #fff;
  --xcf-label:             rgba(255,255,255,.75);
  --xcf-input-bg:          rgba(255,255,255,.06);
  --xcf-input-bg-focus:    rgba(255,255,255,.09);
  --xcf-input-border:      rgba(255,255,255,.12);
  --xcf-input-border-focus:rgba(241,214,102,.5);
  --xcf-placeholder:       rgba(255,255,255,.45);
  --xcf-divider:           rgba(255,255,255,.1);
  --xcf-muted:             rgba(255,255,255,.45);
  --xcf-required:          var(--gold-dark, #a38824);
  --xcf-select-arrow:      rgba(241,214,102,.6);
  --xcf-select-bg:         #1e1e1d;
  --xcf-select-text:       #fff;
  --xcf-error-text:        #e87b6b;
  --xcf-error-bg:          rgba(192,57,43,.12);
  --xcf-error-border:      rgba(192,57,43,.3);
  --xcf-error-accent:      #c0392b;
  --xcf-button-bg:         var(--gold, #F1D666);
  --xcf-button-bg-hover:   #FFE566;
  --xcf-button-text:       var(--black, #0A0A0A);
  --xcf-success-icon-bg:     rgba(241,214,102,.1);
  --xcf-success-icon-border: rgba(241,214,102,.35);
  --xcf-success-icon-color:  var(--gold, #F1D666);
  --xcf-success-title:       #fff;
  --xcf-success-title-em:    var(--gold, #F1D666);
  --xcf-success-body:        rgba(255,255,255,.75);
  --xcf-success-body-strong: #fff;
  --xcf-success-phone:       var(--gold, #F1D666);
}

.xcf-body { display: flex; flex-direction: column; gap: 0; }

.xcf-error-banner {
  display: none;
  background: var(--xcf-error-bg);
  border: 1px solid var(--xcf-error-border);
  border-left: 3px solid var(--xcf-error-accent);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-family: var(--fs);
  font-size: 14px;
  color: var(--xcf-error-text);
  line-height: 1.5;
}
.xcf-error-banner.visible { display: block; }

.xcf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.xcf-field { display: flex; flex-direction: column; gap: 7px; }
.xcf-field-full { margin-bottom: 16px; }

.xcf-label {
  font-family: var(--fs);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xcf-label);
}
.xcf-req { color: var(--xcf-required); margin-left: 2px; }

.xcf-input {
  width: 100%;
  font-family: var(--fs);
  font-size: 17px;
  color: var(--xcf-text);
  background: var(--xcf-input-bg);
  border: 1px solid var(--xcf-input-border);
  border-radius: 2px;
  padding: 13px 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, background .2s;
}
.xcf-input::placeholder { color: var(--xcf-placeholder); }
.xcf-input:focus {
  border-color: var(--xcf-input-border-focus);
  background: var(--xcf-input-bg-focus);
}
.xcf-input.error {
  border-color: rgba(192,57,43,.7);
  background: rgba(192,57,43,.08);
}

.xcf-select-wrap { position: relative; }
.xcf-select-wrap::after {
  content: '▾';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--xcf-select-arrow);
  font-size: 14px;
  pointer-events: none;
}
.xcf-select { padding-right: 36px; cursor: pointer; }
.xcf-select option { background: var(--xcf-select-bg); color: var(--xcf-select-text); }

.xcf-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.xcf-err {
  font-family: var(--fs);
  font-size: 12px;
  color: var(--xcf-error-text);
  display: none;
  margin-top: 1px;
}
.xcf-err.visible { display: block; }

/* ── SMS consent (TCPA / 10DLC) ─────────────────────────────────
   Opt-in checkbox + audit-grade consent block. Sits between the
   last content field and the submit button. Never pre-checked. */
.xcf-consent { margin-top: 4px; margin-bottom: 16px; }
.xcf-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(241,214,102,0.18);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.xcf-consent-row:hover { border-color: rgba(241,214,102,0.4); background: rgba(255,255,255,0.05); }
.xcf-consent-checkbox {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold, #F1D666);
}
.xcf-consent-text {
  font-family: var(--fs);
  font-size: 13px;
  line-height: 1.6;
  color: var(--xcf-input-text, rgba(255,255,255,0.85));
  font-weight: 500;
}
.xcf-consent-text strong { color: var(--gold, #F1D666); font-weight: 600; }
.xcf-consent-text a {
  color: var(--gold, #F1D666);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.xcf-consent-text em {
  display: block;
  margin-top: 8px;
  font-style: italic;
  font-size: 12px;
  color: var(--xcf-muted, rgba(255,255,255,0.55));
}

.xcf-submit {
  width: 100%;
  background: var(--xcf-button-bg);
  color: var(--xcf-button-text);
  border: none;
  padding: 17px;
  font-family: var(--fs);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  transition: background .2s, transform .15s, opacity .2s;
}
.xcf-submit:hover:not(:disabled) {
  background: var(--xcf-button-bg-hover);
  transform: translateY(-1px);
}
.xcf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.xcf-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(10,10,10,.2);
  border-top-color: var(--xcf-button-text);
  border-radius: 50%;
  animation: xcf-spin .7s linear infinite;
  display: none;
}
.xcf-submit.loading .xcf-spinner { display: block; }
.xcf-submit.loading .xcf-submit-text { opacity: .5; }
@keyframes xcf-spin { to { transform: rotate(360deg); } }

.xcf-phone-area { margin-top: 28px; text-align: center; }
.xcf-divider-row {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--fs); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--xcf-muted);
  margin-bottom: 14px;
}
.xcf-divider-row::before,
.xcf-divider-row::after {
  content: ''; flex: 1; height: .5px;
  background: var(--xcf-divider);
}
.xcf-phone-link {
  font-family: var(--fd, 'Playfair Display', Georgia, serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--xcf-success-phone);
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s;
  display: inline-block;
}
.xcf-phone-link:hover { color: var(--xcf-text); }
.xcf-phone-sub {
  font-family: var(--fs); font-size: 12px;
  color: var(--xcf-muted); margin-top: 6px;
  letter-spacing: .06em;
}

.xcf-recaptcha-note {
  font-family: var(--fs); font-size: 10px;
  color: var(--xcf-muted); text-align: center;
  margin-top: 20px; line-height: 1.5;
}
.xcf-recaptcha-note a { color: var(--xcf-muted); text-decoration: underline; }

.xcf-success {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 60px 20px;
}
.xcf-success-icon {
  width: 72px; height: 72px;
  background: var(--xcf-success-icon-bg);
  border: 2px solid var(--xcf-success-icon-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 24px;
  color: var(--xcf-success-icon-color);
}
.xcf-success-title {
  font-family: var(--fd, 'Playfair Display', Georgia, serif);
  font-size: 30px; font-weight: 600;
  color: var(--xcf-success-title);
  line-height: 1.2; margin-bottom: 16px;
}
.xcf-success-title em { font-style: italic; color: var(--xcf-success-title-em); }
.xcf-success-body {
  font-family: var(--fs); font-size: 17px;
  color: var(--xcf-success-body); line-height: 1.8;
}
.xcf-success-body strong { color: var(--xcf-success-body-strong); font-weight: 600; }
.xcf-success-phone {
  color: var(--xcf-success-phone); font-weight: 600;
  text-decoration: none;
}
.xcf-success-phone:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .xcf-row { grid-template-columns: 1fr; gap: 0; }
}
