/* ============================================
   BLACK DIAMOND SOLAR - QUOTE BUILDER V3
   Apple-inspired light theme
   ============================================ */

:root {
    /* Backgrounds */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d4d4d4;

    /* Text */
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-900: #171717;

    /* Accent colours */
    --blue: #0066ff;
    --blue-light: #e6f0ff;
    --green: #00c853;
    --green-light: #e6f9ed;
    --orange: #ff9500;
    --orange-light: #fff5e6;
    --red: #ef4444;

    /* Radii */
    --radius: 20px;
    --radius-sm: 12px;

    /* Shadows */
    --shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);

    /* Legacy aliases for app.js compatibility */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --bg-input: var(--gray-50);
    --bg-hover: var(--gray-100);
    --bg-elevated: var(--white);
    --separator: var(--gray-200);
    --separator-hover: var(--gray-200);
    --separator-strong: #d4d4d4;
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-500);
    --text-tertiary: var(--gray-400);
    --text-quaternary: #c4c4c4;
    --accent: var(--blue);
    --accent-dark: #0052cc;
    --accent-hover: #0052cc;
    --accent-subtle: rgba(0, 102, 255, 0.06);
    --accent-glow: rgba(0, 102, 255, 0.08);
    --green-bg: var(--green-light);
    --yellow: var(--orange);
    --yellow-bg: var(--orange-light);
    --info-bg: var(--blue-light);
    --info-text: var(--blue);
    --radius-md: var(--radius-sm);
    --radius-lg: 16px;
    --radius-xl: var(--radius);
    --transition: 0.2s ease;
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }


body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    color: var(--gray-900);
    min-height: 100vh;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    border: none;
}

/* === HEADER / TOOLBAR === */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-bottom: 1px solid var(--gray-200);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0;
}

.toolbar-logo-left {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.toolbar-rep-select {
    height: 38px;
    max-width: 160px;
    padding: 0 32px 0 14px;
    background: var(--gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23737373' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-900);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--gray-50);
}

.toolbar-rep-select:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

.toolbar-rep-select:focus {
    border-color: var(--blue);
    outline: none;
    background-color: var(--white);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--gray-200);
    flex-shrink: 0;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
}

/* Pill-shaped toolbar buttons */
.toolbar-pill {
    height: 38px;
    padding: 0 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.toolbar-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.toolbar-pill-uniform {
    min-width: 70px;
    text-align: center;
}

.toolbar-pill:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-900);
    box-shadow: none;
}

.toolbar-pill:active {
    background: var(--gray-200);
    transform: scale(0.97);
}

.toolbar-pill.primary {
    background: var(--blue);
    color: white;
    border: 2px solid var(--blue);
}

.toolbar-pill.primary:hover {
    background: var(--accent-dark);
    color: white;
    box-shadow: none;
}

.toolbar-pill.subtle {
    background: transparent;
    color: var(--gray-500);
    border: none;
    padding: 0 12px;
}

.toolbar-pill.subtle:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    box-shadow: none;
}

.toolbar-pill.demo {
    background: var(--blue);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 13px;
    padding: 0 14px;
    height: 32px;
}

.toolbar-pill.demo:hover {
    background: var(--accent-dark);
    box-shadow: none;
}


/* Search overlay */
.search-overlay {
    display: none;
    flex: 1;
    min-width: 0;
    z-index: 5;
}

.search-overlay.open {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-overlay input {
    flex: 1;
    height: 38px;
    padding: 0 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-900);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

.search-overlay input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-overlay input::placeholder {
    color: var(--gray-400);
}

.toolbar-actions.hidden {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    gap: 0;
    transition: opacity 0.2s, visibility 0.2s;
}

/* === MAIN LAYOUT === */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.form-section {
    padding: 0;
    border-right: none;
}

.quote-summary {
    padding: 0;
    background: transparent;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-self: start;
}

/* === CARDS (SECTIONS) === */
.section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: none;
}

.section + .section {
    border-top: none;
    padding-top: 28px;
}

