/* ============================================
   TCO CALCULATOR STYLES
   Калькулятор совокупной стоимости владения (TCO)
   Total Cost of Ownership calculator
   Corporate dark blue + gold financial theme
   ============================================ */

/* ===================== CSS VARIABLES ===================== */
:root {
    --tco-primary: #1a5276;
    --tco-primary-light: #2980b9;
    --tco-primary-dark: #0e3c55;
    --tco-accent: #f39c12;
    --tco-accent-light: #f7b84e;
    --tco-accent-dark: #d4860b;
    --tco-success: #27ae60;
    --tco-success-light: #2ecc71;
    --tco-danger: #e74c3c;
    --tco-danger-light: #ec7063;
    --tco-warning: #e67e22;
    --tco-text: #2c3e50;
    --tco-text-light: #566573;
    --tco-text-muted: #7f8c8d;
    --tco-bg: #eaf2f8;
    --tco-bg-light: #f4f8fb;
    --tco-bg-gold: #fef9e7;
    --tco-border: #bdc3c7;
    --tco-border-light: #d5dbdb;
    --tco-white: #ffffff;
    --tco-shadow: 0 4px 20px rgba(26, 82, 118, 0.08);
    --tco-shadow-hover: 0 8px 30px rgba(26, 82, 118, 0.14);
    --tco-shadow-gold: 0 4px 16px rgba(243, 156, 18, 0.15);
    --tco-radius: 12px;
    --tco-radius-sm: 8px;
    --tco-radius-lg: 16px;
    --tco-transition: 0.3s ease;
}


/* ===================== PAGE LAYOUT ===================== */
.tco-calc-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--tco-text);
    line-height: 1.5;
}

.tco-calc-page *,
.tco-calc-page *::before,
.tco-calc-page *::after {
    box-sizing: border-box;
}


/* ===================== HERO SECTION ===================== */
.tco-calc-hero {
    text-align: center;
    padding: 44px 24px;
    background: var(--tco-white);
    border: 2px solid var(--tco-primary);
    border-radius: var(--tco-radius-lg);
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(26, 82, 118, 0.10);
    position: relative;
    overflow: hidden;
}

.tco-calc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tco-primary) 0%, var(--tco-accent) 50%, var(--tco-primary) 100%);
}

.tco-calc-hero h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: var(--tco-text);
}

.tco-hero-subtitle {
    font-size: 16px;
    color: var(--tco-text-light);
    margin: 0 0 16px 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tco-hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tco-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--tco-bg);
    border: 1px solid var(--tco-border-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--tco-text-light);
    font-weight: 500;
}

.tco-hero-badge .badge-icon {
    font-size: 14px;
}


/* ===================== WIZARD CONTAINER ===================== */
.tco-calc-container {
    background: var(--tco-white);
    border-radius: var(--tco-radius);
    box-shadow: var(--tco-shadow);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--tco-border-light);
}


/* ===================== WIZARD PROGRESS (3 steps) ===================== */
.tco-calc-page .wizard-progress {
    display: flex;
    padding: 20px;
    background: var(--tco-bg-light);
    border-bottom: 1px solid var(--tco-border-light);
    gap: 10px;
}

.tco-calc-page .wizard-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--tco-white);
    border-radius: var(--tco-radius-sm);
    border: 2px solid var(--tco-border-light);
    opacity: 0.5;
    transition: all var(--tco-transition);
    cursor: default;
}

.tco-calc-page .wizard-step.active {
    opacity: 1;
    border-color: var(--tco-primary);
    background: var(--tco-white);
}

.tco-calc-page .wizard-step.completed {
    opacity: 1;
    border-color: var(--tco-success);
    background: #f0fdf4;
}

.tco-calc-page .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tco-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--tco-text-light);
    flex-shrink: 0;
    transition: all var(--tco-transition);
}

.tco-calc-page .wizard-step.active .step-num {
    background: var(--tco-primary);
    color: var(--tco-white);
}

.tco-calc-page .wizard-step.completed .step-num {
    background: var(--tco-success);
    color: var(--tco-white);
}

.tco-calc-page .step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--tco-text-light);
    line-height: 1.3;
}

.tco-calc-page .wizard-step.active .step-label {
    color: var(--tco-text);
    font-weight: 600;
}

.tco-calc-page .wizard-step.completed .step-label {
    color: var(--tco-text);
}


/* ===================== WIZARD PANELS ===================== */
.tco-calc-page .wizard-panel {
    display: none;
    padding: 30px;
}

.tco-calc-page .wizard-panel.active {
    display: block;
    animation: tcoFadeIn 0.3s ease;
}

@keyframes tcoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tco-calc-page .wizard-panel h2 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: var(--tco-text);
    font-weight: 700;
}

.tco-calc-page .step-hint {
    color: var(--tco-text-light);
    margin: 0 0 25px 0;
    font-size: 14px;
    line-height: 1.6;
}


/* ===================== STEP 1: PRESET CARDS ===================== */
.tco-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.tco-preset-card {
    position: relative;
    padding: 24px 20px;
    background: var(--tco-white);
    border: 2px solid var(--tco-border-light);
    border-radius: var(--tco-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.tco-preset-card:hover {
    border-color: var(--tco-primary-light);
    background: var(--tco-bg-light);
    box-shadow: 0 4px 16px rgba(26, 82, 118, 0.08);
    transform: translateY(-2px);
}

.tco-preset-card.selected {
    border-color: var(--tco-accent);
    background: var(--tco-bg-gold);
    box-shadow: var(--tco-shadow-gold);
}

.tco-preset-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--tco-accent);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.tco-preset-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tco-preset-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tco-text);
    margin-bottom: 6px;
}

.tco-preset-card.selected .tco-preset-title {
    color: var(--tco-primary-dark);
}

.tco-preset-desc {
    font-size: 13px;
    color: var(--tco-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tco-preset-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.tco-preset-spec {
    display: inline-block;
    padding: 3px 10px;
    background: var(--tco-bg);
    border-radius: 12px;
    font-size: 11px;
    color: var(--tco-text-light);
    font-weight: 500;
}

.tco-preset-card.selected .tco-preset-spec {
    background: rgba(243, 156, 18, 0.15);
    color: var(--tco-accent-dark);
}

.tco-preset-card.tco-highlight {
    animation: tcoHighlightPulse 0.5s ease 3;
}

@keyframes tcoHighlightPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
    50% { box-shadow: 0 0 0 8px rgba(243, 156, 18, 0.3); }
}


/* ===================== STEP 2: FORM ELEMENTS ===================== */
.tco-calc-page .tco-form-section {
    margin-bottom: 30px;
}

.tco-calc-page .tco-form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tco-primary);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tco-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tco-calc-page .form-row {
    margin-bottom: 22px;
}

.tco-calc-page .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tco-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.tco-calc-page .form-label .required {
    color: var(--tco-danger);
    margin-left: 2px;
}

