﻿.page-bg {
    background-color: #f5f5f5;
    padding: 40px 0;
    min-height: 80vh;
}

.page-title {
    text-align: left !important;
    font-size: 26px;
    font-weight: 700;
    color: #308a3b;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.page-bg.is-dong-so .page-title {
    text-align: center !important;
}

.g-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (min-width: 992px) {
    .booking-cols {
        align-items: stretch;
    }
    .booking-col {
        display: flex;
        flex-direction: column;
    }
    .booking-col-form .g-card:last-child {
        flex: 1 1 auto;
        margin-bottom: 0;
    }
    .booking-col-side .bill-sticky {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        position: static;
    }
    .booking-col-side .bill-box {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .booking-col-side .bill-fill {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }
    .booking-col-side .g-btn-primary {
        margin-top: auto;
    }
}

.g-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #F54A00;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f4f9;
    padding-bottom: 12px;
}

    .g-card-title i {
        color: #757972;
    }

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #444746;
    margin-bottom: 8px;
    padding-left: 2px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 12px 14px;
    font-size: 14.5px;
    color: #1f2937;
    transition: 0.2s;
    box-shadow: none;
    background-color: #ffffff;
}

    .form-control:focus, .form-select:focus {
        border-color: #eab308;
        box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
        outline: none;
    }

.bill-sticky {
    position: sticky;
    top: 20px;
}

.bill-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #afaca452;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.1);
}

.bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14.5px;
    color: #475569;
}

.bill-val {
    font-weight: 700;
    color: orange;
    font-size: 15px;
}

.bill-total {
    border-top: 1px dashed #cbd5e1;
    margin-top: 16px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bill-total-lbl {
    font-size: 15.5px;
    font-weight: 600;
    color: #1e293b;
}

.bill-total-val {
    font-size: 22px;
    font-weight: 700;
    color: orangered;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

    .bill-total-val.updating {
        color: #d97706;
        transform: scale(1.05);
    }

.g-btn-primary {
    background: linear-gradient(178deg, #F54A00 0%, #D63E00 100%) !important;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    border: solid 1.7px #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(222, 90, 31, 0.3);
    transition: 0.3s;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    text-decoration: none;
    cursor: pointer;
}

    .g-btn-primary:hover {
        background: #d97706;
        color: #fff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(234, 179, 8, 0.4);
    }

.booking-hold-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.45;
}

    .booking-hold-note i {
        color: #d97706;
        font-size: 16px;
        margin-top: 2px;
    }

    .booking-hold-note strong {
        color: #b45309;
    }

.alert-soft-info {
    background-color: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 16px;
    font-size: 13.5px;
    color: #475569;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.6;
}

    .alert-soft-info i {
        color: #3b82f6;
        font-size: 20px;
        margin-top: 2px;
    }

/* Ngày khởi hành mong muốn — Flatpickr */
.ngay-di-dual-panel {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #fffbeb 100%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 18px 20px;
}

.ngay-di-dual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 156px;
}

.ngay-di-dual-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
}

.ngay-di-dual-col--picker {
    padding-right: 20px;
}

.ngay-di-dual-col--info {
    padding-left: 20px;
    border-left: 1px dashed #cbd5e1;
}

.ngay-di-dual-heading {
    min-height: 28px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    flex-shrink: 0;
}

    .ngay-di-dual-heading i {
        color: #16a34a;
        font-size: 16px;
        flex-shrink: 0;
    }

.ngay-di-dual-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.ngay-di-dual-col--info .ngay-di-dual-body {
    justify-content: stretch;
}

.ngay-di-dual-col--info .alert-soft-info {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-height: 100%;
    align-items: center;
}

@media (max-width: 767.98px) {
    .ngay-di-dual-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ngay-di-dual-col--picker {
        padding-right: 0;
        padding-bottom: 16px;
    }

    .ngay-di-dual-col--info {
        padding-left: 0;
        padding-top: 16px;
        border-left: none;
        border-top: 1px dashed #cbd5e1;
    }

    .ngay-di-dual-col--info .alert-soft-info {
        min-height: 0;
    }
}

.ngay-di-picker-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.ngay-di-picker-wrap {
    position: relative;
    max-width: 100%;
}

    .ngay-di-picker-wrap .ngay-di-input {
        padding: 14px 44px 14px 46px;
        border-radius: 12px;
        border: 1.5px solid #86efac;
        background-color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        color: #166534;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(22, 163, 74, 0.08);
    }

        .ngay-di-picker-wrap .ngay-di-input:focus {
            border-color: #16a34a;
            box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
        }

        .ngay-di-picker-wrap .ngay-di-input::placeholder {
            color: #9ca3af;
            font-weight: 500;
        }

.ngay-di-picker-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.ngay-di-picker-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
    pointer-events: none;
    z-index: 2;
}

