/* Progress Stepper */
.progress-stepper {
    background: #f5f5f5;
    padding: 8px 0;
    margin-bottom: 0;
}

.stepper-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.step.completed .step-icon {
    background: #70be54;
    color: white;
}

.step.active .step-icon {
    background: #70be54;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.step.active .step-label {
    color: #70be54;
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #ddd;
    margin: 0 8px;
    margin-bottom: 18px;
}

.step-line.completed {
    background: #70be54;
}

/* Confirmation Page Styles */
.confirmation-page-container {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    padding: 0 20px;
}

/* Main Content */
.main-content {
    min-width: 0;
}

.confirm-section {
    background: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
}

.confirm-section-title {
    background: #70be54;
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.confirm-info-section {
    border: 1px solid #e0e0e0;
}

/* Info Blocks */
.info-block {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.info-block:last-of-type {
    border-bottom: none;
}

.info-block-title {
    background: #f5f5f5;
    padding: 10px 15px;
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-radius: 4px;
}

/* Passenger Info Item */
.passenger-info-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.passenger-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.passenger-number {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.passenger-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.info-label {
    font-weight: 400;
    color: #666;
}

.info-value {
    font-weight: 500;
    color: #333;
}

/* Contact Info */
#contactInfo {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

#contactInfo .info-row {
    display: flex;
    margin-bottom: 5px;
}

#contactInfo .info-label {
    min-width: 120px;
    font-weight: 400;
    color: #666;
}

#contactInfo .info-value {
    font-weight: 500;
    color: #333;
}

/* Terms Block */
.terms-block {
    padding: 20px;
}

.terms-title {
    color: #d32f2f;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.terms-content {
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.terms-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0 10px 0;
    color: #333;
}

.terms-content h4:first-child {
    margin-top: 0;
}

.terms-content p {
    margin: 0 0 10px 0;
    text-align: justify;
}

.refund-notice {
    margin-top: 15px;
    padding: 10px 15px;
    background: #fff;
    border-left: 3px solid #70be54;
}

.refund-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.refund-notice strong {
    color: #333;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    flex: 1;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    padding: 20px;
}

.btn-change {
    background: white;
    color: #70be54;
    border: 2px solid #70be54;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 150px;
}

.btn-change:hover {
    background: #f5f5f5;
}

.btn-confirm {
    background: #70be54;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.btn-confirm:hover {
    background: #5fa845;
}

.btn-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Flight Summary Card */
.flight-summary-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;
}

.section-title-small {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.flight-summary-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.flight-summary-item:last-child {
    margin-bottom: 0;
}

.flight-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.journey-label {
    font-weight: 600;
    font-size: 14px;
    color: #70be54;
}

.journey-title {
    font-weight: 600;
    font-size: 14px;
    color: #70be54;
}

.flight-summary-airline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.airline-logo-summary {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.airline-flight-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.airline-name-summary {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.flight-number-summary {
    font-size: 11px;
    color: #666;
}

.flight-summary-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.route-endpoint {
    text-align: center;
    flex: 1;
}

.route-time-large {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.route-date-small {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
}

.route-airport {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.route-city-small {
    font-size: 12px;
    color: #666;
}

.route-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
}

.route-duration {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.route-line {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.route-line-dot {
    width: 6px;
    height: 6px;
    background: #70be54;
    border-radius: 50%;
}

.route-line-bar {
    flex: 1;
    height: 2px;
    background: #70be54;
}

.route-stops-badge {
    font-size: 10px;
    color: #70be54;
    white-space: nowrap;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.airline-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.airline-name {
    font-weight: 600;
    font-size: 14px;
}

.flight-code {
    font-size: 13px;
    color: #666;
}

.flight-route {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.flight-datetime {
    font-size: 13px;
    color: #666;
}

.fare-class {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Price Details Card */
.price-details-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.price-header {
    background: #70be54;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-fee-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.price-fee-toggle.collapsed {
    transform: rotate(90deg);
}

.price-section {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.price-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    color: #666;
}

.price-value {
    font-weight: 600;
    color: #333;
}

.price-total {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
}

.price-total .price-label {
    color: #333;
    font-weight: 700;
}

.price-total .price-value {
    color: #70be54;
    font-size: 18px;
}

.total-amount {
    color: #70be54;
    font-size: 18px;
}

/* Responsive */
/* Baggage Table */
.baggage-table-container {
    margin-top: 15px;
    overflow-x: auto;
}

.baggage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.baggage-table thead {
    background-color: #f5f5f5;
    color: #333;
}

.baggage-table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

.baggage-table td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    color: #555;
}

.baggage-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.baggage-table tbody tr:hover {
    background-color: #f5f5f5;
}

@media (max-width: 992px) {
    .confirmation-page-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

/* ============================================
   RESPONSIVE: Confirmation — 768px breakpoint
   ============================================ */
@media (max-width: 767.98px) {
    /* Compact stepper */
    .step-label {
        font-size: 11px;
    }

    .step-line {
        width: 25px;
    }

    /* Container margin + padding */
    .confirmation-page-container {
        margin: 10px auto;
        padding: 0 12px;
    }

    /* Action buttons: stack dọc */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .btn-change {
        min-width: auto;
        width: 100%;
    }

    .btn-confirm {
        width: 100%;
    }

    /* Baggage table: scroll ngang */
    .baggage-table-container {
        overflow-x: auto;
    }

    /* Contact info label: hẹp hơn trên mobile */
    #contactInfo .info-label {
        min-width: 100px;
    }

    /* Section title padding */
    .confirm-section-title {
        padding: 12px 15px;
        font-size: 16px;
    }

    /* Info block padding */
    .info-block {
        padding: 15px;
    }

    /* Terms content: giảm max-height */
    .terms-content {
        max-height: 200px;
    }
}