.tco-calc-page .form-hint {
    font-size: 13px;
    color: var(--tco-text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* Two-column row */
.tco-calc-page .form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.tco-calc-page .form-half {
    width: 100%;
}

/* Three-column row */
.tco-calc-page .form-row--third {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

/* Input fields */
.tco-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 2px solid var(--tco-border);
    border-radius: var(--tco-radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--tco-text);
    background: var(--tco-white);
    transition: border-color var(--tco-transition), box-shadow var(--tco-transition);
}

.tco-input:focus {
    outline: none;
    border-color: var(--tco-accent);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

.tco-input:hover:not(:focus) {
    border-color: var(--tco-primary);
}

.tco-input::placeholder {
    color: #aab;
}

.tco-input.small {
    width: 120px;
    text-align: center;
}

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

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

/* Select fields */
.tco-select {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 2px solid var(--tco-border);
    border-radius: var(--tco-radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--tco-text);
    background: var(--tco-white);
    cursor: pointer;
    transition: border-color var(--tco-transition), box-shadow var(--tco-transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23566573' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.tco-select:focus {
    outline: none;
    border-color: var(--tco-accent);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

.tco-select:hover:not(:focus) {
    border-color: var(--tco-primary);
}

/* Input with unit suffix */
.tco-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tco-input-group .tco-input {
    flex: 1;
}

.tco-input-unit {
    font-size: 14px;
    color: var(--tco-text-light);
    font-weight: 500;
    white-space: nowrap;
}

/* Range slider */
.tco-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--tco-primary) 0%, var(--tco-accent) 100%);
    outline: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.tco-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tco-white);
    border: 3px solid var(--tco-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(26, 82, 118, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tco-range::-webkit-slider-thumb:hover {
    border-color: var(--tco-accent);
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

.tco-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tco-white);
    border: 3px solid var(--tco-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(26, 82, 118, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tco-range::-moz-range-thumb:hover {
    border-color: var(--tco-accent);
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

.tco-range::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--tco-primary) 0%, var(--tco-accent) 100%);
}

/* Slider container */
.tco-slider-container {
    position: relative;
    padding: 8px 0 4px;
}

.tco-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--tco-text-muted);
}

.tco-range-value {
    display: inline-block;
    min-width: 56px;
    padding: 4px 12px;
    background: var(--tco-primary);
    color: var(--tco-white);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-left: 12px;
    vertical-align: middle;
}

.tco-range-value.gold {
    background: var(--tco-accent);
    color: var(--tco-white);
}

/* Error state */
.tco-error-field {
    border-color: var(--tco-danger) !important;
    background-color: #fdf2f2 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
}

.tco-error-message {
    color: var(--tco-danger);
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}


/* ===================== ADVANCED / COLLAPSIBLE BLOCK ===================== */
.tco-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--tco-bg-light);
    border: 1px dashed var(--tco-border);
    border-radius: var(--tco-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--tco-primary);
    transition: all 0.2s;
    user-select: none;
    margin-bottom: 0;
}

.tco-advanced-toggle:hover {
    background: var(--tco-bg);
    border-color: var(--tco-primary);
}

.tco-advanced-toggle .toggle-arrow {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 12px;
}

.tco-advanced-toggle.open .toggle-arrow {
    transform: rotate(90deg);
}

.tco-advanced-toggle .toggle-icon {
    font-size: 18px;
}

.tco-advanced-panel {
    display: none;
    margin-top: 0;
    padding: 24px;
    background: var(--tco-bg-light);
    border: 1px dashed var(--tco-border);
    border-top: none;
    border-radius: 0 0 var(--tco-radius-sm) var(--tco-radius-sm);
    animation: tcoFadeIn 0.3s ease;
}

.tco-advanced-panel.visible {
    display: block;
}

.tco-advanced-panel .form-row {
    margin-bottom: 18px;
}

.tco-advanced-panel .form-row:last-child {
    margin-bottom: 0;
}

.tco-advanced-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tco-primary);
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tco-advanced-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--tco-accent);
    border-radius: 2px;
}


/* ===================== CHECKBOX / RADIO ===================== */
.tco-calc-page .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--tco-border-light);
    border-radius: var(--tco-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--tco-white);
    font-size: 14px;
    color: var(--tco-text);
    line-height: 1.5;
}

.tco-calc-page .checkbox-label:hover {
    border-color: var(--tco-accent);
    background: var(--tco-bg-light);
}

.tco-calc-page .checkbox-label input[type="checkbox"] {
    accent-color: var(--tco-primary);
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    flex-shrink: 0;
}

.tco-calc-page .checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 500;
}

.tco-calc-page .radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tco-calc-page .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--tco-border);
    border-radius: var(--tco-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--tco-white);
    flex: 1;
    min-width: 140px;
}

.tco-calc-page .radio-item:hover {
    border-color: var(--tco-accent);
    background: var(--tco-bg-light);
}

.tco-calc-page .radio-item.selected,
.tco-calc-page .radio-item:has(input[type="radio"]:checked) {
    border-color: var(--tco-primary);
    background: var(--tco-bg);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.08);
}

.tco-calc-page .radio-item input[type="radio"] {
    accent-color: var(--tco-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tco-calc-page .radio-item input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--tco-primary);
}

.tco-calc-page .radio-item span {
    font-size: 14px;
    color: var(--tco-text);
}


/* ===================== WIZARD NAVIGATION ===================== */
.tco-calc-page .wizard-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--tco-border-light);
    margin-top: 30px;
    gap: 12px;
}