.section:first-child {
    border-top: none;
    padding-top: 28px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 0;
    padding-left: 0;
    border-bottom: none;
    border-left: none;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title.collapsible {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color 0.2s ease;
}

.section-title.collapsible:hover {
    color: var(--blue);
}

.collapse-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gray-400);
    border-bottom: 2px solid var(--gray-400);
    transform: rotate(-45deg);
    transition: transform 0.3s ease, border-color 0.2s;
    flex-shrink: 0;
}

.section-title.collapsible:hover .collapse-arrow {
    border-color: var(--blue);
}

.section-title.collapsible.open .collapse-arrow {
    transform: rotate(45deg);
}

.collapsible-content {
    overflow: hidden;
}


/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 6px;
    letter-spacing: 0;
    text-transform: none;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--gray-50);
    color: var(--gray-900);
    color-scheme: light;
    transition: all 0.2s ease;
    height: auto;
    letter-spacing: 0;
}

input:hover,
select:hover,
input[type="date"]:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

input:focus,
select:focus,
input[type="date"]:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--blue);
    box-shadow: none;
}

input::placeholder {
    color: var(--gray-400);
    font-size: 15px;
    font-weight: 400;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23737373' 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: 36px;
    cursor: pointer;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230066ff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

select option {
    background: var(--white);
    color: var(--gray-900);
}

.ev-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}

.ev-option {
    padding: 8px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 100px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ev-option:hover {
    border-color: var(--gray-400);
}

.ev-option.active {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
}

.ev-option-desc {
    font-weight: 500;
}

.ev-option-price {
    font-weight: 600;
    opacity: 0.7;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

/* Mini Stepper (Rows / Arrays) */
.mini-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-50);
}
.mini-stepper input {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--gray-200);
    border-right: 2px solid var(--gray-200);
    border-radius: 0;
    background: var(--white);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    color: var(--gray-900);
    -moz-appearance: textfield;
}
.mini-stepper input::-webkit-inner-spin-button,
.mini-stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.mini-stepper-btn {
    flex: 1;
    border: none;
    background: var(--gray-50);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    padding: 10px 14px;
    transition: all 0.15s ease;
    line-height: 1;
}
.mini-stepper-btn:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}
.mini-stepper-btn:active {
    background: var(--gray-300);
}

/* Addon Stepper (matches system config panel stepper, scaled down) */
.addon-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.addon-stepper-btn {
    width: 18px;
    height: 18px;
    font-size: 11px;
    padding: 0;
}
.addon-stepper-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}
.addon-stepper-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}
.addon-stepper-label {
    font-size: 9px;
    color: var(--gray-500);
    margin-top: 1px;
}

/* Panel Stepper */
.stepper-container {
    background: linear-gradient(135deg, var(--blue-light) 0%, #f0f7ff 100%);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-bottom: 12px;
}

.stepper-container.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.stepper-info {
    margin-right: auto;
}

.stepper-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.stepper-info p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

.stepper-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    font-size: 20px;
    color: var(--gray-700);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stepper-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.stepper-btn:active {
    transform: scale(0.97);
}

.stepper-value {
    text-align: center;
    min-width: 80px;
}

.stepper-value-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.stepper-value-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.stepper-result {
    text-align: right;
    padding-left: 24px;
    border-left: 1px solid rgba(0,0,0,0.08);
}

.stepper-result-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.stepper-result-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* System Type Tabs */
.sys-tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 4px;
}
.sys-tab {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--gray-500);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sys-tab:hover { color: var(--gray-700); }
.sys-tab.active {
    background: var(--gray-900);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Segmented Button Group */
.seg-group {
    display: flex;
    gap: 0;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.seg-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--gray-500);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: calc(var(--radius-sm) - 2px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.seg-btn:hover {
    color: var(--gray-700);
}

.seg-btn.active {
    background: var(--gray-900);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.form-group.disabled .seg-group {
    opacity: 0.5;
    pointer-events: none;
}

/* Gateway + Backup Scope row */
.gw-scope-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.gw-scope-row #backupScopeGroup {
    flex-shrink: 0;
}
.gw-scope-row #backupScopeGroup .seg-group {
    height: 50px;
    align-items: center;
}
.gw-scope-row #backupScopeGroup .seg-btn {
    padding: 12px 14px;
}

