/* Field Command — shared public portal tokens (booking / renew / quote).
 * Pages may keep layout-specific CSS inline; these tokens unify brand accent. */

:root{
  /* Dark default (booking/renew) — warm graphite + amber */
  --fc-page:#0b0a0c;
  --fc-surface:#15141a;
  --fc-elevated:#1c1b22;
  --fc-raised:#26242c;
  --fc-text:#f2ede4;
  --fc-text-2:rgba(216,208,195,0.82);
  --fc-text-3:#989284;
  --fc-border:rgba(255,255,255,0.08);
  --fc-border-strong:rgba(255,255,255,0.14);
  --fc-input-bg:rgba(255,255,255,0.04);
  --fc-input-border:rgba(255,255,255,0.12);
  --fc-accent:#f6aa3b;
  --fc-accent-soft:rgba(246,170,59,0.16);
  --fc-success:#46d98a;
  --fc-danger:#ff6f6f;
  --fc-hero-from:#1a1520;
  --fc-hero-to:#0f0d12;
  --fc-focus-ring:rgba(246,170,59,0.22);
}

[data-theme="light"]{
  --fc-page:#f6f3ee;
  --fc-surface:#ffffff;
  --fc-elevated:#fbf9f5;
  --fc-raised:#f1ece4;
  --fc-text:#1c1812;
  --fc-text-2:#5c554a;
  --fc-text-3:#6b6456;
  --fc-border:rgba(0,0,0,0.07);
  --fc-border-strong:rgba(0,0,0,0.13);
  --fc-input-bg:#fbf9f5;
  --fc-input-border:#e6e0d6;
  --fc-accent:#c8841f;
  --fc-accent-soft:rgba(200,132,31,0.12);
  --fc-success:#1a9e5f;
  --fc-danger:#d24545;
  --fc-hero-from:#1e3a5f;
  --fc-hero-to:#1a2f4d;
  --fc-focus-ring:rgba(200,132,31,0.2);
}

/* Map common public aliases onto Field Command tokens when not redefined */
.field-hint{font-size:12px;color:var(--muted,var(--fc-text-3));margin-top:6px;line-height:1.45;}

/* Primary CTA — amber with dark ink (never pure white on gold) */
.btn-submit,
.btn[type="submit"],
button.btn:not(.btn-ghost):not(.btn-outline){
  /* pages set their own classes; token helpers below for shared use */
}
.fc-btn-primary{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;padding:14px;min-height:48px;border:none;border-radius:11px;
  background:var(--fc-accent);color:#0b0a0c;font-size:15px;font-weight:700;
  font-family:inherit;cursor:pointer;
}
.fc-btn-primary:hover{opacity:.92}
.fc-btn-primary:disabled{opacity:.5;cursor:not-allowed}