.tco-calc-page .btn-wizard {
    padding: 14px 32px;
    border: none;
    border-radius: var(--tco-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tco-calc-page .btn-wizard.btn-back {
    background: #f0f4f8;
    color: var(--tco-text-light);
    border: 2px solid var(--tco-border);
}

.tco-calc-page .btn-wizard.btn-back:hover {
    background: var(--tco-border-light);
    border-color: var(--tco-primary);
    color: var(--tco-text);
}

.tco-calc-page .btn-wizard.btn-next {
    background: var(--tco-primary);
    color: var(--tco-white);
    border: 2px solid var(--tco-primary);
}

.tco-calc-page .btn-wizard.btn-next:hover {
    background: var(--tco-primary-dark);
    border-color: var(--tco-primary-dark);
}

.tco-calc-page .btn-wizard.btn-next:disabled {
    background: var(--tco-border);
    border-color: var(--tco-border);
    cursor: not-allowed;
    opacity: 0.7;
}

.tco-calc-page .btn-wizard.btn-calculate {
    background: var(--tco-accent);
    color: var(--tco-white);
    border: 2px solid var(--tco-accent);
    font-size: 16px;
    padding: 14px 40px;
}

.tco-calc-page .btn-wizard.btn-calculate:hover {
    background: var(--tco-accent-dark);
    border-color: var(--tco-accent-dark);
    box-shadow: var(--tco-shadow-gold);
}


/* ===================== STEP 3: RESULTS — SUMMARY CARDS ===================== */
.tco-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.tco-summary-card {
    background: var(--tco-white);
    border: 1px solid var(--tco-border-light);
    border-radius: var(--tco-radius);
    padding: 22px 18px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.tco-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 82, 118, 0.10);
}

.tco-summary-card .card-icon {
    font-size: 30px;
    margin-bottom: 8px;
    display: block;
}

.tco-summary-card .card-label {
    font-size: 12px;
    color: var(--tco-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.tco-summary-card .card-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--tco-text);
    line-height: 1.2;
}

.tco-summary-card .card-unit {
    font-size: 13px;
    color: var(--tco-text-light);
    font-weight: 400;
    margin-left: 3px;
}

.tco-summary-card .card-note {
    font-size: 12px;
    color: var(--tco-text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* Optimal material card — gold accent */
.tco-summary-card.card-optimal {
    background: linear-gradient(135deg, #fef9e7 0%, #fdebd0 100%);
    border-color: var(--tco-accent);
    border-width: 2px;
}

.tco-summary-card.card-optimal .card-value {
    color: var(--tco-primary-dark);
}

/* Savings card — green accent */
.tco-summary-card.card-savings {
    background: linear-gradient(135deg, #eafaf1 0%, #d5f5e3 100%);
    border-color: var(--tco-success);
    border-width: 2px;
}

.tco-summary-card.card-savings .card-value {
    color: var(--tco-success);
}

/* Payback card */
.tco-summary-card.card-payback {
    background: linear-gradient(135deg, var(--tco-bg) 0%, #d4e6f1 100%);
    border-color: var(--tco-primary-light);
    border-width: 2px;
}

.tco-summary-card.card-payback .card-value {
    color: var(--tco-primary);
}


/* ===================== WINNER BADGE ===================== */
.tco-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--tco-accent) 0%, #f7dc6f 100%);
    color: var(--tco-white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    white-space: nowrap;
}

.tco-winner-badge .badge-icon {
    font-size: 14px;
}


/* ===================== SAVINGS VALUE ===================== */
.tco-savings-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--tco-success);
    line-height: 1.2;
}

.tco-savings-value.large {
    font-size: 40px;
}

.tco-savings-label {
    font-size: 13px;
    color: var(--tco-text-muted);
    margin-top: 4px;
}

.tco-savings-percent {
    display: inline-block;
    padding: 3px 10px;
    background: #d5f5e3;
    color: var(--tco-success);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 8px;
}

.tco-loss-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--tco-danger);
    line-height: 1.2;
}


/* ===================== COMPARISON TABLE ===================== */
.tco-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 24px;
    background: var(--tco-white);
    border-radius: var(--tco-radius-sm);
    overflow: hidden;
    border: 1px solid var(--tco-border-light);
}

.tco-compare-table thead {
    background: var(--tco-primary-dark);
}

.tco-compare-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--tco-white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--tco-primary);
}

.tco-compare-table th:first-child {
    background: var(--tco-primary-dark);
}

.tco-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tco-border-light);
    color: var(--tco-text);
    vertical-align: middle;
}

.tco-compare-table tbody tr:hover {
    background: var(--tco-bg-light);
}

.tco-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.tco-compare-table td:first-child {
    font-weight: 600;
    color: var(--tco-text);
    background: #fafbfc;
    border-right: 1px solid var(--tco-border-light);
    white-space: nowrap;
}

/* Winner column highlight */
.tco-compare-table th.tco-winner {
    background: var(--tco-accent);
    color: var(--tco-white);
    position: relative;
}

.tco-compare-table td.tco-winner {
    background: var(--tco-bg-gold);
    font-weight: 600;
    color: var(--tco-primary-dark);
}

.tco-compare-table tbody tr:hover td.tco-winner {
    background: #fdf2d1;
}

/* Totals row */
.tco-compare-table tr.tco-total-row {
    background: var(--tco-bg);
    font-weight: 700;
}

.tco-compare-table tr.tco-total-row td {
    border-top: 2px solid var(--tco-primary);
    border-bottom: none;
    font-size: 15px;
    padding: 14px 16px;
}

.tco-compare-table tr.tco-total-row td.tco-winner {
    background: linear-gradient(135deg, #fef9e7 0%, #fdebd0 100%);
    color: var(--tco-primary-dark);
}

/* Table wrapper for scroll */
.tco-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: var(--tco-radius-sm);
    border: 1px solid var(--tco-border-light);
}

.tco-table-wrapper .tco-compare-table {
    border: none;
    margin-bottom: 0;
}


/* ===================== CSS-ONLY BAR CHART ===================== */
.tco-chart {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--tco-white);
    border: 1px solid var(--tco-border-light);
    border-radius: var(--tco-radius);
}

.tco-chart-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--tco-text);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tco-chart-area {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    min-height: 260px;
    padding: 20px 0 0;
    border-bottom: 2px solid var(--tco-border-light);
    position: relative;
}

/* Grid lines */
.tco-chart-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent calc(25% - 1px),
        var(--tco-border-light) calc(25% - 1px),
        var(--tco-border-light) 25%
    );
    pointer-events: none;
    z-index: 0;
}

.tco-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.tco-bar-stack {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
    justify-content: center;
}

.tco-bar {
    width: 44px;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease-out;
    position: relative;
    cursor: default;
}

.tco-bar.bar-pp {
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
}

.tco-bar.bar-pe {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
}

.tco-bar.bar-pvdf {
    background: linear-gradient(180deg, #9b59b6 0%, #8e44ad 100%);
}

.tco-bar.bar-steel {
    background: linear-gradient(180deg, #95a5a6 0%, #7f8c8d 100%);
}

.tco-bar.bar-stainless {
    background: linear-gradient(180deg, #bdc3c7 0%, #95a5a6 100%);
}

.tco-bar.bar-frp {
    background: linear-gradient(180deg, #e67e22 0%, #d35400 100%);
}

.tco-bar.bar-winner {
    background: linear-gradient(180deg, var(--tco-accent-light) 0%, var(--tco-accent) 100%);
    box-shadow: 0 0 12px rgba(243, 156, 18, 0.3);
}

.tco-bar-value {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--tco-text);
    white-space: nowrap;
}

.tco-bar-label {
    margin-top: 10px;
    font-size: 12px;
    color: var(--tco-text-light);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}

/* Payback marker */
.tco-payback-marker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.tco-payback-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tco-danger);
    border-style: dashed;
}

.tco-payback-tag {
    position: absolute;
    right: 0;
    padding: 3px 10px;
    background: var(--tco-danger);
    color: var(--tco-white);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Chart legend */
.tco-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
}

.tco-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tco-text-light);
}

.tco-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Year-by-year chart (horizontal) */
.tco-chart-horizontal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.tco-hbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tco-hbar-label {
    width: 80px;
    font-size: 13px;
    color: var(--tco-text-light);
    text-align: right;
    flex-shrink: 0;
    font-weight: 500;
}

