/* Modern style and sticky header for .bf-benefits-table (travel benefits table) */
.bf-benefits-table-wrap {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.bf-benefits-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.bf-benefits-table thead th {
    position: sticky;
    top: 0;
    background: #1D428A;
    color: #fff;
    z-index: 2;
    font-weight: 600;
    padding: 14px 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.04);
}

.bf-benefits-table tbody tr {
    transition: background 0.2s;
}

.bf-benefits-table tbody tr:hover td {
    background: #f3f6fd;
}

.bf-benefits-table tbody td {
    padding: 12px 10px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

.bf-benefits-table tbody tr:last-child td {
    border-bottom: none;
}

/* .bf-benefits-table tbody tr.section-separator td {
    border-top: 2px solid #2563eb;
} */
/* ================================================
   User Quotation Styles
   ================================================ */

label {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Travel Type Radio Selector */
.travel-type-selector {
    display: flex;
    gap: 10px;
}

.travel-type-card {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0;
}

.travel-type-card input[type="radio"] {
    display: none;
}

.travel-type-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #dde2e8;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.travel-type-content i {
    font-size: 16px;
    color: #99aabb;
    transition: color 0.2s ease;
}

.travel-type-content:hover {
    border-color: #aab8cc;
    background: #f8f9fb;
}

.travel-type-card input[type="radio"]:checked+.travel-type-content {
    border-color: #1D428A;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    color: #1D428A;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(29, 66, 138, 0.12);
}

.travel-type-card input[type="radio"]:checked+.travel-type-content i {
    color: #1D428A;
}

/* Detected destination badge */
.detected-dest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e8eeff 0%, #f0f4ff 100%);
    border: 1px solid #c5d3f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1D428A;
    letter-spacing: 0.3px;
}

.detected-dest-badge i {
    font-size: 13px;
    color: #4a78c9;
}

/* Surcharge checkboxes */
.surcharge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding: 6px 0;
}

.surcharge-check-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.surcharge-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 400;
}

.surcharge-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1D428A;
    cursor: pointer;
    flex-shrink: 0;
}

.surcharge-check-label {
    font-size: 13px;
    color: #444;
    user-select: none;
}

.surcharge-info-btn {
    background: #e8ecfb;
    border: 1px solid #bcc8e8;
    color: #1D428A;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.surcharge-info-btn i {
    font-size: 12px;
}

.surcharge-info-btn .surcharge-info-text {
    font-size: 11px;
    letter-spacing: 0.2px;
}

.surcharge-info-btn:hover {
    background: #1D428A;
    color: #fff;
    border-color: #1D428A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(29, 66, 138, 0.25);
}

.surcharge-info-hover {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.surcharge-info-card {
    position: absolute;
    bottom: calc(100% + 8px);
    top: auto;
    left: 50%;
    width: min(420px, calc(100vw - 32px));
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 30;
    pointer-events: none;
}

.surcharge-info-card::before {
    content: "";
    position: absolute;
    bottom: -8px;
    top: auto;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateX(-50%) rotate(45deg);
}

.surcharge-info-hover:hover .surcharge-info-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}


/* Dynamic positioning class when space below is insufficient */
.surcharge-info-hover.show-above .surcharge-info-card {
    top: auto;
    bottom: calc(100% + 2px);
    transform: translateX(-50%) translateY(-8px);
}

.surcharge-info-hover.show-above:hover .surcharge-info-card {
    transform: translateX(-50%) translateY(0);
}

.surcharge-info-hover.show-above .surcharge-info-card::before {
    top: auto;
    bottom: -8px;
    background: #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08);
}

.surcharge-check-wrapper:first-child .surcharge-info-card {
    left: 0;
    transform: translateX(0) translateY(-8px);
}

.surcharge-check-wrapper:first-child .surcharge-info-card::before {
    left: 24px;
    transform: rotate(45deg);
}

.surcharge-check-wrapper:first-child .surcharge-info-hover:hover .surcharge-info-card {
    transform: translateX(0) translateY(0);
}

/* Surcharge modal description styling */
.benefits-modal .modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.benefits-modal .modal-body ul li {
    margin-bottom: 6px;
}

.benefits-modal .modal-body ul ul {
    margin-top: 6px;
    margin-bottom: 0;
}

/* ================================================
   Surcharge Coverage Modal
   ================================================ */
.surcharge-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
}

.sc-modal-header {
    background: #1D428A;
    padding: 32px 28px 24px;
    text-align: center;
    position: relative;
}

.sc-modal-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.sc-modal-icon-ring i {
    font-size: 26px;
    color: #fff;
}

.sc-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.sc-modal-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.2px;
}

.sc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.sc-modal-close:hover {
    opacity: 1;
}

.sc-modal-body {
    padding: 24px 28px;
}

.sc-section {
    margin-bottom: 20px;
}

.sc-section:last-child {
    margin-bottom: 0;
}

.sc-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #228848;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0ec;
}

.sc-section-label i {
    font-size: 14px;
}

.sc-label-exclude {
    color: #c0392b;
    border-bottom-color: #fdecea;
}

.sc-highlight-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: #f4f8f5;
    border-radius: 10px;
    border-left: 3px solid #228848;
}

