/* ═══════════════════════════════════════════════════════════
   AddisFly — Book Flight Page Styles
   ═══════════════════════════════════════════════════════════ */

:root {
    --bf-red: #ea1d24;
    --bf-red-dark: #c8171d;
    --bf-black: #1a1a1a;
    --bf-gray-50: #f8f9fa;
    --bf-gray-100: #f1f3f5;
    --bf-gray-200: #e9ecef;
    --bf-gray-300: #dee2e6;
    --bf-gray-400: #ced4da;
    --bf-gray-500: #adb5bd;
    --bf-gray-600: #868e96;
    --bf-gray-700: #495057;
    --bf-gray-800: #343a40;
    --bf-green: #27ae60;
    --bf-green-light: #eafaf1;
    --bf-blue: #2980b9;
    --bf-orange: #e67e22;

    /* ── OCR "Scan passport" bar — adjustable, defaults to brand ── */
    --bf-ocr-accent: var(--bf-red);        /* button + icon color */
    --bf-ocr-accent-hover: var(--bf-red-dark);
    --bf-ocr-bg: #fef2f2;                  /* bar background tint */
    --bf-ocr-border: #fecaca;              /* bar border tint */

    --bf-radius: 16px;
    --bf-radius-sm: 10px;
    /* Soft, layered, Apple-style elevation */
    --bf-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05);
    --bf-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --bf-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    /* Apple-style neutral surfaces & hairlines */
    --bf-surface: #f5f5f7;        /* page background */
    --bf-hairline: #e5e5ea;       /* iOS separator */
    --bf-fill: #f2f2f7;           /* iOS secondary fill (inputs at rest) */
    --bf-text: #1d1d1f;           /* Apple near-black */
    --bf-text-secondary: #6e6e73; /* Apple secondary label */

    /* System font stack (SF Pro on Apple devices) */
    --bf-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ─── PAGE LAYOUT ─── */
.bf-page {
    min-height: 70vh;
    background: var(--bf-surface);
    padding-bottom: 60px;
    font-family: var(--bf-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--bf-text);
    letter-spacing: -0.01em;
}
.bf-page * {
    font-family: inherit;
}

.bf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── NO FLIGHT FALLBACK ─── */
.bf-no-flight {
    text-align: center;
    padding: 100px 20px;
}
.bf-no-flight svg {
    margin-bottom: 20px;
}
.bf-no-flight h2 {
    font-size: 24px;
    color: var(--bf-gray-700);
    margin: 0 0 8px;
}
.bf-no-flight p {
    color: var(--bf-gray-600);
    margin: 0 0 24px;
}

/* ─── PROGRESS STEPPER ─── */
.bf-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 0 28px;
}
.bf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
}
.bf-step span {
    font-size: 12px;
    color: var(--bf-gray-500);
    font-weight: 500;
    transition: color var(--bf-transition);
}
.bf-step.active span,
.bf-step.done span {
    color: var(--bf-black);
}
.bf-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bf-gray-200);
    color: var(--bf-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--bf-transition);
}
.bf-step.active .bf-step-circle {
    background: var(--bf-red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(234, 29, 36, 0.3);
}
.bf-step.done .bf-step-circle {
    background: var(--bf-green);
    color: #fff;
}
.bf-step-line {
    flex: 1;
    height: 2px;
    background: var(--bf-gray-200);
    min-width: 30px;
    max-width: 80px;
    margin: -16px 4px 0;
    transition: background var(--bf-transition);
}
.bf-step-line.done {
    background: var(--bf-green);
}

/* ─── FLIGHT SUMMARY ─── */
.bf-flight-summary {
    background: #fff;
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 22px 26px;
    margin-bottom: 20px;
}
.bf-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.bf-summary-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--bf-black);
    margin: 0;
}
.bf-change-link {
    font-size: 13px;
    color: var(--bf-red);
    text-decoration: none;
    font-weight: 500;
}
.bf-change-link:hover {
    text-decoration: underline;
}

/* Flight summary card inside */
.bf-summary-route {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.bf-summary-airline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 64px;
}
.bf-summary-airline-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.bf-summary-airline-code {
    font-size: 18px;
    color: var(--bf-black);
}
.bf-summary-airline strong {
    font-size: 18px;
    color: var(--bf-black);
}
.bf-summary-airline small {
    font-size: 11px;
    color: var(--bf-gray-600);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bf-summary-flight {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}
.bf-summary-time {
    text-align: center;
}
.bf-summary-time .bf-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--bf-black);
}
.bf-summary-time .bf-code {
    font-size: 12px;
    color: var(--bf-gray-600);
    font-weight: 500;
}
.bf-summary-line {
    flex: 1;
    text-align: center;
    position: relative;
}
.bf-summary-line .bf-dur {
    font-size: 12px;
    color: var(--bf-gray-600);
    margin-bottom: 4px;
}
.bf-summary-line .bf-line-bar {
    height: 2px;
    background: var(--bf-gray-300);
    position: relative;
}
.bf-summary-line .bf-line-bar::before,
.bf-summary-line .bf-line-bar::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bf-gray-400);
}
.bf-summary-line .bf-line-bar::before { left: 0; }
.bf-summary-line .bf-line-bar::after { right: 0; }
.bf-summary-line .bf-stops {
    font-size: 11px;
    color: var(--bf-gray-500);
    margin-top: 4px;
}
.bf-summary-price {
    text-align: right;
    min-width: 120px;
}
.bf-summary-price .bf-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--bf-red);
}
.bf-summary-price .bf-price-detail {
    font-size: 11px;
    color: var(--bf-gray-600);
}
.bf-summary-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bf-gray-100);
}
.bf-summary-meta span {
    font-size: 12px;
    color: var(--bf-gray-600);
}