.tco-hbar-track {
    flex: 1;
    height: 28px;
    background: var(--tco-bg);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.tco-hbar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-out;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tco-white);
    white-space: nowrap;
}

.tco-hbar-fill.fill-primary {
    background: linear-gradient(90deg, var(--tco-primary) 0%, var(--tco-primary-light) 100%);
}

.tco-hbar-fill.fill-accent {
    background: linear-gradient(90deg, var(--tco-accent) 0%, var(--tco-accent-light) 100%);
}

.tco-hbar-fill.fill-success {
    background: linear-gradient(90deg, var(--tco-success) 0%, var(--tco-success-light) 100%);
}

.tco-hbar-fill.fill-danger {
    background: linear-gradient(90deg, var(--tco-danger) 0%, var(--tco-danger-light) 100%);
}

/* Year group in horizontal chart */
.tco-hbar-year-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tco-border-light);
}

.tco-hbar-year-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tco-hbar-year-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--tco-text);
    margin-bottom: 8px;
}

/* Winner bar highlight */
.tco-hbar-winner {
    box-shadow: 0 0 0 2px var(--tco-accent);
}

/* Payback note under chart */
.tco-chart-payback {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(243, 156, 18, 0.08);
    border-left: 3px solid var(--tco-accent);
    border-radius: 0 var(--tco-radius-sm) var(--tco-radius-sm) 0;
    font-size: 14px;
    color: var(--tco-text);
}


/* ===================== ACCORDION / BREAKDOWN ===================== */
.tco-breakdown {
    margin-bottom: 24px;
}

.tco-breakdown-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--tco-text);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tco-accordion-item {
    background: var(--tco-white);
    border: 1px solid var(--tco-border-light);
    border-radius: var(--tco-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.tco-accordion-item:hover {
    box-shadow: 0 2px 8px rgba(26, 82, 118, 0.06);
}

.tco-accordion-item:last-child {
    margin-bottom: 0;
}

.tco-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    gap: 12px;
}

.tco-accordion-header:hover {
    background: var(--tco-bg-light);
}

.tco-accordion-header .acc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tco-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tco-accordion-header .acc-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--tco-primary);
    white-space: nowrap;
}

.tco-accordion-header .acc-arrow {
    font-size: 12px;
    color: var(--tco-text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.tco-accordion-item.open .tco-accordion-header .acc-arrow {
    transform: rotate(90deg);
}

.tco-accordion-item.open .tco-accordion-header {
    border-bottom: 1px solid var(--tco-border-light);
    background: var(--tco-bg-light);
}

.tco-accordion-body {
    display: none;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--tco-text-light);
    line-height: 1.7;
}

.tco-accordion-item.open .tco-accordion-body {
    display: block;
    animation: tcoFadeIn 0.25s ease;
}

/* Breakdown detail rows inside accordion */
.tco-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--tco-border-light);
    font-size: 14px;
}

.tco-detail-row:last-child {
    border-bottom: none;
}

.tco-detail-row .detail-label {
    color: var(--tco-text-light);
}

.tco-detail-row .detail-value {
    font-weight: 600;
    color: var(--tco-text);
}

.tco-detail-row .detail-value.positive {
    color: var(--tco-success);
}

.tco-detail-row .detail-value.negative {
    color: var(--tco-danger);
}

.tco-detail-row.total-row {
    border-top: 2px solid var(--tco-border);
    border-bottom: none;
    padding-top: 12px;
    margin-top: 4px;
}

.tco-detail-row.total-row .detail-label {
    font-weight: 700;
    color: var(--tco-text);
}

.tco-detail-row.total-row .detail-value {
    font-size: 16px;
    font-weight: 700;
}

/* Material color dot */
.tco-mat-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Winner highlight */
.tco-accordion-winner {
    border-color: var(--tco-accent);
    box-shadow: 0 0 0 1px var(--tco-accent);
}

/* Breakdown summary inside accordion */
.tco-bd-summary {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--tco-border-light);
}

/* Breakdown table inside accordion */
.tco-bd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tco-bd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.tco-bd-table th {
    background: var(--tco-bg-light);
    padding: 8px 10px;
    text-align: right;
    font-weight: 600;
    color: var(--tco-text);
    border-bottom: 2px solid var(--tco-border);
    font-size: 12px;
}

.tco-bd-table th:first-child {
    text-align: left;
}

.tco-bd-table td {
    padding: 6px 10px;
    text-align: right;
    border-bottom: 1px solid var(--tco-border-light);
    color: var(--tco-text-light);
}

.tco-bd-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--tco-text);
}

.tco-bd-table tr:hover {
    background: var(--tco-bg-light);
}

.tco-bd-table .tco-row-subtotal {
    font-weight: 700;
    background: rgba(26, 82, 118, 0.06);
}

.tco-bd-table .tco-row-subtotal td {
    border-top: 2px solid var(--tco-border);
}

.tco-bd-table .tco-row-capex {
    background: rgba(26, 82, 118, 0.04);
    font-weight: 600;
}

.tco-bd-table .tco-row-replace {
    background: rgba(243, 156, 18, 0.06);
}

.tco-bd-table .tco-row-replace td {
    color: var(--tco-accent);
    font-weight: 600;
}


/* ===================== WARNINGS / INFO BLOCKS ===================== */
.tco-warnings {
    margin-bottom: 24px;
}

.tco-warning-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--tco-radius-sm);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.tco-warning-item:last-child {
    margin-bottom: 0;
}

.tco-warning-item.warning-orange {
    background: #fff8e1;
    border-left: 4px solid var(--tco-warning);
    color: #6d4c00;
}

.tco-warning-item.warning-red {
    background: #fdedec;
    border-left: 4px solid var(--tco-danger);
    color: #78281f;
}

.tco-warning-item.warning-blue {
    background: var(--tco-bg);
    border-left: 4px solid var(--tco-primary-light);
    color: var(--tco-primary-dark);
}

.tco-warning-item.warning-green {
    background: #eafaf1;
    border-left: 4px solid var(--tco-success);
    color: #1e8449;
}

.tco-warning-item.warning-gold {
    background: var(--tco-bg-gold);
    border-left: 4px solid var(--tco-accent);
    color: #7d6608;
}

.tco-warning-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.tco-warning-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.tco-warning-text strong {
    font-weight: 600;
}

.tco-warning-item.tco-warning-warning {
    background: #fff8e1;
    border-left: 4px solid var(--tco-accent);
    color: #6d4c00;
}

.tco-warning-item.tco-warning-info {
    background: var(--tco-bg);
    border-left: 4px solid var(--tco-primary-light);
    color: var(--tco-primary-dark);
}

.tco-warning-icon-warn {
    color: var(--tco-accent);
}

.tco-warning-icon-info {
    color: var(--tco-primary-light);
}


/* ===================== MATERIAL EXCLUDED ===================== */
.tco-material-excluded {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
    filter: grayscale(80%);
}

