/* Umbrella Policy Calculator Styles */

.calculator-container {
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    width: 25%;
    transition: width 0.3s ease;
}

/* Header */
.calculator-header {
    text-align: center;
    margin: 4rem auto 3rem;
    max-width: 700px;
}

.calculator-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calculator-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Container */
.calculator-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Steps */
.form-step {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

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

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

.form-step h2 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.9rem;
}

.step-description {
    color: #5D6D7E;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: #34495E;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E6ED;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.form-hint {
    display: block;
    color: #7F8C8D;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-label:hover {
    background: #E9ECEF;
    border-color: #2a5298;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
    cursor: pointer;
}

.checkbox-label span {
    color: #34495E;
    font-weight: 500;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1e3c72;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn--secondary {
    background: #E0E6ED;
    color: #34495E;
}

.btn--secondary:hover {
    background: #CBD3DC;
}

.btn--outline {
    background: transparent;
    border: 2px solid #2a5298;
    color: #2a5298;
}

.btn--outline:hover {
    background: #2a5298;
    color: white;
}

/* Results Section */
.results-section {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.results-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.results-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Risk Meter */
.risk-meter-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.risk-meter-container h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.risk-meter {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.risk-meter-bar {
    height: 30px;
    background: #E0E6ED;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.risk-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #27AE60 0%, #F39C12 50%, #E74C3C 100%);
    width: 0%;
    transition: width 1s ease;
    border-radius: 15px;
}

.risk-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #5D6D7E;
    font-size: 0.9rem;
}

.risk-level-text {
    font-size: 1.2rem;
    color: #34495E;
    font-weight: 600;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

/* Exposure Card */
.exposure-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.exposure-description {
    color: #5D6D7E;
    margin-bottom: 1.5rem;
}

.exposure-breakdown {
    font-size: 0.95rem;
    color: #34495E;
    line-height: 1.6;
}

/* Gap Card */
.gap-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E74C3C;
    margin-bottom: 0.5rem;
}

.gap-description {
    color: #5D6D7E;
    margin-bottom: 1.5rem;
}

.coverage-visual {
    margin-top: 1rem;
}

/* Recommendation Card */
.recommended-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #27AE60;
    margin-bottom: 0.5rem;
}

.recommendation-text {
    color: #5D6D7E;
    margin-bottom: 1.5rem;
}

.recommendation-reasons {
    list-style: none;
    padding: 0;
}

.recommendation-reasons li {
    padding: 0.5rem 0;
    color: #34495E;
    display: flex;
    align-items: start;
}

.recommendation-reasons li::before {
    content: '✓';
    color: #27AE60;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Risk Factors Card */
.factors-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.factor-item {
    padding: 0.75rem;
    background: #F8F9FA;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.factor-name {
    color: #34495E;
    font-weight: 500;
}

.factor-impact {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.impact-low {
    background: #D4EDDA;
    color: #155724;
}

.impact-medium {
    background: #FFF3CD;
    color: #856404;
}

.impact-high {
    background: #F8D7DA;
    color: #721C24;
}

/* Cost Card */
.cost-range {
    font-size: 2rem;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.cost-description {
    color: #5D6D7E;
    margin-bottom: 1.5rem;
}

.cost-factors {
    list-style: none;
    padding: 0;
}

.cost-factors li {
    padding: 0.5rem 0;
    color: #34495E;
    padding-left: 1.5rem;
    position: relative;
}

.cost-factors li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2a5298;
}

/* Benefits Card */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    color: #34495E;
    border-bottom: 1px solid #E0E6ED;
    display: flex;
    align-items: start;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: '✓';
    color: #27AE60;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Scenarios Section */
.scenarios-section {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.scenarios-section h3 {
    color: #1e3c72;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.6rem;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.scenario-item {
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 12px;
    border-left: 4px solid #2a5298;
}

.scenario-title {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.scenario-description {
    color: #5D6D7E;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1e3c72;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn--primary {
    background: #1e3c72;
    color: white;
}

.cta-buttons .btn--primary:hover {
    background: #2a5298;
}

.cta-buttons .btn--secondary {
    background: rgba(30, 60, 114, 0.2);
    color: #1e3c72;
    border: 2px solid #1e3c72;
}

.cta-buttons .btn--secondary:hover {
    background: rgba(30, 60, 114, 0.3);
}

/* Error styles */
input.error,
select.error {
    border-color: #E74C3C !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .form-step {
        padding: 2rem 1.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .exposure-amount,
    .gap-amount,
    .recommended-amount {
        font-size: 2rem;
    }
}