/**
 * BookingFlightsFares - Multi-Step Booking Funnel & E-Ticket Stylesheet
 */

/* Progress Step Tracker */
.booking-progress-bar-wrap {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border-light);
    padding: 1rem 0;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.booking-steps-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    position: relative;
}

.booking-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 2px solid var(--color-border);
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.booking-step-item.active .step-circle {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.booking-step-item.completed .step-circle {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: #ffffff;
}

.step-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.booking-step-item.active .step-label {
    color: var(--color-primary);
}

/* Booking 2-Column Funnel Grid */
.booking-funnel-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

/* Booking Card Box */
.booking-form-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.booking-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-light);
}

.booking-card-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.booking-card-header p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Form Layout Grids */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.form-input-control {
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-input-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* Insurance Selection Cards */
.insurance-choice-card {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.insurance-choice-card:hover {
    border-color: var(--color-primary);
    background-color: #f8fafc;
}

.insurance-choice-card.selected {
    border-color: var(--color-primary);
    background-color: #e0f2fe;
}

.insurance-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.insurance-head strong {
    font-size: 1rem;
    color: #0f172a;
}

.insurance-price-tag {
    font-size: 1.1rem;
    font-weight: 800;
    color: #16a34a;
}

.insurance-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #334155;
}

/* Price Breakdown Sticky Sidebar */
.price-breakdown-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

.price-breakdown-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}

.price-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #475569;
}

.price-row.highlight-addon {
    color: #0284c7;
    font-weight: 700;
}

.price-row-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 1rem;
    border-top: 2px solid var(--color-border-light);
    margin-top: 0.5rem;
}

.price-row-total strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.total-sum-usd {
    font-size: 1.75rem;
    font-weight: 900;
    color: #16a34a;
}

/* Security Trust Badges */
.payment-trust-strip {
    margin-top: 1.5rem;
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--color-border-light);
    font-size: 0.8rem;
    color: #64748b;
}

.trust-icons-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 700;
    color: #334155;
}

/* ==================================================
   E-TICKET CONFIRMATION RECEIPT
================================================== */
.eticket-receipt-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 2px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.eticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #cbd5e1;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.eticket-pnr-box {
    background-color: #e0f2fe;
    border: 1.5px solid #38bdf8;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.25rem;
    text-align: center;
}

.pnr-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0369a1;
}

.pnr-code-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0c4a6e;
    letter-spacing: 1px;
}

.eticket-flight-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.eticket-barcode-mock {
    height: 40px;
    background: repeating-linear-gradient(90deg, #000, #000 2px, transparent 2px, transparent 4px, #000 4px, #000 7px, transparent 7px, transparent 9px);
    margin: 1.5rem 0;
}

.eticket-actions-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media print {
    body * {
        visibility: hidden;
    }
    .eticket-receipt-card, .eticket-receipt-card * {
        visibility: visible;
    }
    .eticket-receipt-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }
    .eticket-actions-row {
        display: none;
    }
}

@media (max-width: 768px) {
    .booking-funnel-grid {
        grid-template-columns: 1fr;
    }
    .form-row-2col, .form-row-3col {
        grid-template-columns: 1fr;
    }
    .eticket-receipt-card {
        padding: 1.5rem;
    }
    .eticket-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
