/* resources/css/pages/_cab.css */

/* =========================================
   CAB PAGE: PREMIUM HERO STYLES (Desktop)
   ========================================= */
.cab-hero-wrapper {
    background-color: #4b8df9; 
    /* Synced exactly with _base.css 5% padding */
    padding: 40px 5% 60px; 
}

.cab-hero-grid {
    /* Synced exactly with _base.css .home-inner-container width */
    max-width: 1200px; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr; 
    gap: 30px;
    align-items: start;
}

/* Left Side: Premium Form Card */
.cab-form-card {
    background: white;
    border-radius: 12px; 
    /* REDUCED: This fixes the massive left/right internal empty space! */
    padding: 25px 20px 40px 20px; 
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12); 
}

.ride-selection-title {
    display: block;
    margin: 0 0 16px 0;
    font-size: 20px; 
    font-weight: 500; 
    color: #333;
    letter-spacing: -0.3px;
}

/* Ride Selection Pills */
.cab-radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px; 
    flex-wrap: wrap;
}

.cab-radio-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px; 
    border: 1px solid #e5e7eb; 
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600; 
    color: #4b5563; 
    cursor: pointer;
    transition: all 0.2s ease;
}

.cab-radio-pill:hover {
    border-color: #d93025;
    color: #d93025;
}

.cab-radio-pill.active {
    background: #d93025;
    color: white;
    border-color: #d93025;
    box-shadow: 0 4px 10px rgba(217, 48, 37, 0.2); 
}

/* Section Headings */
.form-section-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 25px 0 15px 0; 
}

/* Desktop Scroll Logic */
.form-content-area {
    max-height: none;      /* Removes the 520px height limit */
    overflow-y: visible;   /* Disables the internal vertical scrollbar */
    padding-right: 0;      /* Removes the padding gap used for the scrollbar */
}

/* Input Groups */
.cab-input-group {
    margin-bottom: 20px; 
    border-bottom: 1px solid #e5e7eb; 
    padding-bottom: 6px;
    transition: border-color 0.2s;
}

.cab-input-group:focus-within {
    border-bottom-color: var(--primary-blue); 
}

.cab-input-group label { 
    display: block; 
    font-size: 11px; 
    font-weight: 600;
    color: #9ca3af; 
    margin-bottom: 4px; 
    text-transform: capitalize;
}

.cab-input-group input { 
    width: 100%; 
    border: none; 
    outline: none; 
    font-size: 15px; 
    font-weight: 700; 
    color: #1f2937; 
    background: transparent; 
}

.cab-input-group input::placeholder {
    color: #9ca3af; 
    font-weight: 500;
}

.cab-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; 
}

/* =========================================
   NEW PREMIUM SUMMARY BOX & TERMS
   ========================================= */
.summary-box {
    background: #f8fbf0; /* Prominent shading restored */
    border: 1px solid #dce4c9; 
    border-radius: 8px; 
    padding: 18px 20px; 
    margin-top: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03); 
}

.summary-header { 
    font-size: 14px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    border-bottom: 1px solid #dce4c9; 
    padding-bottom: 10px; 
    color: #222; 
}

.summary-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }

.summary-location { 
    font-size: 12px; 
    color: #555; 
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    gap: 5px;
}
.summary-location span { color: #222; font-weight: 700; }

.summary-total { 
    display: flex; 
    justify-content: space-between; 
    font-size: 16px; 
    padding-top: 12px; 
    border-top: 1px dashed #cbd5e1; 
    font-weight: 800; 
    margin-top: 12px; 
    color: #222;
}

/* Terms Checkbox */
.terms-container {
    display: flex; 
    gap: 12px; 
    margin-top: 20px; 
    margin-bottom: 30px; 
    align-items: flex-start;
    padding: 0 5px;
}
.terms-container input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.2); 
    cursor: pointer;
}
.terms-container label {
    font-size: 12px; 
    color: #555; 
    font-weight: 600; 
    cursor: pointer;
    line-height: 1.4;
}

/* Submit Button */
.btn-black-search {
    background: black;
    color: white;
    border: none;
    padding: 15px 40px; 
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    white-space: nowrap;
    width: 80%; 
    position: absolute;
    bottom: -22px;
    left: 10%;
    transition: transform 0.2s;
}
.btn-black-search:hover { transform: translateY(-2px); }

/* =========================================
   RIGHT SIDE: FEATURES & INFO
   ========================================= */
.cab-info-box { background: #f8fbf0; border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.cab-info-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; color: #333; }
.cab-info-list { list-style: none; }
.cab-info-list li { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #444; display: flex; align-items: center; gap: 10px; }
.cab-info-list li i { color: #0f9d58; font-size: 15px; }

.cab-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cab-mini-card { background: white; border-radius: 12px; padding: 15px; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.cab-mini-card p { font-size: 12px; font-weight: 700; line-height: 1.3; margin: 0; color: #333; }

.alert-banner-teal {
    background: #348f8f;
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

/* =========================================
   CAB PAGE: MOBILE ADJUSTMENTS
   ========================================= */
@media (max-width: 900px) {
    .cab-hero-wrapper { padding: 15px 10px 40px; }
    .cab-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .cab-form-card { padding: 25px 20px 30px 20px; } 
    
    .form-content-area {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
    .cab-radio-group { gap: 8px; margin-bottom: 20px; }
    .cab-features-grid { grid-template-columns: 1fr; }
    
    .btn-black-search {
        position: relative;
        width: 100%;
        margin-top: 30px;
        bottom: 0;
        left: 0;
    }
}