/* Booking Container */
.spc-booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.spc-booking-header {
    margin-bottom: 30px;
    text-align: center;
}

.spc-booking-header h2 {
    color: #2271b1;
    margin-bottom: 12px;
    font-size: 28px;
}

/* Form Styles */
.spc-booking-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.spc-form-group {
    margin-bottom: 18px;
    position: relative;
}

.spc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.spc-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.spc-form-control:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
    background-color: #fff;
}

/* Google Maps PlaceAutocompleteElement Styles */
.gmpx-place-autocomplete-element {
    width: 100%;
    display: block;
    --gmpx-color-primary: #2271b1;
    --gmpx-font-family: inherit;
    --gmpx-border-radius: 6px;
}

.gmpx-place-autocomplete-element input {
    padding: 12px 15px !important;
    background-color: #f9fafb !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    width: 100% !important;
}

.gmpx-place-autocomplete-element input:focus {
    border-color: #2271b1 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2) !important;
    background-color: #fff !important;
}

.gmpx-placeautocomplete-text-field {
    width: 100% !important;
    height: 40px !important;
    padding: 8px 12px !important;
}
/* Time Slots */
.spc-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.spc-time-slot {
    padding: 12px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.spc-time-slot:hover {
    border-color: #2271b1;
    background-color: rgba(34, 113, 177, 0.05);
}

.spc-time-slot.selected {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

/* Price Summary */
.spc-price-summary {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 24px 0;
    border: 1px solid #eee;
}

.spc-price-summary h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #2271b1;
    font-size: 18px;
}

.spc-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.spc-price-total {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
    font-size: 1.2em;
    font-weight: 600;
}

.spc-duration {
    margin-top: 12px;
    font-style: italic;
    color: #555;
    background: rgba(34, 113, 177, 0.08);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Error Handling */
.spc-error {
    color: #d63638;
    font-size: 0.9em;
    margin-top: 6px;
    display: none;
    transition: all 0.3s ease;
}

.spc-error.active {
    display: block;
    animation: errorPulse 0.5s ease;
}

@keyframes errorPulse {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Submit Button */
.spc-submit-button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    background-color: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.spc-submit-button:hover {
    background-color: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(19, 94, 150, 0.2);
}

.spc-submit-button:active {
    transform: translateY(0);
}

.spc-submit-button:disabled {
    background-color: #b4b4b4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.spc-loading-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: #666;
}

.spc-loading-slots:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(34, 113, 177, 0.3);
    border-radius: 50%;
    border-top-color: #2271b1;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spc-no-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .spc-booking-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .spc-booking-header h2 {
        font-size: 24px;
    }
    
    .spc-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .spc-booking-container {
        padding: 15px;
    }
    
    .spc-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .spc-time-slot {
        padding: 10px 6px;
        font-size: 14px;
    }
    
    .spc-price-summary {
        padding: 15px;
    }
    
    .spc-submit-button {
        padding: 14px;
        font-size: 16px;
    }
}
/* Panel Selection Styles */
.spc-panel-selection {
    margin-bottom: 20px;
}

.spc-panel-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.spc-panel-option {
    padding: 12px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: #f9fafb;
}

.spc-panel-option:hover {
    border-color: #2271b1;
    background-color: rgba(34, 113, 177, 0.05);
}

.spc-panel-option.selected {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.spc-panel-custom {
    margin-top: 15px;
}

.spc-panel-custom input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.spc-panel-custom input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
    background-color: #fff;
}
/* Style for disabled dates in the datepicker */
.ui-datepicker .ui-datepicker-calendar .ui-state-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Booking notice styling */
.spc-booking-notice {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 12px;
    margin-bottom: 20px;
}

.spc-booking-notice p {
    margin: 0;
    color: #1d2327;
}
/* Loading state */
/* Time Slot Grid */
.spc-time-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 15px 0;
}


/* Time Slots */
.spc-time-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.spc-time-slot {
    position: relative;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spc-time-slot.available {
    background: #ffffff;
    border-color: #2271b1;
    cursor: pointer;
}

.spc-time-slot.unavailable {
    background: #fafafa;
    color: #888;
    cursor: not-allowed;
}

/* Strike-through Effect */
.spc-time-slot.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff4444;
    transform: translateY(-50%) rotate(-5deg);
    animation: strikeIn 0.3s ease-out;
}

@keyframes strikeIn {
    from { width: 0; }
    to { width: 100%; }
}

/* Loading States */
.spc-loading-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #666;
}

.spc-no-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    border: 1px solid #ffeeba;
}