/* Booking Modal Styles */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.booking-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.booking-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.booking-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

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

.booking-modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Add-ons Container */
.addons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.addon-item-info {
    flex: 1;
}

.addon-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.addon-item-price {
    font-size: 12px;
    color: #666;
}

.addon-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.addon-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.addon-quantity button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.addon-quantity button:hover {
    background: #f0f0f0;
    border-color: #4a90e2;
}

.addon-quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #4a90e2;
    background: #f8f9ff;
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #4a90e2;
}

.payment-option > span {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-option small {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.discount-badge {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 600;
}

/* Price Summary */
.price-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.price-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.price-row .discount {
    color: #4a90e2;
}

/* Submit Button */
.booking-submit-btn {
    width: 100%;
    padding: 15px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.booking-submit-btn:hover {
    background: #357abd;
}

.booking-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Modal */
.success-modal {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.booking-id-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.booking-id-display code {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    color: #4a90e2;
    font-weight: 600;
}

.success-instructions {
    text-align: left;
    margin: 20px 0;
}

.success-instructions h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.success-instructions ul {
    list-style: none;
    padding: 0;
}

.success-instructions li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.success-instructions li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .booking-modal-content {
        padding: 20px;
        max-height: 95vh;
    }
    
    .addons-container {
        max-height: 200px;
    }
    
    .payment-options {
        gap: 8px;
    }
    
    .payment-option {
        padding: 12px;
    }
}

