/**
 * QuickSilver Tours Frontend Styles
 * 
 * @package QuickSilver_Tours
 */

/* Base Styles */
.qs-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.qs-booking-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Progress Steps */
.qs-booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 20px;
}

.qs-booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.qs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.qs-step.active .step-number {
    background: #3498db;
    color: white;
    border-color: #2980b9;
    transform: scale(1.1);
}

.qs-step.completed .step-number {
    background: #27ae60;
    color: white;
    border-color: #229954;
}

.qs-step.completed::after {
    content: '✓';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.step-label {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-weight: 500;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.qs-step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

/* Form Steps */
.qs-form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.qs-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Sections */
.qs-form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qs-form-section h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Service Types */
.qs-service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.qs-service-option {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.qs-service-option:hover {
    transform: translateY(-2px);
}

.qs-service-option input {
    display: none;
}

.service-card {
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.qs-service-option input:checked + .service-card {
    border-color: #3498db;
    background: linear-gradient(135deg, #ebf3fd 0%, #f0f8ff 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* Trip Types */
.qs-trip-types {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.qs-trip-option {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.qs-trip-option input {
    display: none;
}

.trip-label {
    display: block;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.trip-label:hover {
    border-color: #3498db;
    transform: translateY(-1px);
}

.qs-trip-option input:checked + .trip-label {
    border-color: #3498db;
    background: linear-gradient(135deg, #ebf3fd 0%, #f0f8ff 100%);
    color: #3498db;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.15);
}

/* Vehicle Types */
.qs-vehicle-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.qs-vehicle-option {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.qs-vehicle-option:hover:not(.disabled) {
    transform: translateY(-2px);
}

.qs-vehicle-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qs-vehicle-option input {
    display: none;
}

.vehicle-card {
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vehicle-image {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

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

.qs-vehicle-option:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.vehicle-description {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.vehicle-rate {
    margin-top: auto;
    font-weight: bold;
    color: #27ae60;
    font-size: 1.1rem;
}

.rate-display {
    display: block;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.qs-vehicle-option input:checked + .vehicle-card {
    border-color: #3498db;
    background: linear-gradient(135deg, #ebf3fd 0%, #f0f8ff 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.capacity-warning {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Form Fields */
.qs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qs-form-group {
    display: flex;
    flex-direction: column;
}

.qs-form-group.full-width {
    grid-column: 1 / -1;
}

.qs-field-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.qs-form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.qs-form-group input,
.qs-form-group select,
.qs-form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    color: #000;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

/* iOS-specific select styling - Enhanced dropdown arrows */
/* GLOBAL: Apply to ALL select elements in the booking form */
.qs-booking-form select,
#qs-booking-form select,
.qs-form-group select,
.qs-addon-options select,
.qs-addon-suboptions select,
.time-select-picker,
select[id*="time"],
select[id*="count"],
select[id*="seat"],
select[id*="grocery"],
select[name*="grocery"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.25rem !important;
    padding-right: 2.75rem !important;
    color: #000;
}

/* Ensure consistent styling across all browsers - Hide default IE/Edge arrow */
.qs-booking-form select::-ms-expand,
#qs-booking-form select::-ms-expand,
.qs-form-group select::-ms-expand,
.qs-addon-options select::-ms-expand,
.qs-addon-suboptions select::-ms-expand,
.time-select-picker::-ms-expand,
select[id*="time"]::-ms-expand,
select[id*="count"]::-ms-expand,
select[id*="seat"]::-ms-expand,
select[id*="grocery"]::-ms-expand,
select[name*="grocery"]::-ms-expand {
    display: none !important;
}

/* Focus state for select - More vibrant arrow */
.qs-booking-form select:focus,
#qs-booking-form select:focus,
.qs-form-group select:focus,
.qs-addon-options select:focus,
.qs-addon-suboptions select:focus,
.time-select-picker:focus,
select[id*="time"]:focus,
select[id*="count"]:focus,
select[id*="seat"]:focus,
select[id*="grocery"]:focus,
select[name*="grocery"]:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232980b9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

.qs-form-group input:focus,
.qs-form-group select:focus,
.qs-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.qs-form-group input.error,
.qs-form-group select.error,
.qs-form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    padding: 5px 0;
    display: block;
    font-weight: 500;
}

.qs-form-group input.error,
.qs-form-group select.error {
    border-color: #dc3545;
    background: #fff8f8;
}

.qs-form-group input.valid-input,
.qs-form-group select.valid-input {
    border-color: #28a745;
    background: #f8fff8;
}

.custom-location-option {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f0f0f0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.custom-location-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.custom-location-option input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* Date/Time Fields */
.return-date-row,
.middle-date-row,
.three-way-location {
    animation: slideDown 0.3s ease-out;
}

/* Date and Time Input Icons Styling */
input[type="date"], 
input[type="time"] {
    position: relative;
    padding-right: 35px;
}

/* Calendar and Clock Icon Styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    color: #ED1D24 !important;
    background-color: transparent;
    background-image: none;
    font-size: 18px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    /* Force visibility with CSS filters */
    filter: invert(12%) sepia(90%) saturate(7000%) hue-rotate(350deg) brightness(85%) contrast(115%);
    -webkit-appearance: none;
    appearance: none;
}

/* Alternative approach: Use SVG background for better visibility */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ED1D24'%3e%3cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3e%3c/svg%3e") !important;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ED1D24'%3e%3cpath d='M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.7L16.2,16.2Z'/%3e%3c/svg%3e") !important;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Hover effect for icons */
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    transform: translateY(-50%) scale(1.1);
    transition: all 0.2s ease;
    filter: invert(12%) sepia(90%) saturate(7000%) hue-rotate(350deg) brightness(75%) contrast(125%);
}

/* Focus state for better accessibility */
input[type="date"]:focus::-webkit-calendar-picker-indicator,
input[type="time"]:focus::-webkit-calendar-picker-indicator {
    outline: 2px solid #ED1D24;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Firefox specific styles */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
    color: #ED1D24 !important;
    font-size: 18px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 1 !important;
    filter: invert(12%) sepia(90%) saturate(7000%) hue-rotate(350deg) brightness(85%) contrast(115%);
}

/* Additional styling for better visual integration */
input[type="date"], 
input[type="time"] {
    padding-right: 35px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    height: 45px;
}

input[type="date"]:focus, 
input[type="time"]:focus {
    border-color: #ED1D24;
    box-shadow: 0 0 0 2px rgba(237, 29, 36, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin-top: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
        margin-top: 15px;
    }
}

/* Booking Summary */
.qs-booking-summary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.summary-item.total {
    border-top: 2px solid #e0e0e0;
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.summary-item .label {
    color: #666;
    font-weight: 500;
}

.summary-item .value {
    font-weight: 600;
    color: #333;
}

.summary-item.total .value {
    color: #27ae60;
    font-size: 1.3rem;
}

/* Notes and Terms */
.booking-notes {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.booking-notes h4 {
    margin: 0 0 0.5rem 0;
    color: #856404;
    font-size: 1rem;
    font-weight: 600;
}

.booking-notes ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #856404;
}

.booking-notes li {
    margin-bottom: 0.25rem;
}

.terms-agreement {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.terms-agreement.validation-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s ease-in-out;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    transform: scale(1.2);
}

/* Navigation Buttons */
.qs-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
}

.qs-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.qs-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.qs-btn:hover::before {
    left: 100%;
}

.qs-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.qs-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.qs-btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.qs-btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
}

.qs-btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.qs-btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

.qs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading Overlay */
.qs-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.qs-loading-overlay p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Modal */
.qs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
}

.close-modal:hover {
    color: #333;
    background: #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qs-booking-wrapper {
        padding: 0 1rem;
    }
    
    .qs-form-row {
        grid-template-columns: 1fr;
    }
    
    /* Optimized step navigation for tablets */
    .qs-booking-steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }
    
    .qs-booking-steps::before {
        display: none;
    }
    
    .qs-step {
        flex: 0 0 auto;
        min-width: 70px;
        max-width: 85px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
    
    .step-label {
        font-size: 0.65rem;
        line-height: 1.1;
        min-height: 1.8rem;
    }
    
    .qs-trip-types {
        flex-direction: column;
    }
    
    .qs-service-types,
    .qs-vehicle-types {
        grid-template-columns: 1fr;
    }
    
    .qs-form-navigation {
        flex-direction: row;
        gap: 1rem;
    }
    
    .qs-btn {
        width: 100%;
    }
    
    .qs-booking-title {
        font-size: 1.5rem;
    }
    
    .qs-form-section {
        padding: 1rem!important;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Tablet-specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .qs-booking-steps {
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }
    
    .qs-step {
        min-width: 90px;
        max-width: 110px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .step-label {
        font-size: 0.75rem;
        min-height: 2.2rem;
    }
    
    /* Optimize grid layouts for tablets */
    .qs-service-types {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .qs-vehicle-types {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.75rem;
    }
    
    .service-card,
    .vehicle-card {
        padding: 1.25rem;
        min-height: 80px;
    }
    
    .vehicle-card {
        min-height: 240px;
    }
    
    .qs-trip-types {
        gap: 0.75rem;
    }
    
    .trip-label {
        padding: 0.875rem;
        min-width: 140px;
    }
    
    /* Optimize form layouts for tablets */
    .qs-form-row {
        grid-template-columns: 1fr!important;
        gap: 0.75rem;
    }
    
    .qs-form-group input,
    .qs-form-group select,
    .qs-form-group textarea {
        padding: 0.625rem;
        font-size: 0.95rem;
    }
    
    /* iOS select styling for tablets - Enhanced dropdown arrows */
    .qs-form-group select,
    .qs-addon-options select,
    .qs-addon-suboptions select,
    .time-select-picker,
    select[id*="time"],
    select[id*="count"],
    select[id*="seat"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.625rem center;
        background-size: 1.1rem;
        padding-right: 2.4rem;
    }
    
    /* Optimize modals for tablets */
    .modal-content {
        padding: 1.5rem;
        max-width: 450px;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    /* Ultra-compact step navigation for mobile */
    .qs-booking-steps {
        gap: 0.15rem;
        margin-bottom: 1rem;
        padding: 0 5px;
    }
    
    .qs-step {
        min-width: 40px;
        max-width: 50px;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    /* Hide labels on mobile to prevent overlap */
    .step-label {
        display: none;
    }
    
    /* Ultra-compact grid layouts for mobile */
    .qs-service-types {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .qs-vehicle-types {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .service-card,
    .vehicle-card {
        padding: 1rem;
        min-height: 60px;
    }
    
    .vehicle-card {
        min-height: 200px;
    }
    
    .qs-trip-types {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trip-label {
        padding: 0.75rem;
        min-width: auto;
    }
    
    /* Optimize form layouts for mobile */
    .qs-form-row {
        grid-template-columns: 1fr!important;
        gap: 0.5rem;
    }
    
    .qs-form-group input,
    .qs-form-group select,
    .qs-form-group textarea {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* iOS select styling for mobile - Enhanced dropdown arrows */
    .qs-form-group select,
    .qs-addon-options select,
    .qs-addon-suboptions select,
    .time-select-picker,
    select[id*="time"],
    select[id*="count"],
    select[id*="seat"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 1rem;
        padding-right: 2.2rem;
    }
    
    /* Optimize modals for mobile */
    .modal-content {
        padding: 1rem;
        max-width: 95%;
        margin: 0.5rem;
    }
    
    .qs-booking-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .qs-form-section h3 {
        font-size: 1.1rem;
    }
    
    .qs-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .summary-item.total {
        flex-direction: row;
        align-items: center;
    }
}

/* Print Styles */
@media print {
    .qs-booking-steps,
    .qs-form-navigation,
    .qs-loading-overlay,
    .qs-modal {
        display: none !important;
    }
    
    .qs-booking-wrapper {
        max-width: none;
        box-shadow: none;
    }
    
    .qs-form-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Accessibility */
.qs-btn:focus,
.qs-service-option:focus,
.qs-trip-option:focus,
.qs-vehicle-option:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.qs-form-group input:focus,
.qs-form-group select:focus,
.qs-form-group textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .qs-step.active .step-number {
        border: 3px solid #000;
    }
    
    .qs-btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .service-card,
    .vehicle-card,
    .trip-label {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .qs-btn::before {
        display: none;
    }
}

/* QuickSilver Tours Notice System */
.qs-notice {
    display: block;
    margin: 5px 0 15px;
    padding: 15px;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 3px;
}

.qs-notice-error {
    border-left-color: #dc3232;
    background-color: #fff5f5;
}

.qs-notice-success {
    border-left-color: #46b450;
    background-color: #f0fff4;
}

.qs-notice p {
    margin: 0;
    color: #23282d;
    font-size: 14px;
    line-height: 1.4;
}

.qs-notice-dismiss {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.qs-notice-dismiss:hover {
    color: #000;
}

.qs-notice-error .qs-notice-dismiss {
    color: #dc3232;
}

.qs-notice-success .qs-notice-dismiss {
    color: #46b450;
}

@media (max-width: 768px) {
    .qs-notice {
        margin: 5px -10px 15px;
        border-radius: 0;
    }
}

/* Location Details Container */
.qs-location-details-container {
    margin-top: 1rem;
    width: 100%;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.qs-location-details-container h4 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Location Details Input Fields */
#pickup_details_input,
#destination_details_input {
    margin-bottom: 15px;
}

#pickup_details_input:last-child,
#destination_details_input:last-child {
    margin-bottom: 0;
}

#pickup_location_details,
#destination_location_details {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #b3d9ff;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: white;
}

#pickup_location_details:focus,
#destination_location_details:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background: #ffffff;
}

#pickup_location_details::placeholder,
#destination_location_details::placeholder {
    color: #666;
    font-style: italic;
}

.qs-location-details-container .field-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #5a6c7d;
    font-style: italic;
    line-height: 1.4;
}

.qs-location-details-container .optional {
    color: #6c757d;
    font-weight: 400;
    font-size: 12px;
    text-transform: lowercase;
}

/* Custom Locations Container */
.qs-custom-locations-container {
    margin-top: 1rem;
    width: 100%;
}

/* Custom Location Input Fields */
#custom_origin_input,
#custom_destination_input {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e3e6ea;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* First custom input in container gets less top margin */
.qs-custom-locations-container #custom_origin_input:first-child {
    margin-top: 0;
}

#custom_origin_input.show,
#custom_destination_input.show {
    animation: slideDown 0.3s ease-out;
}

#custom_origin_location,
#custom_destination_location {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#custom_origin_location:focus,
#custom_destination_location:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#custom_origin_location.valid-input,
#custom_destination_location.valid-input {
    border-color: #28a745;
    background: #f8fff8;
}

#custom_origin_location.error,
#custom_destination_location.error {
    border-color: #dc3545;
    background: #fff8f8;
}

#custom_origin_location::placeholder,
#custom_destination_location::placeholder {
    color: #666;
    font-style: italic;
}

/* Ensure custom location inputs don't participate in grid layout */
.qs-locations-container #custom_origin_input,
.qs-locations-container #custom_destination_input {
    grid-column: 1 / -1; /* Span full width across all grid columns */
    margin-left: 0;
    margin-right: 0;
}

/* Field help text styling for custom inputs */
#custom_origin_input .field-help,
#custom_destination_input .field-help {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* Animation for showing custom inputs */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin-top: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
        margin-top: 15px;
    }
}

/* Add styling for disabled car seats addon when required for infants */
.qs-addon-item #car_seats:disabled + .qs-toggle-slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.qs-addon-item #car_seats:disabled + .qs-toggle-slider:before {
    background-color: #4CAF50; /* Green to indicate required/active */
}

/* Add a subtle indicator that car seats are required */
.qs-addon-item#car_seats_addon[data-required="true"] .qs-addon-info strong:after {
    content: " (Required)";
    color: #d63384;
    font-weight: normal;
    font-size: 0.85em;
}

/* Style for disabled car seats count dropdown */
#car_seats_count:disabled {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

#car_seats_count:disabled:focus {
    box-shadow: none;
    border-color: #e9ecef;
}

/* ===================================================================
   TEMPORARY HIDE LIMOUSINE OPTION - EASY TO REVERT
   ===================================================================
   
   To RE-ENABLE limousine option in the future:
   1. Comment out or delete lines 1085-1100 below
   2. Uncomment limousine in templates/booking-form.php (lines ~64-68)
   3. Limousine is already configured in includes/quicksilver-rates-config.php
   
   This is a simple CSS-only solution that keeps all backend logic intact.
   ================================================================= */

/* Hide limousine completely from vehicle selection - COMPREHENSIVE HIDING */
.qs-vehicle-option input[value="limousine"],
.qs-vehicle-option[data-vehicle="limousine"],
.qs-vehicle-option:has(input[value="limousine"]),
.vehicle-card:has(input[value="limousine"]),
label:has(input[value="limousine"]),
option[value="limousine"],
select option[value="limousine"] {
    display: none !important;
}

/* Additional safety nets for limousine hiding */
*[data-vehicle-type="limousine"],
*[data-vehicle="limousine"],
.limousine-option,
.vehicle-limousine {
    display: none !important;
}

/* User Data Auto-Population Styles */
.readonly-field {
    background-color: #f5f5f5 !important;
    border: 1px solid #d0d0d0 !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

.readonly-field:focus {
    box-shadow: none !important;
    border-color: #d0d0d0 !important;
}

.user-note {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-note i {
    font-size: 1rem;
    color: #27ae60;
}

.user-note strong {
    color: #1e7e34;
}

/* Mobile responsive user note */
@media (max-width: 768px) {
    .user-note {
        padding: 10px 12px;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .user-note i {
        display: none;
    }
}

/* Validation error styles */
.validation-error {
    border: 2px solid #dc3545 !important;
    border-radius: 8px !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s ease-in-out;
}

.qs-trip-types.validation-error {
    padding: 10px;
    margin: 10px 0;
}

.qs-vehicle-types.validation-error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    background-color: #fff5f5;
    padding: 15px;
    margin: 10px 0;
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
} 

/* Date and Time Input Container Styling */
.qs-form-group.date-time-group {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.qs-form-group.date-time-group label {
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    color: #333;
}

/* Container for input and button */
.date-time-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Hide native date/time picker icons */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
    display: none;
}

/* Date and Time Input Fields */
.date-time-group input[type="date"], 
.date-time-group input[type="time"] {
    flex: 1;
    padding: 12px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    height: 45px;
    box-sizing: border-box;
    margin: 0;
}

.date-time-group input[type="date"]:focus, 
.date-time-group input[type="time"]:focus {
    border-color: #ED1D24;
    box-shadow: 0 0 0 2px rgba(237, 29, 36, 0.1);
    outline: none;
}

/* Custom Date/Time Picker Buttons */
.date-picker-btn,
.time-picker-btn {
    width: 45px;
    height: 45px;
    background-color: #ED1D24;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    color: white;
    font-size: 18px;
}

.date-picker-btn:hover,
.time-picker-btn:hover {
    background-color: #c11a21;
    transform: scale(1.05);
}

.date-picker-btn:active,
.time-picker-btn:active {
    transform: scale(0.98);
}

/* Font Awesome Icon Styling */
.date-picker-btn i,
.time-picker-btn i {
    color: white;
    font-size: 18px;
    pointer-events: none;
}

/* Focus state for accessibility */
.date-picker-btn:focus,
.time-picker-btn:focus {
    outline: 2px solid #ED1D24;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(237, 29, 36, 0.2);
}

/* Fallback for browsers without Font Awesome - use Unicode symbols */
.date-picker-btn:not(.fa-loaded)::before {
    content: '📅';
    font-size: 18px;
    color: white;
}

.time-picker-btn:not(.fa-loaded)::before {
    content: '🕒';
    font-size: 18px;
    color: white;
}

/* Tooltip for buttons */
.date-picker-btn:hover::after {
    content: 'Select Date';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.time-picker-btn:hover::after {
    content: 'Select Time';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Tooltip hover states handled above */

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .date-time-input-container {
        gap: 6px;
    }
    
    .date-picker-btn,
    .time-picker-btn {
        width: 40px;
        height: 40px;
    }
    
    .date-picker-btn::before,
    .time-picker-btn::before {
        width: 18px;
        height: 18px;
    }
    
    .date-time-group input[type="date"], 
    .date-time-group input[type="time"] {
        height: 40px;
        padding: 10px 12px;
    }
} 

/* Yes/No Toggle Switch Styling - Same as regular toggle but with text in circle */
.qs-toggle-yesno .qs-toggle-slider::before {
    content: 'No';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #666;
}

/* Checked state (Yes) */
.qs-toggle-yesno input:checked + .qs-toggle-slider::before {
    content: 'Yes';
    color: #333;
}

/* Mobile responsive for text size */
@media (max-width: 768px) {
    .qs-toggle-yesno .qs-toggle-slider::before {
        font-size: 9px;
    }
} 