/* ============================================================
   TOUR BOOKING FORM — assets/css/tour-booking-form.css
   ============================================================ */

.tbf-wrap {
    width: 100%;
    max-width: 480px;
    font-family: inherit;
}

.booking-form-sticky {
    height: fit-content !important;  
    position: sticky !important;
    top: 100px !important;
}

/* ════════════════════════════════════
   FORM CARD
════════════════════════════════════ */
.tbf-form-card {
    padding: 14px;
    background-color: #FEFEFE;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.07);
    border-radius: 10px;
}

/* ── Price header ── */
.tbf-price-header {
    padding: 14px;
    background-color: #F2F2F7;
    border-radius: 8px;
    font-size: 16px;
    color: #8E8E93;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.tbf-popup-price-amount {
    font-weight: 700;
    color: #0F71DD;
    font-size: 26px;
}

.tbf-price-per {
    font-size: 16px;
    color: #8E8E93;
}

/* ════════════════════════════════════
   FORM FIELDS
════════════════════════════════════ */
.tbf-field {
    margin-bottom: 16px;
}

.tbf-label {
    display: block;
    color: #878787;
    margin-bottom: 10px;
}

.tbf-note {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    margin-left: 2px;
}

.tbf-req {
    color: #878787;
}

.tbf-field-error {
    display: none;
    font-size: 12px;
    color: #e53935;
    margin-top: 5px;
    padding: 4px 8px;
    background: #fff5f5;
    border-left: 3px solid #e53935;
    border-radius: 0 4px 4px 0;
}

.tbf-field-error.is-visible {
    display: block;
}

/* ── Date field ── */
.tbf-date-wrap {
    position: relative;
}

.tbf-input {
    width: 100%;
	cursor: pointer;
    padding: 14px;
    background-color: #F6F6F6;
    border-radius: 8px;
    border: none;
    color: #141414;
    font-size: 16px;
    outline: none;
    font-family: inherit;
/*     -webkit-appearance: none;
    appearance: none; */
    box-sizing: border-box;
}

.tbf-input.has-error {
    border: 1px solid #e53935 !important;
    background: #fff5f5 !important;
}
.tbf-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
	top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
	z-index: 1; /* CHANGE: behind custom icon */
}

.tbf-date-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* CHANGE: allow clicks */
	cursor: pointer;
    color: #141414;
    display: flex;
    align-items: center;
	z-index: 0;
}

.tbf-date-icon svg,
.tbf-date-icon img {
    width: 18px;
    height: 18px;
}

/* ── Row layout ── */
.tbf-field--row {
    display: flex;
    gap: 12px;
}

.tbf-field__half {
    flex: 1;
    min-width: 0;
}

/* ════════════════════════════════════
   NUMBER INPUT — styled like dropdown
════════════════════════════════════ */

.tbf-field.tbf-field--row {
    margin-bottom: 24px;
}

.tbf-num-wrap {
    position: relative;
    display: block;
}

.tbf-num-input {
    width: 100%;
    height: 48px;
    padding: 14px;
    background-color: #F6F6F6;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #141414;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    cursor: text;
    -moz-appearance: textfield;  /* Firefox: hide native spinner */
    appearance: textfield;
}

/* Hide native number spinner (Chrome/Safari/Edge) */
.tbf-num-input::-webkit-outer-spin-button,
.tbf-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tbf-num-input.has-error {
    border: 1.5px solid #e53935 !important;
    background: #fff5f5 !important;
}

/* Dropdown-style chevron icon */
.tbf-num-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
    display: flex;
    align-items: center;
}

.tbf-num-arrow svg {
    width: 12px;
    height: 8px;
}

/* ════════════════════════════════════
   ADVENTURE OPTIONS (pill buttons)
════════════════════════════════════ */

.tbf-field .tbf-label.adv-lbl {
    color: #141414;
    margin-bottom: 16px;
}

.tbf-adventure-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tbf-adventure-btn {
    padding: 12px 14px !important;
    border: 1px solid #BEBEBE !important;
    background-color: transparent !important;
    font-size: 14px !important;
    color: #BEBEBE !important;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
}

.tbf-adventure-btn:hover {
    border-color: #22c55e;
    color: #16a34a;
    background: #f0fdf4;
}

.tbf-adventure-btn.active {
    border: 1px solid #20C210 !important;
    background-color: transparent !important;
    color: #20C210 !important;
}
/* ── Addon price info box — mirrors .addon-price-info from the popup ── */
.tbf-addon-price-info {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #f0faf0;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 0.875rem;
    color: #333;
}

