/* Basic modal styles */
.hab-booking-modal {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark background */
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.hab-modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}


/* Optional: Smooth transitions for showing/hiding the modal */
.hab-booking-modal {
    transition: all 0.3s ease-in-out;
}

/* Style the Modal */
#hab-booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay background */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.hab-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 1130px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Close button styles */
.hab-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hab-close-btn:hover {
    background-color: #e0e0e0;
}

.hab-book-now-button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

#hab-payment-button {
    margin-top: 20px;
}

.hab-modal-content {
    display: flex;
    flex-direction: column;
}
.single .elementor-shortcode {
    text-align: center;
}

/* Title styling */
.hab-modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
    text-align: center;
}

/* Form container styling */
#hab-booking-form {
    /* max-width: 800px; */
    padding: 30px 40px;
    background: #fefefe;
    border-radius: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    transition: box-shadow 0.3s ease;
}



/* Container for pairs of fields in two columns */
.hab-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
    margin-bottom: 20px;
}

/* Each field stacks label + input vertically */
.hab-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 15px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
    cursor: default;
}

/* Inputs styling */
.hab-field input[type="text"],
.hab-field input[type="email"],
.hab-field input[type="tel"],
.hab-field input[type="date"],
.hab-field input[type="number"] {
    padding: 10px 16px;
    font-size: 16px;
    border: 2px solid #d1d8e0;
    border-radius: 4px !important;
    width: 100%;
    box-sizing: border-box;
    background: #fafafa;
    color: #2f3640;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    font-weight: 500;
}

.hab-field input[type="text"]::placeholder,
.hab-field input[type="email"]::placeholder,
.hab-field input[type="tel"]::placeholder,
.hab-field input[type="date"]::placeholder,
.hab-field input[type="number"]::placeholder {
    color: #7f8c8d;
    font-style: italic;
}

/* Focus effect */
.hab-field input:focus {
    border-color: #1abc9c;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(26, 188, 156, 0.4);
    outline: none;
}

/* Submit button styles */
#hab-booking-form button[type="submit"] {
    grid-column: span 2;
    /* Full width */
    background: #13B5B1;
    font-family: "Open Sans", open sans;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    padding: 16px 10px;
}

/* Spinner styles */
.spinner-wrapper {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Equal spacing for spinner and text */
#hab-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    padding: 16px 10px;
    min-width: 130px;

}

#hab-submit-btn .btn-text {
    margin-right: 8px;
}

#hab-submit-btn .btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Responsive: stack all vertically on small screens */
@media (max-width: 650px) {
    .hab-row {
        grid-template-columns: 1fr;
    }
}

/* Close button */
#hab-booking-modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

/* Close button hover effect */
#hab-booking-modal .close:hover {
    color: #333;
}

/* Payment container */
.hab-payment-container {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    animation: fadeIn 0.5s ease-in-out;
}

/* Title */
.hab-payment-title {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Description text */
.hab-payment-description {
    color: #555;
    font-size: 15px;
    margin-bottom: 25px;
}

/* Payment button */
.hab-payment-btn {
    display: inline-block;
    background: linear-gradient(135deg, #13B5B1, #2ecc71);
    color: #fff !important;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hab-payment-btn:hover {
    background: linear-gradient(135deg, #13B5B1, #27ae60);
    color: #fff !important;

}

/* Small note text */
.hab-payment-note {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #28a745;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
}

.payment-btn:hover {
    background-color: #218838;
}

/* .btn-loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #13B5B1;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
} */

#hab-payment-table {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 10px;
}

#hab-payment-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.booking-details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-details-container h3 {
    text-align: center;
    font-size: 24px;
    color: #333;
}

.booking-details-container table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.booking-details-container td {
    padding: 10px;
    border: 1px solid #e0e0e0;
}

.booking-details-container .payment-success-message {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    font-weight: bold;
    color: green;
    font-weight: bold;
}

div#payment-success-message {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    font-weight: bold;
}

/* Confirm Payment Button */
.confirm-payment-btn {
    display: none;
    /* Initially hidden */
    padding: 12px 30px;
    background-color: #13B5B1;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.confirm-payment-btn:hover {
    background-color: #0f9e9b;
    /* Slightly darker shade */
}

/* No Booking Message */
.no-booking-message {
    text-align: center;
    padding: 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* No Booking Text */
.no-booking-text {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Retry Button */
.retry-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #13B5B1;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.retry-button:hover {
    background-color: #0f9e9b;
    /* Slightly darker shade */
}


/* 11-09-2025 */

button#hab-book-now {
    background: #13b5b1;
    color: #fff;
    width: 100%;
    font-size: 14px;
    padding: 15px 30px;
    border: 0;
}
.hab-modal-content #hab-booking-form #hab-submit-btn {
    margin: auto;
    border-radius: 0;
    padding: 14px 35px !important;
    text-align: center;
    border: 0;
    margin-top: 40px !important;
}
.hab-modal-content #hab-booking-form #hab-submit-btn .btn-text {
    margin: 0;
}
.hab-modal-content #hab-close-modal {
    background: #13b5b1;
    color: #fff;
    font-size: 30px;
    border: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
}
.payment-failed-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
    border-radius: 10px;
}
.payment-failed-container a {
    border-radius: 0 !important;
}
.booking-details-container a {
    color: #13b5b1 !important;
}
/* Generic Alert Style */
.hab-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.hab-alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
}

/* Error (booked dates) */
.hab-alert-error {
    background: #ffe6e6;
    border: 1px solid #ff4d4d;
    color: #cc0000;
}

/* Info (choose dates first) */
.hab-alert-info {
    background: #e6f0ff;
    border: 1px solid #4d94ff;
    color: #004080;
}
