/* Professional Booking Popup Styles */
.booking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.booking-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.booking-popup {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.booking-popup-overlay.show .booking-popup {
    transform: scale(1);
}

.booking-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.booking-popup-close:hover {
    opacity: 1;
}

.booking-popup-close::before,
.booking-popup-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.booking-popup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.booking-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.booking-popup-icon.success svg {
    animation: successAnimation 0.7s ease-in-out;
}

.booking-popup-icon.error svg {
    animation: errorAnimation 0.7s ease-in-out;
}

@keyframes successAnimation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes errorAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.booking-popup h3 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.booking-popup .subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.booking-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

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

.booking-detail-row:last-child {
    margin-bottom: 0;
}

.booking-detail-label {
    color: #666;
    font-weight: 500;
}

.booking-detail-value {
    color: #333;
    font-weight: 600;
}

.booking-popup-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #1DA952;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Loading state */
.booking-popup.loading .booking-popup-content {
    opacity: 0.5;
    pointer-events: none;
}

.booking-popup-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.booking-popup.loading .booking-popup-loader {
    display: block;
}

.booking-popup-loader::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Form Validation Error Styles */
.form-error {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3) !important;
}

.form-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5) !important;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.error-message ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.error-message li {
    margin-bottom: 5px;
}

/* Success message for contrast */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .booking-popup {
        padding: 30px 20px;
    }
    
    .booking-popup h3 {
        font-size: 24px;
    }
    
    .booking-popup-actions {
        flex-direction: column;
    }
    
    .btn-whatsapp,
    .btn-secondary {
        width: 100%;
    }
}