/* Power sensor display */
.power-sensor-display {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 400;
    background: var(--gray-50);
    color: var(--gray-900);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.power-sensor-status {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
}

/* === INFO / WARNING BOXES === */
.info-box {
    background: var(--blue-light);
    border: 1px solid rgba(0, 102, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--blue);
    margin: 10px 0;
}

/* CEC shield badges */
.cec-shield {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 10px 0;
    transition: all 0.3s ease;
}

.cec-shield.approved {
    background: var(--green-light);
    border: 1px solid rgba(0, 200, 83, 0.2);
    animation: cecAppear 0.4s ease;
}

.cec-shield.warning {
    background: var(--orange-light);
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.cec-shield svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cec-shield .shield-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cec-shield .shield-label {
    font-size: 13px;
    font-weight: 600;
}

.cec-shield.approved .shield-label {
    color: #008a3a;
}

.cec-shield.warning .shield-label {
    color: #b36b00;
}

.cec-shield .shield-detail {
    font-size: 12px;
    color: var(--gray-500);
}

@keyframes cecAppear {
    0% { opacity: 0; transform: translateY(-4px); }
    50% { box-shadow: 0 0 12px rgba(0, 200, 83, 0.15); }
    100% { opacity: 1; transform: translateY(0); box-shadow: none; }
}

/* === ACCESSORIES === */
.auto-accessory {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--green-light);
    border-radius: 100px;
    margin-bottom: 8px;
    margin-right: 8px;
    display: inline-flex;
    gap: 8px;
}

.auto-accessory .auto-acc-label {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 400;
}

.auto-accessory .auto-acc-badge {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
}

.auto-accessory .auto-acc-icon {
    width: 16px;
    height: 16px;
    color: var(--green);
    flex-shrink: 0;
}

.added-accessory .auto-acc-icon { color: var(--blue); }
.added-accessory .auto-acc-badge { color: var(--blue); }
.added-accessory { background: var(--blue-light); }

.acc-excluded { background: var(--gray-100); opacity: 0.6; }
.acc-excluded .auto-acc-icon { color: var(--gray-400); }
.acc-excluded .auto-acc-badge { color: var(--gray-400); }

.acc-pill-check {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-remove-acc {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    margin-left: auto;
}
.btn-remove-acc:hover { color: var(--red); }

.addon-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: 100px;
    margin-bottom: 8px;
    margin-right: 8px;
    display: inline-flex;
    transition: all 0.2s ease;
    cursor: default;
}

.addon-item:hover {
    background: var(--gray-100);
    border-color: transparent;
}

.addon-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--blue);
    flex-shrink: 0;
}

.addon-item label {
    margin: 0;
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 400;
    text-transform: none;
}

.addon-price {
    font-size: 14px;
    color: var(--gray-500);
    margin-left: 10px;
    white-space: nowrap;
    font-weight: 500;
}

.custom-addon {
    display: grid;
    grid-template-columns: 1fr 100px 36px;
    gap: 8px;
    margin-bottom: 8px;
}

.custom-addon button {
    background: rgba(239, 68, 68, 0.08);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.custom-addon button:hover {
    background: rgba(239, 68, 68, 0.15);
}

.add-custom-btn {
    background: var(--gray-50);
    color: var(--gray-500);
    border: 2px solid var(--gray-200);
    height: 38px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    margin-top: 4px;
    transition: all 0.2s ease;
}

.add-custom-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

/* === PRICE CARD / SUMMARY SIDEBAR === */
.price-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pc-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.pc-hero-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    position: relative;
}

.pc-hero-price {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
    position: relative;
    transition: transform 0.15s ease;
}

.pc-hero-price.price-updated {
    animation: pricePulse 0.5s ease;
}

