/* Payment Page Layout */
.payment-page {
    background: #f9f9f9;
    min-height: calc(100vh - 300px);
    padding: 20px 0;
}

.payment-page .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
}

/* Payment Main Content */
.payment-main {
    background: transparent;
}

.payment-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
}

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

/* Payment Methods Carousel */
.payment-methods-carousel {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.payment-method-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-method-card.active {
    border-color: var(--brand-color);
    background: #f0f9f4;
}

.payment-method-card input[type="radio"] {
    display: none;
}

.payment-method-header-card {
    cursor: pointer;
}

.payment-method-selector {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    margin: 0;
    gap: 16px;
}

.payment-method-card.active .payment-method-selector {
    background: var(--brand-color) !important;
}

.payment-method-card.active .payment-method-name,
.payment-method-card.active .payment-method-desc {
    color: white !important;
}

.payment-method-card.active .payment-method-icon {
    background: white !important;
    color: var(--brand-color) !important;
}

.payment-method-card.active .payment-method-icon svg {
    stroke: var(--brand-color) !important;
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: var(--brand-color);
    flex-shrink: 0;
    transition: all 0.3s;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.payment-method-desc {
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
}

/* Payment Method Details (expanded) */
.payment-method-details {
    display: none;
    padding: 16px 20px 20px 20px;
    animation: slideDown 0.3s ease-out;
}

.payment-method-card.active .payment-method-details {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-method-details p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.payment-method-details .note {
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    padding: 12px;
    border-radius: 4px;
    margin-top: 12px;
}

.payment-method-details .note-warning {
    background: #fff9e6;
    border-left: 3px solid #ffc107;
}

.payment-method-details .note p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.payment-method-details .note strong {
    color: #333;
    font-weight: 600;
}

.payment-method-details .bank-info {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid #e0e0e0;
}

.payment-method-details .bank-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.payment-method-details .bank-info-row:last-child {
    margin-bottom: 0;
}

.payment-method-details .bank-info-label {
    font-size: 13px;
    color: #666;
}

.payment-method-details .bank-info-value {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* Office Payment Details */
.payment-detail-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    font-style: italic;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.payment-detail-desc {
    font-size: 14px;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.office-info {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.office-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.office-info p:last-child {
    margin-bottom: 0;
}

.office-name {
    font-weight: 600;
    margin-bottom: 12px !important;
}

.office-info strong {
    font-weight: 600;
    color: #000;
}

.office-map-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.office-map-link:hover {
    text-decoration: underline;
}

/* Bank Transfer Details */
.transfer-note {
    background: #fef5e7;
    border: 1px solid #f0e5d8;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}

.transfer-note h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.transfer-note p {
    font-size: 13px;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.6;
}

.transfer-note p:last-child {
    margin-bottom: 0;
}

.transfer-format {
    font-weight: 600;
    color: #000 !important;
}

.transfer-thanks {
    margin-top: 8px !important;
    font-weight: 500;
}

.bank-accounts-title {
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    color: #333;
    margin: 20px 0 12px 0;
    text-transform: uppercase;
}

.bank-account-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.bank-account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.bank-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.bank-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.bank-account-info {
    padding: 12px 16px;
    background: white;
}

.bank-account-info .bank-info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
}

.bank-account-info .bank-info-row:last-child {
    margin-bottom: 0;
}

.bank-account-info .bank-info-label {
    font-weight: 500;
    color: #666;
}

.bank-account-info .bank-info-value {
    font-weight: 600;
    color: #333;
}

.transfer-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e0e0e0;
}

.transfer-footer p {
    font-size: 13px;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.6;
}

.transfer-footer .company-contact {
    margin-top: 12px;
    margin-bottom: 8px;
}

.transfer-footer em {
    font-style: italic;
    color: #666;
}


/* Payment Terms Section */
.payment-terms-section {
    margin-top: 20px;
}

.payment-terms-section .refund-notice {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #fff;
    border-left: 3px solid #70be54;
    border-radius: 4px;
}

.payment-terms-section .refund-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

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

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

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

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

/* Payment Actions */
.payment-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.payment-actions .btn {
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

.payment-actions .btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.payment-actions .btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

.payment-actions .btn-primary {
    background: var(--brand-color);
    color: white;
}

.payment-actions .btn-primary:hover:not(:disabled) {
    background: var(--brand-color-hover);
    box-shadow: 0 4px 12px rgba(112, 190, 84, 0.3);
}

.payment-actions .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.payment-actions .btn-primary:disabled:hover {
    background: #ccc;
    box-shadow: none;
}

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

.info-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.info-card-title {
    background: var(--brand-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: -20px -20px 16px -20px;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    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);
}

/* Flight Info in Sidebar - Giống Confirmation */
.flight-info-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

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

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

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

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

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

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

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

.flight-route-detail {
    /* No background, matching confirmation style */
}

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

.time-block {
    text-align: center;
    flex: 1;
}

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

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

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

.route-city {
    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 {
    font-size: 10px;
    color: #70be54;
    white-space: nowrap;
}

/* Price Summary in Sidebar */
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.price-row.total {
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
}

.price-label {
    color: #666;
}

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

.price-row.total .price-value {
    color: var(--brand-color);
    font-size: 20px;
}

/* Baggage Info Table */
.baggage-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
}

.baggage-table th,
.baggage-table td {
    padding: 8px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.baggage-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.baggage-table td {
    color: #666;
}

.baggage-table tr:last-child td {
    border-bottom: none;
}

/* Session Expired Dialog */
.session-expired-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.session-expired-dialog.show {
    display: flex;
}

.session-expired-dialog-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-expired-icon {
    margin-bottom: 20px;
}

.session-expired-title {
    font-size: 24px;
    font-weight: 600;
    color: #dc3545;
    margin: 0 0 15px 0;
}

.session-expired-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.session-expired-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-session-home {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-sidebar {
        order: -1;
    }

    .payment-actions {
        flex-direction: column;
    }

    .payment-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE: Payment — 576px breakpoint
   ============================================ */
@media (max-width: 575.98px) {
    .payment-section {
        padding: 15px;
    }

    .payment-section-title {
        padding: 12px 15px;
        font-size: 16px;
    }

    .payment-method-selector {
        padding: 12px 15px;
        gap: 12px;
    }

    .payment-method-icon {
        width: 40px;
        height: 40px;
    }

    .payment-method-details {
        padding: 12px 15px 15px;
    }

    /* Session expired dialog: nhỏ hơn trên mobile */
    .session-expired-dialog-content {
        padding: 25px 20px;
    }

    .session-expired-title {
        font-size: 20px;
    }

    .session-expired-message {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .session-expired-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-session-home {
        width: 100%;
    }
}

/* VJ Urgency Warning Banner */
.vj-urgency-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e1;
    border: 1px solid #f0a500;
    border-left: 4px solid #e67e22;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.vj-urgency-banner-icon {
    flex-shrink: 0;
    color: #e67e22;
    margin-top: 2px;
}

.vj-urgency-banner-text strong {
    color: #e67e22;
}

/* Orange theme for agent_issue payment method */
[data-method="agent_issue"] {
    border-color: #e8a000;
}

[data-method="agent_issue"].active {
    border-color: #e67e22;
    background: #fff8f0;
}

[data-method="agent_issue"].active .payment-method-selector {
    background: #e67e22 !important;
}

[data-method="agent_issue"].active .payment-method-icon {
    color: #e67e22 !important;
}

[data-method="agent_issue"].active .payment-method-icon svg {
    stroke: #e67e22 !important;
}

