/* Landing page styles (index.php) — school-branded state/city/district picker. */

:root {
    --school-orange: #E87722;
    --school-orange-dark: #D46A1E;
    --school-black: #1a1a1a;
}

/* --- Top navigation bar --- */
.navbar-school {
    background-color: var(--school-black);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.25rem 0;
}
.navbar-school .container {
    align-items: flex-start;
}
.navbar-school .navbar-brand {
    color: #fff;
    padding: 0;
    margin: 0;
    align-self: flex-start;
}
.navbar-school .nav-link {
    color: #fff;
    padding: 0;
    margin: 0;
}
.navbar-school .nav-link:hover {
    color: var(--school-orange);
}
.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--school-orange);
    border-color: var(--school-orange);
}
.btn-primary:hover {
    background-color: var(--school-orange-dark);
    border-color: var(--school-orange-dark);
}
.btn-get-started {
    background-color: var(--school-orange);
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-get-started:hover {
    background-color: var(--school-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.4);
    color: white !important;
}
.btn-get-started:active {
    transform: translateY(0);
}

/* --- Page layout: sticky footer via flex column --- */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
    padding-top: 70px;
}
.main-content-home {
    display: flex;
    flex-direction: column;
}
.main-content-home > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.main-content-home > .container .home-wrapper {
    flex: 1;
}

/* --- Hero wrapper with grayscale campus background --- */
.home-wrapper {
    position: relative;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.97) 0%, rgba(100, 100, 100, 0.97) 100%);
    margin: 0 -12px 0 -12px;
    padding: 3rem 2rem 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-content-home .home-wrapper {
    flex: 1;
}
.home-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../mi-clio/assets/bg-chs.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(100%);
    z-index: 0;
}
.home-wrapper > .row {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* --- Picker card --- */
.landing-container {
    background: #4a4a4a;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 60px 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2;
}
.landing-header {
    text-align: center;
    margin-bottom: 50px;
}
.landing-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}
.landing-header p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0;
}

/* --- Select form --- */
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}
.form-group select:hover {
    border-color: var(--school-orange);
}
.form-group select:focus {
    outline: none;
    border-color: var(--school-orange);
    box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.1);
}
.form-group select option {
    padding: 10px;
    color: #333;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 35px;
}
.btn-enter {
    flex: 1;
    padding: 14px 20px;
    background-color: var(--school-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-enter:hover {
    background-color: var(--school-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(232, 119, 34, 0.3);
}
.btn-enter:active {
    transform: translateY(0);
}
.btn-enter:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.no-sites-message {
    text-align: center;
    color: #ccc;
    padding: 20px;
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--school-black);
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    margin-top: auto;
    font-size: 0.95rem;
}
.footer a {
    color: var(--school-orange);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* --- Mobile --- */
@media (max-width: 576px) {
    .landing-container {
        padding: 40px 25px;
    }
    .landing-logo {
        max-width: 300px;
    }
}