.tco-material-excluded::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(231, 76, 60, 0.06) 8px,
        rgba(231, 76, 60, 0.06) 16px
    );
    border-radius: inherit;
    pointer-events: none;
}

.tco-excluded-reason {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #fdedec;
    color: var(--tco-danger);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}


/* ===================== PRODUCTS GRID ===================== */
.tco-products-section {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--tco-bg-light);
    border: 1px solid var(--tco-border-light);
    border-radius: var(--tco-radius);
}

.tco-products-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--tco-text);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tco-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tco-product-card {
    background: var(--tco-white);
    border-radius: var(--tco-radius);
    padding: 16px;
    border: 2px solid var(--tco-border-light);
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: var(--tco-text);
    transition: all 0.2s;
    align-items: flex-start;
}

.tco-product-card:hover {
    border-color: var(--tco-primary);
    box-shadow: 0 4px 16px rgba(26, 82, 118, 0.10);
    text-decoration: none;
    color: var(--tco-text);
}

.tco-product-card.recommended {
    border-color: var(--tco-accent);
    box-shadow: var(--tco-shadow-gold);
}

.tco-product-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: var(--tco-radius-sm);
    background: #f8f9fa;
    flex-shrink: 0;
    padding: 4px;
}

.tco-product-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.tco-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--tco-radius-sm);
    background: #f8f9fa;
    padding: 4px;
}

.tco-product-no-image {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tco-bg);
    border-radius: var(--tco-radius-sm);
    color: var(--tco-text-muted);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.tco-product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--tco-text);
}

.tco-product-volume {
    font-size: 13px;
    color: var(--tco-text-muted);
    margin-bottom: 4px;
}

.tco-product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--tco-primary);
}

.tco-product-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.tco-products-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: var(--tco-text-muted);
    font-size: 14px;
}

.tco-products-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--tco-border-light);
    border-top-color: var(--tco-primary);
    border-radius: 50%;
    animation: tcoSpin 0.8s linear infinite;
    margin: 0 auto 10px;
}

.tco-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: var(--tco-text-muted);
    font-size: 14px;
    background: var(--tco-bg-light);
    border-radius: var(--tco-radius-sm);
}


/* ===================== TOOLTIP ===================== */
.tco-tooltip {
    position: relative;
    display: inline-block;
}

.tco-tooltip .tco-tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tco-primary-dark);
    color: var(--tco-white);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.tco-tooltip .tco-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--tco-primary-dark);
}

.tco-tooltip:hover .tco-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tco-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--tco-accent);
    color: var(--tco-white);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
    transition: background var(--tco-transition);
    vertical-align: middle;
    line-height: 1;
}

.tco-help-trigger:hover {
    background: var(--tco-primary);
}


/* ===================== LEAD GATE (PDF download form) ===================== */
.tco-calc-page .lead-gate {
    margin-top: 24px;
    padding: 24px;
    background: var(--tco-bg-light);
    border: 2px solid var(--tco-border);
    border-radius: var(--tco-radius);
    animation: tcoFadeIn 0.3s ease;
}

.tco-calc-page .lead-gate-title {
    font-weight: 600;
    font-size: 17px;
    color: var(--tco-primary);
    margin-bottom: 6px;
}

.tco-calc-page .lead-gate-subtitle {
    font-size: 13px;
    color: var(--tco-text-muted);
    margin-bottom: 16px;
}

.tco-calc-page .lead-gate-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.tco-calc-page .lead-gate-fields .tco-input {
    flex: 1;
}

.tco-calc-page .lead-gate-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tco-text-light);
    margin-bottom: 14px;
    cursor: pointer;
}

.tco-calc-page .lead-gate-consent input[type="checkbox"] {
    accent-color: var(--tco-primary);
    width: 16px;
    height: 16px;
}

.tco-calc-page .lead-gate-consent.tco-error-field {
    color: var(--tco-danger);
}

.tco-calc-page .lead-gate-consent a {
    color: var(--tco-primary);
    text-decoration: underline;
}

.tco-calc-page .lead-gate-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--tco-primary) 0%, var(--tco-accent) 100%);
    color: var(--tco-white);
    border: none;
    border-radius: var(--tco-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.tco-calc-page .lead-gate-btn:hover {
    background: linear-gradient(135deg, var(--tco-primary-dark) 0%, var(--tco-primary) 100%);
    box-shadow: 0 4px 16px rgba(26, 82, 118, 0.2);
}

.tco-calc-page .lead-gate-btn:disabled {
    background: var(--tco-border);
    cursor: not-allowed;
}

.tco-calc-page .lead-gate-success {
    padding: 16px;
    background: #eafaf1;
    border: 1px solid #82e0aa;
    border-radius: var(--tco-radius-sm);
    color: #1e8449;
    font-size: 14px;
    line-height: 1.6;
}

.tco-calc-page .lead-gate-success a {
    color: var(--tco-primary);
    font-weight: 600;
}

.tco-calc-page .lead-gate-error {
    padding: 14px;
    background: #fdedec;
    border: 1px solid #f1948a;
    border-radius: var(--tco-radius-sm);
    color: var(--tco-danger);
    font-size: 14px;
    margin-top: 10px;
}


/* ===================== CTA BUTTONS ===================== */
.tco-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--tco-primary);
    color: var(--tco-white);
    border: 2px solid var(--tco-primary);
    border-radius: var(--tco-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tco-btn-primary:hover {
    background: var(--tco-primary-dark);
    border-color: var(--tco-primary-dark);
    color: var(--tco-white);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(26, 82, 118, 0.2);
}

.tco-btn-primary:disabled {
    background: var(--tco-border);
    border-color: var(--tco-border);
    cursor: not-allowed;
    opacity: 0.7;
}

.tco-btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--tco-primary) 0%, var(--tco-accent) 100%);
    color: var(--tco-white);
    border: none;
    border-radius: var(--tco-radius);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.2);
}

.tco-btn-pdf:hover {
    background: linear-gradient(135deg, var(--tco-primary-dark) 0%, var(--tco-primary) 100%);
    box-shadow: 0 6px 20px rgba(26, 82, 118, 0.3);
    transform: translateY(-1px);
    color: var(--tco-white);
    text-decoration: none;
}

.tco-btn-pdf:disabled {
    background: var(--tco-border);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.tco-btn-pdf .btn-icon {
    font-size: 18px;
}

.tco-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--tco-accent);
    color: var(--tco-white);
    border: none;
    border-radius: var(--tco-radius);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: var(--tco-shadow-gold);
}

.tco-btn-cta:hover {
    background: var(--tco-accent-dark);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.35);
    transform: translateY(-1px);
    color: var(--tco-white);
    text-decoration: none;
}

