/* leads/static/leads/style.css */

/* Update your variables block at the top of leads/static/leads/style.css */
:root {
    /* Primary Branding Tokens */
    --primary-green: #2F5D50;   /* Deep Forest */
    --secondary-green: #8FAE9D; /* Sage */
    --accent-gold: #B39B63;     /* Olive Gold Accent */
    --bg-ivory: #F7F5F0;        /* Warm Ivory Ground */
    --text-charcoal: #2B2B2B;   /* Smooth Charcoal Text */
    --card-white: #ffffff;

    --map-wine-dark: #4d7c0f;   /* Sonoma (Warm Emerald Green) */
    --map-wine-mid: #65a30d;    /* Napa (Rich Olive Green) */
    --map-wine-light: #84cc16;  /* Solano (Bright Sage Green) */
    --map-coastal-blue: #1d4ed8;/* Marin (Dark Ocean Blue) */
    --map-city-red: #dc2626;    /* San Francisco (Vibrant Crimson) */
    --map-peninsula: #475569;   /* San Mateo (Slate Gray Blue) */
    --map-silicon-teal: #0d9488;/* Santa Clara (Deep Tech Teal) */
    --map-eastbay-amber: #d97706;/* Contra Costa (Warm Amber Amber) */
    --map-eastbay-orange: #ea580c;/* Alameda (Tangerine Orange) */
}

/* Apply the structural foundations */
body {
    background-color: var(--bg-ivory) !important;
    color: var(--text-charcoal) !important;
    font-family: sans-serif;
}

.navbar {
    background-color: var(--primary-green) !important;
    border-bottom: 3px solid var(--secondary-green) !important; /* Soft Sage separation line */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.card {
    background-color: var(--card-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* Standardize your submit buttons to use the Olive Gold Accent */
.btn-submit {
    background-color: var(--primary-green) !important;
    border: 1px solid var(--primary-green) !important;
    color: var(--bg-ivory) !important;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--card-white) !important;
}



.shadow, .card.shadow {
    -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
}


.shadow {
    -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
}


.navbar img { width: 65px; height: 65px; margin-right: 18px; border-radius: 4px; }
.navbar-brand h1 { margin: 0; font-size: 26px; letter-spacing: -0.5px; }
.navbar-brand p { margin: 3px 0 0 0; font-size: 14px; opacity: 0.9; font-style: italic; }

.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; }

.card-primary { border-top-color: #e67e22; background-color: #fdfdfd; }
.card h3 { margin-top: 0; color: #436850; font-size: 20px; border-bottom: 1px solid #eef2ef; padding-bottom: 10px; }
.card p { color: #4a554e; font-size: 14px; line-height: 1.5; }

/* Append this to the very bottom of leads/static/leads/style.css */

/* Form inputs & options */
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.btn-option {
    display: block; width: 100%; padding: 12px; margin-bottom: 10px;
    background: #ffffff; border: 1px solid #ced4da; border-radius: 4px;
    text-align: left; font-size: 14px; cursor: pointer; color: #2d3732;
}
.btn-option:hover { border-color: #436850; background-color: #f4f7f5; }
.tip-box { background-color: #fff3cd; color: #664d03; padding: 12px; border-radius: 4px; margin-bottom: 12px; font-size: 13px; line-height: 1.4; }
.progress-bar { height: 4px; background-color: #e9ecef; border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
.progress-fill { height: 100%; width: 25%; background-color: #436850; transition: width 0.3s ease; }

.form-select, .form-control { width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; margin-bottom: 10px; box-sizing: border-box; }

.navigation-buttons { display: flex; justify-content: space-between; margin-top: 15px; }
.btn-nav { padding: 6px 14px; background-color: #6c757d; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-action-disabled { background-color: #e9ecef; color: #6c757d; border: 1px dashed #ced4da; text-align: center; padding: 10px; border-radius: 4px; font-size: 13px; }
.btn-submit { padding: 6px 14px; background-color: #436850; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }


/* ==========================================================================
   9-COUNTY MAP SEARCH & GRAPHICS GRID (ALIGNED TO NORCAL PALETTE)
   ========================================================================== */

.search-container {
    display: flex;
    /* Aligns height dynamically with your 3-tier global include headers */
    height: calc(100vh - 95px); 
}

.sidebar {
    width: 350px;
    background: var(--card-white);
    border-right: 1px solid #dee2e6;
    padding: 20px;
    overflow-y: auto;
}

.context-box {
    background: var(--bg-ivory); /* Formatted to use Warm Ivory background ground */
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.search-engine {
    flex-grow: 1;
    background: #e5e5e5;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* UNIVERSAL SVG COUNTY POLYGON BOUNDARY GLOWS */
.county-poly {
    transition: all 0.25s ease;
    cursor: pointer;
    stroke: #ffffff;
    stroke-width: 2;
}

.county-poly:hover {
    filter: brightness(0.9);
    transform: scale(1.01);
    transform-origin: center;
}

.county-text {
    font-weight: bold;
    font-size: 11px;
    fill: #ffffff;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}


/* Reusable County Regional Map Alignment Classes */
.poly-sonoma { fill: var(--map-wine-dark); }
.poly-napa { fill: var(--map-wine-mid); }
.poly-solano { fill: var(--map-wine-light); }
.poly-marin { fill: var(--map-coastal-blue); }
.poly-sf { fill: var(--map-city-red); }
.poly-sanmateo { fill: var(--map-peninsula); }
.poly-santaclara { fill: var(--map-silicon-teal); }
.poly-contracosta { fill: var(--map-eastbay-amber); }
.poly-alameda { fill: var(--map-eastbay-orange); }