.tbf-addon-price-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tbf-addon-price-info strong {
    color: #1a8a1a;
    font-weight: 600;
}
/* ════════════════════════════════════
   TOTAL + CHECKOUT
════════════════════════════════════ */
.tbf-total-row {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tbf-btn-total {
    width: 100%;
    background-color: #20C210 !important;
	border: 1px solid #20C210 !important;
    color: #fff !important;
	font-size: 14px !important;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.tbf-btn-total:hover{
    background-color: transparent !important;
    border-color:#20C210 !important;
    color: #20C210 !important;
}

.tbf-total-amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4fdf5;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 10px 14px;
}

.tbf-total-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.tbf-total-value {
    font-size: 17px;
    color: #22c55e;
    font-weight: 700;
}

.tbf-btn-checkout {
    display: block;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: background 0.2s;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
}

.tbf-btn-checkout:hover {
    background: #333;
    color: #fff;
}

.tbf-btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading spinner on checkout button */
.tbf-btn-checkout.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.tbf-btn-checkout.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tbf-spin 0.7s linear infinite;
}

@keyframes tbf-spin {
    to { transform: rotate(360deg); }
}

/* ════════════════════════════════════
   SHARE ICONS
════════════════════════════════════ */
/* .tbf-share {
    display: none;
} */

.tbf-share {
    padding-top: 24px;
    border-top: 1px solid #DDD;
}

.tbf-share-label {
    display: block;
    color: #141414;
    margin-bottom: 16px;
}

.tbf-share-icons {
    display: flex;
    gap: 8px;
}

.tbf-share-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */

@media only screen and (max-width: 1599px) {

	/* Check 1367px and add css here */
}

@media only screen and (max-width: 1366px) {
	
	.tbf-adventure-btn {
		padding: 10px 10px !important;
	}
	/* Check 1200px and add css here */
}

@media only screen and (max-width: 1199px) {
	
	.tbf-popup-price-amount {
		font-size: 22px;
	}

	/* Check 1025px and add css here */
}

@media only screen and (max-width: 1024px) {

	.tbf-wrap {
		max-width: 100%;
	}
	/* Check 768px and add css here */
}

@media only screen and (max-width: 767px) {
	

	/* Check 480px and add css here */
}

@media(max-width: 575px) {

}

@media (max-width: 480px) {
    .tbf-form-card {
        padding: 18px 16px 16px;
        border-radius: 12px;
    }

    .tbf-field--row {
        flex-direction: column;
        gap: 10px;
    }

    .tbf-popup-price-amount {
        font-size: 20px;
    }

    .tbf-btn-total,
    .tbf-btn-checkout {
        font-size: 14px;
        padding: 12px;
    }

    .tbf-adventure-btn {
        font-size: 12px;
        padding: 6px 13px;
    }

    .tbf-share-icon {
        width: 34px;
        height: 34px;
    }

    .tbf-share-icon svg {
        width: 16px;
        height: 16px;
    }
}

 
/* Select styled like the number input */
.tbf-num-select {
    width: 100%;
	height: 48px;
    padding: 14px;   /* room for the custom arrow */
    border: none;
    background: #F6F6F6;
    font-size: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
	border-radius: 8px;
}
 
/* Hide the native arrow that some browsers add */
.tbf-num-select::-ms-expand { display: none; }
 
/* Wrapper already has position:relative & the .tbf-num-arrow overlay */
/* Make sure the arrow pointer-events don't block the select */
.tbf-num-wrap .tbf-num-arrow {
    pointer-events: none;   /* clicks fall through to the <select> */
}
 
/* "More…" number input wrapper — sits inside the same .tbf-num-wrap shell */
.tbf-num-more-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}
/*  
.tbf-num-more-wrap .tbf-num-input {
    flex: 1;
    border-right: none;
    border-radius: inherit;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
	outline:none;
} */
 
.tbf-num-wrap {
    position: relative;
}

/* Back arrow button */
.tbf-back-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 !important;
    background-color: transparent !important;
    color: #141414 !important;
    border: none;
    width: auto;
    height: auto;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}
/* ══════════════════════════════════════════════════════════════
   ADD TO: tours-filter CSS (or your main stylesheet)
   Multi-addon price info box inside the booking popup.
   Uses .addon-price-info  (no tbf- prefix — popup classes).
══════════════════════════════════════════════════════════════ */

/* Outer container — vertical stack */
.addon-price-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f0faf0;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
}

/* One row per selected addon */
.addon-price-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #333;
    width: 100%;
}

/* Divider between rows */
.addon-price-row + .addon-price-row {
    border-top: 1px solid #c8e6c9;
}

/* Addon name */
.addon-price-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

/* "Adult: RM…  Child: RM…" on one line */
.addon-price-vals {
    display: flex;
    gap: 16px;
    align-items: center;
    color: #555;
    font-size: 0.875rem;
}

.addon-price-vals strong {
    color: #1a8a1a;
    font-weight: 600;
}
.tbf-live-total {
    background: #00B531;
    color: #fff;
    padding: 15px;
    border-radius: 30px;
    text-align: center;
    font-weight: 400;
    cursor: pointer;
}
.tbf-live-total #tbfTotalValue{
	font-size:20px;
	font-weight:500;
}