/* ─── PANELS ─── */
.bf-panel {
    display: none;
}
.bf-panel.active {
    display: block;
}
.bf-panel-header {
    margin-bottom: 24px;
}
.bf-panel-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bf-black);
    margin: 0 0 6px;
}
.bf-panel-header p {
    font-size: 14px;
    color: var(--bf-gray-600);
    margin: 0;
}

/* ─── PASSENGER FORMS ─── */
.bf-pax-card {
    background: #fff;
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 26px 28px;
    margin-bottom: 16px;
}
.bf-pax-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.bf-pax-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--bf-black);
    margin: 0;
}
.bf-pax-type {
    font-size: 11px;
    padding: 4px 11px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.bf-pax-type-adult {
    background: #eef2ff;
    color: #4338ca;
}
.bf-pax-type-child {
    background: #fef3c7;
    color: #d97706;
}
.bf-pax-type-infant {
    background: #fce7f3;
    color: #be185d;
}

/* ─── FORM ELEMENTS ─── */
.bf-form-row {
    margin-bottom: 16px;
}
.bf-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bf-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.bf-form-row-4 {
    display: grid;
    grid-template-columns: 90px 1fr 1fr 1fr;
    gap: 16px;
}
.bf-form-group {
    display: flex;
    flex-direction: column;
}
.bf-label {
    font-size: 13px;
    font-weight: 590;
    color: var(--bf-text-secondary);
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}
.bf-req {
    color: var(--bf-red);
}
.bf-input,
.bf-select {
    height: 46px;
    padding: 0 15px;
    border: 1px solid var(--bf-hairline);
    border-radius: var(--bf-radius-sm);
    font-size: 15px;
    color: var(--bf-text);
    background: #fff;
    transition: border-color var(--bf-transition), box-shadow var(--bf-transition), background var(--bf-transition);
    outline: none;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.bf-input::placeholder { color: #aeaeb2; }
.bf-input:hover,
.bf-select:hover {
    border-color: #d1d1d6;
}
.bf-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 38px;
}
.bf-input:focus,
.bf-select:focus {
    border-color: var(--bf-red);
    box-shadow: 0 0 0 4px rgba(234, 29, 36, 0.12);
}
.bf-input.bf-error,
.bf-select.bf-error {
    border-color: var(--bf-red);
    box-shadow: 0 0 0 4px rgba(234, 29, 36, 0.1);
    animation: bf-shake 0.4s ease;
}
.bf-input-hint {
    font-size: 12px;
    color: var(--bf-text-secondary);
    margin-top: 5px;
    letter-spacing: -0.01em;
}

/* ─── CHECKBOX ─── */
.bf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--bf-gray-700);
    cursor: pointer;
}
.bf-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bf-red);
    cursor: pointer;
}

/* ─── CONTACT NOTE ─── */
.bf-contact-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}
.bf-contact-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── ACTIONS (buttons row) ─── */
.bf-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 16px;
}

/* ─── BUTTONS ─── */
.bf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.08s ease, background var(--bf-transition), box-shadow var(--bf-transition), border-color var(--bf-transition);
    white-space: nowrap;
}
.bf-btn:active { transform: scale(0.98); }
.bf-btn-primary {
    background: var(--bf-red);
    color: #fff;
    box-shadow: 0 1px 2px rgba(234, 29, 36, 0.25);
}
.bf-btn-primary:hover {
    background: var(--bf-red-dark);
    box-shadow: 0 6px 18px rgba(234, 29, 36, 0.32);
}
.bf-btn-primary:disabled {
    background: var(--bf-gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.bf-btn-outline {
    background: #fff;
    color: var(--bf-text);
    border: 1px solid var(--bf-hairline);
}
.bf-btn-outline:hover {
    border-color: #d1d1d6;
    background: var(--bf-fill);
}
.bf-btn-wa {
    background: #25d366;
    color: #fff;
}
.bf-btn-wa:hover {
    background: #1fb855;
}
.bf-btn-submit {
    padding: 14px 36px;
    font-size: 16px;
}
.bf-btn-submit.loading span {
    opacity: 0;
}
.bf-btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bf-spin 0.6s linear infinite;
}
.bf-btn-submit {
    position: relative;
}

/* ─── REVIEW SECTION ─── */
.bf-review-section {
    background: #fff;
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.bf-review-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bf-gray-100);
}
.bf-review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}
.bf-review-row .bf-review-label {
    color: var(--bf-gray-600);
}
.bf-review-row .bf-review-value {
    color: var(--bf-black);
    font-weight: 500;
}
.bf-review-row-sub {
    padding-left: 16px;
    font-size: 13px;
    opacity: 0.8;
}
.bf-review-row-sub .bf-review-label {
    color: var(--bf-gray-500);
}
.bf-review-row-sub .bf-review-value {
    color: var(--bf-gray-700);
    font-weight: 400;
}
.bf-review-pax {
    padding: 10px 0;
    border-bottom: 1px solid var(--bf-gray-100);
}
.bf-review-pax:last-child {
    border-bottom: none;
}
.bf-review-pax .bf-review-pax-name {
    font-weight: 600;
    color: var(--bf-black);
    font-size: 14px;
}
.bf-review-pax .bf-review-pax-detail {
    font-size: 12px;
    color: var(--bf-gray-600);
    margin-top: 2px;
}
.bf-review-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 10px;
    border-top: 2px solid var(--bf-gray-200);
}
.bf-review-total .bf-review-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--bf-black);
}
.bf-review-total .bf-review-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--bf-red);
}

