/* ==========================================================================
   1. KHUNG BOOKING BOX TỔNG THỂ & RESET (CHỐNG FLATSOME)
   ========================================================================== */
#wrapper .uk-booking-box, 
#wrapper .uk-booking-box * {
    box-sizing: border-box !important;
}

#wrapper .uk-booking-box {
    margin: 0 0 15px !important;
    position: relative !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
    border: 1px solid #eaeaea !important;
    padding: 20px !important; /* Giảm padding tổng thể từ 24px xuống 20px cho gọn */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* ==========================================================================
   2. PHẦN HIỂN THỊ GIÁ (HEADER)
   ========================================================================== */
#wrapper .uk-booking-box .uk-booking-header {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important; /* Rút ngắn khoảng cách */
}

#wrapper .uk-booking-box .uk-price-label {
    font-size: 14px !important;
    color: #0071e3 !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 0 !important;
}

#wrapper .uk-booking-box .uk-price-amount {
    font-size: 24px !important; /* Thu nhỏ nhẹ cho thanh thoát */
    font-weight: 700 !important;
    color: #ff5500 !important;
}

#wrapper .uk-booking-box .uk-price-sub {
    font-size: 13.5px !important;
    color: #666 !important;
    margin-left: 4px !important;
}

/* ==========================================================================
   3. FORM & KHUNG CHỌN NGÀY THÁNG (DATE PICKER)
   ========================================================================== */
#wrapper .uk-booking-box .uk-tour-form .uk-form-group {
    margin-bottom: 14px !important; /* Thu hẹp khoảng cách giữa các trường */
}

#wrapper .uk-booking-box .uk-tour-form label,  
#wrapper .uk-booking-box .uk-section-label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    margin-bottom: 6px !important; /* Giảm khoảng cách từ label xuống input */
    color: #111 !important;
}

#wrapper .uk-booking-box .uk-date-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 42px !important; /* Giảm chiều cao từ 44px xuống 42px cho thanh thoát */
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

#wrapper .uk-booking-box .uk-date-wrapper input.flatpickr-input[type="hidden"] {
    display: none !important;
}

#wrapper .uk-booking-box .uk-date-wrapper input.flatpickr-input:not([type="hidden"]),
#wrapper .uk-booking-box .uk-date-wrapper input.uk-input-date:not([type="hidden"]),
#wrapper .uk-booking-box .uk-date-wrapper input[type="text"]:not([type="hidden"]) {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 38px 0 42px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: left !important;
    line-height: 42px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease !important;
}

#wrapper .uk-booking-box .uk-date-wrapper input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

#wrapper .uk-booking-box .uk-date-wrapper input.flatpickr-input:not([type="hidden"]):focus,
#wrapper .uk-booking-box .uk-date-wrapper input.uk-input-date:not([type="hidden"]):focus,
#wrapper .uk-booking-box .uk-date-wrapper input[type="text"]:not([type="hidden"]):focus {
    border-color: #059669 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.10) !important;
    outline: none !important;
}

/* Calendar Icon */
#wrapper .uk-booking-box .uk-date-wrapper .uk-calendar-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    color: #059669 !important;
    font-size: 14px !important;
    pointer-events: none !important;
    z-index: 3 !important;
}

/* Chevron Right Icon */
#wrapper .uk-booking-box .uk-date-wrapper .uk-chevron-right {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    pointer-events: none !important;
    z-index: 3 !important;
}

#wrapper .uk-booking-box .uk-date-wrapper input.input-error {
    border-color: #ef4444 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* ==========================================================================
   4. KHU VỰC CHỌN KHÁCH (PAX SELECTORS - THU GỌN CHIỀU NGANG)
   ========================================================================== */
#wrapper .uk-booking-box .uk-pax-selectors {
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 10px 0 !important;
    margin: 14px 0 !important;
}

#wrapper .uk-booking-box .pax-row,
#wrapper .uk-booking-box .uk-pax-row-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important; /* Rút gọn khoảng cách giữa các hàng khách */
    width: 100% !important;
}

#wrapper .uk-booking-box .pax-row:last-child,
#wrapper .uk-booking-box .uk-pax-row-flex:last-child {
    margin-bottom: 0 !important;
}

#wrapper .uk-booking-box .pax-info,
#wrapper .uk-booking-box .uk-pax-info {
    flex: 1 !important;
    text-align: left !important;
    padding-right: 8px !important;
    margin-bottom: 0 !important;
}

#wrapper .uk-booking-box .pax-info strong,
#wrapper .uk-booking-box .uk-pax-info strong {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222 !important;
    display: block !important;
    margin-bottom: 1px !important;
}

#wrapper .uk-booking-box .pax-info span,
#wrapper .uk-booking-box .uk-pax-info span {
    font-size: 11px !important;
    color: #666 !important;
    display: block !important;
    line-height: 1.2 !important;
}

/* Thu gọn width của bộ đếm từ 120px xuống 100px để nhường chỗ cho text bên trái */
#wrapper .uk-booking-box .uk-pax-counter-wrap {
    width: 100px !important;
    min-width: 100px !important;
    flex-shrink: 0 !important;
}

