/* ============================================================
   UNO DETAILING — PUBLIC SCHEDULE PAGE STYLESHEET
   Used by: /public/schedule.php
   Embedded via WordPress iframe at unodetailing.com/schedule
   ============================================================ */

:root {
    --blue: #446084; --blue-light: #eef2ff; --dark: #446084; --green: #7a9c59;
    --green-light: #e8f5e9; --orange: #d26e4b; --orange-light: #fef3e2;
    --red: #d94452; --text: #555555; --text-muted: #8c8c8c; --border: #e0ddd8;
    --border-light: #f0ede8; --bg: #f5f4f1; --white: #ffffff;
}
#unoScheduleWrap *, #unoScheduleWrap *::before, #unoScheduleWrap *::after { box-sizing: border-box; }
#unoScheduleWrap { font-family: 'Inter', sans-serif; }


/* ===== Progress Bar ===== */
.progress-bar { max-width: 900px; margin: 50px auto 0; display: flex; align-items: center; padding: 16px 24px; background: var(--white); border: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.pb-step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #b0b7c3; flex-shrink: 0; }
.pb-step.active { color: var(--dark); }
.pb-step.done { color: var(--green); cursor: pointer; }
.pb-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #e8eaed; color: #b0b7c3; }
.pb-step.active .pb-num { background: var(--dark); color: white; }
.pb-step.done .pb-num { background: var(--green); color: white; }
.pb-line { flex: 1; height: 2px; background: #e8eaed; margin: 0 8px; }
.pb-line.done { background: var(--green); }

/* ===== Content ===== */
.content { max-width: 900px; margin: 0 auto 50px; background: var(--white); border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; padding: 28px 24px 36px; }
.step { display: none; opacity: 0; }
.step.active { display: block; animation: stepFadeIn 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.step.leaving { display: block; animation: stepFadeOut 0.18s ease-in forwards; pointer-events: none; }
@keyframes stepFadeIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes stepFadeOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-6px); }
}
.step-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.step-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.step-sub strong { color: var(--text); }

