/* --- Booking Section Layout --- */
.quote-section { 
    padding: 80px 5%; 
    background: var(--brand-grey); 
}

.quote-container { 
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.form-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.form-header h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    padding-left: 15px;
    text-align: center;
    display: inline-block;
    text-decoration-line: underline;
    text-decoration-color: orange;
    text-decoration-thickness: 5px; 
    text-underline-offset: 10px;    
}

.trip-type-selector { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 35px; 
}

.type-btn input { display: none; }

.type-btn span { 
    padding: 10px 25px; 
    border: 1px solid #ddd; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: 0.3s;
}

.type-btn input:checked + span { 
    background: var(--brand-dark); 
    color: var(--brand-yellow); 
    border-color: var(--brand-dark); 
}

.vehicle-selector { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    margin: 15px 0 30px; 
}

.vehicle-card input { display: none; }

.v-content { 
    width: 150px;
    padding: 15px;
    border: 1px solid #eee; 
    border-radius: 12px; 
    text-align: center; 
    cursor: pointer; 
    transition: 0.3s;
    background: #fff;
}

.v-icon-img { 
    height: 40px; 
    width: auto; 
    margin: 0 auto 8px; 
    display: block; 
}

.v-name { font-weight: 700; display: block; }
.v-pass { font-size: 0.75rem; color: #888; }

.vehicle-card input:checked + .v-content { 
    border: 2px solid var(--brand-orange); 
    background: #fff9f0; 
}

.form-row { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 20px; 
}

.form-group { flex: 1; }

/* Desktop layouts for structural rows */
.address-grid { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 15px; 
    flex-wrap: wrap;
}

.address-grid input { flex: 1; min-width: 70px; }
.address-grid input.addr-street { flex: 3; }
.address-grid input.addr-nr { flex: 0.5; }

.datetime-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.datetime-row input[type="date"] { flex: 2; }
.datetime-row input[type="time"] { flex: 1; }

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    color: #444;
}

input, textarea { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    font-size: 0.95rem; 
    outline: none;
}

input:focus, textarea:focus { border-color: var(--brand-yellow); }

textarea {
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.extra-comments-group {
    margin-top: 25px;
    margin-bottom: 10px;
}

.section-title { 
    font-size: 1.1rem; 
    font-weight: 800; 
    margin: 30px 0 15px; 
    border-left: 4px solid var(--brand-yellow); 
    padding-left: 10px; 
    color: var(--brand-dark);
}

.submit-btn { 
    width: 100%; 
    padding: 18px; 
    background: var(--brand-dark); 
    color: var(--brand-yellow); 
    border: none; 
    font-weight: 800; 
    border-radius: 8px; 
    cursor: pointer; 
    margin-top: 20px; 
    font-size: 1.1rem;
    transition: 0.3s;
}

.submit-btn:hover { background: #333; transform: translateY(-2px); }

hr { border: none; border-top: 1px solid #eee; margin: 40px 0; }


/* ==========================================================================
   🌟 SUCCESS POPUP MODAL LAYOUT STYLES (Universal)
   ========================================================================== */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-modal-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 15px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-top: 6px solid var(--brand-yellow);
}

.success-icon {
    font-size: 3.5rem;
    color: #2ecc71;
    margin-bottom: 15px;
}

.success-modal-card h3 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.success-modal-card p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-emergency-box {
    background: #fffdf0;
    border: 1px dashed var(--brand-orange, #ff9800);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.modal-emergency-box p {
    margin-bottom: 8px;
    color: #1a1a1a;
}

.modal-phone-link {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-dark);
    text-decoration: none;
    background: var(--brand-yellow);
    padding: 8px 18px;
    border-radius: 50px;
    transition: transform 0.2s;
}

.modal-phone-link:hover {
    transform: scale(1.03);
}

.modal-close-btn {
    background: #f1f3f5;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #e2e6ea;
}


/* ==========================================================================
   --- Mobile Responsive Fixes (Max 768px Only) ---
   ========================================================================== */
@media (max-width: 768px) {
    /* Stacks Name and Phone number fields */
    .form-row {
        flex-direction: column;
        gap: 15px; 
    }

    /* Stacks Date and Time fields */
    .datetime-row {
        flex-direction: column;
        gap: 15px;
    }

    /* 🔥 FIX 1: RESTRENGTHENED MOBILE ADDRESS GRID 
       Restructures the mobile grid layout so 'addr-street' gains its own full line wrapper,
       while 'addr-nr' and 'addr-postcode' sit side-by-side on the row directly underneath.
    */
    .address-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Forces 2 clean half-width columns */
        gap: 10px !important;
    }

    .address-grid input.addr-street {
        grid-column: span 2 !important; /* Spans the full top row line width */
        width: 100% !important;
    }

    .address-grid input.addr-nr {
        grid-column: 1 !important; /* Forces left column alignment */
        width: 100% !important;
    }

    .address-grid input.addr-postcode {
        grid-column: 2 !important; /* Alignment directly to the right side of House number */
        width: 100% !important;
    }

    .address-grid input.addr-city {
        grid-column: span 2 !important; /* Spans the full bottom row line width */
        width: 100% !important;
    }

    /* 🔥 FIX 2: MOBILE NATIVE SYSTEM TEXT INPUT COLOR FIX 
       Applies subtle fallback grey text tones on initial load states while elements act as text fields.
    */
    input.date-placeholder-input[type="text"], 
    input.time-placeholder-input[type="text"] {
        color: #757575 !important;
    }
}