#wrapper .uk-booking-box .pax-counter {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    background: #fff !important;
    width: 100% !important;
    height: 34px !important; /* Thu nhỏ chiều cao bộ đếm cho thanh thoát */
    margin: 0 !important;
    padding: 0 !important;
}

#wrapper .uk-booking-box .pax-counter button.pax-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 34px !important;
    background: #fff !important;
    color: #333 !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: background 0.2s ease !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

#wrapper .uk-booking-box .pax-counter button.pax-btn:hover {
    background: #f0f0f0 !important;
    color: #2e7d32 !important;
}

#wrapper .uk-booking-box .pax-counter input {
    flex: 1 !important;
    width: 100% !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    height: 34px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #111 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

/* ==========================================================================
   5. KHUNG GIỜ KHỞI HÀNH (TIME SLOTS)
   ========================================================================== */
#wrapper .uk-booking-box .uk-time-slots {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

#wrapper .uk-booking-box .uk-time-slots .time-slot {
    text-align: center !important;
    padding: 8px 4px !important; /* Giảm padding dọc */
    border: 1px solid #dcdcdc !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    background: #fff !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

#wrapper .uk-booking-box .uk-time-slots .time-slot:hover {
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
}

#wrapper .uk-booking-box .uk-time-slots .time-slot.active {
    border-color: #2e7d32 !important;
    background: #f4fbf4 !important;
    color: #2e7d32 !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   6. TỔNG TIỀN & NÚT SUBMIT
   ========================================================================== */
#wrapper .uk-booking-box .uk-final-total-box {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 12px 0 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

#wrapper .uk-booking-box .uk-final-total-box strong {
    font-size: 19px !important;
    color: #ff5500 !important;
}

#wrapper .uk-booking-box .uk-btn-submit {
    width: 100% !important;
    text-align: center !important;
    border-radius: 8px !important;
    padding: 12px !important; /* Rút gọn chiều cao nút bấm nhẹ */
    font-size: 15px !important;
    font-weight: 700 !important;
    background: #2e7d32 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.22) !important;
    transition: background 0.2s ease !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

#wrapper .uk-booking-box .uk-btn-submit:hover {
    background: #236126 !important;
}

/* ==========================================================================
   7. CAM KẾT DỊCH VỤ (GUARANTEE)
   ========================================================================== */
#wrapper .uk-booking-box .uk-booking-guarantee {
    margin-top: 12px !important;
    font-size: 11.5px !important;
    color: #555 !important;
    border-top: 1px solid #f0f0f0 !important;
    padding-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

#wrapper .uk-booking-box .uk-booking-guarantee div {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
}

#wrapper .uk-booking-box .uk-booking-guarantee span.icon {
    color: #2e7d32 !important;
    font-weight: bold !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   8. GIAO DIỆN POPUP LỊCH FLATPICKR & COMBOBOX THÁNG / NĂM
   ========================================================================== */
body .flatpickr-calendar {
    background: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    padding: 12px !important;
    width: 330px !important;
    margin-top: 5px !important;
}

body .flatpickr-months {
    padding: 4px 0 10px 0 !important;
    align-items: center !important;
    background: #fcfcfc !important;
    border-radius: 8px 8px 0 0 !important;
}

body .flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: #222 !important;
    fill: #222 !important;
    height: 40px !important;
}

body .flatpickr-current-month {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 !important;
    position: relative !important;
    height: 36px !important;
}

body .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-current-month select.uk-year-select-dropdown {
    background: #f7f7f7 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #2e7d32 !important;
    cursor: pointer !important;
    height: 30px !important;
    line-height: normal !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    outline: none !important;
    margin-bottom: 0px !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

body .flatpickr-current-month .flatpickr-monthDropdown-months {
    width: auto !important;
}

body .flatpickr-current-month select.uk-year-select-dropdown {
    width: 75px !important;
}

body .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
body .flatpickr-current-month select.uk-year-select-dropdown:hover {
    background: #eaeaea !important;
    border-color: #2e7d32 !important;
}

body .flatpickr-current-month .numInputWrapper {
    display: none !important;
}

body .flatpickr-current-month select.uk-year-select-dropdown option,
body .flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #ffffff !important;
    color: #333333 !important;
    padding: 6px 10px !important;
    font-weight: 500 !important;
}

body .flatpickr-current-month select.uk-year-select-dropdown option:checked,
body .flatpickr-current-month .flatpickr-monthDropdown-months option:checked {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    font-weight: 600 !important;
}

body .flatpickr-months .flatpickr-prev-month, 
body .flatpickr-months .flatpickr-next-month {
    padding: 6px !important;
    top: 6px !important;
    border-radius: 50% !important;
    transition: background 0.2s !important;
}

body .flatpickr-months .flatpickr-prev-month:hover, 
body .flatpickr-months .flatpickr-next-month:hover {
    background: #f0f0f0 !important;
}

body .flatpickr-months .flatpickr-prev-month svg, 
body .flatpickr-months .flatpickr-next-month svg {
    fill: #555 !important;
    width: 13px !important;
    height: 13px !important;
}