.sc-highlight-icon {
    color: #228848;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sc-highlight-text {
    font-size: 13.5px;
    color: #333;
    line-height: 1.55;
}

.sc-exclude-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: #fef6f5;
    border-radius: 10px;
    border-left: 3px solid #c0392b;
}

.sc-exclude-icon {
    color: #c0392b;
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sc-exclude-text {
    font-size: 13.5px;
    color: #555;
    line-height: 1.55;
}

@media (max-width: 767.98px) {
    .surcharge-info-card {
        position: fixed;
        top: 50%;
        left: 50%;
        width: min(360px, calc(100vw - 32px));
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        transform: translate(-50%, calc(-50% + 8px));
    }

    .surcharge-info-card::before {
        display: none;
    }

    .surcharge-check-wrapper:first-child .surcharge-info-card {
        left: 50%;
        transform: translate(-50%, calc(-50% + 8px));
    }

    .surcharge-info-hover:hover .surcharge-info-card,
    .surcharge-check-wrapper:first-child .surcharge-info-hover:hover .surcharge-info-card {
        transform: translate(-50%, -50%);
    }
}

.sc-modal-footer {
    padding: 0 28px 24px;
    text-align: center;
}

.sc-modal-close-btn {
    background: #1D428A;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
}

.sc-modal-close-btn:hover {
    background: #163571;
    box-shadow: 0 4px 12px rgba(29, 66, 138, 0.3);
}

/* Form inputs */
.q-form .form-control {
    border: 1px solid #ccd3e0;
    border-radius: 6px;
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: auto;
    background: #fff;
}

.q-form .form-control:focus {
    border-color: #1D428A;
    box-shadow: 0 0 0 2px rgba(29, 66, 138, 0.08);
}

.q-form .form-control-lg {
    height: 44px;
    font-size: 14px;
}

/* Override custom-select inside form */
.q-form .custom-select-quotation {
    position: relative;
    display: block;
    width: 100%;
}

.q-form .custom-select-quotation select {
    width: 100%;
    height: 44px;
    background-color: #fff;
    border: 1px solid #ccd3e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 40px 10px 14px;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.q-form .custom-select-quotation select:focus {
    border-color: #1D428A;
    box-shadow: 0 0 0 2px rgba(29, 66, 138, 0.08);
}

.q-form .custom-select-quotation::after {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    background: none;
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 11px;
    color: #1D428A;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

/* Single-page wrapper */
.q-page-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
    border-top: 3px solid #228848;
    margin-bottom: 30px;
}

/* Section title */
.q-section-title {
    color: #1D428A;
    font-size: 17px;
    font-weight: 700;
    padding: 24px 32px 8px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e8ecf3;
}

.q-section-title:first-child,
.q-page-wrapper> :first-child .q-section-title {
    border-top: none;
}

.q-section-title i {
    font-size: 18px;
    opacity: 0.7;
}

/* Section body */
.q-section-body {
    padding: 16px 32px 28px;
}

.q-section-body .row {
    margin-bottom: 18px;
}

.q-section-body .row:last-child {
    margin-bottom: 0;
}

.q-section-body .form-group {
    margin-bottom: 4px;
}

/* Additional details use field widths that reflect the expected values. */
.q-section-body .additional-details-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 20px;
    margin-right: 0;
    margin-left: 0;
}

.q-section-body .additional-details-grid > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.additional-details-grid .form-group {
    margin-bottom: 0;
}

.additional-field-passport { grid-column: span 5; }
.additional-field-height { grid-column: span 3; }
.additional-field-weight { grid-column: span 4; }
.additional-field-nationality { grid-column: span 3; }
.additional-field-tin { grid-column: span 5; }
.additional-field-civil-status { grid-column: span 4; }
.additional-field-province,
.additional-field-city,
.additional-field-barangay { grid-column: span 4; }
.additional-field-house-unit,
.additional-field-zip { grid-column: span 3; }
.additional-field-street { grid-column: span 6; }
.additional-field-beneficiary,
.additional-field-beneficiary-phone { grid-column: span 6; }

@media (max-width: 991px) {
    .q-section-body .additional-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .q-section-body .additional-details-grid > [class*="additional-field-"] {
        grid-column: span 1;
    }

    .q-section-body .additional-details-grid .additional-field-street {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .q-section-body .additional-details-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .q-section-body .additional-details-grid .additional-field-street {
        grid-column: span 1;
    }
}

/* Plan packages grid */
#plans {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
}

#plans:empty::after {
    content: 'Fill in travel details above to see available plans';
    color: #999;
    font-size: 13px;
    font-style: italic;
    padding: 30px 0;
    grid-column: 1 / -1;
    text-align: center;
}

/* Select2 theme overrides */
.select2-container--default .select2-selection--single {
    height: 44px;
    border: 1px solid #ccd3e0;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #7a9ad4;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #1D428A;
    box-shadow: 0 0 0 2px rgba(29, 66, 138, 0.08);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #333;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #1D428A transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #1D428A transparent;
    border-width: 0 4px 5px 4px;
}

.select2-dropdown {
    border: 1px solid #ccd3e0;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
}

.select2-results__option--highlighted[aria-selected] {
    background: #1D428A !important;
    color: #fff !important;
}

