body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    scroll-behavior: smooth;
}

header {
    background-color: #004481;
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
}

h1, h2 {
    color: #004481;
}

.content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.result-box {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin: 2rem 0;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.footer-image {
    width: auto;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #004481;
    border-color: #004481;
}

.btn-primary:hover {
    background-color: #0369a1;
    border-color: #0369a1;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Larger Form Inputs */
.form-control-lg, .form-select-lg {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    height: 3rem;
}

/* Unit Option / Tile Styling */
.unit-option {
    flex: 1;
    min-width: 150px;
}

.unit-label {
    display: block;
    padding: 1rem;
    text-align: center;
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}
/* Multi-select tile styling */
.multi-tile-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.multi-tile {
    padding: 1rem 1.4rem;
    border: 2px solid #94a3b8;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    background: #f1f5f9;
}

.multi-tile:hover {
    background: #e2e8f0;
}

.multi-tile.selected {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Hover */
.unit-label:hover {
    background-color: #e2e8f0;
}

/* Checked (applies to radio & checkbox via sibling combinator) */
input[type="radio"]:checked + .unit-label,
input[type="checkbox"]:checked + .unit-label {
    background-color: #004481;
    color: #fff;
    border-color: #004481;
    box-shadow: 0 0 10px rgba(0, 68, 129, 0.3);
}

/* Focus-visible for keyboard navigation */
input[type="radio"]:focus + .unit-label,
input[type="checkbox"]:focus + .unit-label,
.unit-label:focus {
    outline: 3px solid rgba(0,60,129,0.25);
    outline-offset: 2px;
}

/* Multi-select label slight difference */
.multi-label {
    background-clip: padding-box;
}


.multi-tile.selected {
    background-color: #0d6efd;
    color: white;
    border-color: #0a58ca;
}

/* County Suggestions */
#countySuggestions {
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
}

#countySuggestions a {
    transition: background-color .12s ease;
}

/* list-group item hover */
.list-group-item-action:hover {
    background-color: #f1f5f9;
}

/* small responsive spacing */
@media (max-width: 576px) {
    .content-card {
        padding: 1.25rem;
    }
    .unit-option {
        min-width: 45%;
    }
}
/* Program list / expand/collapse styling */
.program-list {
    margin-top: 1rem;
}

.program-item {
    border-bottom: 1px solid #e6eef6;
    padding: 0.5rem 0;
}

.program-header {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.5rem 0;
    font-size: 1rem;
    cursor: pointer;
}

.program-arrow {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
    font-weight: 700;
    color: #0f172a;
}

.program-title {
    flex: 1;
    font-weight: 600;
    color: #0f172a;
}

.program-description {
    padding: 0.5rem 1.75rem;
    color: #334155;
    background: transparent;
    transition: max-height 0.18s ease;
}

.program-link-wrap {
    margin-left: 1rem;
}

.program-link {
    font-size: 0.875rem;
    text-decoration: none;
}

/* ensure the header looks clickable on hover */
.program-header:hover .program-title {
    text-decoration: underline;
}

/* small responsiveness */
@media (max-width: 576px) {
    .program-arrow { width: 20px; margin-right: 0.4rem; }
    .program-description { padding-left: 1.5rem; padding-right: 0.75rem; }
}
