/* postcode-finder.css — Postcode Finder v8 — matches gps-accuracy/general-boundaries theme */

/* ── Hero — full-width gradient, identical to gps-accuracy ── */
.pf-hero {
    background:
        linear-gradient(135deg, rgba(10, 50, 30, 0.10) 0%, rgba(13, 59, 102, 0.10) 100%),
        url('/static/images/postcode-finder-hero.jpg') center / cover no-repeat;
    background:
        linear-gradient(135deg, rgba(10, 50, 30, 0.10) 0%, rgba(13, 59, 102, 0.10) 100%),
        url('/static/images/postcode-finder-hero.webp') center / cover no-repeat;
    color: #fff;
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    text-align: center;
}

.pf-hero__title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 var(--spacing-md);
    color: #fff;
    line-height: 1.2;
}

.pf-hero__lead {
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.65;
}

.pf-hero__stat-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.pf-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pf-hero__stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.pf-hero__stat-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    max-width: 130px;
    line-height: 1.3;
}

/* ── Content wrapper — white page, sections styled individually ── */
.pf-content {
    padding: var(--spacing-md) 0 var(--spacing-2xl);
}

.pf-content .container {
    max-width: 900px;
}

/* ── How it works — green tint card with left border ── */
.pf-howto {
    background: #f4f7f5;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.pf-howto__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-lg);
}

.pf-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.pf-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1 1 220px;
}

.pf-step__num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-step__text { font-size: 0.95rem; line-height: 1.55; color: #333; }
.pf-step__text strong { display: block; color: #111; margin-bottom: 0.2rem; }

/* ── District selector — callout card with secondary border ── */
.pf-selector {
    background: #f0f4fa;
    border: 1px solid #c5d8e8;
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.pf-selector__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.4rem;
}

.pf-selector__hint {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 var(--spacing-md);
}

.pf-select-wrap { display: flex; }

.pf-district-select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    font-size: 1rem;
    width: 100%;
    max-width: 460px;
    outline: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    appearance: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pf-district-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(26,86,50,0.12);
}

/* ── Browse grid — white card with border ── */
.pf-areas {
    background: #fff;
    border: 1px solid #dde8e2;
    border-radius: var(--border-radius);
    padding: var(--spacing-xl) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.pf-areas__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.4rem;
}

.pf-areas__subtitle {
    font-size: 0.92rem;
    color: #666;
    margin: 0 0 var(--spacing-md);
}

.pf-areas__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pf-area-link {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border: 1px solid #c8dcd0;
    border-radius: 20px;
    font-size: 0.83rem;
    color: var(--color-primary);
    text-decoration: none;
    background: #fff;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.pf-area-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pf-areas__loading { color: #aaa; font-size: 0.9rem; }

/* ── Explainer cards ── */
.pf-explainer__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-lg);
}

.pf-explainer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

.pf-explainer__card {
    background: #fff;
    border: 1px solid #dde8e2;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
}

.pf-explainer__icon { font-size: 2rem; margin-bottom: 0.75rem; }

.pf-explainer__card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
}

.pf-explainer__card p { font-size: 0.92rem; color: #555; line-height: 1.6; margin: 0; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .pf-hero { padding: var(--spacing-xl) 0 var(--spacing-lg); }
    .pf-hero__stat-bar { gap: var(--spacing-lg); }
    .pf-steps { flex-direction: column; gap: var(--spacing-md); }
}
