/**
 * Ice Storm Damage Assessment - Styles
 */

.rr-ice-storm-assessment {
    max-width: 860px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.rr-ice-storm-assessment .rr-calc-header {
    background: linear-gradient(135deg, #6BA5B8 0%, #5A8FA1 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.rr-ice-storm-assessment .rr-calc-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.rr-ice-storm-assessment .rr-calc-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.5;
}

/* Body */
.rr-ice-storm-assessment .rr-calc-body {
    padding: 40px 30px;
}

/* Progress Bar */
.rr-progress-container {
    background: #F5F1EB;
    padding: 20px 30px;
    margin: -40px -30px 32px;
    border-bottom: 2px solid #E5DDD3;
}

.rr-progress-bar {
    width: 100%;
    height: 8px;
    background: #E5DDD3;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.rr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6BA5B8 0%, #5A8FA1 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
    width: 16.66%;
}

.rr-progress-text {
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #4A3428;
}

/* Steps */
.rr-step {
    animation: fadeIn 0.3s ease-in;
}

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

.rr-step-title {
    font-size: 24px;
    color: #2C1810;
    margin: 0 0 8px;
    font-weight: 700;
    text-align: center;
}

.rr-step-subtitle {
    color: #6B4E3D;
    margin: 0 0 24px;
    font-size: 16px;
    text-align: center;
}

/* Option Cards (Radio) */
.rr-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.rr-option-card {
    position: relative;
    display: flex;
    cursor: pointer;
    height: 100%;
}

.rr-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rr-option-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px 20px;
    border: 2px solid #E5DDD3;
    border-radius: 8px;
    background: #F5F1EB;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 70px;
}

.rr-option-card:hover .rr-option-content {
    border-color: #6BA5B8;
    background: #fff;
}

.rr-option-card input[type="radio"]:checked ~ .rr-option-content {
    border-color: #6BA5B8;
    background: #fff;
    box-shadow: 0 2px 8px rgba(107, 165, 184, 0.15);
}

.rr-option-title {
    font-weight: 600;
    color: #2C1810;
    font-size: 1.05em;
}

.rr-option-desc {
    font-size: 0.9em;
    color: #6B4E3D;
    margin-top: 4px;
}

/* Checkbox Cards */
.rr-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.rr-checkbox-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.rr-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rr-checkbox-content {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 2px solid #E5DDD3;
    border-radius: 8px;
    background: #F5F1EB;
    transition: all 0.3s ease;
}

.rr-checkbox-card:hover .rr-checkbox-content {
    border-color: #96C570;
    background: #fff;
}

.rr-checkbox-card input[type="checkbox"]:checked ~ .rr-checkbox-content {
    border-color: #96C570;
    background: #fff;
    box-shadow: 0 2px 8px rgba(150, 197, 112, 0.15);
}

.rr-checkbox-card input[type="checkbox"]:checked ~ .rr-checkbox-content::before {
    content: "✓";
    position: absolute;
    right: 18px;
    font-size: 1.2em;
    color: #7BA05B;
    font-weight: bold;
}

.rr-checkbox-title {
    font-weight: 500;
    color: #2C1810;
}

/* Buttons */
.rr-ice-storm-assessment .rr-calc-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.rr-ice-storm-assessment .rr-calc-button-primary {
    background: #6BA5B8;
    color: #fff;
}

.rr-ice-storm-assessment .rr-calc-button-primary:hover {
    background: #5A8FA1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 165, 184, 0.3);
}

.rr-ice-storm-assessment .rr-calc-button-secondary {
    background: #E5DDD3;
    color: #4A3428;
}

.rr-ice-storm-assessment .rr-calc-button-secondary:hover {
    background: #C4B5A0;
}

/* Navigation */
.rr-step-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

/* Results */
.rr-results {
    animation: fadeIn 0.4s ease-in;
}

.rr-results-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #F5F1EB 0%, #FEFDFB 100%);
    border-radius: 8px;
}

