/* ============================================
    CONSTRUCTION COST ESTIMATOR - PREMIUM
    NOVINKA CONSTRUCTIONS
    ============================================ */

/* ============================================
    SECTION WRAPPER
    ============================================ */

.estimator-section {
    position: relative;
    padding: 100px 0 80px;
    background: #FFFFFF;
    overflow: hidden;
}

/* Blueprint Background */
.estimator-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(0, 115, 230, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 115, 230, 0.06) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px;
}

/* ============================================
    HEADER
    ============================================ */

.estimator-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.estimator-tag {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #0073E6;
    background: rgba(0, 115, 230, 0.06);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 16px;
    font-weight: 600;
}

.estimator-header .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin: 0 0 8px;
    color: #1A3A5C;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.estimator-header .section-title .highlight {
    color: #0073E6;
}

.estimator-header .section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.2vw, 20px);
    color: #1A3A5C;
    opacity: 0.6;
    max-width: 650px;
    margin: 8px auto 0;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
    STEP PROGRESS INDICATOR
    ============================================ */

.estimator-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.estimator-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    flex: 1;
    transition: all 0.3s ease;
}

.estimator-progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f7fa;
    border: 2px solid rgba(0, 115, 230, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1A3A5C;
    opacity: 0.3;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.estimator-progress-step.active .step-number {
    background: #0073E6;
    border-color: #0073E6;
    color: #FFFFFF;
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(0, 115, 230, 0.08);
    transform: scale(1.05);
}

.estimator-progress-step.completed .step-number {
    background: #0073E6;
    border-color: #0073E6;
    color: #FFFFFF;
    opacity: 1;
}

.estimator-progress-step .step-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A3A5C;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.estimator-progress-step.active .step-label,
.estimator-progress-step.completed .step-label {
    opacity: 0.7;
}

.estimator-progress-step.active .step-label {
    color: #0073E6;
    opacity: 1;
}

.estimator-progress-line {
    flex: 1;
    height: 2px;
    background: rgba(0, 115, 230, 0.08);
    position: relative;
    z-index: 1;
    margin: 0 -5px;
}

.estimator-progress-line .line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0073E6, #0059B3);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
    STEP CONTAINER
    ============================================ */

.estimator-steps {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.estimator-step {
    display: none;
    animation: stepFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.estimator-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.estimator-step-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1A3A5C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.estimator-step-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1A3A5C;
    opacity: 0.5;
    margin-bottom: 30px;
}

/* ============================================
    STEP 1 - PROJECT TYPE CARDS
    ============================================ */

.project-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.project-type-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px 32px;
    border: 2px solid rgba(0, 115, 230, 0.06);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    text-align: center;
}

.project-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 115, 230, 0.06);
    border-color: rgba(0, 115, 230, 0.12);
}

.project-type-card.selected {
    border-color: #0073E6;
    box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.06), 0 20px 60px rgba(0, 115, 230, 0.08);
    transform: translateY(-6px);
}

.project-type-card .card-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.project-type-card .card-check {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f7fa;
    border: 2px solid rgba(0, 115, 230, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-type-card.selected .card-check {
    opacity: 1;
    background: #0073E6;
    border-color: #0073E6;
}

.project-type-card .card-check svg {
    width: 14px;
    height: 14px;
    stroke: #FFFFFF;
    stroke-width: 3;
}

.project-type-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A3A5C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-type-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1A3A5C;
    opacity: 0.6;
    line-height: 1.6;
    margin: 0;
}

.project-type-card .card-badge {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    background: #0073E6;
    padding: 4px 14px;
    border-radius: 50px;
}

/* ============================================
    STEP 2 - CONTRACT CARDS
    ============================================ */

.contract-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contract-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    border: 2px solid rgba(0, 115, 230, 0.06);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.contract-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 115, 230, 0.06);
}

.contract-card.selected {
    border-color: #0073E6;
    box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.06), 0 20px 60px rgba(0, 115, 230, 0.08);
    transform: translateY(-6px);
}