@keyframes pricePulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.03); }
    50% { transform: scale(1); }
    100% { transform: scale(1); }
}

.pc-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    position: relative;
}

.pc-hero-system {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0;
    margin-top: 8px;
    position: relative;
    min-height: 16px;
}

/* === URGENCY BANNER === */
.pc-urgency {
    background: var(--orange-light);
    border-top: none;
    border-bottom: none;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: none;
}

.pc-urg-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}

.pc-urg-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    text-transform: none;
    letter-spacing: 0;
}

.pc-urg-date {
    font-size: 12px;
    color: #b36b00;
    font-weight: 400;
}

.pc-urg-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
}

.pc-urg-amount {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: -0.02em;
}

.pc-urg-future {
    font-size: 13px;
    color: #b36b00;
    font-weight: 400;
    text-decoration: line-through;
    text-decoration-color: rgba(255, 149, 0, 0.4);
}

/* Discount banner */
.pc-discount {
    background: var(--green-light);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    margin-top: -1px;
}

.pc-disc-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-disc-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

.pc-disc-sub {
    font-size: 12px;
    color: #1a7a3a;
    font-weight: 400;
}

.pc-disc-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pc-disc-dollar {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
}

.pc-disc-right input {
    width: 90px;
    text-align: right;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,200,83,0.3);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.02em;
    outline: none;
}

.pc-disc-right input:focus {
    border-color: var(--green);
    background: rgba(255,255,255,0.7);
}

/* Invoice breakdown */
.pc-invoice {
    padding: 20px 24px;
}

.pc-inv-section {
    margin-bottom: 12px;
}

.pc-inv-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.pc-inv-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0 3px 12px;
    font-size: 13px;
    color: var(--gray-500);
}

.pc-inv-row span:last-child {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pc-inv-row .qty {
    color: var(--gray-400);
    font-size: 12px;
}

.pc-inv-divider {
    border-top: 1px solid var(--gray-200);
    margin: 10px 0;
}

.pc-inv-total {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: var(--gray-900);
    font-weight: 600;
}

.pc-inv-total span:last-child {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pc-inv-total.pc-green {
    color: var(--green);
}

.pc-inv-section.pc-green .summary-row {
    color: var(--green);
}

.pc-inv-section.pc-green .pc-inv-title {
    color: var(--green);
}

.pc-inv-footer {
    padding-top: 12px;
    text-align: right;
    font-size: 12px;
    color: var(--gray-400);
}

/* Summary rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0 3px 12px;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 400;
}

.summary-row span:last-child {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.summary-row.summary-sub {
    padding-left: 24px;
    font-size: 12px;
    color: var(--gray-400);
}

.quote-summary::-webkit-scrollbar { width: 0; }

/* Remove/Info buttons on accessories */
.btn-remove-icon {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.btn-remove-icon:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--red);
}

.btn-remove-icon svg { width: 16px; height: 16px; }

.btn-info-icon {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: help;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    margin-left: 8px;
    position: relative;
    z-index: 1;
}

.btn-info-icon:hover {
    background: var(--blue-light);
    color: var(--blue);
    z-index: 1000;
}

.btn-info-icon svg { width: 15px; height: 15px; }

.acc-tooltip {
    display: none;
    position: fixed;
    width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    pointer-events: none;
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    text-align: left;
    font-weight: 400;
}

.acc-tooltip.visible { display: block; }

/* === DISABLED FIELD STATES === */
.form-group.disabled label {
    color: var(--gray-400);
}

.form-group.disabled input,
.form-group.disabled select,
.form-group.disabled .power-sensor-display {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    background: var(--gray-100);
    border-color: transparent;
}

.form-group.disabled input:hover,
.form-group.disabled select:hover {
    border-color: transparent;
    background: var(--gray-100);
}

/* === RATE CARD / ELECTRICAL UPGRADES === */
.rc-category-header {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    margin: 16px 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-200);
}

.rc-category-header:first-child {
    margin-top: 0;
}

.rc-auto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
}

