/* Valet Parking Booking Styles - Updated */
/* Quick Search Form */
/* Custom Style for Save and Continue Button */
button.vp-btn-save {
    background-color: #24262B!important; /* Green background */
    color: white!important; /* Text color */
    border: 2px solid #28a745; /* Border color */
}

button.vp-btn-save:hover {
    background-color: #0B66D3!important; /* Darker green for hover effect */
    transform: translateY(-2px)!important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2)!important;
}

/* Responsive Style for Save Button */
@media (max-width: 768px) {
button.vp-btn-save {
        padding: 12px 25px;
    }
}

button.vp-btn.vp-btn-primary {
    width: 100%;
    background: white;
    color: black;
    margin: 0px;
    border: none;
}

button.vp-btn.vp-btn-primary:hover {
    background: #24262B;
    color: white;
}

.vp-quick-search-container {
    max-width: 500px;
    margin: 20px auto;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.elementor .vp-quick-search-form h3 {
    color: white;
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: left;
}

.vp-form-row {
    margin-bottom: 15px;
}

.vp-form-row-half {
    display: flex;
    gap: 15px;
}

.vp-form-row-half > * {
    flex: 1;
}

.vp-form-group {
    position: relative;
}

.vp-form-group label {
    background: white;
    font-size: 14px;
    padding: 5px;
    color: #666;
    font-weight: 500;
    margin-bottom: 0px;
    margin-left: 2px;
}

.vp-quick-search-form select,
.vp-quick-search-form input {
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.vp-quick-search-form select:focus,
.vp-quick-search-form input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.vp-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
}

.vp-btn-primary {
    background: white;
    color: #1976D2;
    width: 100%;
    margin-top: 10px;
}

.vp-btn-primary:hover:not(:disabled) {
    background: #0B192C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Booking Form */
.vp-booking-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Steps Navigation */
.vp-booking-steps {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.vp-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #6c757d;
}

.vp-step-active {
    background: #2196F3;
    color: white;
}

.vp-step:not(.vp-step-active):hover {
    background: #e9ecef;
}

.vp-step-number {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.vp-step-active .vp-step-number {
    background: rgba(255, 255, 255, 0.9);
    color: #2196F3;
}

.vp-step-text {
    font-weight: 500;
}

/* Form Content */
.vp-step-content {
    padding: 30px;
}

.vp-step-content h3 {
    color: #333;
    font-size: 22px;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 10px;
}

.vp-step-content h4 {
    color: #333;
    font-size: 18px;
    margin: 25px 0 15px 0;
}

.vp-form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.vp-form-group {
    margin-bottom: 20px;
}


.vp-form-row.vp-form-row-half {
    margin-bottom: 0px;
}


.vp-form-group input,
.vp-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.vp-form-group input:focus,
.vp-form-group select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Additional Services */
.vp-services-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.vp-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.vp-service-item label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-weight: normal;
}

.vp-service-item input[type="checkbox"] {
    margin-right: 15px;
    width: auto;
    transform: scale(1.2);
}

.vp-service-name {
    flex: 1;
    font-weight: 500;
}

.vp-service-price {
    font-weight: bold;
    color: #2196F3;
    margin-left: 15px;
}

/* Payment Summary */
.vp-payment-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.vp-payment-summary table {
    width: 100%;
    border-collapse: collapse;
}

.vp-payment-summary th,
.vp-payment-summary td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.vp-payment-summary th {
    font-weight: 600;
    background: rgba(33, 150, 243, 0.1);
}

.vp-payment-summary tfoot th {
    background: #2196F3;
    color: white;
    font-size: 18px;
}

/* Stripe Form */
.vp-stripe-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.vp-stripe-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

#vp-card-element {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
    min-height: 40px;
}

#vp-card-element:focus-within {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

#vp-card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

.vp-test-card-info {
    color: #666;
    margin-top: 10px;
    display: block;
    font-size: 13px;
}

/* Success Message */
.vp-success-container {
    padding: 40px;
    text-align: center;
}

.vp-success-content {
    max-width: 500px;
    margin: 0 auto;
}

.vp-success-content h2 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 20px;
}

.vp-booking-reference {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
}

/* Loading States */
#vp-checkout-spinner {
    display: none;
}

.vp-loading {
    opacity: 0.6;
    pointer-events: none;
}

select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

select option:disabled {
    color: #dc3545 !important;
    font-style: italic !important;
    background-color: #f8f9fa !important;
}

/* Specific styling for booked slots */
select option[disabled] {
    color: #dc3545 !important;
    font-weight: 500 !important;
    background: linear-gradient(90deg, #fff5f5 0%, #f8f9fa 100%) !important;
}

/* Error States */
.vp-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
    background-color: #fff5f5 !important;
}

/* Checkbox styling */
.vp-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.1);
}

.vp-form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

/* Date input customization */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vp-quick-search-container,
    .vp-booking-container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .vp-quick-search-container {
        padding: 20px;
    }
    
    .vp-form-row-half {
        flex-direction: column;
        gap: 10px;
    }
    
    .vp-booking-steps {
        flex-direction: column;
    }
    
    .vp-step {
        border-bottom: 1px solid #e9ecef;
        padding: 15px;
    }
    
    .vp-step:last-child {
        border-bottom: none;
    }
    
    .vp-step-content {
        padding: 20px;
    }
    
    .vp-service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vp-service-item label {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .vp-step-number {
        margin-right: 8px;
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .vp-step-text {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .vp-booking-steps,
    .vp-btn {
        display: none;
    }
    
    .vp-booking-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}



/* iOS Safari Date Input Width and Styling Fix */

/* Target specifically iOS Safari */
@supports (-webkit-touch-callout: none) {
    
    /* Fix date input width and appearance to match other inputs */
    input[type="date"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        
        /* Force same width as other inputs */
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        
        /* Match padding and styling of other form elements */
        padding: 12px 16px !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        background-color: #fff !important;
        
        /* Typography to match other inputs */
        font-family: inherit !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        color: #333 !important;
        
        /* Remove iOS specific styling */
        background-image: none !important;
        background-repeat: no-repeat !important;
        background-position: right center !important;
        
        /* Prevent zoom on focus */
        font-size: 16px !important;
    }
    
    /* Remove the calendar icon to prevent layout issues */
    input[type="date"]::-webkit-calendar-picker-indicator {
        display: none !important;
        -webkit-appearance: none !important;
    }
    
    /* Hide the inner spin button */
    input[type="date"]::-webkit-inner-spin-button {
        display: none !important;
        -webkit-appearance: none !important;
    }
    
    /* Fix for when input is in a container */
    .vp-form-group input[type="date"],
    .form-group input[type="date"] {
        width: 100% !important;
        display: block !important;
    }
}

/* Additional mobile-specific fixes */
@media screen and (max-width: 768px) {
    input[type="date"] {
        /* Ensure consistent sizing on mobile */
        height: auto !important;
        min-height: 44px !important; /* Touch-friendly minimum */
        
        /* Force full width */
        width: 100% !important;
        
        /* Prevent horizontal overflow */
        overflow: hidden !important;
    }
    
    /* If your form uses specific classes, target them too */
    .vp-form-row input[type="date"] {
        width: 100% !important;
        flex: 1 !important;
    }
}

/* Specific fix for your form styling if needed */
.vp-quick-search-form input[type="date"],
#vp-booking-form input[type="date"] {
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
}