.contract-card .card-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #FFD700;
    color: #1A3A5C;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 50px;
}

.contract-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.contract-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A3A5C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.contract-card .card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #1A3A5C;
    opacity: 0.6;
    line-height: 1.6;
    margin-bottom: 12px;
}

.contract-card .card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contract-card .card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #1A3A5C;
    opacity: 0.5;
    padding: 4px 0;
}

.contract-card .card-features li::before {
    content: '✓';
    color: #0073E6;
    font-weight: 700;
}

.contract-card .card-check {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f7fa;
    border: 2px solid rgba(0, 115, 230, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.contract-card.selected .card-check {
    opacity: 1;
    background: #0073E6;
    border-color: #0073E6;
}

.contract-card .card-check svg {
    width: 12px;
    height: 12px;
    stroke: #FFFFFF;
    stroke-width: 3;
}

/* ============================================
    STEP 3 - PROJECT INFORMATION FORM
    ============================================ */

.estimator-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.estimator-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.estimator-form-group.full-width {
    grid-column: 1 / -1;
}

.estimator-form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1A3A5C;
    letter-spacing: 0.5px;
}

.estimator-form-group label .required {
    color: #0073E6;
}

.estimator-form-group input,
.estimator-form-group select {
    padding: 12px 16px;
    border: 2px solid rgba(0, 115, 230, 0.06);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1A3A5C;
    background: #FFFFFF;
    transition: all 0.3s ease;
    outline: none;
}

.estimator-form-group input:focus,
.estimator-form-group select:focus {
    border-color: #0073E6;
    box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.04);
}

.estimator-form-group input::placeholder {
    color: #1A3A5C;
    opacity: 0.3;
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #e0e4e8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.toggle-switch input:checked+.toggle-slider {
    background: #0073E6;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1A3A5C;
}

/* Quality Slider */
.quality-slider-group {
    padding: 8px 0;
}

.quality-slider-group input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 115, 230, 0.08);
    border-radius: 2px;
    outline: none;
}

.quality-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073E6;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.2);
}

.quality-slider-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073E6;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.2);
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #1A3A5C;
    opacity: 0.4;
    margin-top: 4px;
}

/* ============================================
    STEP 4 - LIVE COST ESTIMATION
    ============================================ */

.estimator-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.estimator-cost-summary {
    background: #f5f7fa;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 115, 230, 0.04);
}

.estimator-cost-summary .cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.estimator-cost-summary .cost-item:last-child {
    border-bottom: none;
}

.estimator-cost-summary .cost-item .label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #1A3A5C;
    opacity: 0.6;
}

.estimator-cost-summary .cost-item .value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A3A5C;
}

.estimator-cost-summary .cost-item .value.highlight {
    color: #0073E6;
    font-size: 1.4rem;
}

.estimator-cost-total {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 28px;
    border: 2px solid rgba(0, 115, 230, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.estimator-cost-total .total-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1A3A5C;
    opacity: 0.4;
}

.estimator-cost-total .total-amount {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #0073E6;
    margin: 8px 0 4px;
}

.estimator-cost-total .total-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1A3A5C;
    opacity: 0.4;
}

/* ============================================
    STEP 5 - INTERACTIVE BOQ
    ============================================ */

.boq-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.boq-list {
    background: #f5f7fa;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 115, 230, 0.04);
    max-height: 500px;
    overflow-y: auto;
}

.boq-list::-webkit-scrollbar {
    width: 4px;
}

.boq-list::-webkit-scrollbar-track {
    background: #e0e4e8;
    border-radius: 2px;
}

.boq-list::-webkit-scrollbar-thumb {
    background: #0073E6;
    border-radius: 2px;
}

.boq-item {
    background: #FFFFFF;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 115, 230, 0.04);
    transition: all 0.3s ease;
}

.boq-item:hover {
    border-color: rgba(0, 115, 230, 0.08);
}

.boq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boq-item-header:hover {
    background: rgba(0, 115, 230, 0.02);
}

