/* ======================== booking AI css=========================== */
/* Form Validation Styles */

.booking-service-form.requires-validation .field-group {
    position: relative;
    margin-bottom: 17px;
    transition: all 0.3s ease;
}
.color-black{
    color: #0A0A0A;
}
.booking-service-form.requires-validation .field-group.error {
    animation: shake 0.3s ease-in-out;
}

.booking-service-form.requires-validation .field-group.error input {
    border-color: #e74c3c !important;
    background-color: #fdeded !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.booking-service-form.requires-validation .field-group.error label {
    color: #e74c3c !important;
}

.booking-service-form.requires-validation .field-group.error::after {
    content: "This field is required";
    position: absolute;
    top: 100%;
    left: 0;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-top: 2px;
}

/* Shake animation for error fields */
@keyframes shake {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(-5px);
    }
    30% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-3px);
    }
    90% {
        transform: translateX(3px);
    }
}

/* Booking Form Design - Based on Image Layout */
.booking-service-form {

    max-width: 100%;
}

.booking-service-form .row {
    display: flex;
    gap: 17px;
/*     margin-bottom: 20px; */
    flex-wrap: wrap;
}

/* Standardized layout for all service forms */
/* Row 1: 3 columns (Name/Company, Name, Mobile) */
.booking-service-form .row:first-child .field-group {
    flex: 1;
    min-width: 200px;
}

/* Row 2: 2 columns (Email, Passengers) */
.booking-service-form .row:nth-child(2) .field-group {
    flex: 1;
    min-width: 250px;
}

/* Row 3: 2 columns (Luggages, Car Type) */
.booking-service-form .row:nth-child(3) .field-group {
    flex: 1;
    min-width: 250px;
}

/* Row 4: 3 columns (Date, Time, Pickup Address) */
.booking-service-form .row:nth-child(4) .field-group {
    flex: 1;
    min-width: 200px;
}

/* Row 5: 2 columns (Basement, Dropoff) */
.booking-service-form .row:nth-child(5) .field-group {
    flex: 1;
    min-width: 250px;
}

/* Row 6: 3 columns (Service-specific fields) */
.booking-service-form .row:nth-child(6) .field-group {
    flex: 1;
    min-width: 200px;
}

/* Row 7: Full width (textarea or additional fields) */
.booking-service-form .row:nth-child(7) .field-group {
    flex: 1;
    min-width: 200px;
}

.booking-service-form .field-group {
    margin-bottom: 0;
    position: relative;
}

.booking-service-form .field-group label {
	padding-bottom:7px;
	font-weight: 600;
	font-size: 14px;
	color: #0A0A0A;
	font-weight: 500;
	line-height: 19px;
}

.booking-service-form .field-group label .required {
    color: #e74c3c;
    font-weight: bold;
}

.booking-service-form .field-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.booking-service-form .field-group input::placeholder {
    color: #6c757d;
    font-style: normal;
}

/* Pre-filled values styling */
.booking-service-form .field-group input[value]:not([value=""]) {
    background-color: #fff;
    border-color: #ccc;
    font-size: 14px;
    font-weight: 400;
    color: rgba(104, 104, 104, 1);
}

.booking-service-form .submit-booking, .pay-now{
    background: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    width: fit-content;
    letter-spacing: 0.5px;
    display: flex;
    gap: 12px;
}

.booking-service-form .submit-booking:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* Special styling for specific fields */
.booking-service-form input[name="passengers"],
.booking-service-form input[name="luggages"] {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #495057;
}

.booking-service-form input[name="car_type"] {
 
    color: #6c757d;
}

.booking-service-form input[name="pickup_date_time"],
.booking-service-form input[name="pickup_date"] {
    background-color: #f8f9fa;
    color: #495057;
}

.booking-service-form input[name="time_format"] {
    background-color: #f8f9fa;
    color: #495057;
    font-family: monospace;
}

.booking-service-form input[name="flight_eta"],
.booking-service-form input[name="meet_greet"] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.booking-service-form input[name="hours"],
.booking-service-form input[name="start_time"],
.booking-service-form input[name="hourly_rate"] {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

.booking-service-form input[name="pickup_location"],
.booking-service-form input[name="dropoff_location"] {
    background-color: #f8f9fa;
    color: #495057;
}

/* Full width field group for textarea */
.booking-service-form .field-group.full-width {
    flex: 1 1 100%;
    width: 100%;
}

/* Textarea styling */
.booking-service-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}
.booking-service-form textarea::placeholder {
    color: #6c757d;
    font-style: normal;
}

/* Pre-filled textarea styling */
.booking-service-form textarea[value]:not([value=""]),
.booking-service-form textarea:not(:placeholder-shown) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Checkbox styling */
/* .booking-service-form .checkbox-group {
    margin-bottom: 15px;
} */

.booking-service-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.booking-service-form .checkbox-label input[type="checkbox"] {
    /* CRITICAL FIX: Don't use display:none on required checkboxes */
    /* This caused "invalid form control not focusable" error */
    opacity: 0;
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.booking-service-form .checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}

.booking-service-form .checkbox-label .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-service-form .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.booking-service-form .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.booking-service-form .checkbox-label .checkbox-text {
    color: rgba(104, 104, 104, 1);
    font-weight: 400;
}

/* Error styling for checkboxes */
.booking-service-form .field-group.error .checkbox-label .checkmark {
    border-color: #e74c3c;
    background-color: #fdeded;
}

.booking-service-form .field-group.error .checkbox-label .checkbox-text {
    color: #e74c3c;
}

/* Fleet selection styling */
.fleet-item.selected {
    border: 2px solid #007bff;
    background-color: #f8f9ff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.fleet-item.selected .fleet-book {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.fleet-item.selected .fleet-book:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

/* Loading states for real-time updates */
.booking-summary.updating {
    opacity: 0.7;
    pointer-events: none;
}

.booking-summary.updating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .booking-service-form .row:first-child .field-group,
    .booking-service-form .row:nth-child(4) .field-group,
    .booking-service-form .row:nth-child(6) .field-group {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .booking-service-form .row:first-child .field-group,
    .booking-service-form .row:nth-child(4) .field-group,
    .booking-service-form .row:nth-child(6) .field-group {
        flex: 1 1 calc(50% - 10px);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .booking-service-form {
        padding: 20px;
    }
    
    .booking-service-form .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .booking-service-form .field-group {
        width: 100% !important;
        margin-right: 0 !important;
        min-width: auto !important;
    }
    
    .booking-service-form .submit-booking {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .booking-service-form {
        padding: 15px;
    }
    
    .booking-service-form .field-group input {
        padding: 10px 12px;
        font-size: 13px;
    }
}


#summary-section-base{
padding-bottom: 20px;
}