/* Outlined / secondary button */
.tco-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--tco-white);
    color: var(--tco-primary);
    border: 2px solid var(--tco-primary);
    border-radius: var(--tco-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tco-btn-outline:hover {
    background: var(--tco-bg);
    color: var(--tco-primary-dark);
    border-color: var(--tco-primary-dark);
    text-decoration: none;
}

/* Secondary button (alias for outline, used in product cards & error) */
.tco-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--tco-white);
    color: var(--tco-primary);
    border: 2px solid var(--tco-primary);
    border-radius: var(--tco-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tco-btn-secondary:hover {
    background: var(--tco-bg);
    color: var(--tco-primary-dark);
    border-color: var(--tco-primary-dark);
    text-decoration: none;
}

/* Recalculate button */
.tco-btn-recalc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--tco-bg-light);
    color: var(--tco-text);
    border: 2px solid var(--tco-border);
    border-radius: var(--tco-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tco-btn-recalc:hover {
    border-color: var(--tco-primary);
    background: var(--tco-bg);
}

/* Actions row */
.tco-result-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tco-result-actions > * {
    flex: 1;
    min-width: 200px;
}


/* ===================== RESULT SECTIONS / CARDS ===================== */
.tco-result-card {
    background: var(--tco-white);
    border-radius: var(--tco-radius);
    box-shadow: var(--tco-shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--tco-border-light);
}

.tco-result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--tco-bg);
    margin-bottom: 25px;
}

.tco-result-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.tco-result-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--tco-text);
    line-height: 1.3;
}

.tco-result-header-sub {
    font-size: 14px;
    color: var(--tco-text-light);
    margin-top: 4px;
}

.tco-result-section {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--tco-radius);
    background: var(--tco-white);
}

.tco-result-section:last-child {
    margin-bottom: 0;
}

.tco-result-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--tco-text);
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ===================== CTA SECTION (bottom) ===================== */
.tco-cta {
    background: linear-gradient(135deg, var(--tco-bg) 0%, #d4e6f1 100%);
    border: 1px solid var(--tco-border);
    color: var(--tco-text);
    padding: 48px 40px;
    border-radius: var(--tco-radius-lg);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.tco-cta::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.tco-cta::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(26, 82, 118, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.tco-cta h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
    font-weight: 700;
    color: var(--tco-text);
}

.tco-cta p {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: var(--tco-text-light);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

.tco-cta .button {
    background: #B8FA2C !important;
    color: #000 !important;
}


/* ===================== LEGAL MODAL OVERLAY ===================== */
.tco-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 60, 85, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.tco-modal-overlay.active {
    display: flex;
    animation: tcoFadeIn 0.25s ease;
}

.tco-modal {
    background: var(--tco-white);
    border-radius: var(--tco-radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(14, 60, 85, 0.3);
    position: relative;
}

.tco-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--tco-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--tco-white);
    z-index: 1;
    border-radius: var(--tco-radius-lg) var(--tco-radius-lg) 0 0;
}

.tco-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--tco-text);
}

.tco-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tco-bg);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--tco-text-light);
    transition: all 0.2s;
}

.tco-modal-close:hover {
    background: var(--tco-border-light);
    color: var(--tco-text);
}

.tco-modal-body {
    padding: 24px 28px;
    font-size: 14px;
    color: var(--tco-text-light);
    line-height: 1.7;
}

.tco-modal-body h4 {
    color: var(--tco-text);
    margin: 20px 0 8px;
    font-size: 15px;
}

.tco-modal-body p {
    margin: 0 0 12px 0;
}

.tco-modal-body ul {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.tco-modal-body li {
    margin-bottom: 4px;
}

.tco-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--tco-border-light);
    text-align: right;
    position: sticky;
    bottom: 0;
    background: var(--tco-white);
    border-radius: 0 0 var(--tco-radius-lg) var(--tco-radius-lg);
}


/* ===================== INFO BLOCK ===================== */
.tco-info-block {
    margin-bottom: 40px;
}

.tco-info-block h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--tco-text);
    font-weight: 700;
}

.tco-info-block .section-subtitle {
    text-align: center;
    color: var(--tco-text-light);
    font-size: 15px;
    margin-bottom: 28px;
}

.tco-calc-page .info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tco-calc-page .info-card {
    background: var(--tco-white);
    border-radius: var(--tco-radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--tco-shadow);
    border: 1px solid var(--tco-border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tco-calc-page .info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tco-shadow-hover);
}


.tco-calc-page .info-card h4 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: var(--tco-text);
    font-weight: 600;
}

.tco-calc-page .info-card p {
    font-size: 13px;
    color: var(--tco-text-light);
    margin: 0;
    line-height: 1.6;
}


/* ===================== FAQ ACCORDION ===================== */
.tco-faq {
    margin-bottom: 40px;
}

.tco-faq h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--tco-text);
    font-weight: 700;
}

.tco-faq details {
    background: var(--tco-white);
    border: 1px solid var(--tco-border-light);
    border-radius: var(--tco-radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.tco-faq details:hover {
    box-shadow: 0 2px 8px rgba(26, 82, 118, 0.06);
}

.tco-faq details[open] {
    border-color: var(--tco-border);
    box-shadow: 0 2px 12px rgba(26, 82, 118, 0.08);
}

.tco-faq summary {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tco-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.2s;
    user-select: none;
}

.tco-faq summary::-webkit-details-marker {
    display: none;
}

.tco-faq summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--tco-accent);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tco-bg-gold);
    transition: all 0.2s;
}

.tco-faq details[open] summary::after {
    content: '\2212';
    background: var(--tco-bg);
    color: var(--tco-primary);
}

.tco-faq summary:hover {
    background: var(--tco-bg-light);
}

.tco-faq details[open] summary {
    border-bottom: 1px solid var(--tco-border-light);
    background: var(--tco-bg-light);
}

.tco-faq .faq-answer {
    padding: 20px 24px;
    font-size: 14px;
    color: var(--tco-text-light);
    line-height: 1.7;
}

.tco-faq .faq-answer p {
    margin: 0 0 12px 0;
}

.tco-faq .faq-answer p:last-child {
    margin-bottom: 0;
}

.tco-faq .faq-answer ul {
    margin: 8px 0;
    padding-left: 20px;
}

.tco-faq .faq-answer li {
    margin-bottom: 6px;
}


/* ===================== RELATED TOOLS ===================== */
.tco-calc-page .related-tools {
    margin-bottom: 40px;
}

.tco-calc-page .related-tools h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--tco-text);
    font-weight: 600;
}

.tco-calc-page .tools-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tco-calc-page .tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--tco-white);
    border: 1px solid var(--tco-border-light);
    border-radius: var(--tco-radius);
    text-decoration: none;
    color: var(--tco-text);
    transition: all 0.2s;
    flex: 1;
    min-width: 200px;
}

.tco-calc-page .tool-card:hover {
    border-color: var(--tco-primary);
    background: var(--tco-bg-light);
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.08);
    text-decoration: none;
    color: var(--tco-text);
}

.tco-calc-page .tool-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.tco-calc-page .tool-name {
    font-weight: 600;
    font-size: 14px;
}