.ngay-di-selected-preview {
    margin-top: 10px;
    font-size: 13px;
    color: #15803d;
    font-weight: 600;
    min-height: 20px;
    flex-shrink: 0;
}

    .ngay-di-selected-preview.is-empty {
        color: #9ca3af;
        font-weight: 500;
    }

.flatpickr-calendar {
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid #e2e8f0 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.flatpickr-day.today {
    border-color: #f59e0b !important;
}

.booking-subsection {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef2f7;
}

.booking-subsection-title {
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .booking-subsection-title i {
        color: #16a34a;
    }

.booking-contact-title {
    font-size: 15px;
    font-weight: 700;
    color: #4a2e15;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 991px) {
    .g-card, .bill-box {
        padding: 16px !important;
    }

    .bill-val, .bill-total-val {
        white-space: nowrap !important;
    }

    .bill-total-val {
        font-size: 22px !important;
    }
}

/* KHỐI LIÊN HỆ TƯ VẤN BÊN CỘT PHẢI */
.trust-box {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.08);
    position: relative;
    overflow: hidden;
}

    .trust-box::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
        transform: skewX(-20deg);
        animation: shine 3s infinite ease-in-out;
    }

@keyframes shine {
    100% {
        left: 200%;
    }
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(178deg, #F54A00 0%, #D63E00 100%) !important;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.trust-title {
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 6px;
}

.trust-desc {
    font-size: 13.5px;
    color: #15803d;
    margin-bottom: 12px;
    line-height: 1.45;
}

.trust-points {
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    text-align: left;
}

    .trust-points li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 13px;
        color: #166534;
        line-height: 1.4;
        margin: 0 0 8px;
    }

    .trust-points li:last-child { margin-bottom: 0; }

    .trust-points i {
        color: #16a34a;
        margin-top: 2px;
        width: 14px;
        text-align: center;
    }

.trust-hotline {
    background: #ffffff5c;
    color: #F54A00;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
    border: 2px dotted #fed7aa;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

    .trust-hotline:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
        color: orangered;
        border-color: #ef9e05;
    }

    .trust-hotline i {
        animation: pulse-ring 2s infinite;
    }

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(0.9);
    }
}

/* ================= TÙY CHỈNH SELECT2 ĐỒNG BỘ GIAO DIỆN ================= */
.select2-container--default .select2-selection--single {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    height: 48px !important;
    padding: 8px 14px !important;
    font-size: 14.5px !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #eab308 !important;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

.select2-dropdown {
    border-radius: 8px !important;
    border: 1px solid #eab308 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    margin-top: 4px;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    font-size: 14.5px;
    transition: background 0.2s;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #fef08a !important;
    color: #4a2e15 !important;
    font-weight: 500;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #fef9c3 !important;
    color: #d97706 !important;
    font-weight: 600;
}

.select2-container *:focus {
    outline: none !important;
}

.alert-dong-so {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 0 16px 0;
    max-width: none;
    color: #9a3412;
}

.alert-dong-so h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #c2410c;
}

.alert-dong-so p {
    margin: 0 0 14px 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.alert-dong-so .dong-so-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.g-btn-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
}

.page-bg.is-dong-so .custom-container {
    max-width: 720px;
}

.dong-so-tour {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dong-so-tour .ten {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 8px;
}

.dong-so-tour .meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.swal2-popup.swal2-booking-ok {
    overflow: visible !important;
    padding-bottom: 20px !important;
    border-radius: 15px !important;
}
.swal2-popup.swal2-booking-ok .swal2-icon,
.swal2-popup.swal2-booking-ok .swal2-actions,
.swal2-popup.swal2-booking-ok .swal2-timer-progress-bar-container,
.swal2-popup.swal2-booking-ok .swal2-confirm,
.swal2-popup.swal2-booking-ok .swal2-cancel,
.swal2-popup.swal2-booking-ok .swal2-deny { display: none !important; }
.swal2-popup.swal2-booking-ok .swal2-html-container { overflow: visible !important; }
.ola-fly-ab {
    position: relative;
    height: 92px;
    margin: 2px 6px 14px;
    overflow: visible;
}
.ola-fly-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}
.ola-fly-curve {
    fill: none;
    stroke: #e98c14;
    stroke-width: 2;
    stroke-dasharray: 7 6;
    stroke-linecap: round;
}
.ola-fly-dot {
    position: absolute;
    top: auto;
    bottom: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #0b57d0;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.ola-fly-a { left: 0; }
.ola-fly-b { right: 0; background: #dcfce7; color: #15803d; }
.ola-fly-plane-g {
    pointer-events: none;
}
.ola-fly-plane {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    color: #e98c14;
    z-index: 3;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transform-origin: center center;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.ola-fly-plane svg {
    display: block;
    width: 24px;
    height: 24px;
    overflow: visible;
}
