/* ==================== LOCATION INPUT AND CURRENT LOCATION STYLES ==================== */

/* Location input container - matches your existing form styles */
.location-input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}
  
/* Adjust location input to full width */
.location-input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
}

.location-input::placeholder {
    color: #999;
    font-size: 15px;
}

/* Current location link - styled as text link */
.btn-current-location {
    font-size: 13px;
    padding: 6px 0;
    margin-top: 6px;
    background: transparent;
    border: none;
    color: #0066cc;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    text-decoration: underline;
    align-self: flex-start;
}

.btn-current-location:hover {
    color: #0052a3;
    text-decoration: none;
}

/* Style for when location is being fetched */
.btn-current-location:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Google Places Autocomplete dropdown - CRITICAL Z-INDEX FIX */
.pac-container {
    z-index: 10002 !important; /* Must be higher than modal content (10001) */
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary);
    margin-top: 4px;
}

.pac-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-medium);
    font-size: 14px;
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item:hover {
    background-color: var(--light-yellow);
}

.pac-item-selected {
    background-color: var(--primary);
}

.pac-icon {
    margin-right: 8px;
}

/* ==================== MODAL STYLES ==================== */

/* Modal overlay */
.fcrb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.fcrb-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* Modal content - matches your yellow theme */
.fcrb-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
	padding-bottom: 50px; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    border: none;
}

.fcrb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    flex-shrink: 0;
}

.fcrb-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

.fcrb-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fcrb-modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(0deg);
}

.fcrb-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: #f5f5f5;
}

.fcrb-modal-body .form-group {
    margin-bottom: 12px;
    position: relative;
}

.fcrb-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    text-transform: capitalize;
}

.fcrb-modal-body input[type="text"],
.fcrb-modal-body select {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
    transition: all 0.2s ease;
}

.fcrb-modal-body input[type="text"]::placeholder {
    color: #999;
    font-size: 15px;
}

.fcrb-modal-body input[type="text"]:focus,
.fcrb-modal-body select:focus {
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
    outline: none;
}

/* Add icon positioning for inputs */
.fcrb-modal-body .form-group::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    margin-top: 12px;
}




.fcrb-actions {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 20px;
    border-top: none;
    background-color: #f5f5f5;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    flex-shrink: 0;
}

.fcrb-actions .btn-book {
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    min-width: 200px;
    font-size: 16px;
    text-transform: capitalize;
}

.fcrb-actions .btn-book:first-child {
    display: none;
}

.fcrb-actions .btn-book:last-child {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
}

.fcrb-actions .btn-book:last-child:hover {
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.4);
}

.fcrb-radio-row {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    flex-wrap: nowrap;
    border-bottom: 2px solid #e0e0e0;
}

.fcrb-radio-row label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    position: relative;
}

.fcrb-radio-row label:hover {
    background-color: transparent;
    color: #333;
}

.fcrb-radio-row input[type="radio"] {
    display: none;
}

.fcrb-radio-row input[type="radio"]:checked + label,
.fcrb-radio-row label:has(input[type="radio"]:checked) {
    color: #ff5722;
    border-bottom-color: #ff5722;
    background-color: transparent;
}

/* Fix for the label wrapping */
.fcrb-radio-row input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fcrb-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.fcrb-row .form-group {
    flex: 1;
    min-width: 0;
}

/* Prevent body scroll when modal is open */
body.fcrb-modal-open {
    overflow: hidden;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 768px) {
    .fcrb-modal {
        padding: 10px;
    }
    
    .fcrb-modal-content {
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }
    
    .fcrb-modal-header {
        padding: 15px;
    }
    
    .fcrb-modal-header h3 {
        font-size: 1.25em;
    }
    
    .fcrb-modal-body {
        padding: 15px;
    }
    
    .fcrb-actions {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .fcrb-actions .btn-book {
        flex: 1;
        min-width: calc(50% - 5px);
    }
    
    .fcrb-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .fcrb-row .form-group {
        min-width: auto;
    }
    
    .fcrb-radio-row {
        gap: 10px;
        padding: 12px;
    }
    
    .fcrb-radio-row label {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fcrb-modal-header h3 {
        font-size: 1.1em;
    }
    
    .fcrb-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.25em;
    }
    
    .fcrb-actions .btn-book {
        width: 100%;
        min-width: auto;
    }
    
    .fcrb-radio-row {
        flex-direction: column;
    }
    
    .fcrb-radio-row label {
        width: 100%;
    }
}

/* ==================== SINGLE ROW VEHICLE DISPLAY STYLES ==================== */

/* Results page - single row display */
.vehicle-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.featured-vehicle-section {
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-vehicle-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.vehicle-category-header {
    padding: 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.class-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.class-pricing {
    font-size: 14px;
    color: #666;
}

.featured-vehicle-section .vehicle-card {
    padding: 0;
    border: none;
    background: transparent;
}

.featured-vehicle-section .vehicle-image {
    height: 180px;
    overflow: hidden;
}

.featured-vehicle-section .vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-vehicle-section:hover .vehicle-image img {
    transform: scale(1.05);
}

.featured-vehicle-section h4 {
    margin: 15px 0 10px;
    padding: 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.featured-vehicle-section .vehicle-price-estimate {
    padding: 0 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.featured-vehicle-section .btn-book {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px;
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.featured-vehicle-section .btn-book:hover {
    background: #e0a800;
}

.featured-vehicle-section .unavailable-notice {
    padding: 12px 15px;
    margin: 0 15px 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    text-align: center;
}

/* Featured cars page - single row display */
.fcrb-featured-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.fcrb-featured-card {
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fcrb-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.fcrb-featured-image {
    height: 180px;
    overflow: hidden;
}

.fcrb-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fcrb-featured-card:hover .fcrb-featured-image img {
    transform: scale(1.05);
}

.fcrb-featured-body {
    padding: 15px;
}

.fcrb-vehicle-name {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.fcrb-vehicle-description {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
}

.fcrb-capacity-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.fcrb-capacity-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.fcrb-book-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fcrb-book-btn:hover {
    background: #e0a800;
}

/* Responsive adjustments for vehicle cards */
@media (max-width: 1200px) {
    .vehicle-categories,
    .fcrb-featured-grid {
        justify-content: space-between;
    }
    
    .featured-vehicle-section,
    .fcrb-featured-card {
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    .vehicle-categories,
    .fcrb-featured-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-vehicle-section,
    .fcrb-featured-card {
        max-width: 100%;
        width: 100%;
    }
}