body span.flatpickr-weekday {
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
}

body .flatpickr-day {
    border-radius: 6px !important;
    color: #333 !important;
    font-weight: 500 !important;
    height: 34px !important;
    line-height: 34px !important;
    margin: 1px 0 !important;
    border: 1px solid transparent !important;
}

body .flatpickr-day:hover {
    background: #e8f5e9 !important;
    border-color: #e8f5e9 !important;
    color: #2e7d32 !important;
}

body .flatpickr-day.selected, 
body .flatpickr-day.selected:hover {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.3) !important;
}

body .flatpickr-day.today {
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
    font-weight: 700 !important;
}

body .flatpickr-day.flatpickr-disabled, 
body .flatpickr-day.flatpickr-disabled:hover,
body .flatpickr-day.prevMonthDay, 
body .flatpickr-day.nextMonthDay {
    color: #ccc !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
}
/* Làm mờ và đổi con trỏ chuột khi nút tăng/giảm đạt giới hạn tối thiểu/tối đa */
.pax-btn.disabled, 
.pax-btn[disabled],
.pax-counter input[value="1"] ~ .pax-btn.minus,
.pax-counter input[value="2"] ~ .pax-btn.minus /* Nếu min là 2 */ {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
/* ==========================================================================
   FIX TRIỆT ĐỂ LỖI ĐÈ CSS FLATSOME CHO TIÊU ĐỀ FORM LIÊN HỆ
   ========================================================================== */
#wrapper .uk-booking-box .uk-contact-title-fix {
    display: block !important;
    width: 100% !important;
    border-bottom: 2px solid #f3f4f6 !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

#wrapper .uk-booking-box .uk-contact-title-fix .uk-title-flex {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#wrapper .uk-booking-box .uk-contact-title-fix .uk-title-icon {
    font-size: 18px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

#wrapper .uk-booking-box .uk-contact-title-fix .uk-title-text {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    margin: 0 !important;
}

#wrapper .uk-booking-box .uk-contact-title-fix .uk-title-sub {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    display: block !important;
    text-align: left !important;
}
/* ==========================================================================
   NÂNG CẤP GIAO DIỆN FORM LIÊN HỆ CHUYÊN NGHIỆP & NỔI BẬT
   ========================================================================== */

/* 1. Đổ bóng và tạo khung hộp bắt mắt hơn */
#wrapper .uk-booking-box.uk-contact-form-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
}

/* 2. Tiêu đề form nổi bật, có điểm nhấn màu sắc */
#wrapper .uk-booking-box .uk-contact-title-fix {
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
}

#wrapper .uk-booking-box .uk-contact-title-fix .uk-title-text {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
}

#wrapper .uk-booking-box .uk-contact-title-fix .uk-title-sub {
    font-size: 12.5px !important;
    color: #475569 !important;
    font-weight: 400 !important;
    margin-top: 5px !important;
}

/* 3. Tối ưu nhãn (Label) đậm nét, dễ đọc */
#wrapper .uk-booking-box .uk-tour-contact-form label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 6px !important;
}

/* 4. Các ô Input & Textarea nổi bật, có hiệu ứng tương tác cao */
#wrapper .uk-booking-box .uk-tour-contact-form input[type="text"],
#wrapper .uk-booking-box .uk-tour-contact-form textarea,
#wrapper .uk-booking-box .uk-tour-contact-form .uk-input-date {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease-in-out !important;
}

/* Hiệu ứng khi rê chuột hoặc bấm vào ô nhập liệu */
#wrapper .uk-booking-box .uk-tour-contact-form input[type="text"]:hover,
#wrapper .uk-booking-box .uk-tour-contact-form textarea:hover,
#wrapper .uk-booking-box .uk-tour-contact-form .uk-input-date:hover {
    border-color: #94a3b8 !important;
    background: #ffffff !important;
}

#wrapper .uk-booking-box .uk-tour-contact-form input[type="text"]:focus,
#wrapper .uk-booking-box .uk-tour-contact-form textarea:focus,
#wrapper .uk-booking-box .uk-tour-contact-form .uk-input-date:focus {
    border-color: #059669 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12) !important;
    outline: none !important;
}

/* Placeholder rõ ràng, dễ nhìn */
#wrapper .uk-booking-box .uk-tour-contact-form input::placeholder,
#wrapper .uk-booking-box .uk-tour-contact-form textarea::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* 5. Khung số lượng khách nổi bật với nền sạch sẽ */
#wrapper .uk-booking-box .uk-tour-contact-form div[style*="background: #f9fafb"] {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 14px !important;
}

#wrapper .uk-booking-box .uk-tour-contact-form input[type="number"] {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    height: 36px !important;
}

/* 6. Nút gửi CTA cực kỳ thu hút, hiệu ứng chuyển màu mạnh mẽ */
#wrapper .uk-booking-box .uk-btn-submit {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(5, 150, 105, 0.3) !important;
    transition: all 0.2s ease !important;
}

#wrapper .uk-booking-box .uk-btn-submit:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4) !important;
    transform: translateY(-1px) !important;
}