.select2-results__option[aria-selected="true"] {
    background: #eef2ff;
    color: #1D428A;
    font-weight: 600;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ccd3e0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #1D428A;
    outline: none;
}

/* Section spacing */
.insurance-page-one#quotation {
    padding: 40px 0 60px;
}

.insurance-page-one#quotation .container {
    max-width: 1200px;
}

/* Sidebar: YOUR DETAILS */
@media (min-width: 1200px) {
    .sidebar-desktop-sticky {
        align-self: flex-start;
        position: sticky;
        top: 120px;
    }
}
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.sidebar-card-header {
    background: #1D428A;
    color: #fff;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.sidebar-card-body {
    padding: 16px 22px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f4f8;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1D428A;
    flex-shrink: 0;
}

.sidebar-dot.filled {
    background: #228848;
    border-color: #228848;
}

.sidebar-item-label {
    font-size: 14px;
    font-weight: 700;
    color: #1D428A;
    line-height: 1.3;
}

.sidebar-item-value {
    font-size: 13px;
    color: #555;
    margin-top: 2px;
    line-height: 1.4;
    word-break: break-word;
}

.sidebar-confirm-info {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f0f7f2;
    border-radius: 8px;
    border: 1px solid #c6e0cc;
    font-size: 12px;
    color: #333;
    line-height: 1.8;
    word-break: break-word;
}

/* Quotation workflow header */
.quotation-flow-header {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    align-items: stretch;
    margin: 0 auto 30px;
    overflow: hidden;
    background: #1D428A;
    border-top: 4px solid #228848;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 37, 87, 0.16);
}

.quotation-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 26px;
    background: #163571;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.quotation-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background: #228848;
    color: #fff;
    font-size: 18px;
}

.quotation-brand-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.quotation-brand-title {
    margin: 0;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.1;
}

/* Progress indicator */
.quotation-flow-header .step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 90px;
    margin: 0;
    padding: 18px 30px 14px;
}

.quotation-flow-header .step-indicator::before {
    content: '';
    position: absolute;
    top: 32px;
    right: 42px;
    left: 42px;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
    z-index: 0;
}

.quotation-flow-header .step-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 78px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    position: relative;
    z-index: 1;
    padding: 0 2px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.quotation-flow-header .step-indicator .step:hover {
    color: #fff;
    transform: translateY(-2px);
}

.quotation-flow-header .step-indicator .step .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.44);
    border-radius: 50%;
    background: #1D428A;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.quotation-flow-header .step-indicator .step.active .step-num {
    border-color: #fff;
    background: #fff;
    color: #1D428A;
    box-shadow: 0 0 0 4px rgba(34, 136, 72, 0.55);
}

.quotation-flow-header .step-indicator .step.completed .step-num {
    border-color: #228848 !important;
    background: #228848 !important;
    color: #fff !important;
}

.quotation-flow-header .step-indicator .step.active.completed .step-num {
    border-color: #228848 !important;
    background: #228848 !important;
    color: #fff !important;
    box-shadow: 0 0 0 4px rgba(34, 136, 72, 0.3) !important;
}

.quotation-flow-header .step-indicator .step.active,
.quotation-flow-header .step-indicator .step.completed,
.quotation-flow-header .step-indicator .step.current-tab {
    color: #fff;
}

.quotation-flow-header .step-indicator .step.current-tab .step-num {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(34, 136, 72, 0.55);
}

.quotation-flow-header .step-indicator .step-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
}

.step-indicator .step-line {
    display: none;
}

/* Itinerary builder */
.itinerary-builder {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-top: 10px;
}

.itinerary-leg {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.itinerary-leg-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #1D428A;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.itinerary-leg-label i {
    margin-right: 4px;
}

.itin-leg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    min-height: 34px;
}

.itin-leg-header .itinerary-leg-label {
    margin-bottom: 0;
}

.itin-add-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    background: #228848;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.itin-add-btn:hover {
    background: #1a6e38;
}

.itin-fields-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.itin-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.itin-row select,
.itin-row .select2-container {
    flex: 1;
    min-width: 0;
}

.itin-remove-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    background: #d9534f;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.itin-remove-btn:hover {
    background: #c9302c;
}

.itin-locked-row select:disabled {
    background: #f0f2f8;
    color: #555;
    font-weight: 600;
    cursor: not-allowed;
}

.itinerary-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.itinerary-fields .form-control,
.itin-fields-list .form-control {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    height: 38px;
}

.itinerary-fields .select2-container--default .select2-selection--single,
.itin-fields-list .select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ccd3e0;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 14px;
}

.itinerary-fields .select2-container--default .select2-selection--single .select2-selection__rendered,
.itin-fields-list .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #333;
    padding-left: 0;
}

.itinerary-fields .select2-container--default .select2-selection--single .select2-selection__arrow,
.itin-fields-list .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.itinerary-fields .select2-container--default.select2-container--disabled .select2-selection--single,
.itin-fields-list .select2-container--default.select2-container--disabled .select2-selection--single {
    background: #f0f2f8;
    cursor: not-allowed;
}

.itinerary-arrow {
    display: flex;
    align-items: flex-start;
    padding-top: 50px;
    color: #1D428A;
    font-size: 18px;
    flex-shrink: 0;
}