/* ─── TERMS ─── */
.bf-terms {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bf-gray-50);
    border-radius: 8px;
}
.bf-terms a {
    color: var(--bf-red);
    text-decoration: none;
}
.bf-terms a:hover {
    text-decoration: underline;
}

/* ─── CONFIRMATION ─── */
.bf-confirmation {
    text-align: center;
    padding: 32px 20px 40px;
}

/* ── Success Header ── */
.bf-confirm-header {
    margin-bottom: 28px;
}
.bf-confirm-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}
.bf-confirm-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--bf-green);
    opacity: 0.25;
    animation: bf-ring-pulse 2s ease-in-out infinite;
}
@keyframes bf-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.12); opacity: 0.1; }
}
.bf-confirm-icon-svg {
    position: relative;
    z-index: 1;
    background: var(--bf-green-light);
    border-radius: 50%;
    padding: 16px;
    width: 80px;
    height: 80px;
    animation: bf-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bf-pop-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.bf-confirmation h2 {
    font-size: 28px;
    color: var(--bf-green);
    margin: 0 0 10px;
}
.bf-confirm-ref {
    font-size: 17px;
    color: var(--bf-black);
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}
.bf-confirm-msg {
    font-size: 14px;
    color: var(--bf-gray-600);
    margin: 0;
}

/* ── Countdown Timer ── */
.bf-countdown-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 0 auto 24px;
    max-width: 340px;
    text-align: center;
}
.bf-countdown-label {
    font-size: 13px;
    color: #166534;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bf-countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}
.bf-countdown-num {
    font-size: 42px;
    font-weight: 800;
    color: #15803d;
    font-variant-numeric: tabular-nums;
    min-width: 56px;
    display: inline-block;
    text-align: center;
    line-height: 1;
}
.bf-countdown-sep {
    font-size: 36px;
    font-weight: 700;
    color: #15803d;
    line-height: 1;
    margin-bottom: 4px;
    animation: bf-blink 1s step-end infinite;
}
@keyframes bf-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.bf-countdown-sub {
    font-size: 12px;
    color: #166534;
    opacity: 0.8;
}
.bf-countdown-timer.bf-countdown-urgent .bf-countdown-num,
.bf-countdown-timer.bf-countdown-urgent .bf-countdown-sep {
    color: #dc2626;
}
.bf-countdown-timer.bf-countdown-urgent {
    animation: bf-shake 0.5s ease;
}
.bf-countdown-expired {
    font-size: 14px;
    color: #166534;
    font-weight: 600;
    padding: 8px 0;
}

/* ── Confirmation Flight Card ── */
.bf-confirm-flight-card {
    background: #fff;
    border: 1px solid var(--bf-gray-200);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 0 auto 28px;
    max-width: 520px;
    text-align: left;
    box-shadow: var(--bf-shadow);
}
.bf-cfc-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bf-gray-500);
    margin-bottom: 14px;
}
.bf-cfc-route {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.bf-cfc-city {
    text-align: center;
    flex: 1;
}
.bf-cfc-time {
    font-size: 26px;
    font-weight: 800;
    color: var(--bf-black);
    line-height: 1;
}
.bf-cfc-code {
    font-size: 13px;
    font-weight: 600;
    color: var(--bf-gray-600);
    margin-top: 2px;
}
.bf-cfc-mid {
    flex: 2;
    text-align: center;
}
.bf-cfc-dur {
    font-size: 12px;
    color: var(--bf-gray-500);
    margin-bottom: 4px;
}
.bf-cfc-line {
    position: relative;
    height: 2px;
    background: var(--bf-gray-200);
    margin: 0 8px;
}
.bf-cfc-plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1;
}
.bf-cfc-stops {
    font-size: 11px;
    color: var(--bf-gray-500);
    margin-top: 4px;
}
.bf-cfc-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--bf-gray-600);
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--bf-gray-100);
}
.bf-cfc-meta span::before {
    content: "• ";
    color: var(--bf-gray-400);
}
.bf-cfc-meta span:first-child::before {
    content: "";
}
.bf-cfc-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--bf-gray-100);
}
.bf-cfc-price-label {
    font-size: 12px;
    color: var(--bf-gray-500);
    font-weight: 500;
}
.bf-cfc-price-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--bf-black);
}

/* ── What Happens Next — Timeline ── */
.bf-confirm-next {
    text-align: left;
    max-width: 520px;
    margin: 0 auto 28px;
}
.bf-confirm-next h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--bf-black);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bf-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.bf-timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: var(--bf-gray-200);
    z-index: 0;
}
.bf-timeline-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 0 0 20px;
    position: relative;
    z-index: 1;
}
.bf-timeline-item:last-child {
    padding-bottom: 0;
}
.bf-timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bf-gray-100);
    border: 2px solid var(--bf-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--bf-gray-500);
    flex-shrink: 0;
    position: relative;
}
.bf-timeline-done .bf-timeline-dot {
    background: var(--bf-green-light);
    border-color: var(--bf-green);
    color: var(--bf-green);
}
.bf-timeline-active .bf-timeline-dot {
    background: #fff;
    border-color: var(--bf-green);
    color: var(--bf-green);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.12);
}
.bf-timeline-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--bf-green);
    opacity: 0.4;
    animation: bf-ring-pulse 1.5s ease-in-out infinite;
}
.bf-timeline-content {
    padding-top: 4px;
}
.bf-timeline-content strong {
    font-size: 14px;
    color: var(--bf-black);
    display: block;
    margin-bottom: 2px;
}
.bf-timeline-content p {
    font-size: 13px;
    color: var(--bf-gray-600);
    margin: 0;
}
.bf-timeline-done .bf-timeline-content strong {
    color: var(--bf-green);
}
.bf-timeline-active .bf-timeline-content strong {
    color: var(--bf-green);
    font-weight: 700;
}