.tco-calc-page .tool-desc {
    font-size: 12px;
    color: var(--tco-text-muted);
    margin-top: 2px;
}


/* ===================== ERROR CARD ===================== */
.tco-calc-page .error-card {
    text-align: center;
    padding: 48px 30px;
    background: var(--tco-white);
    border-radius: var(--tco-radius);
    border: 1px solid var(--tco-border-light);
    box-shadow: var(--tco-shadow);
    margin-bottom: 30px;
}

.tco-calc-page .error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tco-warning-bg, #fff3cd);
    border: 2px solid var(--tco-warning, #e74c3c);
    font-size: 24px;
    font-weight: 700;
    color: var(--tco-warning, #e74c3c);
    margin: 0 auto 16px;
}

.tco-calc-page .error-card h3 {
    font-size: 22px;
    margin: 0 0 12px 0;
    color: var(--tco-warning);
    font-weight: 700;
}

.tco-calc-page .error-card p {
    color: var(--tco-text-light);
    margin: 0 0 24px 0;
    font-size: 15px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    line-height: 1.6;
}

.tco-calc-page .error-card .btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--tco-primary);
    color: var(--tco-white);
    border: none;
    border-radius: var(--tco-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.tco-calc-page .error-card .btn-retry:hover {
    background: var(--tco-primary-dark);
}


/* ===================== METHODOLOGY ===================== */
.tco-methodology {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: var(--tco-radius);
    border: 1px solid #e0e0e0;
}
.tco-methodology h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tco-dark);
    margin: 0 0 10px;
}
.tco-methodology-intro {
    font-size: 15px;
    color: var(--tco-text);
    line-height: 1.6;
    margin: 0 0 20px;
}
.tco-methodology-intro a {
    color: var(--tco-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--tco-primary);
}
.tco-methodology-intro a:hover {
    border-bottom-style: solid;
}
.tco-methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.tco-methodology-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
}
.tco-methodology-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--tco-dark);
    margin: 0 0 8px;
}
.tco-methodology-card h4 a {
    color: var(--tco-primary);
    text-decoration: none;
}
.tco-methodology-card h4 a:hover {
    text-decoration: underline;
}
.tco-methodology-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}
.tco-methodology-sources {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
}
.tco-methodology-sources h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--tco-dark);
    margin: 0 0 10px;
}
.tco-methodology-sources ul {
    margin: 0 0 12px;
    padding-left: 20px;
}
.tco-methodology-sources li {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 4px;
}
.tco-methodology-sources a {
    color: var(--tco-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--tco-primary);
}
.tco-methodology-sources a:hover {
    border-bottom-style: solid;
}
.tco-methodology-glossary {
    font-size: 13px;
    color: #666;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.tco-methodology-glossary a {
    margin: 0 2px;
}

@media (max-width: 992px) {
    .tco-methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .tco-methodology {
        padding: 20px 16px;
    }
    .tco-methodology-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== LEGAL / DISCLAIMER ===================== */
.tco-calc-page .tco-legal-note {
    margin-top: 30px;
    padding: 20px;
    background: #fff8e1;
    border-radius: var(--tco-radius);
    border-left: 4px solid var(--tco-warning);
    font-size: 13px;
    color: var(--tco-text);
    line-height: 1.6;
}

.tco-calc-page .tco-legal-note a {
    color: var(--tco-primary);
    text-decoration: underline;
}

.tco-calc-page .tco-legal-note strong {
    font-weight: 600;
}


/* ===================== LOADING / SPINNER ===================== */
.tco-calc-page .tco-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.tco-calc-page .tco-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 4px solid var(--tco-border);
    border-top-color: var(--tco-accent);
    border-radius: 50%;
    animation: tcoSpin 0.8s linear infinite;
}

@keyframes tcoSpin {
    to {
        transform: rotate(360deg);
    }
}

.tco-spinner-inline {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--tco-border-light);
    border-top-color: var(--tco-accent);
    border-radius: 50%;
    animation: tcoSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}


/* ===================== BADGE COMPONENTS ===================== */
.tco-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tco-badge-gold {
    background: var(--tco-accent);
    color: var(--tco-white);
}

.tco-badge-green {
    background: var(--tco-success);
    color: var(--tco-white);
}

.tco-badge-blue {
    background: var(--tco-primary);
    color: var(--tco-white);
}

.tco-badge-red {
    background: var(--tco-danger);
    color: var(--tco-white);
}

.tco-badge-gray {
    background: var(--tco-border);
    color: var(--tco-text);
}


/* ===================== SLIDE DOWN ANIMATION ===================== */
@keyframes tcoSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tcoCountUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tco-animate-in {
    animation: tcoFadeIn 0.4s ease;
}

.tco-animate-count {
    animation: tcoCountUp 0.5s ease;
}


/* ===================== PRINT STYLES ===================== */
@media print {
    .tco-calc-page {
        max-width: 100%;
        padding: 0;
    }

    .tco-calc-hero {
        background: var(--tco-white) !important;
        color: var(--tco-text) !important;
        border: 2px solid var(--tco-primary);
        box-shadow: none;
    }

    .tco-calc-hero h1,
    .tco-hero-subtitle {
        color: var(--tco-text) !important;
    }

    .tco-calc-page .wizard-progress,
    .tco-calc-page .wizard-nav,
    .tco-calc-page .lead-gate,
    .tco-result-actions,
    .tco-cta,
    .tco-calc-page .related-tools,
    .tco-calc-page .btn-wizard,
    .tco-modal-overlay {
        display: none !important;
    }

    .tco-calc-page .wizard-panel {
        display: block !important;
    }

    .tco-result-card,
    .tco-summary-card,
    .tco-calc-page .info-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }

    .tco-faq details {
        border: 1px solid #ccc;
    }

    .tco-faq details[open] summary {
        border-bottom: 1px solid #ccc;
    }

    .tco-chart {
        page-break-inside: avoid;
    }

    .tco-compare-table {
        page-break-inside: avoid;
    }
}


/* ===================== RESPONSIVE: TABLET (max-width: 992px) ===================== */
@media (max-width: 992px) {
    .tco-calc-page {
        max-width: 100%;
        padding: 16px;
    }

    .tco-preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tco-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .tco-calc-page .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tco-calc-page .form-row--third {
        grid-template-columns: 1fr 1fr;
    }

    .tco-chart-area {
        min-height: 220px;
        gap: 16px;
    }

    .tco-bar {
        width: 36px;
    }
}


