/*
 * My Fair Claim Theme - Calculator Styles
 * Description: Styles for the page-calculator.php template.
 * Version: 2.0 - Cleaned & Optimized (2025-11-13)
 * This file inherits variables from main.css for consistency.
 */

/* ==========================================================================
   1. BASE LAYOUT & CONTAINER
   ========================================================================== */

.calculator-page-main {
    background-color: var(--color-background-light);
    padding: 0;
}

.calculator-form-wrapper {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    border: 1px solid #eee;
    padding: 40px 50px;
    margin: 60px 0;
}

/* Hero background image override */
.calculator-page-main .page-hero-background {
    background-image: url('../images/appraisal-clause-hero.jpg');
}


/* ==========================================================================
   2. FORM SECTIONS & HEADER
   ========================================================================== */

.form-content {
    padding: 0;
}

.form-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.section-number {
    background: var(--color-blue);
    color: var(--color-white);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-bold);
    font-size: 0.875rem;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.section-title {
    color: var(--color-dark);
    font-size: var(--fs-body-pre-heading);
    font-weight: var(--fw-bold);
    margin: 0;
}


/* ==========================================================================
   3. FORM INPUTS & CONTROLS
   ========================================================================== */

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--fw-bold);
    color: var(--color-semidark);
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: var(--color-white);
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    font-weight: var(--fw-medium);
    color: var(--color-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(48, 113, 255, 0.1);
}


/* ==========================================================================
   4. DAMAGE TIERS (RADIO BUTTONS)
   ========================================================================== */

.damage-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 16px;
}

.tier {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-white);
    position: relative;
}

.tier:hover {
    border-color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tier.selected {
    border-color: var(--color-blue);
    background: #f4f8ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tier input[type="radio"] {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.tier-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tier-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Tier icon colors */
.tier-1 .tier-icon {
    background: #10b981;
}

.tier-2 .tier-icon {
    background: #f59e0b;
}

.tier-3 .tier-icon {
    background: var(--color-red);
}

.tier-4 .tier-icon {
    background: #7c2d12;
}

.tier-name {
    font-weight: var(--fw-bold);
    color: var(--color-dark);
    font-size: 1rem;
}

.tier-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: var(--fw-medium);
}


/* ==========================================================================
   5. CALCULATE BUTTON
   ========================================================================== */

.calculate-btn {
    font-size: var(--fs-buttons);
    padding: 16px 32px;
    display: block;
    margin: 30px auto 0;
    min-width: 240px;
}

.calculate-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* ==========================================================================
   6. RESULTS SECTION
   ========================================================================== */

.results {
    margin-top: 32px;
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.results-header {
    background: var(--color-blue);
    color: var(--color-white);
    padding: 20px 24px;
    text-align: center;
}

.results-header h3 {
    margin: 0;
    font-size: var(--fs-body-pre-heading);
    font-weight: var(--fw-bold);
    color: var(--color-white);
}


/* ==========================================================================
   7. VALUE DISPLAY
   ========================================================================== */

.value-display {
    padding: 30px 24px;
    text-align: center;
    background: #f4f8ff;
}

.value-range {
    font-size: 56px;
    font-weight: var(--fw-extrabold);
    color: var(--color-blue);
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.value-subheading {
    color: var(--color-blue);
    font-weight: var(--fw-bold);
    font-size: var(--fs-rating-text);
}


/* ==========================================================================
   8. RESULTS DETAILS & CALLOUT
   ========================================================================== */

.results-details {
    padding: 20px;
    background: var(--color-white);
}

.results-callout-heading {
    color: var(--color-blue);
    font-weight: var(--fw-bold);
    font-size: var(--fs-body-pre-heading);
    margin-bottom: 16px;
}

.results-callout-text {
    color: var(--color-text-light);
    font-size: var(--fs-body-paragraph);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   9. REPORT OPTIONS GRID - Updated for 3 Equal Columns
   ========================================================================== */

.report-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 equal columns */
    gap: 20px;
    margin-top: 24px;
}

.report-button {
    display: block;
    background: var(--color-white);
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: left;
    text-decoration: none;
    color: var(--color-dark);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Remove any default grid positioning */
    grid-column: auto;
    max-width: none;
    margin: 0;
}

.report-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

/* Report type borders */
.report-quick {
    border-color: var(--color-red);
}

.report-deluxe {
    border-color: var(--color-blue);
}

.report-premium {
    border-color: #1e40af;
    /* Explicitly ensure it doesn't span columns */
    grid-column: auto !important;
    max-width: none !important;
    margin: 0 !important;
}


/* ==========================================================================
   10. REPORT CARD ELEMENTS
   ========================================================================== */

.report-title {
    font-weight: var(--fw-extrabold);
    font-size: 22px;
    /* Slightly smaller for 3-column layout */
    margin-bottom: 10px;
    text-align: center;
    color: var(--color-dark);
}

/* Title colors by type */
.report-quick .report-title {
    color: var(--color-red);
}

.report-deluxe .report-title {
    color: var(--color-blue);
}

.report-premium .report-title {
    color: #1e40af;
    font-size: 24px;
}

.report-price {
    font-size: 1.25rem;
    /* Adjusted for narrower cards */
    font-weight: var(--fw-extrabold);
    text-align: center;
    margin: 8px 0;
    color: var(--color-blue);
}

.report-premium .report-price {
    color: #f59e0b;
    font-size: 1.5rem;
}

.report-description {
    font-size: 14px;
    /* Smaller for narrower cards */
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
    color: var(--color-text-light);
    font-weight: var(--fw-medium);
}

.report-features {
    margin: 12px 0;
}

.report-premium .report-features {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column in narrow premium card */
    gap: 6px;
    text-align: left;
}

.feature-item {
    font-size: 13px;
    /* Smaller for narrower cards */
    font-weight: var(--fw-medium);
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--color-text-light);
    padding-left: 1.2em;
    position: relative;
}

.feature-item::before {
    content: '•';
    color: var(--color-red);
    margin-right: 8px;
    font-weight: var(--fw-bold);
    position: absolute;
    left: 0;
    top: 0;
}

.report-deluxe .feature-item::before {
    color: var(--color-blue);
}

.report-premium .feature-item::before {
    color: #1e40af;
}

.report-outcome {
    font-size: 12px;
    /* Smaller for narrower cards */
    font-style: italic;
    margin: 12px 0 8px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--color-text-light);
    font-weight: var(--fw-regular);
}

.report-cta {
    font-size: 14px;
    /* Smaller for narrower cards */
    font-weight: var(--fw-bold);
    transition: all 0.2s ease;
    text-align: center;
    margin-top: 8px;
    color: var(--color-red);
}

.report-deluxe .report-cta {
    color: var(--color-blue);
}

.report-premium .report-cta {
    color: #1e40af;
}

.report-button:hover .report-cta {
    opacity: 1;
    transform: translateX(2px);
    text-decoration: underline;
}


/* ==========================================================================
   11. LEGAL NOTICE
   ========================================================================== */

.results-legal-notice {
    margin-top: 30px;
    padding: 20px;
    background: var(--color-background-light);
    border-radius: 8px;
    border-left: 4px solid var(--color-blue);
}

.results-legal-title {
    font-weight: var(--fw-bold);
    color: var(--color-blue);
    margin-bottom: 8px;
    font-size: 18px;
}

.results-legal-text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
    font-weight: var(--fw-medium);
}


