/* ============================================================
   Cleaning Quote Pro -- Calculator Styles
   Theme: Open Diary (#022345 navy, #A4DFF5 accent, Inter)
   ============================================================ */

/* Override theme button hover/focus colors inside the calculator */
.cqp-wrap button:hover,
.cqp-wrap html input[type="button"]:hover,
.cqp-wrap input[type="reset"]:hover,
.cqp-wrap input[type="submit"]:hover,
.cqp-wrap a.button:hover,
.cqp-wrap button:focus,
.cqp-wrap html input[type="button"]:focus,
.cqp-wrap input[type="reset"]:focus,
.cqp-wrap input[type="submit"]:focus,
.cqp-wrap a.button:focus {
    color: #ffffff !important;
    background-color: #022345 !important;
}

*, *::before, *::after { box-sizing: border-box; }

.cqp-wrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    color: #1a202c;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Reset theme monospace overrides inside the calculator */
.cqp-wrap code,
.cqp-wrap kbd,
.cqp-wrap tt,
.cqp-wrap var { font: inherit; }

/* Header */
.cqp-header { background: #022345; color: #fff; border-radius: 10px; padding: 22px 26px; margin-bottom: 18px; }
.cqp-header-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 5px 0; color: #fff; }
.cqp-header-sub { font-size: 0.8rem; opacity: 0.82; margin: 0; line-height: 1.6; }

/* Restaurant identity header */
.cqp-restaurant-header { background: linear-gradient(135deg, #fff8e7 0%, #ffefc7 100%); border: 1px solid #f0d99e; border-radius: 10px; padding: 18px 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 16px; }
.cqp-restaurant-header-icon { background: #b45f06; color: #fff; border-radius: 50%; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cqp-restaurant-header-icon svg { width: 22px; height: 22px; }
.cqp-restaurant-header-title { font-size: 1.15rem; font-weight: 700; color: #5c3a00; margin: 0 0 4px 0; }
.cqp-restaurant-header-sub { font-size: 0.78rem; color: #7a5c2b; margin: 0; line-height: 1.5; }
.cqp-badge-restaurant { background: #b45f06; }
.cqp-badge-restaurant-muted { background: #d4a35a; color: #fff; }
#cqp-sec-rc-specialty .cqp-acc-title { color: #7a3b08; }

/* Carpet identity header */
.cqp-carpet-header { background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; border-radius: 10px; padding: 18px 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 16px; }
.cqp-carpet-header-icon { background: #0369a1; color: #fff; border-radius: 50%; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cqp-carpet-header-icon svg { width: 22px; height: 22px; }
.cqp-carpet-header-title { font-size: 1.15rem; font-weight: 700; color: #0c4a6e; margin: 0 0 4px 0; }
.cqp-carpet-header-sub { font-size: 0.78rem; color: #3b82a0; margin: 0; line-height: 1.5; }
.cqp-badge-carpet { background: #0369a1; }
.cqp-badge-carpet-muted { background: #60a5fa; color: #fff; }
#cqp-sec-cc-addons .cqp-acc-title { color: #0c4a6e; }

/* Validation hints (inside Live Preview panel) */
#cqp-panel-warnings { margin-bottom: 4px; }
.cqp-msg-hint { font-size: 0.72rem; color: #6b7280; padding: 5px 0 5px 10px; border-left: 2px solid #d1d5db; margin-bottom: 6px; line-height: 1.45; }

/* Cards */
.cqp-card { background: #fff; border: 1px solid #e4f1f5; border-radius: 10px; padding: 20px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(2,35,69,0.07); }
.cqp-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e4f1f5; }
.cqp-badge { background: #022345; color: #fff; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.cqp-card-title { font-size: 0.92rem; font-weight: 700; color: #022345; }

/* Fields */
.cqp-field-group { margin-bottom: 14px; }
.cqp-field-group:last-child { margin-bottom: 0; }
.cqp-label { display: block; font-size: 0.78rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.cqp-field-help { font-size: 0.70rem; color: #6b7280; margin-top: 4px; line-height: 1.45; }

/* Select */
.cqp-select-wrap { position: relative; }
.cqp-select { width: 100%; padding: 9px 28px 9px 10px; border: 1px solid #d1d5db; border-radius: 7px; font-size: 0.84rem; color: #1a202c; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.cqp-select:focus { outline: none; border-color: #022345; box-shadow: 0 0 0 3px rgba(2,35,69,0.1); }
.cqp-select:disabled { opacity: 0.55; cursor: not-allowed; }

/* Inputs */
.cqp-input-wrap { position: relative; }
.cqp-input-prefix { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 0.82rem; pointer-events: none; }
.cqp-input-suffix { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 0.78rem; pointer-events: none; }
.cqp-has-prefix .cqp-input { padding-left: 24px; }
.cqp-has-suffix .cqp-input { padding-right: 32px; }
.cqp-input { width: 100%; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 7px; font-size: 0.84rem; color: #1a202c; background: #fff; -moz-appearance: textfield; appearance: textfield; transition: border-color 0.15s, box-shadow 0.15s; }
.cqp-input::-webkit-outer-spin-button, .cqp-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cqp-input:focus { outline: none; border-color: #022345; box-shadow: 0 0 0 3px rgba(2,35,69,0.1); }

/* Grids */
.cqp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cqp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .cqp-grid-2, .cqp-grid-3 { grid-template-columns: 1fr; } }

/* Rate hint and formula box */
.cqp-rate-hint, .cqp-formula-box { background: #f0f9ff; border: 1px solid #A4DFF5; border-radius: 7px; padding: 10px 14px; font-size: 0.74rem; color: #022345; line-height: 1.65; }
.cqp-rate-hint { margin-top: 12px; }
.cqp-formula-box { margin-top: 10px; }

/* Flags */
.cqp-flags-box { background: #f8fafc; border: 1px solid #e4f1f5; border-radius: 8px; padding: 14px 16px; margin-top: 8px; }
.cqp-flags-heading { font-size: 0.78rem; font-weight: 700; color: #022345; margin-bottom: 10px; }
.cqp-flag-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f4f8; }
.cqp-flag-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.cqp-checkbox { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; accent-color: #022345; cursor: pointer; }
.cqp-flag-row label { font-size: 0.78rem; color: #374151; cursor: pointer; line-height: 1.45; }
.cqp-flag-row label strong { color: #022345; }
.cqp-flag-sub { padding: 8px 0 4px 25px; }

/* Add-ons table */
.cqp-table-wrap { overflow-x: auto; }
.cqp-addons-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.cqp-addons-table thead th { background: #022345; color: #fff; padding: 7px 8px; text-align: left; font-weight: 600; font-size: 0.70rem; }
.cqp-addons-table tbody tr { border-bottom: 1px solid #f0f4f8; }
.cqp-addons-table tbody tr:last-child { border-bottom: none; }
.cqp-addons-table tbody td { padding: 7px 8px; vertical-align: middle; }
.cqp-addon-row.cqp-addon-disabled td { opacity: 0.75; }
.cqp-addon-row.cqp-addon-disabled td:first-child { opacity: 1; }
.cqp-addon-check { width: 15px; height: 15px; accent-color: #022345; cursor: pointer; }
.cqp-addon-name { font-weight: 600; color: #022345; display: block; font-size: 0.76rem; }
.cqp-addon-range { color: #374151; font-size: 0.66rem; display: block; }
.cqp-addon-unit { font-size: 0.66rem; color: #6b7280; display: block; text-align: center; }
.cqp-addon-total { font-weight: 600; color: #022345; text-align: right; white-space: nowrap; }
.cqp-addon-input { width: 70px; padding: 5px 7px; border: 1px solid #9ca3af; border-radius: 6px; font-size: 0.76rem; color: #1a202c; -moz-appearance: textfield; appearance: textfield; text-align: center; background: #fff; }
.cqp-addon-input::-webkit-outer-spin-button, .cqp-addon-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cqp-addon-input:focus { outline: none; border-color: #022345; }
.cqp-addon-price-wrap { position: relative; display: inline-block; }
.cqp-addon-price-prefix { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); color: #6b7280; font-size: 0.76rem; pointer-events: none; }
.cqp-addon-price-input { padding-left: 16px !important; width: 78px; }

/* Spinner */
.cqp-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(2,35,69,0.15); border-top-color: #022345; border-radius: 50%; position: absolute; right: 32px; top: 50%; transform: translateY(-50%); animation: cqp-spin 0.7s linear infinite; }
.cqp-spinner.cqp-loading { display: block; }
@keyframes cqp-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Results panel */

.cqp-results-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #e4f1f5; gap: 8px; flex-wrap: wrap; }
.cqp-results-title { font-size: 0.92rem; font-weight: 700; color: #022345; }
.cqp-results-sub { font-size: 0.70rem; color: #6b7280; margin-top: 2px; }
.cqp-badge-status { display: inline-block; border-radius: 20px; padding: 3px 10px; font-weight: 700; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.cqp-badge-active { background: #022345; color: #fff; }
.cqp-badge-empty { background: #e4f1f5; color: #022345; }
.cqp-reset-btn { padding: 5px 12px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #374151; font-size: 0.74rem; font-family: inherit; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.15s; }
.cqp-reset-btn:hover { background: #f3f4f6; }
.cqp-context-line { font-size: 0.72rem; color: #6b7280; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; min-height: 16px; }

/* Result rows */
.cqp-r-section-head { background: #f8fafc; border-radius: 5px; padding: 5px 10px; margin: 10px 0 2px; }
.cqp-r-section-head .cqp-r-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #022345; }
.cqp-r-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 0; font-size: 0.82rem; gap: 8px; }
.cqp-r-row + .cqp-r-row { border-top: 1px solid #f3f4f6; }
.cqp-r-left { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cqp-r-label { color: #374151; font-weight: 500; }
.cqp-r-note { font-size: 0.68rem; color: #6b7280; margin-top: 1px; }
.cqp-r-val { font-weight: 600; color: #1a202c; white-space: nowrap; text-align: right; min-width: 88px; }
.cqp-r-neg { color: #059669; font-weight: 600; }
.cqp-r-subtotal { border-top: 1px solid #e5e7eb !important; padding-top: 9px !important; margin-top: 4px; }
.cqp-r-total { border-top: 2px solid #022345 !important; padding-top: 12px !important; margin-top: 6px; font-size: 1.02rem; }
.cqp-r-total .cqp-r-label { font-weight: 700; color: #022345; }
.cqp-r-total .cqp-r-val { font-weight: 800; color: #022345; }
.cqp-r-muted .cqp-r-label { color: #6b7280; font-weight: 400; font-size: 0.76rem; }
.cqp-r-muted .cqp-r-val { color: #6b7280; font-weight: 500; font-size: 0.76rem; }

/* Summary box */
.cqp-summary-box { background: #f8fafc; border: 1px dashed #d1d5db; border-radius: 7px; padding: 12px 14px; margin-top: 10px; font-size: 0.74rem; color: #374151; animation: cqp-fadein 0.2s ease; }
.cqp-summary-title { font-weight: 700; color: #022345; margin-bottom: 6px; }
.cqp-summary-line { display: flex; justify-content: space-between; padding: 2px 0; }
.cqp-summary-total { border-top: 1px solid #d1d5db; margin-top: 4px; padding-top: 5px; font-weight: 700; color: #022345; }

/* Utility */
.cqp-hidden { display: none !important; }
@keyframes cqp-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Crew Mode Toggle ───────────────────────────────────── */
.cqp-crew-toggle {
    display: flex;
    gap: 0;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 14px;
}
.cqp-mode-btn {
    flex: 1;
    padding: 7px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.76rem;
    font-family: inherit;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.cqp-mode-btn.cqp-mode-active {
    background: #022345;
    color: #ffffff;
}

/* ── Pricing Model Toggle ───────────────────────────────── */
.cqp-pricing-toggle {
    display: flex;
    gap: 0;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 14px;
}
.cqp-model-btn {
    flex: 1;
    padding: 14px 10px 8px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.76rem;
    font-family: inherit;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.cqp-model-btn:hover {
    color: #E4F1F5;
}
.cqp-model-btn.cqp-model-active {
    background: #022345;
    color: #ffffff;
}

/* ── Sliders ────────────────────────────────────────────── */
.cqp-slider-field { margin-bottom: 14px; }
.cqp-slider-field:last-child { margin-bottom: 0; }

.cqp-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.cqp-slider-header .cqp-label { margin-bottom: 0; }

.cqp-pct-display {
    font-size: 0.82rem;
    font-weight: 700;
    color: #022345;
    min-width: 38px;
    text-align: right;
    flex-shrink: 0;
}

.cqp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #e4f1f5;
    outline: none;
    cursor: pointer;
    margin: 4px 0 3px;
}
.cqp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #022345;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(2,35,69,0.3);
    transition: transform 0.1s;
}
.cqp-slider::-webkit-slider-thumb:active { transform: scale(1.2); }
.cqp-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #022345;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(2,35,69,0.3);
}
.cqp-slider::-moz-range-track {
    background: #e4f1f5;
    height: 5px;
    border-radius: 3px;
}

/* Hidden number inputs linked to sliders */
.cqp-hidden-num {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

/* ── Quick Burden Mode ──────────────────────────────────── */
.cqp-quick-mode {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e4f1f5;
    border-radius: 8px;
}
.cqp-quick-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}
.cqp-quick-btn {
    padding: 5px 11px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #ffffff;
    color: #022345;
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.cqp-quick-btn:hover {
    background: #ffffff;
    color: #022345;
    border-color: #022345;
}

/* ── Burden Summary ─────────────────────────────────────── */
.cqp-burden-summary {
    background: #f0f9ff;
    border: 1px solid #A4DFF5;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 0.76rem;
    color: #022345;
    line-height: 1.6;
    margin-top: 14px;
}
.cqp-burden-summary strong { color: #022345; }

/* ── Market Positioning Bands ───────────────────────────── */
.cqp-market-bands {
    background: #f8fafc;
    border: 1px solid #e4f1f5;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.cqp-market-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #022345;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.cqp-market-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.cqp-market-band {
    border-radius: 7px;
    padding: 8px 10px;
    text-align: center;
}
.cqp-band-budget  { background: #f0fdf4; border: 1px solid #86efac; }
.cqp-band-market  { background: #eff6ff; border: 2px solid #022345; }
.cqp-band-premium { background: #fdf4ff; border: 1px solid #d8b4fe; }

.cqp-band-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 3px;
}
.cqp-band-market .cqp-band-label { color: #022345; }

.cqp-band-rate {
    font-size: 0.96rem;
    font-weight: 800;
    color: #022345;
    line-height: 1.2;
}
.cqp-band-note {
    font-size: 0.60rem;
    color: #9ca3af;
    margin-top: 2px;
}

.cqp-your-position {
    font-size: 0.72rem;
    color: #374151;
    font-weight: 500;
    padding-top: 4px;
    border-top: 1px solid #e4f1f5;
    text-align: center;
}

/* ══ 2-Column Layout (form + results) ═══════════════════ */
.cqp-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }
@media (max-width: 1080px) { .cqp-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
@media (max-width: 860px)  {
    .cqp-layout { display: flex; flex-direction: column; }
    .cqp-form-col    { order: 1; width: 100%; }
    .cqp-results-col { order: 2; width: 100%; position: static; }
    .cqp-results-panel { position: static !important; top: auto !important; max-height: none !important; overflow-y: visible !important; }
    #cqp-results-body { display: block !important; }
    .cqp-results-chevron { display: none !important; }
}

/* ── Calculator Type Selector ──────────────────────────── */
.cqp-calc-selector { margin-bottom: 18px; }
.cqp-calc-label { display: block; font-size: 0.70rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #64748b; margin-bottom: 6px; }
.cqp-calc-select { width: 100%; padding: 10px 14px; font-size: 0.92rem; font-weight: 600; color: #022345; background: #fff; border: 1px solid #e4f1f5; border-radius: 8px; cursor: pointer; appearance: none; -webkit-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='M1.5 4.5L6 9 10.5 4.5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.cqp-calc-select:focus { outline: none; border-color: #A4DFF5; box-shadow: 0 0 0 3px rgba(164,223,245,.30); }

/* ── Premium muted sections ──────────────────────────── */
.cqp-premium-overlay-mini {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 5;
    cursor: not-allowed;
}
.cqp-premium-muted {
    opacity: 0.55;
    filter: grayscale(0.5);
}

/* ══ Accordion ════════════════════════════════════════════ */
.cqp-acc { background: #fff; border: 1px solid #e4f1f5; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(2,35,69,.06); }
.cqp-acc-hd { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; background: none; border: none; cursor: pointer; text-align: left; gap: 10px; transition: background .12s; }
.cqp-wrap .cqp-acc-hd:hover,
.cqp-wrap .cqp-acc-hd:focus { background: #E4F1F5 !important; }
.cqp-acc-hd-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.cqp-acc-title { display: block; font-size: 0.88rem; font-weight: 700; color: #022345; }
.cqp-acc-sub   { display: block; font-size: 0.70rem; color: #6b7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cqp-badge-muted { background: #e4f1f5; color: #022345; }
.cqp-acc-open .cqp-badge-muted { background: #022345; color: #fff; }
.cqp-chevron { width: 18px; height: 18px; color: #9ca3af; flex-shrink: 0; transition: transform .25s ease; }
.cqp-acc-open .cqp-chevron { transform: rotate(180deg); color: #022345; }
.cqp-acc-body { position: relative; overflow: hidden; max-height: 0; transition: max-height .32s ease; }
.cqp-acc-open .cqp-acc-body { max-height: 2400px; transition: max-height .45s ease; }
.cqp-acc-inner { padding: 0 18px; }
.cqp-acc-open .cqp-acc-inner { padding: 18px; }

/* ══ Results panel — truly sticky, no scroll box ══════════ */
.cqp-results-col { position: sticky; top: 84px; }
.cqp-results-panel { background: #fff; border: 1px solid #e4f1f5; border-top: 4px solid #022345; border-radius: 10px; padding: 18px; box-shadow: 0 4px 20px rgba(2,35,69,.10); }
.cqp-results-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cqp-r-divider { height: 1px; background: #e4f1f5; margin: 8px 0; }
.cqp-r-emph .cqp-r-label { font-weight: 700; color: #022345; }
.cqp-r-emph .cqp-r-val   { font-weight: 700; color: #022345; }
.cqp-r-rate-row .cqp-r-label { color: #022345; font-weight: 700; font-size: 0.88rem; }
.cqp-r-rate-row .cqp-r-val   { color: #022345; font-weight: 800; font-size: 0.88rem; }
.cqp-r-muted .cqp-r-label { color: #9ca3af; font-weight: 500; }
.cqp-r-muted .cqp-r-val   { color: #9ca3af; font-weight: 500; }


/* ================================================================
   QUOTE GENERATOR — Tabs, Form, Proposal Panel
   ================================================================ */

/* ── Tab Bar ─────────────────────────────────────────────────── */
.cqp-tab-bar { display: flex; padding: 10px 10px 0; gap: 4px; border-bottom: 1px solid #e4f1f5; flex-shrink: 0; }
.cqp-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; border: none; background: #f4f6f8; border-radius: 7px 7px 0 0; font-family: inherit; font-size: 0.73rem; font-weight: 600; color: #6b7280; cursor: pointer; transition: all .15s; }
.cqp-tab:hover { background: #e4f1f5; color: #022345; }
.cqp-tab.cqp-tab-active { background: #022345; color: #fff; }
.cqp-tab-icon { width: 13px; height: 13px; flex-shrink: 0; }
.cqp-snav-pane { display: flex; flex-direction: column; flex: 1; overflow-y: auto; min-height: 0; }
.cqp-snav-pane.cqp-hidden { display: none !important; }

/* ── Grid placement: 2-column estimate layout (form + results) ── */
.cqp-form-col     { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; }
.cqp-quote-col    { grid-column: 1; grid-row: 1; position: relative; width: 100%; min-width: 0; }
.cqp-results-col  { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; }
.cqp-proposal-col { grid-column: 2; grid-row: 1; position: sticky; top: 84px; width: 100%; min-width: 0; }
.cqp-quote-col.cqp-hidden, .cqp-proposal-col.cqp-hidden { display: none !important; }

/* ── Quote Form Inputs ───────────────────────────────────────── */
.cqp-input { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; font-size: 0.82rem; color: #022345; background: #fff; transition: border-color .15s; box-sizing: border-box; }
.cqp-input:focus { outline: none; border-color: #022345; box-shadow: 0 0 0 2px rgba(2,35,69,.08); }
.cqp-input[readonly] { background: #f8fafc; color: #6b7280; }
.cqp-textarea { resize: vertical; min-height: 56px; }
.cqp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.cqp-input-row { display: flex; gap: 6px; }
.cqp-input-row .cqp-input { flex: 1; }

/* ── Scope checkboxes ────────────────────────────────────────── */
.cqp-scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cqp-scope-label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e4f1f5; border-radius: 7px; cursor: pointer; font-size: 0.8rem; color: #374151; transition: all .15s; user-select: none; }
.cqp-scope-label:hover { border-color: #a5d8f5; background: #f8fbff; }
.cqp-scope-check { accent-color: #022345; width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.cqp-scope-label:has(.cqp-scope-check:checked) { border-color: #022345; background: #f0f9ff; }
.cqp-scope-label:has(.cqp-scope-check:checked) .cqp-scope-text { font-weight: 600; color: #022345; }

/* ── Custom scope add row ────────────────────────────────────── */
.cqp-scope-custom-row { display: flex; gap: 6px; margin-top: 10px; }
.cqp-scope-custom-input { flex: 1; font-size: 0.8rem; }
.cqp-scope-add-btn { flex-shrink: 0; width: 34px; height: 34px; background: #022345; color: #fff; border: none; border-radius: 7px; font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .13s; }
.cqp-scope-add-btn:hover { background: #033566; }
#cqp-scope-custom-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cqp-scope-tag { display: flex; align-items: center; gap: 5px; padding: 5px 10px; background: #f0f9ff; border: 1px solid #022345; border-radius: 20px; font-size: 0.76rem; font-weight: 600; color: #022345; }
.cqp-scope-tag-remove { background: none; border: none; cursor: pointer; color: #6b7280; font-size: 0.9rem; line-height: 1; padding: 0 2px; }
.cqp-scope-tag-remove:hover { color: #dc2626; }

/* ── Day picker ──────────────────────────────────────────────── */
.cqp-day-picker { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.cqp-day-btn { cursor: pointer; }
.cqp-day-btn input { display: none; }
.cqp-day-btn span { display: block; padding: 5px 10px; border: 1px solid #d1d5db; border-radius: 20px; font-size: 0.72rem; font-weight: 600; color: #6b7280; transition: all .15s; }
.cqp-day-btn:hover span { border-color: #022345; color: #022345; }
.cqp-day-btn:has(input:checked) span { background: #022345; color: #fff; border-color: #022345; }

/* ── Generate buttons ────────────────────────────────────────── */
.cqp-quote-gen-bar { padding: 18px 0 6px; }
.cqp-btn-generate { width: 100%; padding: 13px; background: #022345; color: #fff; border: none; border-radius: 8px; font-family: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: background .15s; letter-spacing: 0.01em; }
.cqp-btn-generate:hover { background: #033566; }

/* Generate Quote button (inside results panel) */
.cqp-gen-quote-bar { padding: 14px 0 2px; border-top: 1px solid #e4f1f5; margin-top: 14px; }
.cqp-btn-gen-quote { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 16px; background: #022345; color: #fff; border: none; border-radius: 8px; font-family: inherit; font-size: 0.83rem; font-weight: 700; cursor: pointer; transition: background .15s; letter-spacing: 0.01em; }
.cqp-btn-gen-quote:hover { background: #033566; }
.cqp-btn-gen-quote:disabled { opacity: 0.45; cursor: not-allowed; }
.cqp-btn-sm { padding: 8px 10px; background: #f0f4f8; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.78rem; cursor: pointer; white-space: nowrap; font-family: inherit; color: #374151; flex-shrink: 0; }
.cqp-btn-sm:hover { background: #e4f1f5; border-color: #022345; }

/* ── Proposal Panel ──────────────────────────────────────────── */
.cqp-proposal-panel { background: #fff; border: 1px solid #e4f1f5; border-top: 4px solid #022345; border-radius: 10px; box-shadow: 0 4px 20px rgba(2,35,69,.10); overflow: hidden; }
.cqp-proposal-empty { padding: 40px 20px; text-align: center; color: #6b7280; }
.cqp-proposal-empty-icon { font-size: 2.2rem; margin-bottom: 10px; }
.cqp-proposal-empty p { font-size: 0.82rem; line-height: 1.7; }

/* Proposal document */
#cqp-proposal-output { padding: 16px 18px 2px; max-height: 62vh; overflow-y: auto; }
.cqp-proposal-doc { font-size: 0.78rem; line-height: 1.5; color: #1a202c; }
.cqp-proposal-doc .p-header { text-align: center; border-bottom: 2px solid #022345; padding-bottom: 8px; margin-bottom: 10px; }
.cqp-proposal-doc .p-co-name { font-size: 0.88rem; font-weight: 700; color: #022345; display: block; }
.cqp-proposal-doc .p-quotenum { font-size: 0.70rem; color: #6b7280; margin-top: 2px; display: block; }
.cqp-proposal-doc .p-section { margin-bottom: 12px; }
.cqp-proposal-doc .p-section-compact { margin-bottom: 8px; }
.cqp-proposal-doc .p-section-title { font-size: 0.66rem; font-weight: 700; color: #022345; text-transform: uppercase; letter-spacing: 0.07em; border-bottom: 1px solid #e4f1f5; padding-bottom: 2px; margin-bottom: 5px; }
.cqp-proposal-doc .p-row { display: flex; justify-content: space-between; align-items: baseline; padding: 1px 0; font-size: 0.75rem; }
.cqp-proposal-doc .p-row-label { color: #6b7280; }
.cqp-proposal-doc .p-row-val { font-weight: 600; color: #022345; }
.cqp-proposal-doc .p-pricing-box { background: #f0f9ff; border: 1px solid #bae0f5; border-radius: 6px; padding: 8px 12px; }
.cqp-proposal-doc .p-price-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #e4f1f5; font-size: 0.76rem; }
.cqp-proposal-doc .p-price-row:last-child { border-bottom: none; font-weight: 700; font-size: 0.84rem; color: #022345; }
.cqp-proposal-doc .p-scope-cols { display: flex; gap: 18px; }
.cqp-proposal-doc .p-scope-cols ul.p-scope { flex: 1; padding-left: 16px; margin: 0; }
.cqp-proposal-doc .p-scope-cols ul.p-scope li { margin-bottom: 2px; font-size: 0.75rem; }
.cqp-proposal-doc .p-footer-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 6px; border-top: 1px solid #e4f1f5; }
.cqp-proposal-doc .p-thankyou { font-size: 0.70rem; color: #6b7280; font-style: italic; }
.cqp-proposal-doc .p-valid { font-size: 0.70rem; color: #6b7280; font-style: italic; }

/* Action buttons */
.cqp-proposal-actions { display: flex; gap: 6px; padding: 12px 16px; border-top: 1px solid #e4f1f5; }
.cqp-action-btn { flex: 1; padding: 8px 4px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; font-family: inherit; font-size: 0.70rem; font-weight: 600; color: #374151; cursor: pointer; transition: all .15s; text-align: center; }
.cqp-action-btn:hover { border-color: #022345; color: #022345; background: #f0f9ff; }
#cqp-btn-copy.cqp-copied { border-color: #10b981; color: #10b981; }

/* ── Save button ──────────────────────────────────────────── */
.cqp-save-bar { padding: 10px 0 2px; }
.cqp-btn-save { width: 100%; padding: 10px; background: #f0f4f8; border: 1px solid #d1d5db; border-radius: 8px; font-family: inherit; font-size: 0.80rem; font-weight: 600; color: #374151; cursor: pointer; transition: all .15s; }
.cqp-btn-save:hover { background: #e4f1f5; border-color: #022345; color: #022345; }

/* ── Save Modal ─────────────────────────────────────────────── */
.cqp-save-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.cqp-save-modal-backdrop { position: absolute; inset: 0; background: rgba(2,35,69,.35); }
.cqp-save-modal-box { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(2,35,69,.20); padding: 24px; width: 340px; max-width: 90vw; }
.cqp-save-modal-title { font-size: 1rem; font-weight: 700; color: #022345; margin-bottom: 12px; }
.cqp-save-modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.cqp-save-modal-actions .cqp-btn-generate { flex: 1; }

/* ── Dashboard (inside calculator) ───────────────────────── */
.cqp-dash-panel-inside { grid-column: 2 / -1; padding: 0 4px; }
@media (max-width: 1080px) { .cqp-dash-panel-inside { grid-column: 1 / -1; } }

/* ── Dashboard ──────────────────────────────────────────────── */
.cqp-dashboard { max-width: 960px; margin: 0 auto; padding: 24px; font-family: 'Inter', system-ui, sans-serif; }
.cqp-dash-login { text-align: center; padding: 60px 20px; }
.cqp-dash-title { font-size: 1.4rem; font-weight: 700; color: #022345; margin-bottom: 18px; }
.cqp-dash-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #e4f1f5; padding-bottom: 10px; }
.cqp-dash-tab { padding: 7px 16px; background: none; border: 1px solid transparent; border-radius: 6px; font-family: inherit; font-size: 0.82rem; font-weight: 600; color: #6b7280; cursor: pointer; transition: all .13s; }
.cqp-dash-tab:hover { color: #022345; }
.cqp-dash-tab-active { background: #f0f9ff; border-color: #022345; color: #022345; }
.cqp-dash-panel { display: none; }
.cqp-dash-panel-active { display: block; }
.cqp-dash-empty { padding: 40px 20px; text-align: center; color: #6b7280; font-size: 0.85rem; background: #f8fafc; border-radius: 10px; border: 1px dashed #d1d5db; }
.cqp-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cqp-dash-card { background: #fff; border: 1px solid #e4f1f5; border-radius: 10px; overflow: hidden; transition: box-shadow .15s; }
.cqp-dash-card:hover { box-shadow: 0 4px 16px rgba(2,35,69,.08); }
.cqp-dash-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid #f1f5f9; }
.cqp-dash-card-title { font-size: 0.85rem; font-weight: 700; color: #022345; }
.cqp-dash-card-actions { display: flex; align-items: center; gap: 6px; }
.cqp-dash-load { padding: 4px 10px; background: #f0f9ff; border: 1px solid #bae0f5; border-radius: 6px; font-family: inherit; font-size: 0.70rem; font-weight: 600; color: #022345; cursor: pointer; transition: all .13s; }
.cqp-dash-load:hover { background: #022345; color: #fff; border-color: #022345; }
.cqp-dash-del { width: 26px; height: 26px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 1rem; color: #94a3b8; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.cqp-dash-del:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.cqp-dash-card-body { padding: 10px 16px 14px; }
.cqp-dash-card-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.76rem; }
.cqp-dash-card-row span:first-child { color: #94a3b8; }
.cqp-dash-card-row strong { color: #022345; font-weight: 600; }
.cqp-dash-date { color: #94a3b8; }

/* E-signature */
.cqp-esign-section { padding: 12px 16px 18px; border-top: 1px solid #e4f1f5; }
.cqp-esign-divider { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; margin-bottom: 9px; }
.cqp-btn-accept { width: 100%; padding: 11px; background: #10b981; color: #fff; border: none; border-radius: 8px; font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.cqp-btn-accept:hover { background: #059669; }
.cqp-esign-form { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.cqp-esign-note { font-size: 0.71rem; color: #6b7280; line-height: 1.5; }
.cqp-btn-confirm-sign { padding: 9px; background: #022345; color: #fff; border: none; border-radius: 6px; font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; margin-top: 2px; }
.cqp-btn-confirm-sign:hover { background: #033566; }
.cqp-signed-stamp { margin-top: 10px; padding: 10px 12px; background: #f0fdf4; border: 1px solid #6ee7b7; border-radius: 6px; font-size: 0.72rem; color: #065f46; line-height: 1.6; }
.cqp-signed-stamp strong { display: block; font-size: 0.78rem; color: #022345; }

/* Premium / Subscription */
.cqp-nav-locked { opacity: 0.6; }
.cqp-premium-overlay { display: none; position: absolute; inset: 0; background: rgba(255,255,255,0.96); z-index: 50; align-items: center; justify-content: center; border-radius: 14px; }
.cqp-premium-box { text-align: center; padding: 40px 28px; max-width: 320px; }
.cqp-premium-icon { font-size: 2.4rem; margin-bottom: 12px; }
.cqp-premium-title { font-size: 1.15rem; font-weight: 700; color: #022345; margin-bottom: 6px; }
.cqp-premium-desc { font-size: 0.82rem; color: #64748b; margin-bottom: 16px; line-height: 1.5; }
.cqp-premium-price { font-size: 2rem; font-weight: 800; color: #022345; margin-bottom: 4px; }
.cqp-premium-price span { font-size: 0.85rem; font-weight: 500; color: #94a3b8; }
.cqp-premium-note { font-size: 0.78rem; color: #64748b; margin-bottom: 18px; }
.cqp-btn-premium { display: inline-block; padding: 11px 28px; background: #022345; color: #fff; border: none; border-radius: 8px; font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s; }
.cqp-btn-premium:hover { background: #033566; }
.cqp-upgrade-icon { font-size: 2.2rem; text-align: center; margin-bottom: 10px; }
.cqp-upgrade-box { padding: 32px 24px; }

/* ── Branding inputs ─────────────────────────────────────────── */
.cqp-color-row { display: flex; align-items: center; gap: 8px; }
.cqp-color-input { width: 40px; height: 40px; padding: 0; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; background: none; flex-shrink: 0; }
.cqp-color-hex { font-size: 0.82rem; font-weight: 600; color: #374151; font-family: monospace; }
.cqp-brand-preview { display: flex; align-items: center; margin-top: 8px; }
.cqp-brand-preview img { border-radius: 4px; border: 1px solid #e4f1f5; }
.cqp-brand-preview-box { margin-top: 14px; padding: 14px; background: #f8fafc; border: 1px solid #e4f1f5; border-radius: 8px; }
.cqp-brand-preview-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; margin-bottom: 8px; }
.cqp-brand-preview-doc { min-height: 40px; border-radius: 6px; background: #fff; border: 1px dashed #d1d5db; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; color: #94a3b8; }

/* ── Clients & Branding panels ─────────────────────────────── */
.cqp-dash-title-sm { font-size: 1.1rem; font-weight: 700; color: #022345; margin-bottom: 4px; }
.cqp-dash-subtitle { font-size: 0.9rem; font-weight: 700; color: #022345; margin: 16px 0 10px; }
.cqp-dash-desc { font-size: 0.82rem; color: #64748b; margin-bottom: 16px; line-height: 1.5; }
.cqp-form-actions { display: flex; gap: 8px; margin-top: 14px; }
.cqp-clients-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cqp-client-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f8fafc; border: 1px solid #e4f1f5; border-radius: 8px; cursor: pointer; transition: all .13s; }
.cqp-client-item:hover { background: #f0f9ff; border-color: #022345; }
.cqp-client-item-info { flex: 1; min-width: 0; }
.cqp-client-item-name { font-size: 0.84rem; font-weight: 700; color: #022345; }
.cqp-client-item-meta { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }
.cqp-client-item-actions { display: flex; gap: 5px; }
.cqp-client-btn { padding: 4px 10px; background: #fff; border: 1px solid #d1d5db; border-radius: 5px; font-size: 0.72rem; font-weight: 600; color: #374151; cursor: pointer; }
.cqp-client-btn:hover { border-color: #022345; color: #022345; }
.cqp-client-btn-del { color: #94a3b8; border-color: #e2e8f0; }
.cqp-client-btn-del:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.cqp-clients-form { padding: 14px; background: #f8fafc; border: 1px solid #e4f1f5; border-radius: 10px; }
.cqp-branding-form { padding: 14px 0; }
#cqp-clients-panel .cqp-dash-card, #cqp-branding-panel .cqp-dash-card { padding: 18px 20px; }

/* ── Move-Out Calculator ──────────────────────────────────── */
.cqp-mo-level-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cqp-mo-level-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 10px; border: 2px solid #e4f1f5; border-radius: 10px; cursor: pointer; transition: all .15s; user-select: none; }
.cqp-mo-level-card:hover { border-color: #A4DFF5; background: #f0f9ff; }
.cqp-mo-level-card.cqp-mo-level-active { border-color: #022345; background: #f0f9ff; }
.cqp-mo-level-radio { display: none; }
.cqp-mo-level-icon { font-size: 1.6rem; margin-bottom: 6px; }
.cqp-mo-level-name { font-size: 0.84rem; font-weight: 700; color: #022345; margin-bottom: 4px; }
.cqp-mo-level-desc { font-size: 0.70rem; color: #64748b; line-height: 1.4; }
.cqp-mo-level-active .cqp-mo-level-name { color: #022345; }

.cqp-mo-addons-grid { display: flex; flex-direction: column; gap: 2px; }
.cqp-mo-addon-row { padding: 9px 12px; border-radius: 8px; transition: background .1s; }
.cqp-mo-addon-row:hover { background: #f8fafc; }
.cqp-mo-addon-check-wrap { display: flex; align-items: center; gap: 10px; }
.cqp-mo-addon-check-wrap label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.83rem; color: #374151; flex: 1; }
.cqp-mo-addon-meta { font-size: 0.70rem; color: #94a3b8; font-weight: 500; margin-left: auto; white-space: nowrap; }
.cqp-mo-addon-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; margin-left: 28px; }
.cqp-mo-addon-qty .cqp-label { font-size: 0.72rem; color: #64748b; white-space: nowrap; }
@media (max-width: 520px) { .cqp-mo-level-cards { grid-template-columns: 1fr; } }

/* ── Window Cleaning Calculator ───────────────────────────── */
.cqp-wc-addons-grid { display: flex; flex-direction: column; gap: 2px; }
.cqp-wc-addon-row { padding: 9px 12px; border-radius: 8px; transition: background .1s; }
.cqp-wc-addon-row:hover { background: #f8fafc; }
.cqp-wc-addon-check-wrap { display: flex; align-items: center; gap: 10px; }
.cqp-wc-addon-check-wrap label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.83rem; color: #374151; flex: 1; }
.cqp-wc-addon-meta { font-size: 0.70rem; color: #94a3b8; font-weight: 500; margin-left: auto; white-space: nowrap; }
.cqp-wc-addon-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; margin-left: 28px; }
.cqp-wc-addon-qty .cqp-label { font-size: 0.72rem; color: #64748b; white-space: nowrap; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .cqp-proposal-col { position: static; }
}

@media (max-width: 600px) {
    /* Dashboard mobile */
    .cqp-dashboard { 
        padding: 16px 12px; 
        max-width: 100%;
        overflow-x: hidden;
    }
    .cqp-dash-title { font-size: 1.2rem; margin-bottom: 14px; }
    .cqp-dash-tabs { 
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        margin-bottom: 16px;
    }
    .cqp-dash-tabs::-webkit-scrollbar { display: none; }
    .cqp-dash-tab { 
        padding: 6px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Dashboard cards */
    .cqp-dash-grid { 
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }
    .cqp-dash-card { 
        max-width: 100%;
        overflow: hidden;
    }
    .cqp-dash-card-head { 
        padding: 12px 14px 8px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .cqp-dash-card-title { 
        font-size: 0.82rem;
        flex: 1;
        min-width: 0;
        word-break: break-word;
    }
    .cqp-dash-card-actions {
        flex-shrink: 0;
    }
    .cqp-dash-load { font-size: 0.68rem; padding: 3px 8px; }
    .cqp-dash-card-body { padding: 8px 14px 12px; }
    .cqp-dash-card-row { 
        font-size: 0.72rem;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .cqp-dash-card-row span:first-child {
        flex-shrink: 0;
        min-width: 0;
    }
    .cqp-dash-card-row strong,
    .cqp-dash-card-row .cqp-dash-date {
        flex-shrink: 0;
        word-break: break-word;
        text-align: right;
    }
    
    /* Form grids */
    .cqp-grid-2, .cqp-grid-3 { grid-template-columns: 1fr; gap: 10px; }
    .cqp-scope-grid { grid-template-columns: 1fr; gap: 6px; }
    
    /* Cards and panels */
    .cqp-card { padding: 14px; margin-bottom: 12px; }
    .cqp-card-header { margin-bottom: 12px; padding-bottom: 10px; }
    .cqp-card-title { font-size: 0.86rem; }
    
    /* Inputs */
    .cqp-input, .cqp-select { font-size: 0.82rem; padding: 8px 10px; }
    .cqp-label { font-size: 0.76rem; }
    .cqp-field-help { font-size: 0.68rem; }
    
    /* Clients list */
    .cqp-clients-list { gap: 6px; }
    .cqp-client-item { padding: 8px 12px; }
    .cqp-client-item-name { font-size: 0.80rem; }
    .cqp-client-item-meta { font-size: 0.70rem; }
    .cqp-client-item-actions { 
        flex-direction: column;
        gap: 4px;
    }
    .cqp-client-btn { 
        padding: 4px 8px;
        font-size: 0.70rem;
    }
    
    /* Clients & Branding forms */
    .cqp-clients-form, .cqp-branding-form { padding: 12px; }
    .cqp-dash-title-sm { font-size: 1rem; }
    .cqp-dash-subtitle { font-size: 0.86rem; margin: 14px 0 8px; }
    .cqp-dash-desc { font-size: 0.80rem; margin-bottom: 14px; }
    .cqp-form-actions { 
        flex-direction: column;
        gap: 6px;
    }
    .cqp-form-actions .cqp-btn-generate,
    .cqp-form-actions .cqp-btn-save { 
        width: 100%;
    }
    
    /* Branding color inputs */
    .cqp-color-row { flex-wrap: wrap; }
    .cqp-brand-preview-box { padding: 12px; margin-top: 12px; }
    
    /* Quote form */
    .cqp-scope-custom-row { gap: 4px; }
    .cqp-scope-custom-input { font-size: 0.78rem; }
    .cqp-scope-add-btn { width: 32px; height: 32px; font-size: 1.1rem; }
    .cqp-scope-tag { padding: 4px 8px; font-size: 0.74rem; }
    
    /* Day picker */
    .cqp-day-picker { gap: 4px; }
    .cqp-day-btn span { 
        padding: 4px 8px;
        font-size: 0.70rem;
    }
    
    /* Proposal panel */
    .cqp-proposal-panel { border-radius: 8px; }
    #cqp-proposal-output { 
        padding: 14px 16px 2px;
        max-height: 50vh;
    }
    .cqp-proposal-doc { font-size: 0.76rem; }
    .cqp-proposal-doc .p-co-name { font-size: 0.84rem; }
    .cqp-proposal-doc .p-row,
    .cqp-proposal-doc .p-scope-cols ul.p-scope li { font-size: 0.73rem; }
    .cqp-proposal-doc .p-price-row { font-size: 0.74rem; }
    .cqp-proposal-doc .p-scope-cols { flex-direction: column; gap: 8px; }
    .cqp-proposal-actions { padding: 10px 14px; gap: 4px; }
    .cqp-action-btn { font-size: 0.68rem; padding: 7px 4px; }
    
    /* Results panel */
    .cqp-results-panel { padding: 14px; border-radius: 8px; }
    .cqp-results-header { margin-bottom: 12px; padding-bottom: 10px; }
    .cqp-results-title { font-size: 0.86rem; }
    .cqp-results-sub { font-size: 0.68rem; }
    .cqp-reset-btn { padding: 4px 10px; font-size: 0.72rem; }
    .cqp-r-row { font-size: 0.80rem; padding: 6px 0; }
    .cqp-r-label { font-size: 0.78rem; }
    .cqp-r-note { font-size: 0.66rem; }
    .cqp-r-val { font-size: 0.80rem; min-width: 70px; }
    .cqp-r-total { font-size: 0.96rem; }
    .cqp-gen-quote-bar { padding: 12px 0 2px; margin-top: 12px; }
    .cqp-btn-gen-quote { padding: 10px 14px; font-size: 0.80rem; gap: 6px; }
    
    /* Buttons */
    .cqp-btn-generate { padding: 11px; font-size: 0.84rem; }
    .cqp-btn-save { padding: 9px; font-size: 0.78rem; }
    .cqp-btn-sm { padding: 7px 9px; font-size: 0.76rem; }
    
    /* Market bands */
    .cqp-market-row { 
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .cqp-market-band { padding: 7px 9px; }
    .cqp-band-rate { font-size: 0.88rem; }
    
    /* Move-out & Window addon grids */
    .cqp-mo-addons-grid, .cqp-wc-addons-grid { gap: 1px; }
    .cqp-mo-addon-row, .cqp-wc-addon-row { padding: 8px 10px; }
    .cqp-mo-addon-check-wrap label,
    .cqp-wc-addon-check-wrap label { font-size: 0.80rem; gap: 8px; }
    .cqp-mo-addon-meta, .cqp-wc-addon-meta { font-size: 0.68rem; }
    .cqp-mo-addon-qty, .cqp-wc-addon-qty { 
        gap: 6px;
        margin-left: 24px;
    }
    
    /* Save modal */
    .cqp-save-modal-box { width: 300px; padding: 20px; }
    .cqp-save-modal-title { font-size: 0.94rem; margin-bottom: 10px; }
    
    /* Premium overlay */
    .cqp-premium-box { padding: 32px 20px; }
    .cqp-premium-icon { font-size: 2rem; }
    .cqp-premium-title { font-size: 1.05rem; }
    .cqp-premium-desc { font-size: 0.80rem; }
    .cqp-premium-price { font-size: 1.8rem; }
    .cqp-btn-premium { padding: 10px 24px; font-size: 0.82rem; }
    
    /* Tab bar */
    .cqp-tab-bar { padding: 8px 8px 0; gap: 3px; }
    .cqp-tab { 
        padding: 7px 5px;
        font-size: 0.70rem;
    }
    .cqp-tab-icon { width: 12px; height: 12px; }
    
    /* Sidenav footer */
    .cqp-sv-footer { padding: 10px 12px; }
    .cqp-sv-footer-total { font-size: 1.05rem; }
    
    /* E-signature */
    .cqp-esign-section { padding: 10px 14px 16px; }
    .cqp-btn-accept { padding: 10px; font-size: 0.82rem; }
    .cqp-esign-note { font-size: 0.70rem; }
}

/* ── Subscription Status Card ────────────────────────────────── */
.cqp-sub-card { border-top: 3px solid #022345; margin-bottom: 24px; }
.cqp-sub-body { padding: 18px 20px; }
.cqp-sub-head { font-size: 0.68rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.cqp-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cqp-sub-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cqp-sub-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.cqp-sub-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cqp-sub-pill-active  { background: #dcfce7; color: #166534; }
.cqp-sub-pill-active  .cqp-sub-dot { background: #16a34a; }
.cqp-sub-pill-trial   { background: #fef3c7; color: #92400e; }
.cqp-sub-pill-trial   .cqp-sub-dot { background: #d97706; }
.cqp-sub-pill-expired { background: #fee2e2; color: #991b1b; }
.cqp-sub-pill-expired .cqp-sub-dot { background: #dc2626; }
.cqp-sub-pill-free    { background: #f1f5f9; color: #64748b; }
.cqp-sub-pill-free    .cqp-sub-dot { background: #94a3b8; }
.cqp-sub-pill-hold    { background: #fff7ed; color: #9a3412; }
.cqp-sub-pill-hold    .cqp-sub-dot { background: #ea580c; }
.cqp-sub-meta { font-size: 0.82rem; color: #64748b; }
.cqp-sub-meta strong  { color: #334155; font-weight: 600; }
.cqp-sub-loading { font-size: 0.78rem; color: #94a3b8; font-style: italic; }
.cqp-sub-trial-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.cqp-sub-trial-track  { background: #f1f5f9; border-radius: 99px; height: 6px; overflow: hidden; margin-bottom: 6px; }
.cqp-sub-trial-fill   { height: 100%; border-radius: 99px; background: #d97706; transition: width .4s ease; }
.cqp-sub-trial-label  { font-size: 0.71rem; color: #94a3b8; }
.cqp-btn-upgrade-dash { padding: 7px 16px; background: #022345; color: #fff; border: none; border-radius: 6px; font-size: 0.74rem; font-weight: 700; cursor: pointer; transition: background .15s; white-space: nowrap; font-family: inherit; }
.cqp-btn-upgrade-dash:hover { background: #033566; }

/* ── Print / PDF ─────────────────────────────────────────────── */
.cqp-print-only { display: none; }
@media print {
    body * { visibility: hidden; }
    #cqp-print-frame, #cqp-print-frame * { visibility: visible; }
    #cqp-print-frame { position: fixed; left: 0; top: 0; width: 100%; font-family: 'Inter', sans-serif; }
}

/* ══ Furniture Cleaning Calculator ═══════════════════════════ */
.cqp-fc-add-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.cqp-fc-add-bar .cqp-select { flex: 1; }
.cqp-fc-items-wrap { display: flex; flex-direction: column; gap: 10px; }
.cqp-fc-empty { text-align: center; padding: 18px; color: #94a3b8; font-size: 0.78rem; background: #f8fafc; border: 1px dashed #d1d5db; border-radius: 8px; }
.cqp-fc-item-row { background: #fff; border: 1px solid #e4f1f5; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(2,35,69,0.05); }
.cqp-fc-item-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #e4f1f5; }
.cqp-fc-item-header .cqp-select { flex: 1; font-size: 0.82rem; padding: 7px 10px; }
.cqp-fc-item-remove { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid #fecaca; background: #fef2f2; color: #dc2626; border-radius: 6px; font-size: 1.1rem; line-height: 1; cursor: pointer; transition: background .15s; }
.cqp-fc-item-remove:hover { background: #fee2e2; }
.cqp-fc-item-body { padding: 12px; }
.cqp-fc-item-body .cqp-grid-2,
.cqp-fc-item-body .cqp-grid-3 { gap: 10px; }
.cqp-fc-item-body .cqp-field-group { margin-bottom: 10px; }
.cqp-fc-item-body .cqp-field-group:last-child { margin-bottom: 0; }
.cqp-fc-item-addons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; margin-top: 6px; border-top: 1px solid #f0f4f8; }
.cqp-fc-item-addons label { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: #374151; cursor: pointer; }
@media (max-width: 600px) {
    .cqp-fc-add-bar { flex-direction: column; }
    .cqp-fc-item-addons { gap: 8px; }
}

/* ── Email capture ───────────────────────────────────────────── */
.cqp-email-capture {
    margin-top: 20px;
    padding: 18px 20px 14px;
    background: #f0f6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
}
.cqp-email-input {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 14px !important;
    font-size: 0.9rem !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111827 !important;
    outline: none !important;
    margin-bottom: 10px !important;
    transition: border-color 0.15s !important;
    box-shadow: none !important;
}
.cqp-email-input::placeholder { color: #9ca3af !important; }
.cqp-email-input:focus {
    border-color: #022345 !important;
    box-shadow: 0 0 0 3px rgba(2,35,69,0.08) !important;
}
.cqp-email-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: #022345 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    letter-spacing: 0.01em !important;
    transition: background 0.15s, opacity 0.15s !important;
    text-transform: none !important;
    box-shadow: none !important;
}
.cqp-email-btn:hover,
.cqp-email-btn:focus { background: #03305e !important; color: #fff !important; }
.cqp-email-btn:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }
.cqp-email-msg {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}
.cqp-email-msg-success { background: #dcfce7 !important; color: #166534 !important; border: 1px solid #bbf7d0 !important; }
.cqp-email-msg-error   { background: #fee2e2 !important; color: #991b1b !important; border: 1px solid #fecaca !important; }
