:root {
    --metro-blue: #1e62b0;
    --border-color: #cccccc;
    --bg-gray: #f1f1f1;
}

* {
            box-sizing: border-box;
        }

        /* -------------------- Reservation Hero Banner -------------------- */
.reservation-hero-banner {
    /* Layered a 50% opacity black gradient over the image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.801), rgba(0, 0, 0, 0.5)), 
                      url('../images/Images-2/family service.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; /* Added to ensure image is centered */
    padding: 40px 20px 40px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white; /* Ensures all text inside is white for better contrast */
}

.reservation-hero-banner .tag-badge {
    display: inline-block;
    background-color: #7a7a7a75;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 25px;
}

.reservation-hero-banner h2 {
    font-size: 3em;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.reservation-hero-banner p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}


/* -------------------- Multi-Step Progress Bar -------------------- */
.progress-container {
    max-width: 600px;
    margin: 2rem auto 40px auto; /* Pulls up over the hero banner */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    z-index: 10;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    color: #999;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    color: #fff;
    font-size: 1.2rem;
    line-height: 40px;
    margin: 0 auto 5px auto;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-step.active .step-icon {
    background-color: #0055aa; /* Blue for active step */
}

.progress-step.completed .step-icon {
    background-color: #28a745; /* Green for completed step */
    /* Checkmark icon is handled in HTML/JS, but color is green */
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 50%;
    width: 100%;
    height: 3px;
    background-color: #eee;
    transform: translateX(100%);
    z-index: -1;
}

.progress-step.completed:not(:last-child)::after {
    background-color: #28a745;
}

.reservation-container {
    background-color: rgb(255, 255, 255);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    max-width: 600px;
    padding: 30px 60px;
    border: 1px solid #b8c9d9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 40px auto;
}

.reservation-container h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: -10px;
    font-size: 24px;
    color: #5a5a5a;
}

/* Stepper */
.stepper {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    font-weight: 400;
    overflow-x: hidden;
}

.step {
    padding: 12px 20px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.step.active {
    background-color: var(--metro-blue);
    color: white;
}

.step.completed {
    color: var(--metro-blue);
    border-bottom-color: var(--metro-blue);
}

/* Form Layout */
.form-step { display: none; }
.form-step.active { display: grid; grid-template-columns: 1fr; gap: 20px; }

.form-col { display: flex; flex-direction: column; gap: 15px; }

label {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
}

.input-wrap { position: relative; width: 100%; }

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus { border-color: var(--metro-blue); }

.bg-grey { background-color: var(--bg-gray) !important; }

/* Location Pins & Connector */
.location-container { position: relative; padding-left: 25px; margin: 10px 0; }
.loc-line {
    position: absolute;
    left: 8px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    border-left: 1px dashed #999;
}
.pin { position: absolute; left: -22px; font-size: 16px; }
.pin-pickup { top: 0; color: var(--metro-blue); }
.pin-dropoff { bottom: 0; color: #000; }


/* Add Stop Button Style */
.add-stop-link {
    background: none;
    border: none;
    color: var(--metro-blue);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-stop-link:hover {
    text-decoration: underline;
}

/* Stop Input Specifics */
.stop-input-group {
    position: relative;
    margin-bottom: 15px;
}

.remove-stop {
    position: absolute;
    right: 10px;
    top: 32px;
    color: #cc0000;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
}

.pin-stop {
    top: 35px;
    color: #666;
}


/* --- Responsiveness & Grid System --- */
.row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    gap: 15px;
    width: 100%;
}

.flex-1 {
    flex: 1;
    min-width: 200px; /* Forces stack when screen is narrow */
}
/* Counter UI */
.counter-group {
    display: flex;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 300px;
}
.counter-btn {
    background: #eee; border: none; width: 40px; height: 38px;
    cursor: pointer; font-size: 18px;
}
.counter-val-input { 
    flex: 1; border: none; text-align: center; font-weight: bold; 
    background: white; pointer-events: none;
}

/* Toggle UI */
.toggle-box { display: flex; border: 1px solid var(--border-color); border-radius: 2px; }
.toggle-opt { flex: 1; padding: 10px; text-align: center; cursor: pointer; font-size: 13px; background: #fafafa; color: #000; transition: 0.2s; }
.toggle-opt.active { background: var(--metro-blue); color: white; }

/* Buttons */
.btn-blue {
    background-color: var(--metro-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
}

.btn-secondary { background-color: #888; margin-top: 10px; }/* --- Responsiveness & Grid System --- */
.row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    gap: 15px;
    width: 100%;
}

.flex-1 {
    flex: 1;
    min-width: 200px; /* Forces stack when screen is narrow */
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
    color: #000;
    list-style: none; padding: 0; margin: 0; border: 1px solid #ccc;
    position: absolute; width: 100%; background: white; z-index: 1000;
}
.autocomplete-suggestions li { padding: 10px; cursor: pointer; font-size: 13px; }
.autocomplete-suggestions li:hover { background: #f0f0f0; }


/* -------------------- Contact CTA Banner -------------------- */
.contact-cta {
    /* Styles matching the screenshot's blue CTA banner */
    background: linear-gradient(135deg, #0055aa, #4285F4);
    color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Override blue H3 color */
    border: none;
    padding-left: 0;
}



.contact-cta p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto 25px auto;
    color: white;
    opacity: 0.9;
}

.contact-cta a {
    text-decoration: none;
}

.contact-cta button {
    background-color: white;
    color: #003366;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.contact-cta button:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.contact-cta strong a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

/* Mobile Adjustments (Phones) */
@media (max-width: 600px) {
    .reservation-container {
        padding: 15px;
        margin-right: 2rem;
        border: none;
        box-shadow: none;
    }

    .stepper {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 11px;
    }

    .step {
        padding: 10px 5px;
    }

    .row {
        flex-direction: column; /* Stack all inputs vertically */
        gap: 10px;
    }

    .flex-1 {
        width: 100%;
    }

    .btn-blue {
        padding: 15px; /* Larger touch area for mobile */
        font-size: 16px;
    }
}

/* --- Payment Field Enhancements --- */
input[pattern]:invalid {
    border-color: #ff4d4d;
}

.input-wrap i.valid-icon {
    position: absolute;
    right: 10px;
    top: 35px;
    color: green;
    display: none;
}