/* ── Gateway icon colors ── */
.bf-gw-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bf-gw-icon-telebirr {
    background: #e8f5e9;
    color: #2e7d32;
}
.bf-gw-icon-cbe {
    background: #e3f2fd;
    color: #1565c0;
}

.bf-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ─── ANIMATIONS ─── */
@keyframes bf-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
@keyframes bf-spin {
    to { transform: rotate(360deg); }
}
@keyframes bf-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.bf-panel.active {
    animation: bf-fadeIn 0.3s ease;
}
.bf-pax-card {
    animation: bf-fadeIn 0.3s ease;
}

/* ─── CONTACT CHANNEL SELECTOR ─── */
.bf-channel-sub {
    font-size: 13px;
    color: var(--bf-gray-600);
    margin: -4px 0 12px;
}
.bf-channel-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.bf-channel-option {
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}
.bf-channel-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.bf-channel-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--bf-gray-200);
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
    position: relative;
}
.bf-channel-card:hover {
    border-color: #a5b4fc;
    background: #f5f3ff;
}
.bf-channel-selected .bf-channel-card {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.bf-channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bf-channel-icon-telegram {
    background: #e0f2fe;
    color: #0284c7;
}
.bf-channel-icon-email {
    background: #fef3c7;
    color: #d97706;
}
.bf-channel-icon-phone {
    background: #dcfce7;
    color: #16a34a;
}
.bf-channel-icon-whatsapp {
    background: #dcfce7;
    color: #16a34a;
}
.bf-channel-info {
    text-align: left;
    flex: 1;
}
.bf-channel-info strong {
    display: block;
    font-size: 13px;
    color: var(--bf-black);
    font-weight: 600;
}
.bf-channel-info small {
    font-size: 11px;
    color: var(--bf-gray-500);
}
.bf-channel-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    position: absolute;
    top: -8px;
    right: 8px;
}
.bf-channel-badge-recommended {
    background: #6366f1;
    color: #fff;
}

/* ─── Input prefix wrap (for Telegram @ prefix) ─── */
.bf-input-prefix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.bf-input-prefix {
    position: absolute;
    left: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bf-gray-500);
    pointer-events: none;
    z-index: 1;
}
.bf-input-prefixed {
    padding-left: 28px !important;
}

/* ─── Warning hint ─── */
.bf-hint-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #d97706 !important;
    font-weight: 500;
}
.bf-hint-warning svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── Email contact note variant ─── */
.bf-contact-note-email {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .bf-container {
        padding: 0 16px;
    }
    .bf-stepper {
        padding: 24px 0 20px;
    }
    .bf-step span {
        font-size: 10px;
    }
    .bf-step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .bf-step-line {
        min-width: 16px;
    }
    .bf-form-row-2,
    .bf-form-row-3 {
        grid-template-columns: 1fr;
    }
    .bf-form-row-4 {
        grid-template-columns: 1fr 1fr;
    }
    .bf-summary-route {
        flex-direction: column;
        align-items: stretch;
    }
    .bf-summary-airline {
        flex-direction: row;
        gap: 8px;
    }
    .bf-summary-price {
        text-align: left;
    }
    .bf-actions {
        flex-direction: column-reverse;
    }
    .bf-actions .bf-btn {
        width: 100%;
        justify-content: center;
    }
    .bf-pax-card {
        padding: 18px;
    }
    .bf-panel-header h2 {
        font-size: 20px;
    }
    .bf-confirmation h2 {
        font-size: 22px;
    }
    .bf-confirm-actions {
        flex-direction: column;
    }
    .bf-confirm-actions .bf-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─── TABLET BREAKPOINT ─── */
@media (max-width: 768px) and (min-width: 641px) {
    .bf-form-row-3 { grid-template-columns: 1fr 1fr; }
    .bf-form-row-4 { grid-template-columns: 1fr 1fr; }
    .bf-pax-card { padding: 20px; }
    .bf-summary-route { gap: 12px; }
}

/* ─── PAYMENT RESPONSIVE ─── */
@media (max-width: 640px) {
    .bf-pay-section { margin: 20px 0 16px; }
    .bf-btn-pay {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    .bf-pay-note { font-size: 13px; }
    .bf-gw-selector { flex-direction: column; align-items: stretch; }
    .bf-gw-option { max-width: 100%; }
    .bf-gw-card { padding: 12px 14px; }
    .bf-pay-success { flex-direction: column; padding: 14px 16px; gap: 10px; }
    .bf-promo-input-row { flex-direction: column; }
    .bf-promo-input-row .bf-input { max-width: 100%; }
}

/* ═══ MULTI-GATEWAY PAYMENT SECTION ═══ */
.bf-pay-section {
    margin: 28px 0 24px;
    text-align: center;
}

.bf-pay-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.bf-pay-divider::before,
.bf-pay-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.bf-pay-divider span {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bf-pay-note {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* Gateway selector cards */
.bf-gw-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.bf-gw-option {
    cursor: pointer;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.bf-gw-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bf-gw-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
}

.bf-gw-card:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.bf-gw-selected .bf-gw-card {
    border-color: #7b3fe4;
    background: #f5f0ff;
    box-shadow: 0 0 0 3px rgba(123, 63, 228, 0.12);
}

.bf-gw-info {
    text-align: left;
}

.bf-gw-info strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
}

.bf-gw-info small {
    font-size: 11px;
    color: #9ca3af;
}

.bf-gw-card svg {
    flex-shrink: 0;
    color: #7b3fe4;
}

/* Pay button (generic) */
.bf-btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #7b3fe4 0%, #9b59b6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(123, 63, 228, 0.3);
}
.bf-btn-pay:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(123, 63, 228, 0.4);
}
.bf-btn-pay:active {
    transform: translateY(0);
}
.bf-btn-pay:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* Legacy alias */
.bf-btn-chapa { /* keep for backward compat */ }

/* Payment Success Banner */
.bf-pay-success {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
}
.bf-pay-success strong {
    color: #166534;
    font-size: 15px;
}
.bf-pay-success p {
    color: #15803d;
    font-size: 13px;
    margin: 2px 0 0;
}

/* ─── DOMESTIC FLIGHT HINT BANNER ─── */
.bf-domestic-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #065f46;
    line-height: 1.5;
}
.bf-domestic-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.bf-domestic-hint strong {
    color: #047857;
}