/* ========== Plan Cards — Row Style ========== */
.plan-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e6ef;
    overflow: hidden;
    transition: all 0.50s ease;
    position: relative;
    display: flex;
    align-items: stretch;
    cursor: pointer;
}

.plan-card::before {
    content: '';
    width: 5px;
    flex-shrink: 0;
    background: #cbd5e1;
    border-radius: 12px 0 0 12px;
    transition: background 0.22s;
}

.plan-card:hover {
    border-color: #b0bdd4;
    box-shadow: 0 2px 12px rgba(29, 66, 138, 0.08);
}

.plan-card.selected,
.plan-card.plan-card-selected {
    border-color: #228848;
    box-shadow: 0 0 0 2px #228848;
    background: linear-gradient(135deg, #205935 0%, #7feda7 100%);
}

.plan-card.selected::before,
.plan-card.plan-card-selected::before {
    background: #14532d;
}

.plan-card.plan-card-selected .plan-card-top,
.plan-card.selected .plan-card-top {
    background: transparent;
}

.plan-card.plan-card-selected .plan-card-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.plan-card.plan-card-selected .plan-card-meta h4 {
    color: #fff;
}

.plan-card.plan-card-selected .plan-price {
    color: rgba(255, 255, 255, 0.82);
}

.plan-card.plan-card-selected .plan-price strong,
.plan-card.selected .plan-price strong {
    color: #fff;
}

.plan-card.plan-card-selected .plan-remove-btn,
.plan-card.selected .plan-remove-btn {
    border-color: rgba(144, 13, 13);
    color: #8b0808;
    background: rgb(255, 117, 117);
}

.plan-card.plan-card-selected .plan-remove-btn:hover,
.plan-card.selected .plan-remove-btn:hover {
    background: rgba(185, 28, 28);
    border-color: rgba(163, 30, 30);
}

/* Best Value */
.plan-card-best {
    border-color: #228848;
    background: linear-gradient(135deg, #f0faf3 0%, #fff 40%);
}

.plan-card-best::before {
    background: #228848;
}

.plan-card-best:hover {
    box-shadow: 0 4px 20px rgba(34, 136, 72, 0.14);
}

/* Most Popular */
.plan-card-popular {
    border-color: #1D428A;
    background: linear-gradient(135deg, #eef2fb 0%, #fff 40%);
}

.plan-card-popular::before {
    background: #1D428A;
}

.plan-card-popular:hover {
    box-shadow: 0 4px 20px rgba(29, 66, 138, 0.12);
}

/* Ribbon badge — small floating chip */
.plan-ribbon {
    position: absolute;
    top: 0;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 0 0 6px 6px;
    z-index: 1;
}

.plan-ribbon i {
    font-size: 10px;
}

.plan-ribbon-best {
    background: #228848;
}

.plan-ribbon-popular {
    background: #1D428A;
}

/* Card inner row */
.plan-card-top {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.plan-card-best .plan-card-top,
.plan-card-popular .plan-card-top {
    padding-top: 22px;
}

.plan-card-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1D428A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.plan-card-best .plan-card-badge {
    background: #228848;
}

/* Meta — plan name + premium inline */
.plan-card-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.plan-card-meta h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
    white-space: nowrap;
}

.plan-card-meta .plan-price {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-card-meta .premium-dash {
    color: #94a3b8;
    font-weight: 400;
    margin-right: 4px;
}

.plan-card-meta .plan-price strong {
    color: #228848;
    font-size: 16px;
    font-weight: 800;
}

/* Actions */
.plan-card-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.plan-benefits-collapse {
    margin-top: 4px;
    margin-bottom: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease, margin-top 0.4s ease;
}

.plan-benefits-collapse.is-open {
    opacity: 1;
    transform: translateY(0);
    margin-top: 6px;
    max-height: 2000px;
}

.plan-benefits-inner {
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.plan-benefits-header {
    background: #f8fafc;
    color: #1f2937;
    padding: 10px 14px;
    border-bottom: 1px solid #e9edf3;
}

.plan-benefits-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.benefits-inline-body {
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.benefits-inline-body::-webkit-scrollbar {
    width: 6px;
}

.benefits-inline-body::-webkit-scrollbar-track {
    background: transparent;
}

.benefits-inline-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* Benefits Modal */
.benefits-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
}

.benefits-modal-header {
    background: #1D428A;
    color: #fff;
    padding: 22px 28px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.benefits-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefits-header-icon {
    width: 34px;
    height: 34px;
    background: #e8ecfb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #1D428A;
    flex-shrink: 0;
}

.benefits-modal-header .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.benefits-subtitle {
    font-size: 11px;
    color: #6b7280;
    letter-spacing: 0.2px;
    text-transform: none;
}

.benefits-modal-header .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.benefits-modal-header .btn-close-white:hover {
    opacity: 1;
}

.benefits-modal-body {
    padding: 0;
    max-height: 65vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.benefits-modal-body::-webkit-scrollbar {
    width: 5px;
}

.benefits-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.benefits-modal-body::-webkit-scrollbar-thumb {
    background: #c5cce0;
    border-radius: 4px;
}

/* Formatted benefits content */
.bf-benefits {
    padding: 8px 0;
}

.bf-section {
    margin-bottom: 2px;
}

.bf-section:last-child {
    margin-bottom: 0;
}

.bf-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #f0f2f8;
    border-left: 4px solid #1D428A;
}

.bf-section-num {
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.bf-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
}

.bf-section-value {
    font-size: 13px;
    font-weight: 700;
    color: #1D428A;
    background: #e8ecfb;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bf-section-body {
    padding: 0;
}

.bf-row {
    display: flex;
    padding: 10px 24px;
    border-bottom: 1px solid #f0f1f5;
    gap: 16px;
    align-items: baseline;
}

.bf-row-alt {
    background: #fafbfe;
}

.bf-row:last-child {
    border-bottom: none;
}

.bf-row:hover {
    background: #f2f4fb;
}

.bf-label {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    min-width: 0;
}

.bf-value {
    flex: 0 0 auto;
    max-width: 45%;
    font-size: 13px;
    color: #555;
    font-weight: 500;
    text-align: right;
    line-height: 1.5;
    word-break: break-word;
}

.bf-value-highlight {
    color: #1D428A;
    font-weight: 700;
    background: #eef1fb;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.bf-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 24px;
    background: #e8f0ec;
    border-left: 3px solid #228848;
    font-size: 12px;
    color: #1a5c32;
    line-height: 1.5;
    font-style: italic;
}

.bf-note i {
    color: #228848;
    margin-top: 2px;
    flex-shrink: 0;
}

.benefit-item {
    border-bottom: 1px solid #edf1f5;
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.benefit-item-header:hover {
    background: #f8fafc;
}

.benefit-item-num {
    min-width: 22px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-item-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-transform: none;
    letter-spacing: 0;
}

.benefit-item-arrow {
    color: #6b7280;
    transition: transform 0.2s ease;
}

.benefit-item-header.is-open .benefit-item-arrow {
    transform: rotate(180deg);
}

.benefit-item-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 16px 14px;
    background: #fff;
    transition: max-height 0.28s ease, opacity 0.22s ease;
}

.benefit-item-details.is-open {
    opacity: 1;
}

.benefit-detail-row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #f1f4f7;
}

.benefit-detail-label {
    flex: 1;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.benefit-detail-value {
    flex: 0 0 auto;
    max-width: 45%;
    font-size: 13px;
    color: #111827;
    font-weight: 500;
    text-align: right;
    line-height: 1.5;
}

.benefit-detail-note {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
    font-style: normal;
}

.bf-note-text {
    padding: 4px 24px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    font-style: italic;
}

.benefits-modal-footer {
    border-top: 1px solid #eef0f4;
    padding: 14px 28px;
    display: flex;
    justify-content: flex-end;
}

.benefits-modal-footer .btn {
    border-radius: 10px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 14px;
    background: #f0f2f7;
    border: none;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.benefits-modal-footer .btn:hover {
    background: #e0e4ee;
}

/* Buttons */
.btn-quotation-primary {
    border: none;
    border-radius: 10px;
    background-color: #1D428A;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quotation-primary:hover {
    background-color: #163571;
    box-shadow: 0 4px 12px rgba(29, 66, 138, 0.3);
}

.btn-quotation-save {
    border: none;
    border-radius: 10px;
    background-color: #228848;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quotation-save:hover {
    background-color: #1a6e38;
    box-shadow: 0 4px 12px rgba(34, 136, 72, 0.3);
}

.btn-quotation-outline {
    border: 2px solid #1D428A;
    border-radius: 10px;
    background-color: transparent;
    color: #1D428A;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-quotation-outline:hover {
    background-color: #1D428A;
    color: #fff;
    box-shadow: 0 4px 12px rgba(29, 66, 138, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .q-section-body {
        padding: 10px 16px 16px;
    }
}

@media (max-width: 767px) {
    .step-indicator {
        max-width: 100%;
        padding: 0 5px;
        margin-bottom: 20px;
    }

    .step-indicator .step {
        font-size: 10px;
        min-width: 60px;
    }

    .step-indicator .step .step-num {
        width: 22px;
        height: 22px;
    }

    .step-indicator::before {
        top: 10px;
        left: 30px;
        right: 30px;
    }

    .q-section-title {
        padding: 16px 16px 4px;
        font-size: 14px;
    }

    .q-section-body {
        padding: 10px 16px 18px;
    }

    #plans {
        flex-direction: column;
    }

    .plan-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .plan-card-top {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .plan-card-best .plan-card-top,
    .plan-card-popular .plan-card-top {
        padding-top: 20px;
    }

    .plan-card-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    .plan-benefits-header {
        padding: 14px 16px;
    }

    .plan-benefits-title {
        font-size: 14px;
    }

    .benefit-item-header {
        padding: 14px 16px;
    }

    .benefit-item-details {
        padding: 0 16px 14px;
    }

    .benefits-inline-body {
        max-height: 300px;
    }

    .benefit-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .benefit-detail-value {
        max-width: 100%;
        text-align: left;
    }

    .itinerary-builder {
        flex-direction: column;
        gap: 8px;
    }

    .itinerary-arrow {
        padding-top: 0;
        text-align: center;
        transform: rotate(90deg);
    }

    .col-md-6.travel {
        margin-bottom: 10px;
    }

    .btn-quotation-primary,
    .btn-quotation-save {
        width: 100%;
        margin-bottom: 8px;
    }

    /* Benefits modal responsive */
    .benefits-modal-header {
        padding: 16px 18px;
    }

    .benefits-modal-header .modal-title {
        font-size: 17px;
    }

    .benefits-header-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .benefits-modal-body {
        max-height: 55vh;
        font-size: 13px;
    }

    .bf-section-header {
        padding: 10px 16px;
        gap: 10px;
    }

    .bf-section-num {
        font-size: 11px;
    }

    .bf-section-title {
        font-size: 12px;
    }

    .bf-section-value {
        font-size: 11px;
        padding: 2px 10px;
    }

    .bf-row {
        padding: 8px 16px;
        flex-direction: column;
        gap: 4px;
    }

    .bf-label {
        font-size: 12px;
    }

    .bf-value {
        text-align: left;
        max-width: 100%;
        font-size: 12px;
    }

    .bf-note {
        padding: 6px 16px;
        font-size: 11px;
    }

    .bf-note-text {
        padding: 3px 16px;
        font-size: 11px;
    }

    .benefits-modal-footer {
        padding: 12px 16px;
    }
}

/* ================================================
   BUY NOW — ORDER REVIEW MODAL
   ================================================ */

/* Dialog sizing */
.buynow-modal-dialog {
    max-width: 980px;
    width: 96vw;
    margin: 20px auto;
}

.buynow-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0,0,0,0.22);
}

/* ── Hero Header ── */
.buynow-hero {
    background: #1D428A;
    padding: 18px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.buynow-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.buynow-hero-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.buynow-hero-label {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.buynow-hero-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.68);
    margin-top: 2px;
}

.buynow-close {
    flex-shrink: 0;
    opacity: 0.7;
}

.buynow-close:hover { opacity: 1; }

/* ── Body two-column grid ── */
.buynow-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 0;
    max-height: calc(100vh - 140px);
}

/* ── LEFT: Summary Panel ── */
.buynow-summary {
    background: #f4f7fb;
    padding: 20px 22px;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.buynow-summary::-webkit-scrollbar { width: 5px; }
.buynow-summary::-webkit-scrollbar-thumb { background: #c8d3e4; border-radius: 999px; }

/* Premium chip */
.buynow-premium-chip {
    background: linear-gradient(135deg, #1D428A 0%, #163571 100%);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(29,66,138,0.22);
}

.buynow-premium-chip-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.buynow-premium-chip-label i { margin-right: 4px; }

.buynow-premium-chip-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.buynow-premium-amount {
    font-size: 22px;
    font-weight: 900;
    color: #7feda7;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

/* Sections */
.buynow-section {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8ecf3;
    margin-bottom: 12px;
    overflow: hidden;
}

.buynow-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #1D428A;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #eef1f8;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f8faff;
}

.buynow-section-title i { opacity: 0.7; font-size: 12px; }

/* Grid rows inside sections */
.buynow-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.buynow-cell {
    padding: 9px 14px;
    border-bottom: 1px solid #f2f4f8;
}

.buynow-cell:nth-child(odd) {
    border-right: 1px solid #f2f4f8;
}

.buynow-cell-full {
    grid-column: 1 / -1;
    border-right: none !important;
}

.buynow-row:last-child .buynow-cell { border-bottom: none; }

.buynow-cell-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.buynow-cell-label i { margin-right: 3px; }

.buynow-cell-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.buynow-name { font-size: 14px; font-weight: 700; color: #1D428A; }
.buynow-email { font-size: 12px; word-break: break-all; }

/* ── RIGHT: Payment Panel ── */
.buynow-payment {
    background: #fff;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Payment method card */
.buynow-pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 1.5px solid #c5d3f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.buynow-pay-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1D428A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
}

.buynow-pay-method-title {
    font-size: 13px;
    font-weight: 700;
    color: #1D428A;
    line-height: 1.3;
}

.buynow-pay-method-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* Divider */
.buynow-divider {
    border: none;
    border-top: 1px solid #e8ecf3;
    margin: 12px 0;
}

/* Consent status title */
.buynow-consent-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

/* Consent items */
.buynow-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 8px;
}

.buynow-consent-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #cbd5e1; /* default: unchecked */
    transition: color 0.25s, transform 0.25s;
}

.buynow-consent-icon.checked {
    color: #228848;
    transform: scale(1.1);
}

/* Breakdown table */
.buynow-breakdown {
    background: #f8fafc;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.buynow-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f0f2f7;
}

.buynow-breakdown-taxes {
    font-size: 12px;
    color: #94a3b8;
}

.buynow-breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, #1D428A 0%, #163571 100%);
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

#bn_total_due {
    font-size: 18px;
    color: #7feda7;
    letter-spacing: -0.5px;
}

/* CTA Button */
.buynow-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #228848 0%, #1a6e38 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.25s;
    box-shadow: 0 6px 20px rgba(34,136,72,0.30);
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.buynow-cta-btn:hover {
    background: linear-gradient(135deg, #1a6e38 0%, #145c2e 100%);
    box-shadow: 0 10px 28px rgba(34,136,72,0.40);
    transform: translateY(-1px);
}

.buynow-cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Cancel / back button */
.buynow-cancel-btn {
    width: 100%;
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.buynow-cancel-btn:hover {
    background: #f1f5f9;
    border-color: #c5cfe0;
    color: #374151;
}

/* ── Buy Now Modal Responsive ── */
@media (max-width: 767.98px) {
    .buynow-modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 8px;
    }

    .buynow-body {
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
    }

    .buynow-summary {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        overflow: visible;
        max-height: none;
    }

    .buynow-payment {
        overflow: visible;
    }

    .buynow-premium-amount { font-size: 18px; }

    .buynow-hero { padding: 14px 16px; }
    .buynow-hero-icon { width: 38px; height: 38px; font-size: 16px; }
    .buynow-hero-label { font-size: 15px; }

    .buynow-summary,
    .buynow-payment { padding: 16px; }

    .buynow-cta-btn { font-size: 14px; padding: 12px 16px; }
}

@media (max-width: 575.98px) {
    .buynow-modal-dialog {
        margin: 0 !important;
        height: 100%;
        display: flex;
        align-items: flex-end;
    }

    .buynow-modal-content {
        border-radius: 18px 18px 0 0 !important;
        max-height: 94vh;
        overflow-y: auto;
        width: 100%;
    }

    .buynow-body {
        max-height: none;
    }

    .buynow-row {
        grid-template-columns: 1fr;
    }

    .buynow-cell:nth-child(odd) {
        border-right: none;
    }

    .buynow-cell-full {
        grid-column: 1 / -1;
    }

    #bn_total_due { font-size: 16px; }

    .buynow-premium-amount { font-size: 16px; }
}



/* ── Medium: tablets (≤991px) ───────────────────── */
@media (max-width: 991.98px) {
    .insurance-page-one#quotation {
        padding: 24px 0 40px;
    }

    .q-section-title {
        padding: 18px 20px 6px;
        font-size: 15px;
    }

    .q-section-body {
        padding: 12px 20px 20px;
    }

    /* Email consent modal — stack to single column */
    #emailConsentModal .modal-dialog {
        max-width: 96vw !important;
        margin: 12px auto;
    }

    #emailConsentModal [style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
    }

    #emailConsentModal [style*="border-right: 1px solid"] {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .step-indicator {
        max-width: 100%;
        padding: 0 8px;
    }
}

/* ── Small: large phones & small tablets (≤767px) ──*/
@media (max-width: 767.98px) {
    /* Page padding */
    .insurance-page-one#quotation {
        padding: 16px 0 32px;
    }

    /* Title */
    h2[style*="TravelFirst"] ,
    .tab-content > div > h2 {
        font-size: 20px !important;
        margin-bottom: 18px !important;
    }

    /* Step indicator — compact */
    .step-indicator {
        max-width: 100%;
        padding: 0 4px;
        margin-bottom: 16px;
    }

    .step-indicator .step {
        font-size: 9px;
        min-width: 54px;
        gap: 5px;
    }

    .step-indicator .step .step-num {
        width: 20px;
        height: 20px;
    }

    .step-indicator::before {
        top: 9px;
        left: 27px;
        right: 27px;
    }

    /* Section headings */
    .q-section-title {
        padding: 14px 14px 4px;
        font-size: 14px;
        gap: 7px;
    }

    .q-section-body {
        padding: 10px 14px 16px;
    }

    .q-section-body .row {
        margin-bottom: 12px;
    }

    /* Form rows: all columns full-width on mobile */
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Travel type selector — stack vertically */
    .travel-type-selector {
        flex-direction: column;
        gap: 8px;
    }

    .travel-type-card {
        flex: unset;
        width: 100%;
    }

    .travel-type-content {
        padding: 10px 14px;
        font-size: 13px;
        justify-content: flex-start;
    }

    /* Itinerary builder — vertical stack */
    .itinerary-builder {
        flex-direction: column;
        gap: 10px;
    }

    .itinerary-arrow {
        padding-top: 0;
        justify-content: center;
        transform: rotate(90deg);
    }

    /* Plans */
    #plans {
        flex-direction: column;
        gap: 8px;
    }

    .plan-card-top {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 12px;
    }

    .plan-card-best .plan-card-top,
    .plan-card-popular .plan-card-top {
        padding-top: 26px;
    }
    
    .plan-ribbon {
        left: 14px;
        padding: 3px 10px;
    }

    .plan-card-meta {
        flex-direction: row;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 6px;
        min-width: 0;
    }

    .plan-card-meta h4 {
        font-size: 15px;
        margin: 0;
    }

    .plan-card-meta .plan-price {
        font-size: 13px;
    }

    .plan-card-meta .plan-price strong {
        font-size: 15px;
    }

    .plan-card-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
        display: flex;
        gap: 8px;
    }

    .plan-card-actions > * {
        flex: 1;
    }

    /* Buttons */
    .btn-quotation-primary,
    .btn-quotation-save,
    .btn-quotation-outline {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 10px 16px;
        margin-bottom: 6px;
    }

    /* Navigation action rows */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        gap: 10px;
        align-items: stretch !important;
    }

    .d-flex.align-items-center.flex-wrap.justify-content-end {
        justify-content: stretch !important;
        flex-direction: column;
        width: 100%;
        gap: 8px !important;
    }

    /* "Review Travel Details" link */
    a[style*="REVIEW TRAVEL DETAILS"] {
        text-align: center;
    }

    /* Consent section */
    #consent_agreements_section {
        padding: 16px !important;
    }

    /* reCAPTCHA — center it */
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left center;
    }

    /* Benefits modal */
    .benefits-modal-header {
        padding: 14px 16px;
    }

    .benefits-modal-header .modal-title {
        font-size: 16px;
    }

    .bf-section-header {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .bf-section-value {
        font-size: 11px;
        padding: 2px 8px;
    }

    .bf-row {
        padding: 8px 14px;
        flex-direction: column;
        gap: 3px;
    }

    .bf-value {
        text-align: left;
        max-width: 100%;
    }

    .benefits-modal-body {
        max-height: 55vh;
        font-size: 13px;
    }

    /* Benefit detail rows */
    .benefit-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .benefit-detail-value {
        max-width: 100%;
        text-align: left;
    }

    /* Payment card label */
    label.payment-card {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    /* Email consent modal — single column */
    #emailConsentModal .modal-dialog {
        max-width: 100% !important;
        margin: 8px !important;
    }

    #emailConsentModal [style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
    }

    #emailConsentModal [style*="border-right: 1px solid"] {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
    }

    #emailConsentModal [style*="padding: 22px 24px"] {
        padding: 16px !important;
    }

    /* Footer */
    footer .col-md-6 {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 10px;
    }

    footer .col-md-6:last-child {
        margin-bottom: 0;
    }

    footer a {
        display: block;
        margin-right: 0 !important;
        margin-bottom: 6px;
    }
}

