/* --- MODERN CSS RESET & VARIABLES --- */
:root {
    --navy: #002b80;
    --gold: #feb101;
    --light-gold: #ffcc33;
    --dark-navy: #001a4d;
    --white: #ffffff;
    --black: #1a1a1a;
    --text-dark: #222222;
    --gray-bg: #f4f7f9;
    --transition: 0.3s ease;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--gray-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* --- HEADER & LOGO --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--white);
}

.logo-area img {
    max-width: 340px; 
    height: auto;
}

.contact-pill {
    text-align: right;
    border-left: 4px solid var(--gold);
    padding-left: 20px;
}

.phone-big {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

.phone-big:hover { color: var(--gold); }

/* --- NAVIGATION --- */
.nav-bar {
    background: var(--navy);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-bar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-bar li a {
    display: block;
    padding: 18px 30px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-bar li a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* --- HERO & PAGE HEADERS --- */
.hero {
    background: linear-gradient(rgba(0,43,128,0.85), rgba(0,43,128,0.85)), url('/images/largebus2.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
}

.page-header { 
    background: var(--navy); 
    color: var(--white); 
    padding: 40px; 
    text-align: center; 
}

/* --- BUTTONS --- */
.btn-quote, .btn-submit {
    background: var(--gold);
    color: var(--navy);
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.2s, background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-quote { box-shadow: 0 4px 15px rgba(254, 177, 1, 0.4); }
.btn-submit { display: block; margin: 30px auto; }

.btn-quote:hover, .btn-submit:hover {
    transform: translateY(-3px);
    background: var(--white);
    color: var(--navy);
}

/* --- MAIN CONTENT LAYOUTS --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px;
}

.section-title { 
    color: var(--navy); 
    border-bottom: 3px solid var(--gold); 
    margin: 30px 0 20px 0; 
    padding-bottom: 5px;
    font-size: 1.5rem;
}

/* --- FORM COMPONENTS --- */
.form-container { padding: 40px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.input-group { margin-bottom: 15px; position: relative; }
label { display: block; font-weight: bold; margin-bottom: 5px; color: var(--navy); }

input[type="text"], input[type="email"], input[type="date"], 
input[type="time"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

/* --- TOOLTIP SYSTEM (Black Text on Opaque White) --- */
.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    cursor: help;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
}

.tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: var(--white);
    color: var(--black);
    text-align: left;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 12px;
    position: absolute;
    z-index: 10;
    bottom: 135%;
    left: 50%;
    margin-left: -130px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* --- IMAGE & MISSION STYLES --- */
.mission-box {
    background: #eef2f7;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-style: italic;
    border-left: 8px solid var(--navy);
    margin-top: 30px;
}

.bus-images-container {
    margin-top: 30px;
    display: flex; 
    gap: 15px; 
}

.bus-image {
    flex: 1; 
    aspect-ratio: 16 / 9; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* --- SIDEBAR HIRING CARD --- */
.sidebar-hiring {
    background: var(--gold);
    padding: 30px;
    border-radius: 20px;
    height: fit-content;
}

.sidebar-hiring .apply-btn {
    background: var(--black);
    color: var(--gold);
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
}

.sidebar-hiring .apply-btn:hover {
    background: var(--navy);
    color: var(--white);
}

/* --- FOOTER --- */
.footer {
    background: var(--dark-navy);
    color: var(--white);
    padding: 50px 40px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    align-items: start;
}

.footer h4 { color: var(--gold); margin-top: 0; }

.footer-safety-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 1.17em;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 20px;
    color: #88aadd;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .main-grid, .form-grid { grid-template-columns: 1fr; }
    .header { flex-direction: column; text-align: center; }
    .contact-pill { border-left: none; border-top: 4px solid var(--gold); margin-top: 20px; padding-top: 10px; }
    .hero h1 { font-size: 2rem; }
    .bus-images-container { flex-direction: column; }
    .tooltip-text { left: 0; margin-left: -20px; width: 220px; }
    .tooltip-text::after { left: 20%; }
}