

/* ==========================================================================
   18. Booking Form & Step 1 Components
   ========================================================================== */
.booking-container {
    /* กำหนดเพิ่มเติมตามต้องการ */
}

.booking-steps-indicator {
    display: flex;
    align-items: center;
    /*gap: 12px;*/
    margin-bottom: 35px;
}

.booking-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.booking-step-circle.active {
    background-color: var(--primary);
	color: var(--light);
}

.booking-step-circle.inactive {
    border: 1px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.booking-step-line {
    width: 20px;
    height: 1px;
    background-color: var(--primary);
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
}

@media (max-width: 768px) {
    .booking-form-grid {
        grid-template-columns: 1fr !important;
    }
}

.booking-form-group {
    display: flex;
    flex-direction: column;
}

.booking-form-label {
    color: var(--secondary, #002B49);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 13px;
}

.booking-required {
    color: #F05759;
    margin-right: 2px;
}

.booking-form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background-color: #e8e8e8;
    border: none;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    color: #333;
}

.booking-form-control::placeholder {
    color: #cdcdcd;
}

.booking-date-input {
    color: #666;
    cursor: pointer;
}

.booking-jumper-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 160px;
    height: 48px;
    background-color: #EAEAEA;
    border-radius: 24px;
    padding: 0 6px;
}

.booking-btn-qty {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    user-select: none;
}

.booking-qty-number {
    font-size: 16px;
    color: var(--secondary);
}

.booking-phone-group {
    display: flex;
    gap: 10px;
}

.booking-btn-submit-container {
    margin-top: 40px;
}

.booking-btn-next {
    padding: 12px 17px 12px 22px;
    background-color: #FFF;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    /*transition: all 0.2s ease;*/
    display: inline-flex;
    align-items: center;
    /*gap: 6px;*/
}


.booking-btn-next:hover {
    background-color: #E65100;
    color: white;
}


/* ==========================================================
   19. Flatpickr Calendar Styling
   ========================================================== */
.flatpickr-calendar {
    background-color: #f0f0f2 !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    padding: 15px !important;
    width: 310px !important;
    font-family: inherit;
}

.flatpickr-days {
    width: 280px !important;
}

.dayContainer {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.flatpickr-months {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
	text-transform: uppercase;
}

.flatpickr-current-month {
    font-size: 100% !important;
    position: static !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    /*padding: 0 !important;*/
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper,
.flatpickr-current-month .cur-month,
.flatpickr-current-month .numInput {
    display: none !important;
}

.flatpickr-prev-month, 
.flatpickr-next-month {
    background-color: #ffffff !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
}

.flatpickr-prev-month svg, 
.flatpickr-next-month svg {
    fill: #1a2b4c !important;
    width: 12px;
    height: 12px;
}

.flatpickr-weekdays {
    border-bottom: 1px solid var(--secondary) !important;
    padding-bottom: 8px;
    margin-bottom: 8px;
    display: flex !important;
    justify-content: space-around;
    width: 280px !important;
}

.flatpickr-weekday {
    color: #1a2b4c !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    flex: 1;
}

.flatpickr-day {
    color: #1a2b4c !important;
    border-radius: 50% !important;
    font-weight: 500;
    max-width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin: 2px !important;
}

.flatpickr-day.prevMonthDay, 
.flatpickr-day.nextMonthDay {
    color: #b0b0b5 !important;
}

.flatpickr-day.today,
.flatpickr-day.selected,
.flatpickr-day.today.selected {
    background-color: #f26522 !important;
    border-color: #f26522 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
}


/* ==========================================================
   20. Custom Select Box (Time Slot & Country Dropdown)
   ========================================================== */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
/*    background-color: #f0f0f2 !important;*/
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 20px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #bdbdbd;
/*    font-weight: 400;*/
}

.custom-select-trigger.selected {
    color: #1a2b4c;
    font-weight: 500;
}

.custom-dropdown-arrow {
    font-size: 0.8rem;
    color: #1a2b4c;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-options-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 0; 
    z-index: 99;
}

.custom-select-wrapper.open .custom-options-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px 5px 15px 15px;
    box-sizing: border-box;
    scrollbar-gutter: stable;
}

.custom-options-container::-webkit-scrollbar {
    width: 15px;
}

.custom-options-container::-webkit-scrollbar-track {
    background: transparent;
}

.custom-options-container::-webkit-scrollbar-thumb {
    background: #1a2b4c;
    border-radius: 10px;
    border: 5px solid #e8e8e8;
    background-clip: padding-box;
}

.custom-option {
    padding: 12px 15px;
    color: var(--secondary);
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid #AEBDC4;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
}

.booking-country-dropdown {
    position: relative;
    width: 115px;
    user-select: none;
    flex-shrink: 0;
}

.booking-country-trigger {
    height: 48px;
    background-color: #e8e8e8;
    border-radius: 24px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    color: #1a2b4c;
    font-weight: 500;
}