/* ===================== RESPONSIVE: MOBILE (max-width: 768px) ===================== */
@media (max-width: 768px) {
    .tco-calc-page {
        padding: 12px;
    }

    /* Hero */
    .tco-calc-hero {
        padding: 32px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .tco-calc-hero h1 {
        font-size: 22px;
    }

    .tco-hero-subtitle {
        font-size: 14px;
    }

    .tco-hero-badges {
        gap: 8px;
    }

    .tco-hero-badge {
        padding: 4px 12px;
        font-size: 12px;
    }

    /* Wizard progress - vertical */
    .tco-calc-page .wizard-progress {
        flex-direction: column;
        padding: 14px;
        gap: 8px;
    }

    .tco-calc-page .wizard-step {
        padding: 10px 14px;
    }

    .tco-calc-page .step-label {
        font-size: 12px;
    }

    .tco-calc-page .step-num {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    /* Panels */
    .tco-calc-page .wizard-panel {
        padding: 20px 16px;
    }

    .tco-calc-page .wizard-panel h2 {
        font-size: 18px;
    }

    /* Preset grid - single column */
    .tco-preset-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tco-preset-card {
        padding: 18px 16px;
    }

    /* Form elements */
    .tco-calc-page .form-row--half {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tco-calc-page .form-row--third {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tco-input,
    .tco-select {
        height: 44px;
        font-size: 14px;
    }

    /* Radio group - stack */
    .tco-calc-page .radio-group {
        flex-direction: column;
    }

    .tco-calc-page .radio-item {
        min-width: unset;
    }

    /* Summary cards - 1 column */
    .tco-summary-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tco-summary-card {
        padding: 18px 16px;
    }

    .tco-summary-card .card-value {
        font-size: 22px;
    }

    /* Comparison table scroll */
    .tco-table-wrapper {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
    }

    .tco-compare-table {
        font-size: 13px;
    }

    .tco-compare-table th,
    .tco-compare-table td {
        padding: 10px 12px;
    }

    /* Chart */
    .tco-chart {
        padding: 16px;
    }

    .tco-chart-area {
        min-height: 180px;
        gap: 12px;
    }

    .tco-bar {
        width: 28px;
    }

    .tco-bar-value {
        font-size: 10px;
        top: -20px;
    }

    .tco-bar-label {
        font-size: 10px;
    }

    /* Breakdown */
    .tco-accordion-header {
        padding: 14px 16px;
    }

    .tco-accordion-header .acc-title {
        font-size: 14px;
    }

    .tco-accordion-body {
        padding: 14px 16px;
    }

    /* Products grid - single column */
    .tco-products-grid {
        grid-template-columns: 1fr;
    }

    .tco-product-card img {
        width: 70px;
        height: 70px;
    }

    /* Actions - stack */
    .tco-result-actions {
        flex-direction: column;
    }

    .tco-result-actions > * {
        min-width: unset;
        width: 100%;
    }

    /* Lead gate */
    .tco-calc-page .lead-gate-fields {
        flex-direction: column;
    }

    .tco-calc-page .lead-gate {
        padding: 18px;
    }

    /* Info grid - 1 column */
    .tco-calc-page .info-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .tco-cta {
        padding: 32px 20px;
    }

    .tco-cta h3 {
        font-size: 20px;
    }

    /* Tools grid - stack */
    .tco-calc-page .tools-grid {
        flex-direction: column;
    }

    .tco-calc-page .tool-card {
        min-width: unset;
    }

    /* FAQ */
    .tco-faq summary {
        padding: 14px 18px;
        font-size: 14px;
    }

    .tco-faq .faq-answer {
        padding: 16px 18px;
        font-size: 13px;
    }

    /* Wizard nav */
    .tco-calc-page .wizard-nav {
        padding-top: 16px;
        margin-top: 20px;
    }

    .tco-calc-page .btn-wizard {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Modal */
    .tco-modal {
        max-height: 90vh;
        margin: 10px;
    }

    .tco-modal-header {
        padding: 18px 20px;
    }

    .tco-modal-body {
        padding: 18px 20px;
    }

    .tco-modal-footer {
        padding: 14px 20px;
    }

    /* Result header */
    .tco-result-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .tco-result-header h2 {
        font-size: 20px;
    }

    /* Error card */
    .tco-calc-page .error-card {
        padding: 32px 20px;
    }

    .tco-calc-page .error-icon {
        font-size: 42px;
    }

    .tco-calc-page .error-card h3 {
        font-size: 18px;
    }

    /* Savings value */
    .tco-savings-value {
        font-size: 26px;
    }

    .tco-savings-value.large {
        font-size: 32px;
    }

    /* Advanced panel */
    .tco-advanced-panel {
        padding: 18px;
    }

    /* Cart banner style */
    .tco-products-section {
        padding: 16px;
    }

    /* Winner badge */
    .tco-winner-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Horizontal bars */
    .tco-hbar-label {
        width: 60px;
        font-size: 11px;
    }

    .tco-hbar-track {
        height: 24px;
    }

    .tco-hbar-fill {
        font-size: 11px;
        padding: 0 8px;
    }
}


/* ===================== RESPONSIVE: SMALL MOBILE (max-width: 480px) ===================== */
@media (max-width: 480px) {
    .tco-calc-hero h1 {
        font-size: 19px;
    }

    .tco-hero-subtitle {
        font-size: 13px;
    }

    .tco-calc-page .wizard-panel {
        padding: 16px 12px;
    }

    .tco-result-card {
        padding: 20px 16px;
    }

    .tco-summary-card .card-value {
        font-size: 20px;
    }

    .tco-summary-card .card-label {
        font-size: 11px;
    }

    .tco-compare-table th,
    .tco-compare-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .tco-chart-area {
        min-height: 150px;
        gap: 8px;
    }

    .tco-bar {
        width: 22px;
    }

    .tco-bar-label {
        font-size: 9px;
    }

    .tco-cta {
        padding: 24px 16px;
    }

    .tco-cta h3 {
        font-size: 18px;
    }

    .tco-calc-page .btn-wizard {
        padding: 10px 16px;
        font-size: 13px;
    }

    .tco-calc-page .lead-gate {
        padding: 14px;
    }

    .tco-calc-page .lead-gate-btn {
        font-size: 14px;
        padding: 12px;
    }

    .tco-detail-row {
        flex-direction: column;
        gap: 2px;
        padding: 6px 0;
    }

    .tco-detail-row .detail-value {
        font-size: 15px;
    }

    .tco-accordion-header .acc-value {
        font-size: 13px;
    }

    .tco-range-value {
        padding: 3px 8px;
        font-size: 12px;
        min-width: 48px;
    }

    .tco-preset-title {
        font-size: 14px;
    }

    .tco-preset-desc {
        font-size: 12px;
    }

    .tco-modal {
        margin: 5px;
        max-height: 95vh;
    }

    .tco-modal-header {
        padding: 14px 16px;
    }

    .tco-modal-header h3 {
        font-size: 16px;
    }

    .tco-modal-body {
        padding: 14px 16px;
        font-size: 13px;
    }

    .tco-savings-value {
        font-size: 22px;
    }

    .tco-savings-value.large {
        font-size: 28px;
    }

    .tco-loss-value {
        font-size: 22px;
    }

    .tco-hbar-row {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .tco-hbar-label {
        width: auto;
        text-align: left;
    }

    .tco-hbar-track {
        width: 100%;
    }
}