.boq-item-header .boq-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A3A5C;
}

.boq-item-header .boq-cost {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0073E6;
}

.boq-item-header .boq-toggle {
    font-size: 1.2rem;
    color: #1A3A5C;
    opacity: 0.3;
    transition: transform 0.3s ease;
}

.boq-item.open .boq-toggle {
    transform: rotate(180deg);
}

.boq-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 18px;
}

.boq-item.open .boq-item-body {
    max-height: 300px;
    padding: 0 18px 18px;
}

.boq-item-body .boq-detail {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #1A3A5C;
    opacity: 0.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.boq-item-body .boq-detail:last-child {
    border-bottom: none;
}

.boq-item-body .progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 115, 230, 0.06);
    border-radius: 2px;
    margin: 10px 0 4px;
    overflow: hidden;
}

.boq-item-body .progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #0073E6, #0059B3);
    border-radius: 2px;
    transition: width 1s ease;
}

/* BOQ Chart */
.boq-chart {
    background: #f5f7fa;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 115, 230, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.boq-chart canvas {
    max-width: 220px;
    max-height: 220px;
    width: 100%;
    height: auto;
}

.boq-chart .chart-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #1A3A5C;
    opacity: 0.4;
    margin-top: 12px;
    text-align: center;
}

/* ============================================
    FINAL CTA - SUMMARY CARD
    ============================================ */

.estimator-summary {
    background: #1A3A5C;
    border-radius: 20px;
    padding: 40px 44px;
    color: #FFFFFF;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.estimator-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 115, 230, 0.08), transparent 70%);
    border-radius: 50%;
}

.estimator-summary .summary-left {
    position: relative;
    z-index: 1;
}

.estimator-summary .summary-left h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.estimator-summary .summary-left .summary-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 16px;
}

.estimator-summary .summary-left .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.estimator-summary .summary-left .summary-item:last-child {
    border-bottom: none;
}

.estimator-summary .summary-left .summary-item .label {
    opacity: 0.5;
}

.estimator-summary .summary-left .summary-item .value {
    font-weight: 600;
}