.rc-auto-row:hover {
    background: var(--gray-50);
}

.rc-auto-row .rc-cost {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--gray-900);
    font-weight: 600;
}

.rc-check-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rc-check-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.rc-check-row:hover {
    background: var(--gray-100);
    border-color: transparent;
}

.rc-check-row input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--blue);
    flex-shrink: 0;
}

.rc-check-row label {
    margin: 0;
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 400;
    text-transform: none;
}

.rc-check-row .rc-cost {
    font-size: 14px;
    color: var(--gray-500);
    margin-left: 8px;
    white-space: nowrap;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

#rcAddonRows .auto-accessory {
    display: flex;
    width: 100%;
    border-radius: var(--radius);
    margin-right: 0;
    margin-bottom: 6px;
    box-sizing: border-box;
}
#rcAddonRows .auto-acc-label {
    flex: 1;
}

.rc-addon-header {
    margin: 12px 0 10px 0;
}

.rc-addon-dropdown {
    width: 100%;
}

.rc-addon-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 36px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.rc-addon-row .rc-addon-label {
    font-size: 14px;
    color: var(--gray-500);
    padding-left: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-addon-row .rc-addon-cost {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rc-addon-row input {
    font-size: 14px;
}

.rc-addon-row button {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.06);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-addon-row button:hover {
    background: rgba(239, 68, 68, 0.12);
}

.rc-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.rc-subtotal span:last-child {
    font-variant-numeric: tabular-nums;
    color: var(--blue);
}

/* === MOBILE FLOATING PRICE BAR === */
.mobile-price-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--gray-200);
    padding: 10px 20px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mpb-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gray-500);
}

.mpb-price {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    line-height: 1;
}

.mpb-sub {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 400;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .content {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .form-section { border-right: none; }
    .quote-summary { position: static; max-height: none; padding-bottom: 80px; }
    .toolbar { padding: 12px 16px; gap: 8px; }
    .toolbar-pill { height: 34px; padding: 0 14px; font-size: 13px; }
    .toolbar-pill svg { width: 12px; height: 12px; }
    .toolbar-divider { display: none; }
    .toolbar-rep-select { max-width: 120px; font-size: 13px; height: 34px; }
    .toolbar-logo-left { height: 32px; }
    .mobile-price-bar { display: flex; }
    .section-title { font-size: 16px; }
    .section { padding: 20px; }
    .rc-check-grid { grid-template-columns: 1fr; }
    .stepper-container { flex-wrap: wrap; gap: 16px; padding: 18px; }
    .stepper-info { width: 100%; }
    .stepper-result { border-left: none; padding-left: 0; border-top: 1px solid rgba(0,0,0,0.08); padding-top: 12px; }
    .stepper-value-num { font-size: 28px; }
    .stepper-result-value { font-size: 22px; }
}

/* === PRINT STYLES === */
@media print {
    body { background: #fff !important; color: #000 !important; overflow: visible !important; }
    #bomOverlay { position: static !important; background: #fff !important; overflow: visible !important; }
    .bom-buttons { display: none !important; }
    #bomOverlay h2 { color: #000 !important; }
    #bomCustomerHeader { background: #f9f9f9 !important; border-color: #ddd !important; color: #333 !important; }
    #bomCustomerHeader strong { color: #000 !important; }
    #bomCustomerHeader span { color: #555 !important; }
    #bomContent div[style*="background"] { background: #fff !important; border-color: #ddd !important; }
    #bomContent span { color: #333 !important; }
    #bomContent tr { color: #000 !important; }
    #bomContent tr td { color: #333 !important; }
    #bomContent th { color: #666 !important; border-color: #ccc !important; }
    #bomContent tr[style*="background"] { background: #fff !important; }
    #bomTotals { background: #f9f9f9 !important; border-color: #ddd !important; }
    #bomTotals td { color: #000 !important; }
    .toolbar, .content, .search-results-bar, .mobile-price-bar { display: none !important; }
}

/* Google Places Autocomplete dropdown */
.pac-container { z-index: 10000 !important; }