/* ── Extra-small: phones (≤575px) ───────────────── */
@media (max-width: 575.98px) {
    /* Container edge padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Quotation page top padding */
    .insurance-page-one#quotation {
        padding: 10px 0 24px;
    }

    /* Step indicator — hide label text, show dots only */
    .step-indicator .step > span:last-child {
        display: none;
    }

    .step-indicator {
        max-width: 180px;
        margin-bottom: 12px;
    }

    .step-indicator .step {
        min-width: auto;
    }

    .step-indicator::before {
        left: 18px;
        right: 18px;
    }

    /* Form labels */
    label {
        font-size: 13px;
    }

    /* reCAPTCHA — scale down more on tiny screens */
    .g-recaptcha {
        transform: scale(0.82);
        transform-origin: left center;
    }

    /* Plan card badges */
    .plan-card-badge {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .plan-ribbon {
        font-size: 8px;
    }

    /* Email modal full-screen on phones */
    #emailConsentModal .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
        height: 100%;
        align-items: flex-end;
    }

    #emailConsentModal .modal-content {
        border-radius: 16px 16px 0 0 !important;
        max-height: 92vh;
        overflow-y: auto;
    }

    /* Modal left panel premium strip — wrap text */
    #emailConsentModal [style*="font-size: 18px; font-weight: 800"] {
        font-size: 16px !important;
    }

    /* Surcharge group — vertical list on small phones */
    .surcharge-group {
        flex-direction: column;
        gap: 8px;
    }

    /* Benefits modal full screen */
    .benefits-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        align-items: flex-end;
    }

    .benefits-modal .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Section body tighter */
    .q-section-body {
        padding: 8px 10px 14px;
    }

    .q-section-title {
        padding: 12px 10px 4px;
        font-size: 13px;
    }

    /* Inputs slightly smaller */
    .q-form .form-control-lg,
    .q-form .custom-select-quotation select {
        height: 40px;
        font-size: 13px;
    }
}

