/**
 * Roof Repair Cost Calculator - Styles
 */

/* Calculator Container */
.rr-repair-cost-calculator {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.rr-calc-header {
    background: linear-gradient(135deg, #5C7C5D 0%, #7BA05B 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

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

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

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

/* Form Sections */
.rr-calc-section {
    margin-bottom: 30px;
}

.rr-calc-section:last-child {
    margin-bottom: 0;
}

/* Labels */
.rr-calc-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2C1810;
    font-size: 16px;
}

.rr-label-text {
    display: inline;
}

.rr-label-required {
    color: #C84B31;
    margin-left: 4px;
}

/* Select Inputs */
.rr-calc-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #C4B5A0;
    border-radius: 8px;
    background-color: #fff;
    color: #2C1810;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C1810' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.rr-calc-select:focus {
    outline: none;
    border-color: #7BA05B;
    box-shadow: 0 0 0 3px rgba(123, 160, 91, 0.1);
}

/* Radio Options */
.rr-calc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rr-radio-option {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 2px solid #E5DDD3;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #F5F1EB;
}

.rr-radio-option:hover {
    border-color: #96C570;
    background: #fff;
}

.rr-radio-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #7BA05B;
}

.rr-radio-option input[type="radio"]:checked ~ .rr-radio-label {
    color: #2C1810;
}

.rr-radio-option:has(input[type="radio"]:checked) {
    border-color: #7BA05B;
    background: #fff;
    box-shadow: 0 2px 8px rgba(123, 160, 91, 0.15);
}

.rr-radio-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.rr-radio-label strong {
    color: #4A3428;
    font-size: 16px;
}

.rr-radio-desc {
    color: #6B4E3D;
    font-size: 14px;
}

/* Help Text */
.rr-calc-help {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #6B4E3D;
    font-style: italic;
}

/* Buttons */
.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-calc-button-primary {
    background: #7BA05B;
    color: #fff;
    width: 100%;
}

.rr-calc-button-primary:hover {
    background: #5C7C5D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 160, 91, 0.3);
}

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

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

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

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

/* Results Section */
.rr-calc-results {
    animation: fadeIn 0.5s ease;
}

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

.rr-results-header {
    text-align: center;
    margin-bottom: 30px;
}

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

/* Cost Display */
.rr-results-range {
    background: linear-gradient(135deg, #96C570 0%, #7BA05B 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.rr-cost-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rr-cost-label {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    opacity: 0.95;
}

.rr-cost-amount {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Breakdown */
.rr-results-breakdown {
    background: #F5F1EB;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.rr-breakdown-items {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.rr-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border-left: 4px solid #96C570;
}

.rr-breakdown-label {
    font-weight: 600;
    color: #4A3428;
}

.rr-breakdown-value {
    color: #6B4E3D;
}

/* Cost Factors */
.rr-cost-factors {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #E5DDD3;
}

.rr-factors-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #2C1810;
}

.rr-factors-list {
    margin: 0;
    padding-left: 20px;
}

.rr-factors-list li {
    margin-bottom: 8px;
    color: #4A3428;
    line-height: 1.6;
}

.rr-factors-list li strong {
    color: #2C1810;
}

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

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

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

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

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

/* CTA */
.rr-results-cta {
    margin-bottom: 20px;
}

/* Actions */
.rr-results-actions {
    text-align: center;
}

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

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

.rr-calc-footer-text strong {
    color: #2C1810;
}

/* Responsive */
@media (max-width: 768px) {
    .rr-repair-cost-calculator {
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .rr-calc-header {
        padding: 20px;
    }
    
    .rr-calc-title {
        font-size: 24px;
    }
    
    .rr-calc-subtitle {
        font-size: 14px;
    }
    
    .rr-calc-body {
        padding: 24px 20px;
    }
    
    .rr-calc-section {
        margin-bottom: 24px;
    }
    
    .rr-cost-amount {
        font-size: 28px;
    }
    
    .rr-calc-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .rr-calc-title {
        font-size: 22px;
    }
    
    .rr-cost-amount {
        font-size: 24px;
    }
    
    .rr-breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