/* ─── DOMESTIC FARE INFO BANNER ─── */
.bf-fare-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 10px;
    font-size: 13px;
    color: #1e3a5f;
    line-height: 1.6;
}
.bf-fare-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1e40af;
}
.bf-fare-info-header svg {
    flex-shrink: 0;
}
.bf-fare-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bf-fare-info-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.bf-fare-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.bf-fare-local {
    background: #d1fae5;
    color: #065f46;
}
.bf-fare-foreign {
    background: #fef3c7;
    color: #92400e;
}
.bf-fare-discount {
    background: #dbeafe;
    color: #1e40af;
}
.bf-fare-info-tip {
    margin: 10px 0 0;
    padding: 8px 12px;
    background: #dbeafe;
    border-radius: 6px;
    font-size: 12px;
    color: #1e40af;
    font-weight: 500;
}

@media (max-width: 640px) {
    .bf-fare-info {
        padding: 12px 14px;
        font-size: 12px;
    }
    .bf-fare-info-header {
        font-size: 13px;
    }
    .bf-fare-tag {
        font-size: 10px;
    }
}

/* ─── ID TYPE TOGGLE ─── */
.bf-pax-doc-type {
    font-weight: 500;
}
.bf-hint-domestic {
    color: #047857 !important;
    font-weight: 500;
}
.bf-doc-num-label {
    transition: color var(--bf-transition);
}

/* Passport-extra row */
.bf-passport-extra {
    transition: opacity 0.15s ease;
}

/* Smooth toggle for doc groups */
.bf-doc-passport-group,
.bf-doc-number-group {
    transition: opacity 0.15s ease;
}

@media (max-width: 640px) {
    .bf-domestic-hint {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* ─── International ET Ticket Field ─── */
.bf-et-ticket-group {
    margin-top: -4px;
    animation: bf-slideDown 0.2s ease;
}
@keyframes bf-slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bf-hint-et-ticket {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #1e40af !important;
    font-weight: 500;
    line-height: 1.4;
}
.bf-hint-et-ticket svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════
   CUSTOM DATE PICKER — Passenger Form
   Matches homepage picker exactly (Gregorian + Ethiopian)
   ═══════════════════════════════════════════════════════ */

/* Date trigger button — looks like a text input but is a button */
.bf-date-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--bf-hairline);
    border-radius: var(--bf-radius-sm);
    padding: 10px 15px;
    font-size: 15px;
    font-family: inherit;
    color: #aeaeb2;
    text-align: left;
    width: 100%;
    transition: border-color var(--bf-transition), box-shadow var(--bf-transition);
    min-height: 46px;
    box-sizing: border-box;
}
.bf-date-trigger:hover {
    border-color: #d1d1d6;
}
.bf-date-trigger:focus {
    outline: none;
    border-color: #ea1d24;
    box-shadow: 0 0 0 4px rgba(234, 29, 36, 0.12);
}
.bf-date-trigger.bf-date-has-value {
    color: var(--bf-text);
}
.bf-date-trigger.bf-error {
    border-color: #ea1d24;
    background: #fff5f5;
}
/* Trigger date parts — same as homepage af-date-* */
.bf-date-trigger .bf-date-placeholder {
    color: #9ca3af;
    font-weight: 400;
}
.bf-date-trigger .bf-date-weekday {
    color: #ea1d24;
    font-weight: 600;
    font-size: 14px;
}
.bf-date-trigger .bf-date-month {
    font-weight: 600;
    color: #111827;
}
.bf-date-trigger .bf-date-day {
    font-weight: 700;
    font-size: 17px;
    color: #111827;
}

/* ── Picker dropdown — matches .af-datepicker ── */
.bf-dp {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    width: 340px;
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    user-select: none;
    animation: bf-dp-fadeIn 0.18s ease both;
}
@keyframes bf-dp-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header: nav + title — matches .af-dp-header */
.bf-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.bf-dp-title-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.15s;
    font-family: inherit;
}
.bf-dp-title-btn:hover {
    background: #f3f4f6;
    color: #ea1d24;
}
.bf-dp-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.15s;
    font-family: inherit;
}
.bf-dp-nav:hover {
    border-color: #ea1d24;
    color: #ea1d24;
    background: #fef2f2;
}

/* Calendar mode toggle — matches .af-dp-toggle */
.bf-dp-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px;
}
.bf-dp-cal-btn {
    flex: 1;
    padding: 6px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.15s;
    white-space: nowrap;
    text-align: center;
    font-family: inherit;
}
.bf-dp-cal-btn.active {
    background: #fff;
    color: #ea1d24;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.bf-dp-cal-btn:hover:not(.active) {
    color: #111827;
}