.estimator-summary .summary-right {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.estimator-summary .summary-right .summary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.estimator-summary .summary-right .summary-actions .action-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.estimator-summary .summary-right .summary-actions .action-btn.primary {
    background: #0073E6;
    color: #FFFFFF;
}

.estimator-summary .summary-right .summary-actions .action-btn.primary:hover {
    background: #0059B3;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 115, 230, 0.3);
}

.estimator-summary .summary-right .summary-actions .action-btn.outline {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.estimator-summary .summary-right .summary-actions .action-btn.outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.estimator-summary .summary-right .summary-actions .action-btn.whatsapp {
    background: #25D366;
    color: #FFFFFF;
}

.estimator-summary .summary-right .summary-actions .action-btn.whatsapp:hover {
    background: #1DA85C;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

/* ============================================
    NAVIGATION BUTTONS
    ============================================ */

.estimator-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 115, 230, 0.04);
}

.estimator-nav .nav-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.estimator-nav .nav-btn.prev {
    background: transparent;
    color: #1A3A5C;
    opacity: 0.4;
}

.estimator-nav .nav-btn.prev:hover {
    opacity: 0.8;
}

.estimator-nav .nav-btn.next {
    background: #0073E6;
    color: #FFFFFF;
}

.estimator-nav .nav-btn.next:hover {
    background: #0059B3;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 115, 230, 0.2);
}

.estimator-nav .nav-btn.next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.estimator-nav .step-indicator {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #1A3A5C;
    opacity: 0.3;
}

/* ============================================
    RESPONSIVE
    ============================================ */

@media (max-width: 992px) {
    .contract-grid {
        grid-template-columns: 1fr 1fr;
    }

    .estimator-form-grid {
        grid-template-columns: 1fr;
    }

    .estimator-results {
        grid-template-columns: 1fr;
    }

    .boq-dashboard {
        grid-template-columns: 1fr;
    }

    .estimator-summary {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 24px;
    }

    .project-type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .estimator-section {
        padding: 60px 0 40px;
    }

    .estimator-progress {
        flex-wrap: wrap;
        gap: 0;
        padding: 0 10px;
    }

    .estimator-progress-step .step-label {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
    }

    .estimator-progress-step .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .estimator-step-title {
        font-size: 1.2rem;
    }

    .contract-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .estimator-cost-total .total-amount {
        font-size: 2.5rem;
    }

    .estimator-summary .summary-right .summary-actions {
        grid-template-columns: 1fr;
    }

    .estimator-nav {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .estimator-nav .step-indicator {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .project-type-card {
        padding: 28px 20px;
    }

    .project-type-card .card-icon {
        font-size: 2.8rem;
    }

    .boq-item-header .boq-name {
        font-size: 0.8rem;
    }

    .boq-item-header .boq-cost {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .estimator-section {
        padding: 40px 0 30px;
    }

    .estimator-header .section-title {
        font-size: 28px;
    }

    .estimator-step-title {
        font-size: 1rem;
    }

    .estimator-step-subtitle {
        font-size: 0.85rem;
    }

    .estimator-cost-total .total-amount {
        font-size: 2rem;
    }

    .estimator-summary {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .estimator-summary .summary-left h3 {
        font-size: 1.1rem;
    }

    .estimator-nav .nav-btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .boq-item-header {
        padding: 10px 14px;
    }

    .boq-item-body {
        padding: 0 14px;
    }

    .boq-item.open .boq-item-body {
        padding: 0 14px 14px;
    }
}


/* ============================================
   DARK THEME OVERRIDES - CONSTRUCTION ESTIMATOR
   ============================================ */

/* ----- Section Base ----- */
[data-theme="dark"] .estimator-section {
    background: #060b14;
}

/* ----- Header ----- */
[data-theme="dark"] .estimator-tag {
    color: var(--color-bright-blue, #4da3ff);
    background: rgba(77, 163, 255, 0.12);
    border-color: rgba(77, 163, 255, 0.2);
}

[data-theme="dark"] .estimator-header .section-title {
    color: #ffffff;
}

[data-theme="dark"] .estimator-header .section-title .highlight {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .estimator-header .section-subtitle {
    color: #b8c6da;
    opacity: 1;
}

/* ----- Progress Indicator ----- */
[data-theme="dark"] .estimator-progress-step .step-number {
    background: #142033;
    color: #7a8ca6;
    border-color: rgba(77, 163, 255, 0.2);
}

[data-theme="dark"] .estimator-progress-step.active .step-number {
    background: var(--color-bright-blue, #4da3ff);
    color: #ffffff;
    border-color: var(--color-bright-blue, #4da3ff);
    box-shadow: 0 0 0 6px rgba(77, 163, 255, 0.15);
}

[data-theme="dark"] .estimator-progress-step .step-label {
    color: #7a8ca6;
}

[data-theme="dark"] .estimator-progress-step.active .step-label {
    color: #ffffff;
}

[data-theme="dark"] .estimator-progress-line {
    background: rgba(77, 163, 255, 0.15);
}

[data-theme="dark"] .estimator-progress-line .line-fill {
    background: var(--color-bright-blue, #4da3ff);
}

/* ----- Step Titles ----- */
[data-theme="dark"] .estimator-step-title {
    color: #ffffff;
}

[data-theme="dark"] .estimator-step-subtitle {
    color: #b8c6da;
    opacity: 1;
}

/* ----- Project Type Cards (Step 1) ----- */
[data-theme="dark"] .project-type-card {
    background: #101c30;
    border-color: rgba(77, 163, 255, 0.18);
}

[data-theme="dark"] .project-type-card:hover {
    border-color: var(--color-bright-blue, #4da3ff);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(77, 163, 255, 0.08);
}

[data-theme="dark"] .project-type-card.selected {
    border-color: var(--color-bright-blue, #4da3ff);
    background: rgba(77, 163, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}

[data-theme="dark"] .project-type-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .project-type-card p {
    color: #b8c6da;
    opacity: 1;
}

[data-theme="dark"] .project-type-card .card-icon {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .project-type-card .card-badge {
    background: var(--color-bright-blue, #4da3ff);
    color: #ffffff;
}

[data-theme="dark"] .project-type-card .card-check {
    background: var(--color-bright-blue, #4da3ff);
    border-color: var(--color-bright-blue, #4da3ff);
}

/* ----- Contract Cards (Step 2) ----- */
[data-theme="dark"] .contract-card {
    background: #101c30;
    border-color: rgba(77, 163, 255, 0.18);
}

[data-theme="dark"] .contract-card:hover {
    border-color: var(--color-bright-blue, #4da3ff);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(77, 163, 255, 0.08);
}

[data-theme="dark"] .contract-card.selected {
    border-color: var(--color-bright-blue, #4da3ff);
    background: rgba(77, 163, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}

[data-theme="dark"] .contract-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .contract-card .card-desc {
    color: #b8c6da;
    opacity: 1;
}

[data-theme="dark"] .contract-card .card-icon {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .contract-card .card-badge {
    background: var(--color-bright-blue, #4da3ff);
    color: #ffffff;
}

[data-theme="dark"] .contract-card .card-check {
    background: var(--color-bright-blue, #4da3ff);
    border-color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .contract-card .card-features li {
    color: #b8c6da;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .contract-card .card-features li::before {
    color: var(--color-bright-blue, #4da3ff);
}

/* ----- Form Fields (Step 3) ----- */
[data-theme="dark"] .estimator-form-group label {
    color: #b8c6da;
}

[data-theme="dark"] .estimator-form-group .required {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .estimator-form-group input,
[data-theme="dark"] .estimator-form-group select,
[data-theme="dark"] .estimator-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(77, 163, 255, 0.18);
    color: #ffffff;
}

[data-theme="dark"] .estimator-form-group input::placeholder,
[data-theme="dark"] .estimator-form-group textarea::placeholder {
    color: #7a8ca6;
    opacity: 0.7;
}

[data-theme="dark"] .estimator-form-group input:focus,
[data-theme="dark"] .estimator-form-group select:focus,
[data-theme="dark"] .estimator-form-group textarea:focus {
    border-color: var(--color-bright-blue, #4da3ff);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
}

[data-theme="dark"] .estimator-form-group select option {
    background: #101c30;
    color: #ffffff;
}

/* ----- Toggle Switches ----- */
[data-theme="dark"] .toggle-switch .toggle-slider {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .toggle-switch input:checked+.toggle-slider {
    background: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .toggle-label {
    color: #b8c6da;
}

/* ----- Quality Slider ----- */
[data-theme="dark"] .quality-slider-group input[type="range"] {
    background: rgba(77, 163, 255, 0.2);
}

[data-theme="dark"] .quality-slider-group input[type="range"]::-webkit-slider-thumb {
    background: var(--color-bright-blue, #4da3ff);
    border-color: #101c30;
}

[data-theme="dark"] .quality-labels span {
    color: #7a8ca6;
}

[data-theme="dark"] .quality-labels #qualityDisplay {
    color: #ffffff;
}

/* ----- Live Cost Estimation (Step 4) ----- */
[data-theme="dark"] .estimator-cost-summary {
    background: #101c30;
    border-color: rgba(77, 163, 255, 0.18);
}

[data-theme="dark"] .cost-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cost-item .label {
    color: #b8c6da;
}

[data-theme="dark"] .cost-item .value {
    color: #ffffff;
}

[data-theme="dark"] .estimator-cost-total {
    background: linear-gradient(135deg, #0f1a2b 0%, #142033 100%);
    border-color: rgba(77, 163, 255, 0.25);
}

[data-theme="dark"] .estimator-cost-total .total-label {
    color: #b8c6da;
}

[data-theme="dark"] .estimator-cost-total .total-amount {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .estimator-cost-total .total-sub {
    color: #7a8ca6;
}

/* ----- BOQ (Step 5) ----- */
[data-theme="dark"] .boq-list {
    background: #101c30;
    border-color: rgba(77, 163, 255, 0.18);
}

[data-theme="dark"] .boq-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .boq-item .boq-category {
    color: #ffffff;
}

[data-theme="dark"] .boq-item .boq-cost {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .boq-item .boq-desc {
    color: #b8c6da;
}

[data-theme="dark"] .boq-chart {
    background: #101c30;
    border-color: rgba(77, 163, 255, 0.18);
}

[data-theme="dark"] .chart-label {
    color: #b8c6da;
}

/* ----- Navigation Buttons ----- */
[data-theme="dark"] .estimator-nav .nav-btn {
    background: var(--color-bright-blue, #4da3ff);
    color: #ffffff;
    border-color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .estimator-nav .nav-btn:hover {
    background: #5fb0ff;
    border-color: #5fb0ff;
    box-shadow: 0 10px 30px rgba(77, 163, 255, 0.4);
}

[data-theme="dark"] .estimator-nav .nav-btn.prev {
    background: transparent;
    color: #b8c6da;
    border-color: rgba(77, 163, 255, 0.3);
}

[data-theme="dark"] .estimator-nav .nav-btn.prev:hover {
    background: rgba(77, 163, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .estimator-nav .step-indicator {
    color: #b8c6da;
}

/* ----- Final Summary Card ----- */
[data-theme="dark"] .estimator-summary {
    background: #101c30;
    border-color: rgba(77, 163, 255, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .estimator-summary h3 {
    color: #ffffff;
}

[data-theme="dark"] .estimator-summary .summary-sub {
    color: #7a8ca6;
}

[data-theme="dark"] .summary-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .summary-item .label {
    color: #b8c6da;
}

[data-theme="dark"] .summary-item .value {
    color: #ffffff;
}

/* ----- Action Buttons ----- */
[data-theme="dark"] .summary-actions .action-btn.primary {
    background: var(--color-bright-blue, #4da3ff);
    color: #ffffff;
    border-color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .summary-actions .action-btn.primary:hover {
    background: #5fb0ff;
    border-color: #5fb0ff;
    box-shadow: 0 10px 30px rgba(77, 163, 255, 0.4);
}

[data-theme="dark"] .summary-actions .action-btn.outline {
    background: transparent;
    color: #b8c6da;
    border-color: rgba(77, 163, 255, 0.3);
}

[data-theme="dark"] .summary-actions .action-btn.outline:hover {
    background: rgba(77, 163, 255, 0.1);
    color: #ffffff;
    border-color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .summary-actions .action-btn.whatsapp {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

[data-theme="dark"] .summary-actions .action-btn.whatsapp:hover {
    background: #1eb155;
    border-color: #1eb155;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ----- Contract Details Container (bonus) ----- */
[data-theme="dark"] .contract-details {
    background: linear-gradient(135deg, #101c30 0%, #142033 100%);
    border-color: rgba(77, 163, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .contract-details::before {
    background: linear-gradient(180deg, var(--color-bright-blue, #4da3ff), #5fb0ff);
}

[data-theme="dark"] .contract-details h4 {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .contract-details h4::before {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .contract-details ul li {
    color: #b8c6da;
    opacity: 1;
    border-bottom-color: rgba(77, 163, 255, 0.08);
}

[data-theme="dark"] .contract-details ul li::before {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .contract-details ul li:hover {
    color: var(--color-bright-blue, #4da3ff);
}

[data-theme="dark"] .contract-details .contract-badge {
    color: var(--color-bright-blue, #4da3ff);
    background: rgba(77, 163, 255, 0.12);
    border-color: rgba(77, 163, 255, 0.2);
}

.project-type-card .card-badge.premium {
    background: #0073E6;
}

[data-theme="dark"] .project-type-card .card-badge.premium {
    background: var(--color-bright-blue, #4da3ff);
}