.rr-risk-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.rr-risk-badge.low {
    background: #96C570;
    color: #fff;
}

.rr-risk-badge.moderate {
    background: #F4C542;
    color: #2C1810;
}

.rr-risk-badge.high {
    background: #E87D3E;
    color: #fff;
}

.rr-risk-badge.immediate {
    background: #C84B31;
    color: #fff;
}

.rr-results-title {
    font-size: 24px;
    color: #2C1810;
    margin: 0 0 12px;
    font-weight: 700;
}

.rr-results-summary {
    font-size: 16px;
    color: #4A3428;
    margin: 0;
    line-height: 1.6;
}

.rr-results-content {
    padding: 0;
}

.rr-results-section {
    margin-bottom: 24px;
    padding: 24px;
    background: #F5F1EB;
    border-radius: 8px;
}

.rr-section-title {
    font-size: 18px;
    color: #2C1810;
    margin: 0 0 16px;
    font-weight: 600;
}

.rr-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rr-checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #6BA5B8;
}

.rr-checklist-item::before {
    content: "→";
    margin-right: 12px;
    color: #6BA5B8;
    font-weight: bold;
    flex-shrink: 0;
}

.rr-checklist-item.priority {
    border-left-color: #C84B31;
    background: #FEF7F6;
}

.rr-checklist-item.priority::before {
    content: "⚠";
    color: #C84B31;
}

.rr-results-cta {
    text-align: center;
    background: #fff;
    border: 2px solid #96C570;
}

.rr-results-cta p {
    margin: 0 0 20px;
    color: #4A3428;
    font-size: 16px;
    line-height: 1.6;
}

.rr-cta-button {
    background: #96C570;
    color: #2C1810;
    width: 100%;
    font-size: 18px;
    padding: 16px 32px;
}

.rr-cta-button:hover {
    background: #7BA05B;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(150, 197, 112, 0.4);
}

#restartBtn {
    display: block;
    margin: 32px auto 0;
}

/* Disclaimers */
.rr-ice-storm-assessment .rr-results-disclaimers {
    background: #FFF9F0;
    border: 2px solid #E8B86D;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.rr-ice-storm-assessment .rr-disclaimer-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #8B6F47;
}

.rr-ice-storm-assessment .rr-disclaimer-list {
    margin: 0;
    padding-left: 20px;
}

.rr-ice-storm-assessment .rr-disclaimer-list li {
    margin-bottom: 10px;
    color: #6B4E3D;
    line-height: 1.6;
}

.rr-ice-storm-assessment .rr-disclaimer-list li strong {
    color: #4A3428;
}

/* Footer */
.rr-ice-storm-assessment .rr-calc-footer {
    background: #F5F1EB;
    padding: 24px 30px;
    border-top: 2px solid #E5DDD3;
    text-align: center;
}

.rr-ice-storm-assessment .rr-calc-footer-text {
    margin: 0;
    color: #6B4E3D;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (min-width: 640px) {
    .rr-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rr-ice-storm-assessment {
        margin: 20px auto;
        border-radius: 8px;
    }

    .rr-ice-storm-assessment .rr-calc-header {
        padding: 20px;
    }

    .rr-ice-storm-assessment .rr-calc-title {
        font-size: 24px;
    }

    .rr-ice-storm-assessment .rr-calc-subtitle {
        font-size: 14px;
    }

    .rr-progress-container {
        padding: 16px 20px;
        margin: -24px -20px 24px;
    }

    .rr-ice-storm-assessment .rr-calc-body {
        padding: 24px 20px;
    }

    .rr-step-title {
        font-size: 20px;
    }

    .rr-step-nav {
        flex-direction: column-reverse;
    }

    .rr-step-nav button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rr-ice-storm-assessment .rr-calc-title {
        font-size: 22px;
    }

    .rr-step-title {
        font-size: 18px;
    }

    .rr-results-header {
        padding: 20px;
    }

    .rr-results-title {
        font-size: 1.5em;
    }
}