.booking-selected-flag {
    font-size: 16px;
}

.booking-country-dropdown.open .booking-custom-dropdown-arrow {
    transform: rotate(180deg);
}


/* รองรับการหมุนลูกศรของ Country Dropdown เมื่อเปิด */
.booking-country-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}


.booking-country-options-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 260px;
    background-color: #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.booking-country-dropdown.open .booking-country-options-container {
    max-height: 260px;
}

.booking-country-search-box {
    padding: 10px 12px;
    background-color: #dfdfdf;
}

.booking-country-search-box input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    border: none;
    background-color: #fff;
    outline: none;
    font-size: 13px;
    color: #333;
}

.booking-country-list {
    overflow-y: auto;
    max-height: 190px;
    padding: 6px 8px;
}

.booking-country-list::-webkit-scrollbar {
    width: 4px;
}

.booking-country-list::-webkit-scrollbar-track {
    background: #dcdce0;
    border-radius: 10px;
    margin: 5px 0;
}

.booking-country-list::-webkit-scrollbar-thumb {
    background: #1a2b4c;
    border-radius: 10px;
}

.booking-country-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    color: #1a2b4c;
    transition: background 0.2s, color 0.2s;
}

.booking-country-option:hover {
    background-color: #1a2b4c;
    color: #ffffff;
}

.booking-country-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-country-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}


/* ==========================================
   Booking Step 2: Jumper Details Styles
   ========================================== */

.jumper-section-box {
    background-color: transparent;
    margin-bottom: 25px;
}

.jumper-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary, #002B49);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mb-4-2 {
    margin-bottom: 30px !important;
}


/* กลุ่มปุ่มเลือกน้ำหนัก (3 ปุ่ม) */
.weight-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.weight-pill-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 20px;
    background-color: #e8e8e8;
    border: 2px solid #e8e8e8;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.weight-pill-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.weight-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a2b4c;
}

.weight-price-text {
    font-size: 13px;
    font-weight: 500;
    color: #E65100;
}

/* เมื่อ Mouseover หรือถูกเลือก (Checked) ให้เปลี่ยนกรอบเป็นสีน้ำเงิน */
.weight-pill-card:hover,
.weight-pill-card:has(input[type="radio"]:checked) {
    border-color: #1a2b4c;
    background-color: #e8e8e8;
}

/* ส่วนแจ้งเตือน Age Confirmation */
.age-confirm-wrapper {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.age-warning-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.age-info-icon {
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.age-warning-text {
    font-size: 12px;
    font-weight: 200;
    color: var(--secondary);
}

/* Tooltip กล่องข้อความเตือนตอน Hover เครื่องหมาย ! */
.age-tooltip-box {
    display: none;
    position: absolute;
    top: -5px;
    left: 40px;
    background-color: #FDDAC6;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 10;
    max-width: 550px;
 /*   box-shadow: 0 4px 12px rgba(248, 94, 8, 0.15);*/
}

.age-info-icon:hover ~ .age-tooltip-box {
    display: block;
}

/* เช็คบ็อกซ์ยืนยันอายุ */
.age-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
/*    font-size: 13px;*/
    color: var(--secondary);
    cursor: pointer;
    user-select: none;
}

/* เส้นคั่นระหว่าง Jumper */
.jumper-divider {
    border: none;
    border-top: 1px solid #CDCDCD;
    margin: 30px 0;
}

/* สไตล์ปุ่ม PREVIOUS / NEXT สไตล์ใหม่ (ขาว ขอบส้ม อักษรส้ม -> ส้ม อักษรขาว) */
.booking-btn-custom-outline {
    padding: 12px 20px 12px 10px;
    background-color: #ffffff;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
 /*   transition: all 0.25s ease;*/
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.booking-btn-custom-outline:hover,
.booking-btn-custom-outline:active {
    background-color: #E65100;
    color: #ffffff;
}

/* จัดสัดส่วนการวางคอลัมน์ของ Jumper ให้ช่อง Full Name และ Weight ขนานกันสวยงาม */
.jumper-section-box .booking-form-grid {
    align-items: start !important;
}

/* ปรับระยะห่างและความสูงของกลุ่มปุ่มเลือกน้ำหนักให้รองรับ 2 บรรทัด และอยู่ระดับเดียวกัน */
.weight-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* จัดเรียง 3 ปุ่มให้อยู่ในบรรทัดเดียวกัน */
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 991.98px) {
    .weight-options-grid {
        grid-template-columns: 1fr; /* บนมือถือปรับเป็นเรียงเดี่ยวเพื่อไม่ให้ล้น */
    }
}

.weight-pill-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
/*    min-height: 64px;   */
    padding: 10px 12px;
    background-color: #e8e8e8;
    border: 1px solid #e8e8e8;
/*    border-radius: 12px;  ปรับให้โค้งมนสวยงาม */
    cursor: pointer;
/*    transition: all 0.2s ease;*/
    user-select: none;
    text-align: center;
}

