/*
 * roof-estimator.css — Columbus Roof Cost estimator tool theme
 * ═══════════════════════════════════════════════════════════
 * PATH: public/css/roof-estimator.css
 * ROLE: Styles for app/Views/public/estimator/roofing.php only. Relies on
 *       the --teal / --teal-dark / --dark / --accent custom properties set
 *       by layouts/public_main.php. Class names describe purpose, never
 *       appearance; element state lives in data-* attributes.
 */

.roofest-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

.roofest-head {
    text-align: center;
    margin-bottom: 2rem;
}
.roofest-head h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.roofest-head p {
    color: #5b6470;
    max-width: 620px;
    margin: 0 auto;
    font-size: 1rem;
}

.roofest-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 880px) {
    .roofest-layout {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
}

/* ── Inputs column ───────────────────────────────── */
.roofest-card {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 1.4rem 1.4rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(20, 25, 35, 0.04);
}
.roofest-card:last-child { margin-bottom: 0; }

.roofest-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}
.roofest-card-hint {
    font-size: 0.85rem;
    color: #7a828d;
    margin-bottom: 1rem;
}

.roofest-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}
.roofest-choice-grid.roofest-choice-grid--three {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 480px) {
    .roofest-choice-grid,
    .roofest-choice-grid.roofest-choice-grid--three {
        grid-template-columns: 1fr;
    }
}

.roofest-choice {
    border: 1.5px solid #dfe2e7;
    border-radius: 10px;
    background: #fafbfc;
    padding: 0.75rem 0.7rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
    user-select: none;
}
.roofest-choice:hover { border-color: var(--teal); }
.roofest-choice[data-selected="true"] {
    border-color: var(--teal);
    background: #f0faf8;
    box-shadow: 0 0 0 2px rgba(87, 193, 182, 0.18);
}
.roofest-choice-label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--dark);
}
.roofest-choice-sub {
    display: block;
    font-size: 0.76rem;
    color: #828a94;
    margin-top: 0.15rem;
}

/* ── Area input ──────────────────────────────────── */
.roofest-area-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.roofest-area-input {
    width: 7rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding: 0.4rem 0.5rem;
    border: 1.5px solid #dfe2e7;
    border-radius: 8px;
    color: var(--dark);
}
.roofest-area-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(87, 193, 182, 0.18);
}
.roofest-area-unit {
    font-weight: 600;
    color: var(--dark);
}
.roofest-area-stepper {
    border: 1.5px solid #dfe2e7;
    background: #fafbfc;
    border-radius: 8px;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--dark);
    cursor: pointer;
}
.roofest-area-stepper:hover { border-color: var(--teal); }
.roofest-area-foot {
    font-size: 0.82rem;
    color: #7a828d;
    margin-top: 0.6rem;
}

/* ── Result column ───────────────────────────────── */
.roofest-result {
    position: sticky;
    top: 84px;
}
.roofest-result-card {
    background: var(--dark);
    color: #f5f6f7;
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
}
.roofest-result-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #aab2bd;
}
.roofest-result-range {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.7rem, 4.5vw, 2.3rem);
    font-weight: 700;
    margin: 0.2rem 0 0.1rem;
    color: #fff;
}
.roofest-result-per {
    font-size: 0.84rem;
    color: #aab2bd;
}
.roofest-result-spec {
    font-size: 0.84rem;
    color: #cdd3da;
    margin-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.7rem;
}

.roofest-breakdown {
    margin-top: 1rem;
}
.roofest-breakdown-line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.86rem;
    padding: 0.32rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.roofest-breakdown-line:last-child { border-bottom: none; }
.roofest-breakdown-line span:first-child { color: #cdd3da; }
.roofest-breakdown-line span:last-child { color: #fff; white-space: nowrap; }

.roofest-disclaimer {
    font-size: 0.78rem;
    color: #aab2bd;
    margin-top: 1rem;
    line-height: 1.45;
}

/* ── Contact CTA ─────────────────────────────────── */
.roofest-lead {
    margin-top: 1.25rem;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 16px;
    padding: 1.4rem;
}
.roofest-lead-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
}
.roofest-lead-hint {
    font-size: 0.84rem;
    color: #7a828d;
    margin-bottom: 1rem;
}
.roofest-lead-btn {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.12s;
}
.roofest-lead-btn:hover { filter: brightness(1.06); color: #fff; }
.roofest-lead-note {
    font-size: 0.76rem;
    color: #9aa2ac;
    margin-top: 0.6rem;
    text-align: center;
}

[hidden] { display: none !important; }
