/*
 * GoLuxVanta — Quote pages (private-ride.php, quote.php)
 *
 * Standalone on purpose: it does NOT load styles.css. That file carries rules
 * for the home page (.header is position:fixed there — the same collision that
 * broke tip.php on 2026-05-07). Everything here is prefixed `qp-` and the
 * palette is the champagne brand palette from the ROADMAP BRAND-VISUAL block.
 */

:root {
    --qp-bg: #0d0d0d;
    --qp-surface: #141414;
    --qp-card: #1a1a1a;
    --qp-field: #101010;
    --qp-border: #2a2a2a;
    --qp-gold: #c9a84c;
    --qp-gold-light: #e8c96d;
    --qp-gold-dark: #a08735;
    --qp-text: #f0ece4;
    --qp-muted: #8a8278;
    --qp-danger: #e5736a;
    --qp-ok: #6fbf8b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.qp-body {
    margin: 0;
    background: var(--qp-bg);
    color: var(--qp-text);
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.qp-topbar {
    background: var(--qp-surface);
    border-bottom: 1px solid var(--qp-border);
}
.qp-topbar-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.qp-brand { display: flex; align-items: center; gap: 10px; color: var(--qp-text); text-decoration: none; }
.qp-brand img { height: 36px; width: auto; display: block; }
.qp-brand span { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; letter-spacing: 1px; }
.qp-topbar a.qp-home { color: var(--qp-muted); font-size: 14px; text-decoration: none; }
.qp-topbar a.qp-home:hover { color: var(--qp-gold); }
/* LANG-BTN (2026-11-27): English / Español switch, next to "Home". */
.qp-lang { margin-left: auto; display: flex; border: 1px solid var(--qp-gold); border-radius: 999px; overflow: hidden; flex: none; }
.qp-topbar .qp-lang a { font: 600 12px/1 'Montserrat', Arial, sans-serif; letter-spacing: .08em; color: var(--qp-gold);
                        text-decoration: none; padding: 0 12px; min-height: 32px; display: flex; align-items: center; }
.qp-topbar .qp-lang a[aria-current="true"] { background: var(--qp-gold); color: #0d0d0d; }

.qp-wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 72px; }

.qp-hero { text-align: center; margin-bottom: 28px; }
.qp-eyebrow {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--qp-gold); margin: 0 0 10px;
}
.qp-hero h1, .qp-h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600; font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 12px;
}
.qp-lead { color: var(--qp-muted); max-width: 620px; margin: 0 auto; }

.qp-owner-banner {
    background: rgba(201,168,76,.12); border: 1px solid var(--qp-gold);
    color: var(--qp-gold-light); border-radius: 8px; padding: 10px 14px;
    font-size: 14px; margin-bottom: 20px;
}

.qp-card {
    background: var(--qp-card);
    border: 1px solid var(--qp-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.qp-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px; font-weight: 600; margin: 0 0 4px; color: var(--qp-gold-light);
}
.qp-sub { color: var(--qp-muted); font-size: 14px; margin: 0 0 18px; }

.qp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) {
    .qp-grid.qp-2 { grid-template-columns: 1fr 1fr; }
    .qp-grid.qp-3 { grid-template-columns: 1fr 1fr 1fr; }
    .qp-grid.qp-4 { grid-template-columns: repeat(4, 1fr); }
}
.qp-span-all { grid-column: 1 / -1; }

.qp-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
/* The [hidden] attribute is how JS shows/hides "How many child seats?" — without
   this override, the flex rule above beats the browser's default [hidden] style
   and the field never actually disappears (GoLuxVanta bug report 2026-09-25). */
