* {
    box-sizing: border-box;
}

.nursery-calculator {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.calculator-header {
    background: white;
    padding: 40px 40px 30px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.calculator-header h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    color: #1a1a1a;
    font-weight: 700;
}

.calculator-header .subtitle {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.progress-container {
    background: white;
    padding: 20px 40px;
    border-bottom: 1px solid #e9ecef;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.calculator-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
    background: white;
    margin: 0;
    padding: 50px 40px;
    min-height: 400px;
}

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

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

.step-title {
    color: #1a1a1a;
    font-size: 28px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.step-description {
    color: #6c757d;
    font-size: 16px;
    margin: 0 0 40px 0;
    line-height: 1.5;
}

.button-grid,
.funding-hours-buttons,
.funding-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.calc-button {
    background: white;
    color: #1a1a1a;
    border: 2px solid #dee2e6;
    padding: 24px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.calc-button:hover {
    border-color: #0d6efd;
    background: #0d6efd;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
}

.calc-button:active {
    transform: translateY(-1px);
}

.schedule-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.schedule-button {
    background: white;
    border: 2px solid #dee2e6;
    padding: 24px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-button:hover {
    border-color: #0d6efd;
    background: #f8f9ff;
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.1);
}

.schedule-info {
    flex: 1;
}

.schedule-name {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.schedule-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
}

.calc-back {
    background: white;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calc-back:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

/* Results Page */
.results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.results-header svg {
    width: 36px;
    height: 36px;
    color: #198754;
}

.results-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.costs-section {
    margin-bottom: 40px;
}

.costs-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.costs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.cost-card {
    padding: 24px;
    border-radius: 12px;
    border: 2px solid;
    text-align: center;
}

.cost-card.no-funding {
    background: #fff5f5;
    border-color: #fecaca;
}

.cost-card.with-funding {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.cost-card.funding-amount {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.cost-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 600;
}

.cost-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.cost-card.no-funding .cost-amount {
    color: #dc2626;
}

.cost-card.with-funding .cost-amount {
    color: #16a34a;
}

.cost-card.funding-amount .cost-amount {
    color: #2563eb;
}

.cost-meta {
    font-size: 13px;
    color: #6c757d;
    margin-top: 6px;
}

.savings-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.savings-label {
    font-size: 14px;
    color: #166534;
    font-weight: 600;
    margin-bottom: 8px;
}

.savings-amount {
    font-size: 36px;
    font-weight: 700;
    color: #16a34a;
    margin: 0 0 8px 0;
}

.savings-text {
    font-size: 15px;
    color: #166534;
    margin: 0;
}

.calc-restart {
    background: white;
    color: #1a1a1a;
    border: 2px solid #dee2e6;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calc-restart:hover {
    border-color: #0d6efd;
    background: #f8f9ff;
}

.calculator-footer {
    background: white;
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    font-size: 13px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .calculator-header {
        padding: 30px 20px 20px;
    }
    
    .calculator-header h2 {
        font-size: 24px;
    }
    
    .progress-container {
        padding: 15px 20px;
    }
    
    .calculator-step {
        padding: 30px 20px;
    }
    
    .step-title {
        font-size: 22px;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .costs-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
/* ── License page tweaks ── */
#nursery-license-msg { max-width: 580px; }