/* Base styles for the card */
.booking-card {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    overflow: hidden;
    max-width: 24rem;
    /* max-w-sm */
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    /* my-6 */
    margin-bottom: 1.5rem;
    /* my-6 */
    border-width: 1px;
    border-color: #e5e7eb;
    /* border-gray-200 */
}

/* Padding for content inside the card */
.booking-card-content {
    padding: 1rem;
    /* p-4 */
}

/* Media query for medium screens and above */
@media (min-width: 768px) {
    .booking-card-content {
        padding: 1.5rem;
        /* md:p-6 */
    }
}

/* Discount badge styling */
.discount-badge-container {
    position: relative;
    margin-bottom: 1rem;
    /* mb-4 */
}

.discount-badge {
    display: inline-block;
    background-color: #2563eb;
    /* bg-blue-600 */
    color: #fff;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 600;
    /* font-semibold */
    padding-left: 0.75rem;
    /* px-3 */
    padding-right: 0.75rem;
    /* px-3 */
    padding-top: 0.25rem;
    /* py-1 */
    padding-bottom: 0.25rem;
    /* py-1 */
    border-radius: 9999px;
    /* rounded-full */
    margin-top: -0.5rem;
    /* -mt-2 */
    margin-left: -0.5rem;
    /* -ml-2 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    /* shadow-md */
}

/* Label styling */
.form-label {
    display: block;
    color: #374151;
    /* text-gray-700 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
    margin-bottom: 0.5rem;
    /* mb-2 */
}

/* Select dropdown styling */
.select-wrapper {
    position: relative;
}

.select-input {
    display: block;
    width: 100%;
    padding-left: 1rem;
    /* px-4 */
    padding-right: 1rem;
    /* px-4 */
    padding-top: 0.75rem;
    /* py-3 */
    padding-bottom: 0.75rem;
    /* py-3 */
    border-width: 1px;
    border-color: #d1d5db;
    /* border-gray-300 */
    border-radius: 0.5rem;
    /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
    outline: 2px solid transparent;
    /* focus:outline-none */
    outline-offset: 2px;
    color: #1f2937;
    /* text-gray-800 */
    appearance: none;
    /* appearance-none */
    padding-right: 2rem;
    /* pr-8 */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select-input:focus {
    border-color: transparent;
    /* focus:border-transparent */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6;
    /* focus:ring-2 focus:ring-blue-500 */
}

/* Price text styling */
.price-text {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    /* font-bold */
    color: var( --e-global-color-primary,black );
    /* text-gray-900 */
    margin-bottom: 0.5rem;
    /* mb-2 */
    transition: all 0.3s ease;
    /* smooth transitions */
}

.price-text span {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 600;
    /* font-semibold */
}

.price-text.loading {
    opacity: 0.6;
    transform: scale(0.98);
}

.discount-info {
    font-size: 0.875rem;
    /* text-sm */
    color: #4b5563;
    /* text-gray-600 */
}

/* Book Now button styling */
.book-now-button {
    width: 100%;
    font-weight: 700;
    /* font-bold */
    padding-top: 0.75rem;
    /* py-3 */
    padding-bottom: 0.75rem;
    /* py-3 */
    padding-left: 1rem;
    /* px-4 */
    padding-right: 1rem;
    /* px-4 */
    border-radius: 0.5rem;
    /* rounded-lg */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    /* shadow-md */
    outline: none;
    /* focus:outline-none */
    border: none;
    background-color: #2563eb;
    color: white;
    cursor: pointer;
}

.book-now-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.15), 0 6px 8px -2px rgba(0, 0, 0, 0.08);
}

/* Help section styling */
.help-section {
    background-color: #1e3a8a;
    /* bg-blue-900 */
    color: #fff;
    text-align: center;
    padding-top: 1rem;
    /* py-4 */
    padding-bottom: 1rem;
    /* py-4 */
    margin-top: 1.5rem;
    /* mt-6 */
}

.help-section p {
    font-size: 0.875rem;
    margin: 0;
}

.help-section a {
    color: #fff;
    font-weight: 500;
    /* font-medium */
    text-decoration: underline;
    /* underline */
    transition: color 0.3s ease-in-out;
}

.help-section a:hover {
    color: #e5e7eb;
    /* hover:text-gray-200 */
}

/* Popup Modal Styles */
.mm-booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

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

.mm-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

.mm-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.mm-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.mm-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.mm-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.mm-modal-body {
    padding: 1.5rem;
}

.mm-booking-summary {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.mm-booking-summary h4 {
    margin: 0 0 0.5rem 0;
    color: #0369a1;
    font-size: 1.1rem;
    font-weight: 600;
}

.mm-booking-summary p {
    margin: 0.25rem 0;
    color: #0c4a6e;
    font-size: 0.95rem;
}

.mm-booking-summary .price-highlight {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0369a1;
}

/* Contact Form 7 styling inside modal */
.mm-modal-body .wpcf7-form {
    margin: 0;
}

.mm-modal-body .wpcf7-form p {
    margin-bottom: 1rem;
}

.mm-modal-body .wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.mm-modal-body .wpcf7-form input[type="text"],
.mm-modal-body .wpcf7-form input[type="email"],
.mm-modal-body .wpcf7-form input[type="tel"],
.mm-modal-body .wpcf7-form textarea,
.mm-modal-body .wpcf7-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.mm-modal-body .wpcf7-form input:focus,
.mm-modal-body .wpcf7-form textarea:focus,
.mm-modal-body .wpcf7-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mm-modal-body .wpcf7-form input[type="submit"] {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.mm-modal-body .wpcf7-form input[type="submit"]:hover {
    background-color: #1d4ed8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .mm-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .mm-modal-header,
    .mm-modal-body {
        padding: 1rem;
    }
    
    .mm-modal-title {
        font-size: 1.25rem;
    }
}

/* Utility classes */
.mb-6 {
    margin-bottom: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}
