/**
 * Bokun Booking Styles
 * Modal and inline booking form
 */

/* ==========================================
   BOOK NOW BUTTON
   ========================================== */
.bokun-book-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background-color: #10b981;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bokun-book-now-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bokun-book-now-btn:active {
    transform: translateY(0);
}

/* ==========================================
   BOOKING MODAL
   ========================================== */
.bokun-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bokun-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.bokun-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
    animation: bokun-modal-slide-in 0.3s ease;
}

@keyframes bokun-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bokun-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.bokun-modal-close:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.bokun-modal-header {
    padding: 32px 32px 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.bokun-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    padding-right: 40px;
}

.bokun-modal-price {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
}

.bokun-modal-body {
    padding: 24px 32px 32px 32px;
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

.bokun-modal-body::-webkit-scrollbar {
    width: 6px;
}

.bokun-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bokun-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

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

/* ==========================================
   INLINE BOOKING FORM
   ========================================== */
.bokun-booking-form-inline {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.bokun-form-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.bokun-form-price {
    margin: 0 0 24px 0;
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
}

/* ==========================================
   BOOKING FORM
   ========================================== */
.bokun-booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent!important;
}

.bokun-form-field {
    display: flex;
    flex-direction: column;
}

.bokun-form-field label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.bokun-form-field .required {
    color: #ef4444;
}

.bokun-form-field input[type="date"],
.bokun-form-field select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
}

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

/* ==========================================
   QUANTITY CONTROL
   ========================================== */
.bokun-quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bokun-qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bokun-qty-btn:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.bokun-qty-btn:active {
    transform: scale(0.95);
}

.bokun-quantity-control input[type="number"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
}

.bokun-quantity-control input[type="number"]::-webkit-inner-spin-button,
.bokun-quantity-control input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================
   TOTAL PRICE
   ========================================== */
.bokun-form-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
}

.bokun-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.bokun-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
}

/* ==========================================
   SUBMIT BUTTON
   ========================================== */
.bokun-booking-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bokun-booking-submit:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bokun-booking-submit:active {
    transform: translateY(0);
}

.bokun-booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bokun-booking-submit.loading {
    pointer-events: none;
}

/* ==========================================
   MESSAGES
   ========================================== */
.bokun-booking-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.bokun-message-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.bokun-message-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.bokun-message-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
    .bokun-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .bokun-modal-header {
        padding: 24px 20px 20px 20px;
    }

    .bokun-modal-header h3 {
        font-size: 18px;
    }

    .bokun-modal-body {
        padding: 20px;
    }

    .bokun-booking-form-inline {
        padding: 24px 20px;
    }

    .bokun-form-title {
        font-size: 18px;
    }

    .bokun-quantity-control {
        gap: 8px;
    }

    .bokun-qty-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ==========================================
   DIRECT ADD TO CART BUTTON
   ========================================== */
.bokun-direct-add.loading .bokun-btn-text {
    display: none;
}

.bokun-direct-add.loading .bokun-btn-loader {
    display: inline-flex !important;
}

.bokun-direct-add:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================
   RESERVE NOW BUTTON
   ========================================== */
.bokun-reserve-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background-color: #f59e0b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bokun-reserve-now-btn:hover {
    background-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.bokun-reserve-now-btn:active {
    transform: translateY(0);
}

.bokun-reserve-now-btn.loading .bokun-btn-text {
    display: none;
}

.bokun-reserve-now-btn.loading .bokun-btn-loader {
    display: inline-flex !important;
}

.bokun-reserve-now-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   DIRECT NOTIFICATION
   ========================================== */
.bokun-direct-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    min-width: 280px;
    max-width: 400px;
    padding: 16px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.bokun-direct-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.bokun-notification-success {
    border-left: 4px solid #10b981;
    color: #065f46;
    background-color: #d1fae5;
}

.bokun-notification-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
    background-color: #fee2e2;
}

@media (max-width: 640px) {
    .bokun-direct-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ==========================================
   WIDGET NOTICE (Editor Mode)
   ========================================== */
.bokun-widget-notice {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}