/* ===== Loading ===== */
.loading { text-align: center; padding: 40px; color: var(--text-muted); font-size: 13px; }
.loading::before { content: ''; display: block; width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .6s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Vehicle Banner ===== */
.vehicle-banner { background: var(--dark); border-radius: 10px; padding: 0px 18px; display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.vb-icon { width: 72px; height: 72px; object-fit: contain; filter: brightness(0) invert(1); }
.vb-icon-emoji { font-size: 22px; opacity: 0.7; }
.vb-info { display: flex; flex-direction: column; justify-content: center; gap: 4px; line-height: 1.2; }
.vb-info h3 { color: white; font-size: 14px; font-weight: 700; margin: 0; padding: 0; line-height: 1.2; }
.vb-info span { color: white; font-size: 12px; line-height: 1.2; }
.vb-change { margin-left: auto; color: rgba(255,255,255,0.4); font-size: 13px; text-decoration: none; cursor: pointer; background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 6px; transition: all 0.15s; }
.vb-change:hover { color: white; background: rgba(255,255,255,0.2); }

/* ===== STEP 1: VEHICLE ===== */
.v-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.v-select { width: 100%; height: auto !important; padding: 12px 16px !important; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); outline: none; margin-bottom: 16px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238c8c8c' fill='none' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; box-shadow: none !important; }
.v-select:focus { border-color: var(--blue); }
.v-select:disabled { background: var(--bg); color: var(--text-muted); cursor: default; }
.v-result { display: none; background: var(--green-light); border: 1.5px solid var(--green); border-radius: 10px; padding: 0px 18px; margin-bottom: 16px; }
.v-result.show { display: flex; align-items: center; gap: 15px; justify-content: center; }
.v-result-icon { width: 72px; height: 72px; object-fit: contain; }
.v-result-info { text-align: center; }
.v-result-info h4 { font-size: 14px; font-weight: 700; color: var(--text); }
.v-result-info span { font-size: 12px; color: var(--green); font-weight: 600; }

/* EV warning banner — shown when selected vehicle is marked as Electric in
   vehicle_database. Sits between the vehicle result chip and the Continue
   button. Hidden by default; toggled via .show by JS in showVehicleResult(). */
.v-ev-warning {
    display: none;
    background: #fff8e1;
    border: 1.5px solid #f4c430;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 16px;
    gap: 12px;
    align-items: flex-start;
}
.v-ev-warning.show { display: flex; }
.v-ev-warning-icon {
    font-size: 22px;
    line-height: 1;
    color: #b88a00;
    flex-shrink: 0;
    margin-top: 1px;
}
.v-ev-warning-body { flex: 1; min-width: 0; }
.v-ev-warning-title {
    font-size: 14px;
    font-weight: 700;
    color: #6b4d00;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}
.v-ev-warning-text {
    font-size: 14px;
    color: #4d3a00;
    line-height: 1.5;
    font-weight: 500;
}
.v-manual { text-align: center; margin-top: 8px; }
.v-manual a { font-size: 12px; color: var(--blue); cursor: pointer; text-decoration: none; }
.v-manual a:hover { text-decoration: underline; }
.v-manual-fields { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.v-manual-fields.show { display: block; }
.manual-match { padding: 10px 14px; border: 1.5px solid var(--green); border-radius: 10px; background: #f0fdf4; cursor: pointer; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.manual-match:hover { background: #e0f5ea; }
.manual-match-icon { width: 40px; height: 40px; filter: brightness(0) saturate(100%) invert(29%) sepia(17%) saturate(1095%) hue-rotate(100deg) brightness(92%) contrast(88%); }
.manual-match-info { flex: 1; }
.manual-match-info h4 { font-size: 13px; font-weight: 700; margin: 0; }
.manual-match-info span { font-size: 13px; color: var(--green); }
.v-manual-row { display: flex; gap: 10px; margin-bottom: 10px; }
.v-manual-row .form-group { flex: 1; }

/* ===== Category Tabs ===== */
.cat-tabs { display: flex; gap: 4px; margin-bottom: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-tab { padding: 7px 14px; border-radius: 50px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--border); background: var(--white); color: var(--text-muted); cursor: pointer; white-space: nowrap; font-family: 'Inter', sans-serif; }
.cat-tab:hover { border-color: var(--blue); color: var(--blue); }
.cat-tab.active { background: var(--dark); border-color: var(--dark); color: white; }

/* ===== Compact Cards ===== */
.compact-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 10px; position: relative; transition: all 0.15s; }
.compact-card:hover { border-color: var(--blue); box-shadow: 0 3px 10px rgba(61,107,158,0.07); }
.compact-top { display: flex; align-items: stretch; }
.compact-photo { width: 225px; flex-shrink: 0; object-fit: cover; display: block; }
.compact-info { flex: 1; min-width: 0; padding: 12px 14px; }
.compact-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.compact-desc { font-size: 13px; color: #777; line-height: 1.5; margin-top: 4px; }
.compact-right { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 16px; width: 190px; flex-shrink: 0; border-left: 1px solid var(--border-light); }
.compact-price { font-size: 20px; font-weight: 800; }
.compact-price-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.compact-btn { padding: 7px 16px; border-radius: 6px; background: var(--dark); color: white; font-size: 12px; font-weight: 700; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.compact-details-btn { padding: 6px 16px; border-radius: 6px; background: none; color: var(--blue); font-size: 13px; font-weight: 600; border: 1.5px solid var(--blue); cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s; }
.compact-details-btn:hover { background: var(--blue); color: #fff; }
.compact-btn:hover { background: var(--blue); }
.compact-popular, .compact-best { display: inline-block; color: white; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; vertical-align: middle; margin-left: 6px; position: relative; top: -1px; }
.compact-popular { background: var(--orange); }
.compact-best { background: var(--green); }
.compact-bottom-bar { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-light); padding: 0 14px 0 0; }
.compact-toggle { display: flex; align-items: center; gap: 5px; padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--blue); cursor: pointer; }
.compact-toggle:hover { background: var(--blue-light); }
.compact-condition-note { font-size: 13px; color: var(--text-muted); font-style: italic; }
.compact-toggle .ar { font-size: 12px; transition: transform 0.2s; }
.compact-card.expanded .compact-toggle .ar { transform: rotate(180deg); }
.compact-expand { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.compact-card.expanded .compact-expand { max-height: 600px; }
.compact-expand-inner { padding: 12px 14px 12px 140px; }
.compact-expand-inner ul { list-style: none; columns: 2; gap: 4px; }
.compact-expand-inner li { font-size: 12px; padding: 2px 0; display: flex; align-items: center; gap: 5px; break-inside: avoid; }
.compact-expand-inner .ck { color: var(--green); font-size: 13px; flex-shrink: 0; }
.quote-badge { background: var(--dark); color: white; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.dur-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--blue); font-weight: 600; background: var(--bg); padding: 3px 10px; border-radius: 50px; margin-bottom: 4px; }
.dur-pill svg { width: 14px; height: 14px; }

/* ===== Detail Modal ===== */
.detail-overlay { display: none; }
.detail-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px 24px; }
.detail-back-link { font-size: 13px; color: #888; font-weight: 500; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 4px; background: none; border: none; font-family: 'Inter', sans-serif; padding: 10px 0; }
.detail-back-link:hover { color: #446084; }
.detail-panel { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--border-light); }
.detail-hero { position: relative; }
.detail-hero img { width: 100%; height: 260px; object-fit: cover; display: block; }
.detail-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding: 40px 28px 20px; color: white; }
.detail-hero-name { font-size: 22px; font-weight: 600; }
.detail-hero-cat { font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.detail-body { padding: 0 28px 28px; }
.detail-price-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border-light); margin-bottom: 18px; }
.detail-price { font-size: 26px; font-weight: 600; }
.detail-price-sub { font-size: 13px; color: var(--text-muted); }
.detail-vehicle { font-size: 14px; color: var(--text-muted); }
.detail-vehicle strong { color: var(--text); font-weight: 600; }
.detail-desc { font-size: 13px; color: #777; line-height: 1.7; margin-bottom: 18px; }
.detail-desc p { margin: 0 0 10px; }
.detail-desc ul, .detail-desc ol { padding-left: 20px; margin: 0 0 10px; }
.detail-desc li { margin-bottom: 4px; }
.detail-desc strong { color: #444; font-weight: 600; }
.detail-desc h1, .detail-desc h2, .detail-desc h3 { color: var(--text); margin: 14px 0 6px; }
.detail-desc h1 { font-size: 18px; font-weight: 600; }
.detail-desc h2 { font-size: 16px; font-weight: 600; }
.detail-desc h3 { font-size: 14px; font-weight: 600; }
.acc-item { border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.acc-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; background: #fafaf8; transition: background 0.2s; border: none; width: 100%; text-align: left; font-family: 'Inter', sans-serif; }
.acc-header:hover { background: #f0f4f8; }
.acc-header.active { color: var(--blue); background: #edf2f7; }
.acc-arrow { width: 18px; height: 18px; transition: transform 0.25s ease; flex-shrink: 0; }
.acc-header.active .acc-arrow { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-body.open { max-height: 800px; }
.acc-body-inner { padding: 12px 14px 14px; font-size: 13px; color: #555; line-height: 1.5; }
.acc-body-inner p { margin: 0 0 6px; padding: 0; }
.acc-body-inner ul, .acc-body-inner ol { padding: 0 0 0 20px; margin: 2px 0 6px; list-style-position: outside; }
.acc-body-inner li { margin: 0 0 2px; padding: 0; line-height: 1.5; }
.acc-body-inner li + li { margin-top: 2px; }
.acc-body-inner strong { color: #444; }
.detail-included { list-style: none; columns: 2; gap: 6px; }
.detail-included li { font-size: 12px; padding: 3px 0; display: flex; align-items: center; gap: 6px; break-inside: avoid; }
.detail-included .ck { color: var(--green); font-size: 13px; flex-shrink: 0; font-weight: 700; }
.detail-not-included { list-style: none; columns: 2; gap: 6px; }
.detail-not-included li { font-size: 12px; padding: 3px 0; display: flex; align-items: center; gap: 6px; break-inside: avoid; color: #555; }
.detail-not-included .ck { color: var(--red); font-size: 13px; flex-shrink: 0; font-weight: 700; }
.ck.ck-x { color: var(--red); }
.acc-count { color: var(--text-muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.compact-expand-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green); margin: 10px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border-light); }
.compact-expand-title:first-child { margin-top: 0; }
.compact-expand-title.compact-expand-title-not { color: var(--red); }
.compact-expand-inner .not-included-list li { color: #555; }
.compact-expand-inner .not-included-list .ck { color: var(--red); }
.faq-item { border-bottom: 1px solid var(--border-light); padding: 11px 0; }
.faq-q { font-size: 13px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { font-size: 12px; color: #555; line-height: 1.6; margin-top: 8px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-q .faq-ar { font-size: 14px; transition: transform 0.2s; color: var(--text-muted); }
.faq-item.open .faq-q .faq-ar { transform: rotate(180deg); }
.prep-list { list-style: none; }
.prep-list li { font-size: 12px; line-height: 1.6; padding: 9px 0; border-bottom: 1px solid var(--border-light); display: flex; gap: 10px; }
.prep-num { background: var(--blue-light); color: var(--blue); width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.detail-continue { display: block; width: 100%; padding: 14px; margin-top: 18px; background: var(--green); color: white; font-size: 14px; font-weight: 600; border: none; border-radius: 10px; cursor: pointer; text-align: center; font-family: 'Inter', sans-serif; }
.detail-continue:hover { background: #6b8c4d; }

/* ===== ADD-ONS ===== */
.addons-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-light); }
.addon-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; transition: all 0.15s; cursor: pointer; }
.addon-card:hover { border-color: var(--blue); }
.addon-card.selected { border-color: var(--green); background: #f8fdf9; }
.addon-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; color: transparent; transition: all 0.15s; }
.addon-card.selected .addon-check { background: var(--green); border-color: var(--green); color: white; }
.addon-info { flex: 1; }
.addon-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.addon-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.addon-price { font-size: 15px; font-weight: 800; flex-shrink: 0; width: 70px; text-align: right; }
.addon-qty { display: none; align-items: center; gap: 6px; flex-shrink: 0; justify-content: center; }
.addon-card.selected .addon-qty.has-qty { display: flex; }
.qty-btn, .qty-val { width: 26px; height: 26px; box-sizing: border-box; padding: 0; margin: 0; font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif; line-height: 1; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.qty-btn { border-radius: 6px; border: 1px solid var(--border); background: var(--white); cursor: pointer; }
.qty-btn:hover { background: var(--bg); }
.qty-val { border: 1px solid transparent; background: transparent; color: var(--text); }
.upsell-card { border: 1.5px solid var(--orange); border-radius: 12px; overflow: hidden; margin-bottom: 10px; cursor: pointer; background: #fffbf5; transition: all 0.15s; position: relative; }
.upsell-card:hover { box-shadow: 0 3px 10px rgba(217,122,53,0.1); }
.upsell-card.selected { border-color: var(--green); background: #f8fdf9; }
.upsell-top { display: flex; align-items: stretch; }
.upsell-photo { width: 225px; flex-shrink: 0; object-fit: cover; display: block; }
.upsell-info { flex: 1; min-width: 0; padding: 12px 14px; }
.upsell-right { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 16px; width: 190px; flex-shrink: 0; border-left: 1px solid var(--border-light); }
.upsell-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; color: transparent; margin-bottom: 6px; }
.upsell-card.selected .upsell-check { background: var(--green); border-color: var(--green); color: white; }
.upsell-badge { font-size: 9px; font-weight: 700; background: var(--orange); color: white; padding: 2px 8px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; display: inline-block; }
.upsell-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.upsell-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.upsell-price { font-size: 20px; font-weight: 800; }
.upsell-price-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.upsell-toggle { display: flex; align-items: center; gap: 5px; padding: 8px 14px; border-top: 1px solid var(--border-light); font-size: 12px; font-weight: 600; color: var(--blue); cursor: pointer; }
.upsell-toggle:hover { background: var(--blue-light); }
.upsell-toggle .ar { font-size: 12px; transition: transform 0.2s; }
.upsell-card.expanded .upsell-toggle .ar { transform: rotate(180deg); }
.upsell-expand { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.upsell-card.expanded .upsell-expand { max-height: 600px; }
.upsell-expand-inner { padding: 12px 14px 12px 245px; }
.upsell-expand-inner ul { list-style: none; columns: 2; gap: 4px; }
.upsell-expand-inner li { font-size: 12px; padding: 2px 0; display: flex; align-items: center; gap: 5px; break-inside: avoid; }
.upsell-expand-inner .ck { color: var(--green); font-size: 12px; flex-shrink: 0; }
/* FIX: Upsell pills — inline discount breakdown in card right panel */
.upsell-pills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; max-width: 180px; }
.upsell-pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.upsell-pill-blue { background: #eaf2fa; color: var(--blue); }
.upsell-pill-orange { background: #fff3e0; color: var(--orange); }

/* FIX: UPSELL_HIDE_ANIM — collapse + fade for mutually-excluded upsells (both
   directions). .uc-anim carries the transition so hide AND show animate the same
   way. max-height is driven by inline JS (offsetHeight saved on hide, restored on
   show). .uc-hidden drops the element after the hide animation finishes so layout
   collapses cleanly. */
.upsell-card.uc-anim {
    overflow: hidden !important;
    transition: max-height 320ms ease, opacity 240ms ease, margin 320ms ease, padding 320ms ease !important;
}
.upsell-card.uc-hiding {
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none !important;
}
.upsell-card.uc-hidden { display: none !important; }

/* ===== CALENDAR ===== */
.cal-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.cal-header { background: var(--dark); color: white; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.cal-header span { font-size: 15px; font-weight: 700; }
.cal-nav { background: rgba(255,255,255,0.15); border: none; color: white; font-size: 16px; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cal-nav:hover { background: rgba(255,255,255,0.25); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; padding: 8px; gap: 4px; transition: opacity 0.15s ease; }
.cal-dh { padding: 8px 0; font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.cal-d { padding: 10px 0; font-size: 13px; cursor: pointer; border-radius: 8px; transition: all 0.1s; font-weight: 500; }
.cal-d:hover:not(.disabled):not(.closed):not(.full) { background: var(--blue-light); color: var(--blue); }
.cal-d.selected { background: var(--green); color: white; font-weight: 700; }
.cal-d.disabled { color: #ddd; pointer-events: none; }
.cal-d.closed { color: #ddd; pointer-events: none; }
.cal-d.full { color: #d94452; pointer-events: none; position: relative; }
.cal-d.full::before { content: ''; position: absolute; width: 28px; height: 1.5px; background: #d94452; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cal-d.today { background: var(--blue); color: white; font-weight: 700; }
.cal-d.today.full { color: white; }
.cal-d.today.full::before { background: #d94452; }
.cal-today-bar { display: flex; justify-content: center; padding: 8px 16px 0; background: white; }
.cal-today-btn { background: white; border: 1.5px solid var(--border); color: var(--blue); padding: 5px 14px; border-radius: 50px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all 0.12s; }
.cal-today-btn:hover { background: var(--blue-light); border-color: var(--blue); }
.cal-legend { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border-light); font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.cal-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.cal-legend-status { padding: 0 16px 12px; font-size: 12px; color: var(--text-muted); display: none; }
.cal-legend-status.show { display: block; }
.cal-legend-status strong { color: var(--green); font-weight: 700; }

/* Package blocked day (deep-link): greyed out, not clickable. Distinct soft tint from "closed". */
.cal-d.pkg-blocked { color: #c9a23a; pointer-events: none; background: #fff8e1; }
/* Deep-link unavailable message shown under the calendar legend */
.cal-blocked-msg {
    display: none;
    margin: 0 16px 14px;
    padding: 10px 14px;
    background: #fff8e1;
    border: 1.5px solid #f4c430;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b5a16;
    font-weight: 600;
}
.time-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-slot { padding: 11px; text-align: center; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.time-slot:hover { border-color: var(--blue); color: var(--blue); }
.time-slot.selected { background: var(--green); border-color: var(--green); color: white; }
.time-slot.disabled { opacity: 0.3; pointer-events: none; text-decoration: line-through; }

/* ===== FORM ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; color: var(--text); outline: none; }
.form-input:focus { border-color: var(--blue); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== CONFIRM ===== */
.confirm-card { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.confirm-header { background: var(--dark); color: white; padding: 14px 20px; }
.confirm-header h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.confirm-header p { font-size: 12px; opacity: 0.6; }
.confirm-body { padding: 14px 20px; }
.confirm-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.confirm-row:last-child { border-bottom: none; }
.confirm-label { color: var(--text-muted); }
.confirm-value { font-weight: 600; text-align: right; }
.confirm-total { font-size: 18px; font-weight: 800; color: var(--green); }
.confirm-prices { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.confirm-prices .cp-orig { text-decoration: line-through; color: #d94452; font-size: 12px; width: 75px; text-align: right; }
.confirm-prices .cp-new { font-weight: 600; color: #446084; width: 75px; text-align: right; }
.confirm-note { background: var(--green-light); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: #5a8a3f; line-height: 1.5; margin-bottom: 14px; }

/* ===== Quote Summary breakdown (FIX: per-rule transparency) ===== */
.qs-item-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0 5px; font-size: 13px; gap: 12px; }
.qs-item-label { color: var(--text); font-weight: 700; }
.qs-item-base { color: var(--text); font-weight: 600; white-space: nowrap; }
.qs-item-prices { display: inline-flex; align-items: center; gap: 8px; }
.qs-rule-row { display: flex; justify-content: space-between; align-items: center; padding: 2px 0 2px 14px; font-size: 12.5px; gap: 12px; }
.qs-rule-label { color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qs-rule-tag { font-size: 12px; font-weight: 700; color: var(--blue); background: #eaf2fa; padding: 2px 9px; border-radius: 999px; letter-spacing: 0.3px; white-space: nowrap; }
.qs-rule-tag.upsell { color: var(--orange); background: #fff3e0; }
.qs-rule-amt.discount { color: var(--green); font-weight: 600; white-space: nowrap; }
.qs-rule-amt.surcharge { color: var(--red); font-weight: 600; white-space: nowrap; }
.qs-subtotal-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border-light); color: var(--text); gap: 12px; }
.qs-subtotal-label { color: var(--text-muted); font-weight: 500; }
.qs-subtotal-val { font-weight: 700; }
.qs-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 2px solid var(--border-light); margin-top: 6px; }
.qs-total-label { font-size: 14px; font-weight: 700; color: var(--text); }

/* ===== SUCCESS ===== */
.success-icon { font-size: 56px; text-align: center; margin-bottom: 10px; }
.success-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.success-sub { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.6; margin-bottom: 24px; }
.success-number { background: var(--bg); border-radius: 10px; padding: 16px 20px; text-align: center; margin-bottom: 20px; }
.success-number-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.success-number-val { font-size: 20px; font-weight: 800; color: var(--blue); }

/* ===== Buttons ===== */
.btn-row { display: flex; gap: 10px; margin-top: 24px; }
.btn-row button { margin: 0 !important; min-height: 0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; line-height: 1.2 !important; }
#btnStep1 { margin: 0 !important; min-height: 0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; line-height: 1.2 !important; }
.btn-back { padding: 12px 20px; border-radius: 10px; background: var(--white); color: var(--text-muted); font-size: 13px; font-weight: 600; border: 1.5px solid var(--border); cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-back:hover { border-color: var(--text-muted); color: var(--text); }
.btn-continue { flex: 1; padding: 14px; border-radius: 10px; background: var(--green); color: white; font-size: 14px; font-weight: 700; border: none; cursor: pointer; text-align: center; font-family: 'Inter', sans-serif; }
.btn-continue:hover { background: #6b8c4d; }
.btn-continue:disabled { background: #ccc; cursor: default; }
.btn-submit { flex: 1; padding: 14px; border-radius: 10px; background: var(--blue); color: white; font-size: 14px; font-weight: 700; border: none; cursor: pointer; text-align: center; font-family: 'Inter', sans-serif; }
.btn-submit:hover { background: #3a5270; }
.btn-submit:disabled { background: #ccc; cursor: default; }
.cancel-link { text-align: center; margin: 14px 0 0; font-size: 13px; color: #d94452; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.btn-home { display: block; width: 100%; max-width: 340px; margin: 0 auto; padding: 13px; border-radius: 10px; background: var(--dark); color: white; font-size: 14px; font-weight: 700; text-align: center; font-family: 'Inter', sans-serif; text-decoration: none; }
.btn-home:hover { background: #2a3a4f; color: white; }
.btn-secondary { display: block; width: 100%; max-width: 340px; margin: 10px auto 0; padding: 12px; border-radius: 10px; background: var(--white); color: var(--text-muted); font-size: 13px; font-weight: 600; border: 1.5px solid var(--border); text-align: center; font-family: 'Inter', sans-serif; text-decoration: none; }
.btn-secondary:hover { color: var(--text); border-color: var(--text-muted); }
.skip-link { text-align: center; margin-top: 10px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.skip-link:hover { color: var(--blue); text-decoration: underline; }

/* ===== Toast ===== */
.toast { position: fixed; top: -60px; left: 50%; transform: translateX(-50%); background: var(--red); color: white; padding: 12px 24px; border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 200; transition: top 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.toast.show { top: 20px; }

.no-packages { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.no-packages-icon { font-size: 40px; margin-bottom: 10px; }

/* ===== Mobile ===== */
@media (max-width: 600px) {
    .progress-bar { margin: 15px 15px 0; padding: 12px 14px; border-radius: 10px 10px 0 0; }
    .pb-step span { display: none; }
    .content { margin: 0 15px 15px; border-radius: 0 0 10px 10px; padding: 20px 16px 28px; }
    .step-title { font-size: 18px; }
    .time-slots { grid-template-columns: repeat(3, 1fr); }
    .form-row { flex-direction: column; gap: 0; }
    .v-manual-row { flex-direction: column; gap: 0; }

    /* EV warning — mobile sizing */
    .v-ev-warning { padding: 13px 14px; gap: 10px; }
    .v-ev-warning-icon { font-size: 20px; }
    .v-ev-warning-title { font-size: 15px; }
    .v-ev-warning-text { font-size: 14px; }

    /* Package cards — vertical stack */
    .compact-top { flex-direction: column; }
    .compact-photo { width: 100%; height: 160px; }
    .compact-info { padding: 12px 14px 8px; }
    .compact-right { width: 100%; border-left: none; border-top: 1px solid var(--border-light); flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; padding: 10px 14px; gap: 8px; text-align: center; }
    .compact-price { font-size: 17px; }
    .compact-price-sub { font-size: 13px; }
    .compact-desc { font-size: 13px; }
    .dur-pill { font-size: 13px; }
    .compact-btn { width: 100%; text-align: center; padding: 10px; font-size: 13px; }
    .compact-details-btn { width: 100%; text-align: center; padding: 8px; font-size: 12px; }
    .compact-toggle { justify-content: center; }
    .compact-bottom-bar { flex-direction: column; padding: 0; }
    .compact-condition-note { padding: 0 14px 8px; text-align: center; font-size: 12px; }
    .compact-expand-inner { padding: 12px 14px; }
    .compact-expand-inner ul { columns: 1; }

    /* Upsell cards — vertical stack */
    .upsell-top { flex-direction: column; }
    .upsell-photo { width: 100%; height: 160px; }
    .upsell-info { padding: 12px 14px 8px; }
    .upsell-right { width: 100%; border-left: none; border-top: 1px solid var(--border-light); flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-start; align-items: center; padding: 10px 14px; gap: 8px; }
    .upsell-check { margin-bottom: 0; order: -1; }
    .upsell-price { font-size: 18px; }
    .upsell-price-sub { margin-bottom: 0; }
    .upsell-toggle { justify-content: center; }
    .upsell-expand-inner { padding: 12px 14px; }
    .upsell-expand-inner ul { columns: 1; }

    /* Add-on cards — truncate long descriptions */
    .addon-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

    /* Detail modal */
    .detail-panel { border-radius: 12px; }
    .detail-hero img { height: 180px; }
    .detail-body { padding: 0 18px 20px; }
    .detail-hero img { height: 150px; border-radius: 12px 12px 0 0; }
    .detail-included { columns: 1; }
    .detail-not-included { columns: 1; }
    .detail-footer { padding: 14px 18px 20px; gap: 12px; }
    .detail-continue { flex: 1; padding: 14px !important; }

    /* Category filter tabs */
    .cat-tabs { display: none; }
    .cat-mobile { display: block !important; }
    .cat-tab { white-space: nowrap; flex-shrink: 0; }
}


/* ============================================================
   SECTION: PRE-SCREENING MODAL (Basic Interior qualification)
   ============================================================ */

#preScreenOverlay {
    position: fixed; inset: 0;
    background: rgba(39, 54, 71, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center; justify-content: center;
    padding: 20px; z-index: 2147483647;
    opacity: 0; transition: opacity 0.2s;
}
body.qm-locked { overflow: hidden !important; }
#preScreenOverlay.active { display: flex; opacity: 1; }
#preScreenModal {
    background: white;
    border-radius: 18px;
    max-width: 540px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 70px rgba(39, 54, 71, 0.35);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
#preScreenOverlay.active #preScreenModal { transform: scale(1) translateY(0); }
#preScreenModal .qm-header {
    background: #273647; color: white;
    padding: 28px 32px 22px;
    border-radius: 18px 18px 0 0;
    position: relative;
}
#preScreenModal .qm-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.15); color: white;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: background 0.2s;
}
#preScreenModal .qm-close:hover { background: rgba(255,255,255,0.25); }
#preScreenModal .qm-header-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #d26e4b; color: white;
    padding: 5px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 800;
    letter-spacing: 1.2px; text-transform: uppercase;
    margin-bottom: 14px;
}
#preScreenModal .qm-header h2 {
    font-size: 22px; font-weight: 800;
    margin: 0 0 8px; color: white;
    line-height: 1.25; letter-spacing: -0.3px;
}
#preScreenModal .qm-header-sub {
    font-size: 14px; color: rgba(255,255,255,0.85);
    margin: 0; line-height: 1.5;
}
#preScreenModal .qm-body { padding: 26px 32px 20px; }
#preScreenModal .qm-question { margin-bottom: 22px; }
#preScreenModal .qm-question:last-child { margin-bottom: 0; }
#preScreenModal .qm-q-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 15px; font-weight: 700;
    color: #446084; margin: 0 0 12px;
    line-height: 1.4;
}
#preScreenModal .qm-q-num {
    background: #446084; color: white;
    width: 24px; height: 24px; min-width: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; margin-top: 1px;
}
#preScreenModal .qm-q-text { flex: 1; }
#preScreenModal .qm-options {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding-left: 34px;
}
#preScreenModal .qm-opt {
    padding: 9px 14px; background: white;
    border: 2px solid #e0ddd8; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: #555555;
    cursor: pointer; transition: all 0.15s;
    font-family: inherit; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    line-height: 1.2;
}
#preScreenModal .qm-opt:hover { border-color: #446084; color: #446084; }
#preScreenModal .qm-opt.selected {
    border-color: #446084; background: #446084; color: white;
}
#preScreenModal .qm-opt.selected i { color: white; }
#preScreenModal .qm-opt i { color: #8c8c8c; font-size: 13px; }
#preScreenModal .qm-opt:hover i { color: #446084; }
#preScreenModal .qm-footer { padding: 0 32px 28px; }
#preScreenModal .qm-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 20px;
    background: #d26e4b; color: white; border: none;
    border-radius: 10px;
    font-size: 14px; font-weight: 800;
    letter-spacing: 0.5px; text-transform: uppercase;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit; opacity: 0.5; pointer-events: none;
    box-shadow: 0 8px 20px rgba(210,110,75,0.25);
}
#preScreenModal .qm-cta.enabled { opacity: 1; pointer-events: auto; }
#preScreenModal .qm-cta.enabled:hover {
    background: #b85a3c; transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(210,110,75,0.4);
}
#preScreenModal .qm-result { display: none; padding: 30px 32px 28px; text-align: center; }
#preScreenModal .qm-result.active { display: block; }
#preScreenModal .qm-result-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #fff3e0; color: #d26e4b;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; font-size: 28px;
}
#preScreenModal .qm-result h3 {
    color: #446084; font-size: 20px; font-weight: 800;
    margin: 0 0 12px; line-height: 1.3;
}
#preScreenModal .qm-result-msg {
    color: #555555; font-size: 14px; line-height: 1.6;
    margin: 0 0 8px;
}
#preScreenModal .qm-result-reasons {
    background: #fff8f0; border: 1px solid #f5d9c7;
    border-radius: 12px; padding: 16px 18px;
    margin: 18px 0; text-align: left;
}
#preScreenModal .qm-reasons-label {
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.8px; text-transform: uppercase;
    color: #d26e4b; margin-bottom: 10px;
}
#preScreenModal .qm-reasons-list { list-style: none; padding: 0; margin: 0; }
#preScreenModal .qm-reasons-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: #555555;
    line-height: 1.5; padding: 5px 0;
}
#preScreenModal .qm-reasons-list li i {
    color: #d26e4b; font-size: 13px;
    margin-top: 3px; flex-shrink: 0;
}
#preScreenModal .qm-reasons-list li strong { color: #446084; font-weight: 700; }
#preScreenModal .qm-result-recommend {
    background: #f5f5f5; border: 1px solid #e0ddd8;
    border-radius: 12px; padding: 16px 18px;
    margin: 20px 0; text-align: left;
    display: flex; align-items: center; gap: 14px;
}
#preScreenModal .qm-result-recommend-img {
    width: 60px; height: 60px; border-radius: 8px;
    background: linear-gradient(135deg, #446084, #273647);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 22px; flex-shrink: 0;
}
#preScreenModal .qm-result-recommend-text { flex: 1; }
#preScreenModal .qm-result-recommend-cat {
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    color: #d26e4b; margin-bottom: 4px;
}
#preScreenModal .qm-result-recommend-name {
    font-size: 16px; font-weight: 800;
    color: #446084; margin: 0 0 4px;
}
#preScreenModal .qm-result-recommend-desc {
    font-size: 12px; color: #8c8c8c;
    margin: 0; line-height: 1.4;
}
#preScreenModal .qm-result-actions { display: flex; flex-direction: column; gap: 10px; }
#preScreenModal .qm-btn-primary {
    padding: 15px 20px; background: #d26e4b; color: white;
    border: none; border-radius: 12px;
    font-size: 14px; font-weight: 800;
    letter-spacing: 0.5px; text-transform: uppercase;
    cursor: pointer; font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(210,110,75,0.3);
}
#preScreenModal .qm-btn-primary:hover {
    background: #b85a3c; transform: translateY(-2px);
}
#preScreenModal .qm-btn-secondary {
    padding: 14px 20px; background: white; color: #555555;
    border: 2px solid #e0ddd8; border-radius: 12px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all 0.15s;
}
#preScreenModal .qm-btn-secondary:hover {
    border-color: #446084; color: #446084;
}
@media (max-width: 600px) {
    #preScreenModal { border-radius: 14px; }
    #preScreenModal .qm-header { padding: 24px 22px 20px; border-radius: 14px 14px 0 0; }
    #preScreenModal .qm-header h2 { font-size: 19px; }
    #preScreenModal .qm-body { padding: 22px 22px 16px; }
    #preScreenModal .qm-footer { padding: 0 22px 24px; }
    #preScreenModal .qm-result { padding: 26px 22px; }
    #preScreenModal .qm-options { padding-left: 0; }
}