/* Keyboard input row — matches .af-dp-input-row */
.bf-dp-input-row {
    margin-bottom: 8px;
}
.bf-dp-kb-input {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    background: #f9fafb;
    text-align: center;
    letter-spacing: 1px;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.bf-dp-kb-input:focus {
    border-color: #ea1d24;
    background: #fff;
}
.bf-dp-kb-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Calendar grid — matches .af-dp-grid */
.bf-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.bf-dp-head {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    padding: 4px 0 8px;
    text-align: center;
    min-height: auto;
}
.bf-dp-cell {
    text-align: center;
    padding: 0;
    min-height: 38px;
}
.bf-dp-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.12s;
    padding: 3px 2px;
    min-height: 38px;
}
.bf-dp-day:hover:not(.disabled):not(.selected) {
    background: #fef2f2;
    color: #ea1d24;
}
.bf-dp-day.today {
    border: 1.5px solid #ea1d24;
}
.bf-dp-day.selected {
    background: #ea1d24;
    color: #fff;
}
.bf-dp-day.selected .bf-dp-et-hint {
    color: rgba(255,255,255,0.7);
}
.bf-dp-day.preview {
    background: rgba(220, 38, 38, 0.12);
    border: 2px dashed #ea1d24;
    border-radius: 8px;
    animation: bf-dp-preview-pulse 1s ease-in-out infinite;
}
.bf-dp-day.preview .bf-dp-et-hint {
    color: #ea1d24;
}
@keyframes bf-dp-preview-pulse {
    0%, 100% { background: rgba(220, 38, 38, 0.12); }
    50% { background: rgba(220, 38, 38, 0.22); }
}
.bf-dp-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Day number + ET sub-hint — matches .af-dp-gc-day / .af-dp-et-hint */
.bf-dp-gc-day {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.bf-dp-et-hint {
    font-size: 9px;
    color: #9ca3af;
    line-height: 1;
    margin-top: 1px;
}

/* Footer — matches .af-dp-footer */
.bf-dp-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
.bf-dp-today,
.bf-dp-clear {
    padding: 6px 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.15s;
    font-family: inherit;
}
.bf-dp-today:hover {
    border-color: #ea1d24;
    color: #ea1d24;
}
.bf-dp-clear:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}
.bf-dp-done {
    flex: 1;
    margin: 0 8px;
    padding: 6px 0;
    background: #ea1d24;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.bf-dp-done:hover {
    background: #b91c1c;
}
.bf-dp-done.disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: default;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   BANK TRANSFER PANEL
   ═══════════════════════════════════════════════════════════ */

/* Gateway option — Bank Transfer */
.bf-gw-icon-bank {
    color: #1e40af;
}

/* Panel container */
/* ============================================================
   PAYMENT — modern / Apple-style bank transfer panel
   ============================================================ */
.bf-bank-transfer-panel {
    margin-top: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.bf-bank-transfer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 4px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
}

/* Reference / narrative — calm, tap-to-copy feel */
.bf-bank-ref-box {
    margin: 14px 20px 0;
    padding: 14px 16px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
}
.bf-bank-ref-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #86868b;
    margin-bottom: 4px;
}
.bf-bank-ref-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1d1d1f;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}
.bf-bank-ref-hint {
    font-size: 12.5px;
    color: #6e6e73;
    line-height: 1.5;
}

/* Bank list */
.bf-bank-accounts {
    padding: 14px 20px 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bf-bank-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 14px;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.bf-bank-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}
