/* ========================================
   BLOCKSCORES – DARK BRAND THEME
   Black / Cyan (#00BFFF) / Red (#FF2D2D)
======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --black: #0a0a0a;
    --black-mid: #111111;
    --black-card: #161616;
    --black-border: #222222;
    --cyan: #00BFFF;
    --cyan-dim: rgba(0,191,255,0.10);
    --cyan-glow: rgba(0,191,255,0.25);
    --cyan-focus: rgba(0,191,255,0.35);
    --red: #FF2D2D;
    --red-dim: rgba(255,45,45,0.12);
    --white: #f0f2f5;
    --gray: #7a8899;
    --gray-light: #a0adb8;
    --input-bg: #0d0d0d;
}

/* ========================================
   GLOBAL
======================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', Arial, sans-serif;
    width: 100%;
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
}

/* ========================================
   HIDDEN MAP (keeps Google Places working)
======================================== */
#map {
    width: 0;
    height: 0;
    position: absolute;
    visibility: hidden;
}

/* ========================================
   NAV BAR
======================================== */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: #000000;
}

.nav-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

/* ========================================
   PAGE LAYOUT – TWO COLUMN
======================================== */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
    padding: 50px 32px 60px;
    align-items: start;
}

/* ========================================
   LEFT COLUMN – INFO & STEPS
======================================== */
.info-column h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.info-column h1 span {
    color: var(--cyan);
}

.info-column > p {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 32px;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    background: var(--cyan);
    color: var(--black);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--white);
}

.step-text p {
    font-size: 12.5px;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   RIGHT COLUMN – FORM CARD
======================================== */
.form-card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
}

.form-card h4 {
    text-align: center;
    color: var(--cyan);
    font-weight: 700;
    margin: 0 0 18px 0;
    font-size: 18px;
    letter-spacing: 0.3px;
}

/* ========================================
   INPUT STYLING
======================================== */
input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
    width: 100%;
    padding: 11px 14px;
    margin: 4px 0;
    border-radius: 8px;
    border: 1px solid var(--black-border);
    background: var(--input-bg);
    color: var(--white);
    font-size: 14px;
    font-family: 'DM Sans', Arial, sans-serif;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input::placeholder {
    color: #3a4550;
}

input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-focus);
}

input[readonly] {
    color: var(--gray);
    cursor: default;
}

/* Hide browser search clear button */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Read-only address fields */
#addr, #city-st-zip {
    background: var(--black-mid);
    color: var(--gray-light);
}

/* ========================================
   HELPER TEXT
======================================== */
.helper-text {
    font-size: 12px;
    color: var(--gray);
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.4;
}

.helper-text strong {
    color: var(--gray-light);
}

/* Slide-down transition for the instructions */
#location-help {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

#location-help.open {
    max-height: 400px;
    opacity: 1;
}

/* ========================================
   ERROR TEXT
======================================== */
.error-message {
    color: var(--red);
    font-size: 12px;
    margin-top: -2px;
    margin-bottom: 6px;
}

/* ========================================
   SCOUTING MODE RADIOS
======================================== */
.radio-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
    padding: 12px 14px;
    background: var(--cyan-dim);
    border-radius: 10px;
    border: 1px solid rgba(0,191,255,0.15);
}

.radio-prompt {
    font-size: 13px;
    color: var(--gray-light);
    margin: 0 0 2px 0;
    font-weight: 600;
}

.radio-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--gray-light);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    padding-left: 6px;
}

.radio-row input[type="radio"] {
    width: 15px;
    height: 15px;
    margin: 0;
    padding: 0;
    accent-color: var(--cyan);
    cursor: pointer;
}

/* ========================================
   EXPANSION SECTION
======================================== */
#expansion-section {
    margin: 8px 0;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--black-border);
    border-radius: 10px;
}

#expansion-search {
    margin-top: 4px;
}

#expansion-details {
    margin-top: 6px;
}

#expansion-details input {
    background: var(--black-mid);
    color: var(--gray-light);
    font-size: 13px;
    padding: 8px 12px;
    margin: 2px 0;
}

/* ========================================
   INLINE DESCRIPTION SECTION
======================================== */
#description-section {
    margin: 8px 0;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--black-border);
    border-radius: 10px;
}

.description-prompt {
    font-size: 13px;
    color: var(--gray-light);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

#business-description {
    width: 100%;
    height: 110px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--black-border);
    background: var(--input-bg);
    color: var(--white);
    resize: vertical;
    font-size: 14px;
    font-family: 'DM Sans', Arial, sans-serif;
    box-sizing: border-box;
}

#business-description:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-focus);
}

#business-description::placeholder {
    color: var(--gray);
    font-size: 12px;
    font-family: 'DM Sans', Arial, sans-serif;
    opacity: 1;
}

/* ========================================
   BUSINESS NAME FIELD
======================================== */
#business-name-field {
    display: none;
}

/* ========================================
   SUBMIT BUTTON
======================================== */
.btn-submit {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    background: var(--cyan);
    border-radius: 10px;
    border: none;
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Sans', Arial, sans-serif;
    cursor: pointer;
    transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-submit:disabled {
    background: var(--black-border);
    color: #555;
    cursor: not-allowed;
    box-shadow: none;
}

/* ========================================
   SUCCESS MESSAGE
======================================== */
.success-message {
    margin-top: 12px;
    padding: 10px;
    background: rgba(0,191,255,0.08);
    color: var(--cyan);
    border: 1px solid rgba(0,191,255,0.2);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

/* ========================================
   TYPEAHEAD DROPDOWN
======================================== */
#typeahead-results {
    position: absolute;
    left: 24px;
    right: 24px;
    width: auto;
    box-sizing: border-box;
    margin-top: -2px;
    background: var(--black-mid);
    border: 1px solid var(--black-border);
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    padding: 0;
}

#typeahead-results li {
    list-style: none;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    color: var(--gray-light);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

#typeahead-results li:last-child {
    border-bottom: none;
}

#typeahead-results li:hover {
    background: var(--cyan-dim);
    color: var(--cyan);
}

/* ========================================
   GOOGLE AUTOCOMPLETE DROPDOWN RESTYLE
======================================== */
.pac-container {
    background: var(--black-mid) !important;
    border: 1px solid var(--black-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    margin-top: 4px !important;
    font-family: 'DM Sans', Arial, sans-serif !important;
}

.pac-item {
    padding: 10px 14px !important;
    border-top: 1px solid rgba(255,255,255,0.03) !important;
    color: var(--gray-light) !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background: var(--cyan-dim) !important;
}

.pac-item-query {
    color: var(--white) !important;
    font-size: 14px !important;
}

.pac-icon {
    filter: brightness(0.6) !important;
}

.pac-matched {
    color: var(--cyan) !important;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    text-align: center;
    padding: 30px 20px 40px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.site-footer a {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--cyan);
}

/* ========================================
   MOBILE RESPONSIVE
======================================== */
@media (max-width: 820px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 20px 40px;
    }

    .info-column h1 {
        font-size: 28px;
    }

    .info-column {
        text-align: center;
    }

    .steps {
        text-align: left;
        max-width: 360px;
        margin: 0 auto;
    }

    .form-card {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .site-nav {
        padding: 12px 20px;
    }

    .nav-logo {
        height: 38px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-layout {
        padding: 20px 16px 30px;
    }

    .info-column h1 {
        font-size: 24px;
    }

    .form-card {
        padding: 20px 16px;
    }

    input {
        padding: 10px 12px;
        font-size: 14px;
    }
}
