﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-deep: #1a3a6e;
    --blue-mid: #2272b8;
    --blue-light: #5bb8f5;
    --blue-pale: #e8f5fe;
    --blue-wash: #f0faff;
    --accent: #f7c948;
    --white: #ffffff;
    --text-body: #3a5068;
    --success: #22a06b;
    --success-pale: #f0fdf6;
    --warn: #f59e0b;
    --warn-pale: #fffbeb;
    --error: #e5484d;
    --error-pale: #fff0f0;
    --transition: 0.26s cubic-bezier(.4,0,.2,1);
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--blue-wash);
    color: var(--text-body);
}

/* ═══════════════════════════════════════════════
       SERVICE AREA SECTION
       ═══════════════════════════════════════════════ */
.service-area {
    padding: 100px 24px 120px;
    background: var(--blue-wash);
    position: relative;
    overflow: hidden;
}

    .service-area::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(91,184,245,0.09) 0%, transparent 70%);
        pointer-events: none;
    }

.sa-inner {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.sa-header {
    text-align: center;
    margin-bottom: 52px;
}

.sa-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-mid);
    background: var(--blue-pale);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.sa-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 900;
    color: var(--blue-deep);
    line-height: 1.15;
    margin-bottom: 14px;
}

    .sa-title span {
        color: var(--blue-mid);
    }

.sa-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-body);
    opacity: 0.82;
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Single-column layout ── */
.sa-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
}

/* ── Map ── */
.sa-map-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(26,58,110,0.12);
    border: 2px solid rgba(91,184,245,0.2);
}

.sa-map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Lookup column ── */
.sa-lookup-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Lookup card */
.sa-lookup-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 8px 40px rgba(26,58,110,0.10);
    border: 2px solid rgba(91,184,245,0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

    .sa-lookup-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

.lookup-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--blue-deep);
    margin-bottom: 6px;
}

.lookup-subtitle {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
    opacity: 0.75;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* Input row */
.lookup-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.lookup-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .lookup-field label {
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--blue-deep);
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

.lookup-input {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-deep);
    background: var(--blue-wash);
    border: 2px solid var(--blue-pale);
    border-radius: 12px;
    padding: 13px 16px;
    outline: none;
    width: 100%;
    letter-spacing: 0.06em;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

    .lookup-input::placeholder {
        color: var(--text-body);
        opacity: 0.3;
        font-weight: 600;
        letter-spacing: 0;
    }

    .lookup-input:focus {
        border-color: var(--blue-mid);
        box-shadow: 0 0 0 3px rgba(34,114,184,0.12);
        background: var(--white);
    }

    .lookup-input.error {
        border-color: var(--error);
    }

.btn-lookup {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--blue-deep);
    background: var(--accent);
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(247,201,72,0.38);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    flex-shrink: 0;
    height: 50px;
}

    .btn-lookup:hover {
        background: #ffd84a;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(247,201,72,0.5);
    }

    .btn-lookup svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

.lookup-error-msg {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--error);
    min-height: 18px;
    margin-top: 6px;
    display: none;
}

    .lookup-error-msg.visible {
        display: block;
    }

/* ── Result card ── */
.sa-result {
    border-radius: 16px;
    padding: 22px 22px;
    display: none;
    flex-direction: column;
    gap: 10px;
    border: 2px solid transparent;
    transition: all var(--transition);
}

    .sa-result.visible {
        display: flex;
    }

    .sa-result.local {
        background: var(--success-pale);
        border-color: rgba(34,160,107,0.3);
    }

    .sa-result.nearby {
        background: var(--warn-pale);
        border-color: rgba(245,158,11,0.3);
    }

    .sa-result.premium {
        background: var(--error-pale);
        border-color: rgba(229,72,77,0.25);
    }

    .sa-result.outside {
        background: #f8f8f8;
        border-color: #ddd;
    }

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-result.local .result-icon {
    background: rgba(34,160,107,0.15);
}

.sa-result.nearby .result-icon {
    background: rgba(245,158,11,0.15);
}

.sa-result.premium .result-icon {
    background: rgba(229,72,77,0.12);
}

.sa-result.outside .result-icon {
    background: #efefef;
}

.result-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-result.local .result-icon svg {
    stroke: var(--success);
}

.sa-result.nearby .result-icon svg {
    stroke: var(--warn);
}

.sa-result.premium .result-icon svg {
    stroke: var(--error);
}

.sa-result.outside .result-icon svg {
    stroke: #888;
}

.result-title {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.sa-result.local .result-title {
    color: var(--success);
}

.sa-result.nearby .result-title {
    color: var(--warn);
}

.sa-result.premium .result-title {
    color: var(--error);
}

.sa-result.outside .result-title {
    color: #555;
}

.result-zip-badge {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-body);
    opacity: 0.5;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    padding: 3px 10px;
    flex-shrink: 0;
}

.result-desc {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.65;
    opacity: 0.88;
}

.result-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
    margin-top: 4px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.sa-result.local .result-cta {
    background: var(--success);
    box-shadow: 0 4px 12px rgba(34,160,107,0.35);
}

.sa-result.nearby .result-cta {
    background: var(--warn);
    box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}

.sa-result.premium .result-cta {
    background: var(--error);
    box-shadow: 0 4px 12px rgba(229,72,77,0.3);
}

.sa-result.outside .result-cta {
    background: var(--blue-mid);
    box-shadow: 0 4px 12px rgba(34,114,184,0.3);
}

.result-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.result-cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .service-area {
        padding: 72px 16px 88px;
    }

    .lookup-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lookup {
        justify-content: center;
    }
}
