/* ============================================= */
/*  style.css – CLEAN, ORGANIZED & MOBILE-FIXED  */
/*  down7z.com – Professional, Responsive, Fast  */
/* ============================================= */

:root {
    --primary: #004481;
    --primary-hover: #0369a1;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --selected: #2563eb;
    --selected-bg: #dbeafe;
}

/* ==================== BASE ==================== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--primary);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ==================== LAYOUT ==================== */
header {
    background-color: var(--primary);
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
}

/* Full-width on mobile, constrained on larger screens */
main {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 576px) {
    main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 768px) {
    main {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 992px) {
    main {
        max-width: 960px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Content cards — centered, max-width, full-width on mobile */
.content-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .content-card {
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

/* ==================== COMPONENTS ==================== */
.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    margin-bottom: 2rem;
}

.footer-image {
    max-height: 80px;
    width: auto;
    margin: 1.5rem auto;
    display: block;
}

/* Result box */
.result-box {
    background: #f1f5f9;
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Form Controls */
.form-control-lg,
.form-select-lg {
    font-size: 1.25rem !important;
    padding: 0.75rem 1rem;
    height: 3.5rem;
    border-radius: 12px;
}

/* ==================== FORM ELEMENTS ==================== */
/* Radio Buttons — Custom Tiles */
.unit-option {
    flex: 1;
    min-width: 140px;
}

.unit-label {
    display: block;
    padding: 1rem 0.5rem;
    text-align: center;
    background-color: #f1f5f9;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-weight: 500;
}

.unit-label:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

input[type="radio"]:checked + .unit-label,
input[type="checkbox"]:checked + .unit-label {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 68, 129, 0.4);
}

input[type="radio"]:focus-visible + .unit-label,
.unit-label:focus-visible {
    outline: 3px solid rgba(0, 68, 129, 0.3);
    outline-offset: 2px;
}

/* Multi-Select Tiles (Military & Profession) */
.multi-tile-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.multi-tile {
    padding: 1rem 1.5rem;
    border: 2px solid #94a3b8;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
    background: #f1f5f9;
    text-align: center;
    min-width: 120px;
}

.multi-tile:hover {
    background: #e2e8f0;
    border-color: #64748b;
}

.multi-tile.selected {
    background-color: var(--selected);
    color: white;
    border-color: var(--selected);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

/* County Suggestions Dropdown */
#countySuggestions {
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
}

#countySuggestions a {
    padding: 0.75rem 1rem;
    transition: background-color 0.15s ease;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: #f1f5f9 !important;
}

/* ==================== PROGRAM LIST ==================== */
.program-list {
    margin-top: 1.5rem;
}

.program-item {
    border-bottom: 1px solid #e6eef6;
    padding: 0.75rem 0;
}

.program-header {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.program-header:hover {
    background: #f8fafc;
}

.program-arrow {
    display: inline-block;
    width: 28px;
    text-align: center;
    margin-right: 0.5rem;
    font-weight: 900;
    color: var(--primary);
    font-size: 1.2em;
}

.program-title {
    flex: 1;
    font-weight: 600;
    color: #0f172a;
}

.program-description {
    padding: 1rem 2rem;
    color: #334155;
    background: #f8fafc;
    border-radius: 8px;
    margin: 0.5rem 0 1rem;
    border-left: 4px solid var(--primary);
}

.program-header:hover .program-title {
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 3rem 1rem 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==================== RESPONSIVE FIXES ==================== */
@media (max-width: 576px) {
    .unit-option {
        min-width: 45%;
    }
    .multi-tile {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    .program-arrow {
        width: 24px;
        margin-right: 0.4rem;
    }
    .program-description {
        padding: 1rem 1.5rem;
    }
    header {
        padding: 2rem 1rem;
    }
    h1 {
        font-size: 1.9rem;
    }
}