/* ==========================================================================
   12. RESPONSIVE DESIGN
   ========================================================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {

    /* 2 columns, premium below */
    .report-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-premium {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .report-premium .report-features {
        grid-template-columns: 1fr 1fr;
        /* 2 columns when full width */
    }
}

/* Mobile and small tablets */
@media (max-width: 768px) {

    /* Page layout */
    .calculator-page-main {
        padding: 0;
    }

    /* Form wrapper */
    .calculator-form-wrapper {
        margin: 0 0 30px 0;
        border-radius: 0;
        padding: 20px;
    }

    /* Form rows */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Damage tiers */
    .damage-tiers {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Value display */
    .value-range {
        font-size: 42px;
    }

    .value-subheading {
        font-size: 18px;
    }

    /* Results details */
    .results-details {
        padding: 0;
    }

    /* Single column for all reports */
    .report-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .report-premium {
        grid-column: 1;
        max-width: 100%;
    }

    .report-premium .report-features {
        grid-template-columns: 1fr;
        /* Back to single column on mobile */
    }

    .report-premium .report-title {
        font-size: 24px;
    }

    .report-premium .report-price {
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   13. HIDDEN/DISABLED ELEMENTS
   ========================================================================== */

/* Legacy calculator header - removed in favor of hero section */
.calculator-header {
    display: none;
}

/* System status indicator - not needed */
.system-status {
    display: none;
}

/* Exit intent overlay - disabled for WordPress theme */
.exit-intent-overlay {
    display: none !important;
}


/* ==========================================================================
   2. New sections in page
   ========================================================================== */
.calculater-section-h1 {
    font-size: clamp(26px, 1.9vw, 32px);
    font-weight: var(--fw-bold);

}

.calculater-section {
    color: var(--color-dark);
    margin-bottom: 20px;
    padding: 20px 50px;
}

.calculater-list{
    margin-left: 12%;
    margin-bottom: .5em;
}

.calculator-li-heading{
    font-weight: var(--fw-bold);
}

.calculater-section p{
    margin: .5em;
}

/* End of calculator.css */