.bf-bank-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.bf-bank-badge {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.bf-bank-badge-img {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    padding: 5px;
}
.bf-bank-badge-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.bf-bank-card-titles { min-width: 0; }
.bf-bank-card-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    line-height: 1.2;
}
.bf-bank-card-holder {
    font-size: 12.5px;
    color: #86868b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Account number = full-width tap-to-copy control */
.bf-bank-acct {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    background: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.bf-bank-acct:hover { background: #ececef; }
.bf-bank-acct:active { transform: scale(0.99); }
.bf-bank-acct-num {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #1d1d1f;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bf-bank-acct-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0071e3;
    font-size: 13px;
    font-weight: 600;
}
.bf-bank-acct-copied {
    background: #e7f7ed !important;
    border-color: rgba(40, 167, 69, 0.25) !important;
}
.bf-bank-acct-copied .bf-bank-acct-copy { color: #1a8c3c; }
.bf-bank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 9px;
    padding-left: 2px;
    font-size: 12px;
    color: #86868b;
}

/* Upload dropzone */
.bf-dropzone {
    margin-top: 12px;
    border: 1.5px dashed #c9c9ce;
    border-radius: 14px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.bf-dropzone:hover { border-color: #0071e3; background: #f5f9ff; }
.bf-dropzone-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 16px;
    color: #6e6e73;
    text-align: center;
}
.bf-dropzone-empty svg { color: #0071e3; margin-bottom: 4px; }
.bf-dropzone-title { font-size: 14.5px; font-weight: 600; color: #1d1d1f; }
.bf-dropzone-sub { font-size: 12px; color: #86868b; }
.bf-dropzone-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}
.bf-dropzone-filled { border-style: solid; border-color: rgba(0, 0, 0, 0.1); background: #fff; }
#bf-adv-thumb {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.bf-dropzone-doc {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #eef1f6;
    color: #5b6472;
    font-size: 12px;
    font-weight: 700;
}
.bf-dropzone-file { flex: 1; min-width: 0; font-size: 13.5px; color: #1d1d1f; font-weight: 500; word-break: break-all; }
.bf-dropzone-x {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ececef;
    color: #6e6e73;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}
.bf-dropzone-x:hover { background: #e0e0e5; color: #1d1d1f; }

/* Primary pay/submit button — Apple pill */
.bf-btn-pay2 {
    width: 100%;
    margin-top: 14px;
    padding: 13px 18px;
    border: none;
    border-radius: 13px;
    background: #0071e3;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.bf-btn-pay2:hover { background: #0077ed; }
.bf-btn-pay2:active { transform: scale(0.99); }
.bf-btn-pay2:disabled { opacity: 0.55; cursor: default; }

/* Loading / empty state */
.bf-bank-loading,
.bf-bank-no-accounts {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

/* Footer note */
.bf-bank-transfer-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 18px 16px;
    padding: 12px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 12px;
    color: #065f46;
    line-height: 1.5;
}
.bf-bank-transfer-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 480px) {
    .bf-bank-account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .bf-bank-account-val {
        text-align: left;
    }
    .bf-bank-ref-value {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

/* Passenger tab system */
.bf-pax-tabs {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    background: var(--bf-fill);
    border: 1px solid var(--bf-hairline);
    border-bottom: none;
    border-radius: var(--bf-radius) var(--bf-radius) 0 0;
    padding: 9px 9px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bf-pax-tabs::-webkit-scrollbar { display: none; }
.bf-pax-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px 11px;
    font-size: 13px;
    font-weight: 590;
    color: var(--bf-text-secondary);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
    user-select: none;
    transition: background var(--bf-transition), color var(--bf-transition);
    position: relative;
}
.bf-pax-tab:hover {
    background: rgba(255, 255, 255, 0.85);
    color: var(--bf-text);
}
.bf-pax-tab-active {
    background: #ffffff;
    color: var(--bf-text);
    border-color: var(--bf-hairline);
    border-bottom: 1px solid #ffffff;
    z-index: 2;
    margin-bottom: -1px;
}
.bf-pax-tab-close {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
    margin-left: 4px;
    cursor: pointer;
    line-height: 1;
}
.bf-pax-tab-close:hover {
    background: #fee2e2;
    color: #dc2626;
}
.bf-pax-panels {
    background: #fff;
    border: 1px solid var(--bf-hairline);
    border-top: none;
    border-radius: 0 0 var(--bf-radius) var(--bf-radius);
    box-shadow: var(--bf-shadow);
    overflow: hidden;
}
.bf-pax-panel { display: none !important; }
.bf-pax-panel-active { display: block !important; }
/* Remove the outer card border when inside a tab panel — the panel provides the container */
.bf-pax-panel .bf-pax-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.bf-pax-panel .bf-pax-header { display: none !important; }

.bf-pax-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--bf-hairline);
    color: var(--bf-text-secondary);
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 5px;
    margin-left: 4px;
    flex-shrink: 0;
    transition: background var(--bf-transition), color var(--bf-transition), transform 0.08s ease;
    user-select: none;
}
.bf-pax-add-btn:hover {
    background: #fff;
    color: var(--bf-red);
    border-color: var(--bf-red);
}
.bf-pax-add-btn:active { transform: scale(0.92); }
.bf-pax-add-dropdown {
    /* Fixed positioning so the menu escapes the tab bar's overflow:auto
       clipping; exact top/left are set in JS from the + button's rect. */
    position: fixed;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}
.bf-pax-add-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #374151;
}
.bf-pax-add-item:hover {
    background: #f9fafb;
}
.bf-pax-add-age {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 8px;
}
.bf-pax-add-seats {
    padding: 8px 14px;
    font-size: 11px;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
}

/* ── Passenger profile bar ─────────────────────────────── */
.bf-profile-bar {
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 16px;
}
/* Label ABOVE the select, matching the other form fields (Title/Gender). */
.bf-profile-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}
.bf-profile-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}
.bf-profile-select { width: 100%; max-width: 360px; }
.bf-profile-select:disabled {
    color: #9ca3af;
    background: #f8fafc;
    cursor: default;
}
/* Subtle when there are no saved travelers yet — blend the band in so it isn't
   dead weight at the top of the form for first-time users. */
.bf-profile-bar-empty {
    background: transparent;
    padding: 8px 16px 4px;
}
.bf-profile-bar-empty .bf-profile-bar-label {
    color: #9ca3af;
    font-weight: 500;
}
@media (max-width: 560px) {
    .bf-profile-select { max-width: none; }
}
.bf-profile-chips {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    flex: 1;
}
.bf-profile-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 5px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.1s, color 0.1s;
    user-select: none;
}
.bf-profile-chip:hover {
    border-color: #E32B30;
    color: #E32B30;
}
.bf-profile-chip-active {
    border-color: #E32B30;
    background: #FFF1F1;
    color: #C41E24;
}
.bf-profile-chip-more {
    color: #6b7280;
    border-style: dashed;
}
.bf-profile-chip-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}
.bf-av-blue   { background: #DBEAFE; color: #1E40AF; }
.bf-av-green  { background: #DCFCE7; color: #166534; }
.bf-av-amber  { background: #FEF3C7; color: #92400E; }
.bf-av-purple { background: #EDE9FE; color: #5B21B6; }
.bf-av-teal   { background: #CCFBF1; color: #115E59; }
.bf-profile-chip-name {
    font-size: 12px;
}
.bf-profile-chip-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 20px;
    background: #DCFCE7;
    color: #166534;
    font-weight: 500;
    margin-left: 2px;
}

/* "+N more" profiles dropdown — fixed position to escape overflow clipping */
.bf-profile-more-dropdown {
    position: fixed;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    min-width: 200px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    padding: 4px;
}
.bf-profile-more-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}
.bf-profile-more-item:hover {
    background: #f9fafb;
}
.bf-profile-more-item-name {
    font-size: 13px;
}

/* ── Save-as-profile toggle ─────────────────────────────── */
.bf-save-profile-row {
    padding: 10px 16px 14px;
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
}
.bf-save-profile-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
}
.bf-save-profile-check {
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── OCR scan bar ─────────────────────────────── */
.bf-ocr-bar {
    background: var(--bf-ocr-bg);
    border: 1px solid var(--bf-ocr-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}
/* Required-but-missing document upload (mandatory-upload policy). */
.bf-ocr-bar.bf-ocr-bar-error {
    border-color: #ea1d24;
    background: #fef2f2;
    box-shadow: 0 0 0 1px rgba(234, 29, 36, 0.25);
}
.bf-ocr-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bf-ocr-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bf-ocr-accent);
    white-space: nowrap;
}
.bf-ocr-bar-label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.bf-ocr-upload-label {
    cursor: pointer;
}
.bf-ocr-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--bf-ocr-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--bf-transition), box-shadow var(--bf-transition), transform 0.05s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.bf-ocr-upload-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.bf-ocr-upload-btn:hover {
    background: var(--bf-ocr-accent-hover);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.bf-ocr-upload-btn:active { transform: translateY(1px); }
.bf-ocr-status {
    font-size: 12px;
    flex: 1;
    min-width: 0;
}
.bf-ocr-pending { color: #6b7280; }
.bf-ocr-ok      { color: #166534; font-weight: 500; }
.bf-ocr-warn    { color: #92400e; }
.bf-ocr-error   { color: #dc2626; }

/* ─── Seat Map (SeatMapReq) ─────────────────────────────────────────── */
.bf-seat-pick {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bf-choose-seats {
    padding: 8px 16px;
    border: 1px solid var(--bf-hairline);
    border-radius: 10px;
    background: var(--bf-fill);
    color: var(--bf-text);
    font-size: 13px;
    font-weight: 590;
    cursor: pointer;
    transition: background var(--bf-transition), border-color var(--bf-transition), transform 0.08s ease;
}
.bf-choose-seats:hover {
    background: #fff;
    border-color: #d1d1d6;
}
.bf-choose-seats:active { transform: scale(0.97); }
.bf-seat-selected {
    color: #166534;
    font-size: 13px;
    font-weight: 600;
}

.bf-seatmap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}
.bf-seatmap-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.bf-seatmap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
}
.bf-seatmap-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.bf-seatmap-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 4px;
}
.bf-seatmap-close:hover { color: #111827; }
.bf-seatmap-body { padding: 16px 20px; }
.bf-seatmap-loading,
.bf-seatmap-error {
    text-align: center;
    padding: 24px;
    font-size: 14px;
    color: #6b7280;
}
.bf-seatmap-error { color: #dc2626; }

.bf-seatmap-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.bf-seatmap-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}
.bf-seatmap-rownum {
    width: 30px;
    text-align: right;
    padding-right: 4px;
    font-size: 11px;
    color: #6b7280;
}
.bf-seat-cell {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bf-seat-cell.is-available {
    background: #4CAF50;
    color: #fff;
    cursor: pointer;
}
.bf-seat-cell.is-available:hover { background: #43a047; }
.bf-seat-cell.is-occupied {
    background: #ccc;
    color: #374151;
    cursor: not-allowed;
}
.bf-seat-cell.is-exit {
    background: #FFC107;
    color: #374151;
    cursor: pointer;
}
.bf-seat-cell.is-exit:hover { background: #ffb300; }
.bf-seatmap-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: #374151;
}
.bf-seatmap-legend .bf-seat-cell {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    margin-left: 6px;
}

/* ── Passport photo control: label sub-hint + two actions (Take Photo / Choose File) ── */
.bf-ocr-bar-text { display: inline-flex; flex-direction: column; line-height: 1.25; }
.bf-ocr-bar-hint { font-size: 11px; font-weight: 400; color: #9ca3af; white-space: normal; }
.bf-ocr-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.bf-ocr-upload-btn-alt {
    background: #fff;
    color: var(--bf-ocr-accent, #ea1d24);
    border: 1px solid var(--bf-ocr-accent, #ea1d24);
    box-shadow: none;
}
.bf-ocr-upload-btn-alt:hover { background: var(--bf-ocr-bg, #fff5f5); box-shadow: none; }

/* ── Modern toggle switch (Save as passenger profile) ── */
.bf-save-profile-row { display: flex; align-items: center; gap: 10px; }
.bf-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.bf-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.bf-switch-track {
    width: 38px; height: 22px; border-radius: 999px;
    background: #cbd5e1; transition: background 0.2s ease;
    display: inline-flex; align-items: center; padding: 2px;
}
.bf-switch-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bf-switch input:checked + .bf-switch-track { background: var(--bf-ocr-accent, #ea1d24); }
.bf-switch input:checked + .bf-switch-track .bf-switch-thumb { transform: translateX(16px); }
.bf-switch input:focus-visible + .bf-switch-track { box-shadow: 0 0 0 3px rgba(234, 29, 36, 0.25); }
.bf-switch-label { font-size: 13px; color: #475569; }

/* Mobile: stack the passport actions full-width for easy thumb tapping */
@media (max-width: 560px) {
    .bf-ocr-actions { width: 100%; }
    .bf-ocr-actions .bf-ocr-upload-label { flex: 1; }
    .bf-ocr-upload-btn { width: 100%; justify-content: center; padding: 10px 12px; }
}

/* Fare conditions (airline rules) block on the review step */
.bf-fare-conditions .bf-review-value { text-align: right; }
.bf-fare-note { margin-top: 8px; font-size: 12px; color: #94a3b8; font-style: italic; }
