/* Booking Modal Styles */
#booking-modal {
    display: none;
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}
#booking-modal .modal-header {
    display: none;
}
.booking-success-message {
    color: #28a745;
    font-size: 1.2em;
    margin-top: 20px;
    text-align: center;
}
.booking-error-message {
    color: #dc3545;
    font-size: 1.1em;
    margin-top: 20px;
    text-align: center;
}
.btn-close {
    background-color: rgb(221, 51, 51) !important;
    opacity: 1 !important;
    color: #fff !important;
    float: inline-end !important;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 0%;
    inset-inline-start: 33%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 30%;
    max-height: 97vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

#booking-form-container {
    min-height: 200px;
}

/* Loading state */
.booking-form-loading {
    text-align: center;
    padding: 40px 20px;
}

.booking-form-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
    .show-booking-now-mobile {
        display: block !important;
    }
    .wpte-booking-area .wpte-bf-price-wrap {
        display: flex !important;
        flex-direction: column;
        gap: 15px !important;
    }
    .elementor-button.elementor-size-sm{
            background-color: var(--theme-color);
    }
    .modal-content {
        max-width: 95% !important;
        margin: 10px !important;
        left: 0;
        right: 0;
    
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-width: 98%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Contact Form 7 specific styles */
#booking-form-container .wpcf7-form {
    margin: 0;
}

#booking-form-container .wpcf7-form p {
    margin-bottom: 15px;
}
[dir="rtl"] #booking-form-container .wpcf7-form input[type="text"],
[dir="rtl"] #booking-form-container .wpcf7-form input[type="email"],
[dir="rtl"] #booking-form-container .wpcf7-form input[type="tel"],
[dir="rtl"] #booking-form-container input[type="date"]  {
    text-align: right;
}
[dir="rtl"] .wpte-booking-area .wpcf7 input[type="url"],[dir="rtl"] .wpte-booking-area .wpcf7 input[type="email"],[dir="rtl"]  .wpte-booking-area .wpcf7 input[type="tel"] {
      direction: rtl;
}
[dir="rtl"] .wpte-booking-area select,
[dir="rtl"] .wpte-booking-area .form-control,     
[dir="rtl"] .wpte-booking-area .form-select,
[dir="rtl"] .wpte-booking-area textarea,
[dir="rtl"] .wpte-booking-area input {
  text-align: right;
}
[dir="rtl"]  #booking-form-container .wpcf7-form select{
   background-position: left 26px center !important;
}
#booking-form-container .wpcf7-form input[type="text"],
#booking-form-container .wpcf7-form input[type="email"],
#booking-form-container .wpcf7-form input[type="tel"],
#booking-form-container .wpcf7-form textarea,
#booking-form-container .wpcf7-form select{
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
}
.wpcf7-form-control-wrap {
    width: 50%;
}
.
#booking-form-container .wpcf7-form input[type="text"]:focus,
#booking-form-container .wpcf7-form input[type="email"]:focus,
#booking-form-container .wpcf7-form input[type="tel"]:focus,
#booking-form-container .wpcf7-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* RTL support for Arabic */
[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-close {
    margin-left: 0;
    margin-right: auto;
} 