.weight-pill-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* ข้อความตัวเลือกน้ำหนักบรรทัดแรก */
.weight-label-text {
    font-size: 13px;
    font-weight: 400;
	color: var(--secondary);
    line-height: 1.2;
}

/* ข้อความราคาบวกเพิ่มบรรทัดที่สอง */
.weight-price-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    margin-top: 2px;
    line-height: 1.2;
}

/* เมื่อ Mouseover หรือถูกเลือก (Checked) ให้เปลี่ยนกรอบเป็นสีน้ำเงิน */
.weight-pill-card:hover,
.weight-pill-card:has(input[type="radio"]:checked) {
    border-color: var(--secondary);
    background-color: #e8e8e8;
}




/* ปุ่ม Confirm ใน Step 3 (ส้ม -> ส้มอ่อน) */
.booking-btn-confirm {
    padding: 12px 36px;
    background-color: #E65100;
    border: 2px solid #E65100;
    color: #ffffff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.booking-btn-confirm:hover,
.booking-btn-confirm:active {
    background-color: #ff8533 !important; /* ส้มอ่อนลง */
    border-color: #ff8533 !important;
}

/* Responsive สำหรับหน้าจอเล็ก แบ่งคอลัมน์ซ้าย-ขวาเป็นแถวเดี่ยว */
@media (max-width: 991.98px) {
    .booking-summary-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================
   Success Popup Modal Styles
   ========================================== */

/* ฉากหลังสีเทาโปร่งแสง 20% บังหน้าเว็บ */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}

/* กล่องสี่เหลี่ยมสีขาว ขนาด 1125px โค้งมนทั้ง 4 ด้าน เว้นระยะซ้าย-ขวา 45px บน-ล่าง 20px */
.success-modal-container {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* ส่วนหัว: ไอคอนเครื่องหมายถูกและข้อความ */
.success-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.success-check-icon {
    width: 50px;
    height: 50px;
    /*min-width: 30px;*/
    background-color: #E65100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.success-main-title {
    font-size: 25px;
    font-weight: 600;
	color: var(--secondary);
    margin: 0;
}

.success-sub-title {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* กล่องสี่เหลี่ยมสีเทา โค้งมน ไม่มีเส้นขอบ เว้นระยะ 15px บน-ล่าง / 40px ซ้าย-ขวา */
.success-info-box {
    background-color: #e8e8e8;
    border-radius: 12px;
    padding: 25px 70px;
    margin-bottom: 25px;
}

.success-info-text {
    font-size: 16px;
    color: var(--secondary);
    line-height: 1.6;
    margin: 0;
}

/* ปุ่ม GOT IT ทรง Pill สีส้ม วางตรงกลาง */
.success-btn-container {
    display: flex;
    justify-content: center;
}

.success-got-it-btn {
    padding: 12px 40px;
    background-color: var(--primary);
    border: none;
    color: #ffffff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.success-got-it-btn:hover {
    background-color: #ff8533; /* ส้มอ่อนลงเมื่อเอาเมาส์ชี้ */
}

/* Responsive สำหรับมือถือและแท็บเล็ต */
@media (max-width: 768px) {
    .success-modal-container {
        padding: 20px 20px; /* ลดระยะซ้ายขวาบนมือถือเพื่อไม่ให้ล้นจอ */
    }
    .success-info-box {
        padding: 15px 20px;
    }
    .success-header-row {
        gap: 15px;
    }
}


#booking-summary {
	display: flex;
	flex-direction: column; 
	gap: 8px; 
	font-size: 14px; 
	margin-bottom: 20px;
	
}

#booking-summary .col {
	display: flex; 
	justify-content:flex-start; 
	gap: 40px;
    color: var(--secondary);
	font-weight: 300;
		
}

#booking-summary .col-left {
	width: 140px; 
	display: inline-block;
}
#booking-summary .col-right {
	font-weight: 500;
	text-align: left;
}


#sumJumpersList {
	display: flex; 
	flex-direction: column; 
	gap: 15px; 
	margin-bottom: 20px;
}

/* สไตล์กล่องข้อมูล Jumper ในหน้า Summary (เส้นซ้ายสีส้ม จัดชิดซ้าย) */
.summary-jumper-card {
    border-left: 1px solid #F9AE84;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-jumper-row {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    font-size: 14px;
    color: var(--secondary);
}

.summary-jumper-row .label {
    width: 140px;
    display: inline-block;
	font-weight: 300;
}

.summary-jumper-row .value {
    font-weight: 500;
    text-align: left;
}

.summary-right-column {
background: #e8e8e8; 
border-radius: 16px; 
padding: 25px; 
border: none;
    color: var(--secondary);

}

.flex-space-between {
	display: flex; 
	justify-content: space-between;	
}

#pricePackageLabel {
	
	
}

.text-right {
	text-align: right;
	
}

.flex-column {
	display: flex; flex-direction: column; gap: 12px; font-size: 14px; margin-bottom: 20px;
}