/* Match quotation.php loading overlay and animated logo */
.preloader {
    position: fixed;
    background-color: #fff;
    background-position: center center;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

.preloader__image {
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: flipInY;
    animation-name: flipInY;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    background-image: url(../../assets/images/resources/philfirst-logo.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60px auto;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    -webkit-transform-origin: center;
    transform-origin: center;
}

@media (max-width: 767.98px) {
    .quotation-flow-header {
        grid-template-columns: 1fr;
        margin-bottom: 22px;
    }

    .quotation-brand {
        padding: 15px 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .quotation-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 15px;
    }

    .quotation-brand-title {
        font-size: 20px;
    }

    .quotation-flow-header .step-indicator {
        min-height: 74px;
        padding: 13px 14px 11px;
    }

    .quotation-flow-header .step-indicator::before {
        top: 26px;
        right: 12.5%;
        left: 12.5%;
    }

    .quotation-flow-header .step-indicator .step {
        min-width: 0;
        flex: 1;
        font-size: 10px;
    }

    .quotation-flow-header .step-indicator .step .step-num {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .quotation-flow-header .step-indicator .step-label {
        min-height: 25px;
    }
}

@media (max-width: 575.98px) {
    .quotation-flow-header {
        margin-bottom: 18px;
    }

    .quotation-flow-header .step-indicator {
        min-height: 50px;
        padding: 11px 14px;
    }

    .quotation-flow-header .step-indicator::before {
        top: 23px;
    }

    .quotation-flow-header .step-indicator .step-label {
        display: none;
    }
}