.qp-field[hidden] { display: none; }
.qp-field label, .qp-label {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--qp-muted);
}
.qp-field .qp-opt { text-transform: none; letter-spacing: 0; color: #6a645c; }

.qp-field input, .qp-field select, .qp-field textarea {
    width: 100%;
    background: var(--qp-field);
    color: var(--qp-text);
    border: 1px solid var(--qp-border);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px; /* 16px stops iOS from zooming the page on focus */
    min-height: 46px;
}
.qp-field textarea { min-height: 90px; resize: vertical; }
.qp-field input:focus, .qp-field select:focus, .qp-field textarea:focus {
    outline: none; border-color: var(--qp-gold); box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}
.qp-field input.qp-invalid, .qp-field select.qp-invalid { border-color: var(--qp-danger); }
.qp-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--qp-gold) 50%), linear-gradient(135deg, var(--qp-gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
/* keep native pickers readable on the dark theme */
.qp-field input[type="date"], .qp-field input[type="time"] { color-scheme: dark; }

.qp-hint { font-size: 13px; color: var(--qp-muted); margin: 2px 0 0; }
.qp-hint.qp-warn { color: var(--qp-gold-light); }

/* Optional gratuity picker on the quote payment step (quote.php). */
.qp-tip-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 6px; }
.qp-tip-btn {
    background: var(--qp-field); border: 1px solid var(--qp-border); border-radius: 8px;
    color: var(--qp-text); padding: 10px 4px; cursor: pointer; text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.qp-tip-btn:hover { border-color: var(--qp-gold-dark); }
.qp-tip-btn.active { background: rgba(201,168,76,.14); border-color: var(--qp-gold); color: var(--qp-gold-light); }
.qp-tip-btn:disabled { opacity: .6; cursor: wait; }
.qp-tip-pct { font-size: 14px; font-weight: 700; }
.qp-tip-amt { font-size: 11px; color: var(--qp-muted); }
.qp-tip-btn.active .qp-tip-amt { color: var(--qp-gold-light); }
@media (max-width: 480px) {
    .qp-tip-row { grid-template-columns: repeat(3, 1fr); }
}

/* Ride cards */
.qp-leg {
    background: var(--qp-surface);
    border: 1px solid var(--qp-border);
    border-left: 3px solid var(--qp-gold);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 14px;
}
.qp-leg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qp-leg-title {
    font-family: 'Montserrat', Arial, sans-serif; font-size: 12px; font-weight: 700;
    letter-spacing: 1.6px; text-transform: uppercase; color: var(--qp-gold);
}
.qp-leg-remove {
    background: none; border: 0; color: var(--qp-muted); font-size: 13px; cursor: pointer; padding: 6px 4px;
}
.qp-leg-remove:hover { color: var(--qp-danger); }
.qp-route { font-size: 13px; color: var(--qp-gold-light); min-height: 18px; margin: 10px 0 0; }

/* Buttons */
.qp-btn {
    display: inline-block; width: 100%;
    background: linear-gradient(135deg, var(--qp-gold-light), var(--qp-gold));
    color: #0d0d0d; border: 0; border-radius: 8px;
    font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .6px;
    padding: 16px 24px; cursor: pointer; text-align: center; text-decoration: none;
}
.qp-btn:hover { filter: brightness(1.06); }
.qp-btn:disabled { opacity: .6; cursor: wait; }
.qp-btn-outline {
    background: transparent; color: var(--qp-gold); border: 1px solid var(--qp-gold);
}
.qp-btn-ghost {
    background: transparent; border: 1px dashed var(--qp-gold-dark); color: var(--qp-gold);
    border-radius: 8px; padding: 13px 18px; width: 100%; cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif; font-size: 14px; font-weight: 600;
}
.qp-btn-ghost:hover { background: rgba(201,168,76,.08); }
.qp-btn-danger { background: transparent; color: var(--qp-danger); border: 1px solid var(--qp-danger); }
.qp-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qp-btn-row .qp-btn { flex: 1 1 220px; width: auto; }

.qp-error {
    display: none; background: rgba(229,115,106,.1); border: 1px solid var(--qp-danger);
    color: #f4b7b1; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px;
}
.qp-error.qp-show { display: block; }
.qp-fine { color: var(--qp-muted); font-size: 13px; text-align: center; margin: 14px 0 0; }

/* Honeypot: off-screen, not display:none (some bots skip display:none fields) */
.qp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Autocomplete dropdown */
.qp-ac {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px;
    background: #1c1c1c; border: 1px solid var(--qp-border); border-radius: 8px;
    max-height: 260px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.qp-ac-item { display: flex; gap: 10px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #262626; }
.qp-ac-item:last-child { border-bottom: 0; }
.qp-ac-item.qp-active, .qp-ac-item:hover { background: rgba(201,168,76,.15); }
.qp-ac-icon { color: var(--qp-gold); flex: 0 0 auto; }
.qp-ac-main { display: block; color: var(--qp-text); font-size: 15px; }
.qp-ac-sec  { display: block; color: var(--qp-muted); font-size: 12px; }

/* Success / status panels */
.qp-panel { text-align: center; padding: 36px 24px; }
.qp-check {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
    border: 2px solid var(--qp-gold); color: var(--qp-gold); font-size: 30px;
    display: flex; align-items: center; justify-content: center;
}
.qp-code {
    display: inline-block; margin: 8px 0 14px; padding: 8px 16px; border: 1px dashed var(--qp-gold);
    border-radius: 6px; color: var(--qp-gold-light); font-family: 'Montserrat', monospace; letter-spacing: 2px;
}

/* quote.php */
.qp-pill {
    display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; border: 1px solid var(--qp-gold); color: var(--qp-gold);
}
.qp-pill.qp-ok { border-color: var(--qp-ok); color: var(--qp-ok); }
.qp-pill.qp-bad { border-color: var(--qp-danger); color: var(--qp-danger); }

.qp-kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 15px; }
.qp-kv dt { color: var(--qp-muted); font-size: 13px; padding-top: 2px; }
.qp-kv dd { margin: 0; }
.qp-kv dd.qp-when { color: var(--qp-gold-light); font-weight: 700; }

.qp-lines { width: 100%; border-collapse: collapse; }
.qp-lines td { padding: 11px 0; border-bottom: 1px solid var(--qp-border); vertical-align: top; }
.qp-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 14px; }
.qp-lines tr.qp-total td { border-bottom: 0; padding-top: 18px; font-size: 20px; font-weight: 700; }
.qp-lines tr.qp-total td:last-child { color: var(--qp-gold-light); font-size: 28px; }

.qp-note {
    background: var(--qp-surface); border-left: 3px solid var(--qp-gold);
    padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 0 0 18px; white-space: pre-line;
}

/* Express Checkout payment step (quote.php, EXPRESS-CHECKOUT block) */
.qp-hidden { display: none !important; }
#qp-payment-wrap { margin: 0 0 18px; }
.pay-element-loading {
    color: var(--qp-muted); font-size: 14px; text-align: center; padding: 18px 0;
}
.qp-express-divider {
    display: flex; align-items: center; gap: 10px; margin: 14px 0;
    color: var(--qp-muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}
.qp-express-divider::before, .qp-express-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--qp-border);
}
.qp-pay-error {
    background: rgba(229,115,106,.1); border: 1px solid var(--qp-danger);
    color: #f4b7b1; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px;
}

@media (max-width: 480px) {
    .qp-wrap { padding: 22px 14px 60px; }
    .qp-card { padding: 18px 16px; }
    .qp-kv { grid-template-columns: 1fr; gap: 0; }
    .qp-kv dt { margin-top: 10px; }
}

/* SMS-10DLC (2026-11-26): optional SMS consent checkbox on private-ride.php.
   Overrides the generic .qp-field input/label rules (full-width box,
   uppercase label) for this one row only. */
.qp-field.qp-sms-consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.qp-field.qp-sms-consent input[type="checkbox"] {
    flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 3px 0 0;
    accent-color: var(--qp-gold); cursor: pointer;
}
.qp-field.qp-sms-consent label {
    font-family: 'Lato', Arial, sans-serif; font-size: 13px; line-height: 1.5;
    letter-spacing: 0; text-transform: none; color: var(--qp-muted); cursor: pointer;
}
.qp-field.qp-sms-consent label a { color: var(--qp-gold); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* SMS-10DLC (2026-11-26): page footer (legal name, address, legal pages). */
.qp-footer {
    border-top: 1px solid var(--qp-border); padding: 26px 16px 34px;
    text-align: center; color: var(--qp-muted); font-size: 13px; line-height: 1.6;
}
.qp-footer p { margin: 4px 0; }
.qp-footer a { color: var(--qp-gold); text-decoration: none; }
/* SMS-10DLC r2 (2026-11-26): required Terms + Privacy acceptance row. */
.qp-field.qp-terms-accept label { color: var(--qp-text); font-size: 14px; }
.qp-field.qp-terms-accept .qp-req { color: var(--qp-gold); }
/* 2026-11-26 r5: Terms error like the booking modal — red message right under
   the box, box framed in red, page scrolls to it (js/private-ride.js). */
.qp-terms-err { display: none; color: #ff4d4d; font-weight: 600; font-size: 14px; background: rgba(255,77,77,.1); border: 1px solid #ff4d4d; border-radius: 8px; padding: 12px 14px; margin: 4px 0 6px; }
.qp-terms-err.qp-show { display: block; }
.qp-field.qp-terms-accept.qp-bad { outline: 1px solid #ff4d4d; outline-offset: 6px; border-radius: 6px; }
.qp-field.qp-terms-accept.qp-bad input[type="checkbox"] { outline: 2px solid #ff4d4d; outline-offset: 1px; }