/* Customer flow refresh: readable forms and clear decisions. */
body.renew-page .card{max-width:680px;width:calc(100% - 24px);padding:22px;}
.renew-page .property-card h3{font-size:16px;}
.renew-page .property-card input:not([type="radio"]):not([type="checkbox"]){min-width:0;min-height:48px;}
.renew-page .svc-option{flex-wrap:wrap;gap:10px;}
.renew-page .svc-option .desc,.renew-page .term-check{font-size:14px;line-height:1.5;}
.renew-page .term-check{min-height:44px;align-items:center;}
.renew-page .remove-btn,.renew-page .add-prop{min-height:48px;font-size:14px;}
.booking-page .hero{padding:24px 20px 20px;}
.booking-page .hero-logo{max-width:600px;margin:0 auto 18px;}
.booking-page .hero h1{font-size:clamp(24px,4vw,32px);letter-spacing:-.03em;}
body.booking-page .card{max-width:600px;width:calc(100% - 32px);padding:24px;margin-top:20px;}
body.booking-page .field label,body.renew-page .field label{font-size:13px;color:var(--fc-text-2);letter-spacing:.02em;}
.booking-page .field input,.booking-page .field select,.booking-page .field textarea{min-width:0;min-height:50px;}
.booking-page .field-hint{font-size:13px;line-height:1.5;}
.booking-page .booking-progress{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--border);}
.booking-page .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px;}
.booking-page .step,.booking-page .step.active{width:100%;height:5px;border-radius:4px;transform:none;}
.booking-progress-labels{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;color:var(--text-2);font-size:12px;font-weight:650;text-align:center;}
.booking-page .service-options,.booking-page .pay-methods{gap:12px;}
.booking-page .service-opt,.booking-page .pay-method{min-width:0;}
.booking-page .service-opt.selected{transform:none;}
.booking-page .btn-submit{min-height:54px;font-size:16px;line-height:1.4;white-space:normal;}
.booking-page #otpRow{flex-wrap:wrap;}
.booking-page #otpStatus{font-size:13px!important;}
.quote-page .page{max-width:760px;padding:24px 20px 40px;}
.quote-page .hero{padding-bottom:20px;}
.quote-page .doc{overflow-wrap:anywhere;}
.quote-page .doc-band,.quote-page .line-row,.quote-page .doc-total{gap:16px;flex-wrap:wrap;}
.quote-page .doc-band-right{min-width:0;}
.quote-page .doc-meta-col{min-width:0;}
.quote-page .prop-field label{font-size:13px;letter-spacing:.02em;}
.quote-page .prop-field input,.quote-page .prop-field select{min-height:50px;}
.quote-page .prop-card-head .rm{min-height:44px;padding:10px 12px;}
.quote-page .add-prop-btn{min-height:50px;color:var(--ink);}
.quote-page .btn{min-height:54px;white-space:normal;}
.quote-page .line-price,.quote-page .doc-total-value{font-variant-numeric:tabular-nums;}
.quote-page .footer{color:var(--muted);}
.public-page button:focus-visible,.public-page a:focus-visible{outline:3px solid var(--fc-accent);outline-offset:3px;}
@media(max-width:480px){
  .booking-page .hero{padding:18px 16px;}
  body.booking-page .card{width:calc(100% - 24px);padding:18px 16px;margin-top:12px;}
  .booking-page .trust{gap:14px;margin-top:14px;}
  .booking-page .pay-method{padding:12px 10px;gap:8px;}
  .quote-page .page{padding:18px 12px 32px;}
  .quote-page .doc-actions{gap:10px;}
  .quote-page .props-block,.quote-page .doc-line,.quote-page .doc-meta-col{padding:18px 16px;}
  .quote-page .prop-card{padding:12px;}
}
@media(max-width:360px){.booking-page .pay-methods{flex-direction:column;}}

/* Public pages: no help-i chrome (use .field-hint only) */

/* Public form shell — symmetric card + field stack */
.public-page .card,
.booking-page .card,
.renew-page .card,
.quote-page .card{
  width:100%;max-width:var(--form-max,480px);margin-inline:auto;
  padding:var(--card-pad,16px);
  border-radius:var(--radius-lg,14px);
  box-sizing:border-box;
}
.public-page .field,
.booking-page .field,
.renew-page .field,
.quote-page .field{
  display:flex;flex-direction:column;gap:var(--space-2,8px);
  margin:0 0 var(--space-4,16px);
  min-width:0;
}
.public-page .field:last-child,
.booking-page .field:last-child{margin-bottom:0;}
.public-page .field label,
.booking-page .field label,
.renew-page .field label,
.quote-page .field label{
  font-size:12px;font-weight:700;color:var(--text-muted,var(--fc-text-3));
  text-transform:uppercase;letter-spacing:.04em;
}

/* The visual switch stays compact while its hit target meets the 44px touch
   minimum used everywhere else in the customer journey. */
.public-theme-toggle{
  position:relative;width:44px;height:44px;min-width:44px;min-height:44px;
  display:grid;place-items:center;border-radius:12px;cursor:pointer;
  outline:none;-webkit-tap-highlight-color:transparent;
}
.public-theme-toggle::before{
  content:"";position:absolute;width:28px;height:16px;border-radius:999px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.14);
}
.public-theme-toggle #themeDot{left:10px!important;top:16px!important;z-index:1;}
.public-theme-toggle:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.34);}
.public-theme-toggle:active{transform:scale(.96);}

/* Responsive QA (PR-F + foundation) */
@media (max-width: 480px) {
  .fc-btn-primary{min-height:52px;font-size:16px;border-radius:var(--radius-md,12px);}
  .field-hint{font-size:12px;}
  .public-page .card,
  .booking-page .card{padding:var(--space-4,16px) var(--space-3,12px);}
}
@media (max-width: 768px) {
  input,select,textarea{font-size:16px !important;min-height:var(--touch-min,44px);}
}
@supports (padding: env(safe-area-inset-bottom)) {
  body.public-page,
  body.booking-page,
  body.renew-page,
  body.quote-page{
    padding-bottom:max(var(--space-4,16px), env(safe-area-inset-bottom));
    padding-left:env(safe-area-inset-left,0px);
    padding-right:env(safe-area-inset-right,0px);
  }
}
