/* ============================================================
   BillPro — Step indicator + Bank selection + Coming soon
   ============================================================ */

/* ---------------------------------------------- Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 620px;
    margin: 0 auto 30px;
    padding: 18px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    margin: 0 -10px;
    background: var(--surface);
    border-radius: 999px;
}

.step-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-3);
    background: #eef1f7;
    border: 2px solid var(--border-strong);
    transition: all 0.25s ease;
    position: relative;
}

.step span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-3);
    transition: color 0.25s ease;
    white-space: nowrap;
}

.step.active .step-number {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-pop);
}

.step.active span { color: var(--text-1); }

.step.completed .step-number {
    background: var(--success-soft);
    border-color: transparent;
    color: var(--success);
}

.step.completed .step-number::after {
    content: '\eb7b'; /* ri-check-line */
    font-family: 'remixicon';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: var(--success-soft);
    border-radius: 50%;
}

.step.completed span { color: var(--success); }

.step-line {
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 4px;
    background: #e8ecf5;
    z-index: 1;
    overflow: hidden;
}

.step-line-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: var(--grad-primary);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------ Bank selection area */
.bank-selection-section {
    animation: fadeUp 0.3s ease;
}

.bank-selection-section .header {
    margin-bottom: 24px;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.bank-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 12px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.bank-card:hover {
    transform: translateY(-4px);
    border-color: #c1c8f7;
    box-shadow: 0 14px 30px -14px rgba(79, 70, 229, 0.35);
}

.bank-card.selected {
    border-color: var(--primary);
    background: #f7f7ff;
    box-shadow: 0 0 0 4px var(--ring), 0 14px 30px -16px rgba(79, 70, 229, 0.45);
}

/* dấu tích góc phải khi chọn */
.bank-card.selected::after {
    content: '\eb7b'; /* ri-check-line */
    font-family: 'remixicon';
    position: absolute;
    top: -9px;
    right: -9px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: #fff;
    background: var(--grad-primary);
    border-radius: 50%;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.55);
    animation: popIn 0.2s ease;
}

@keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.bank-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
}

.bank-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.3;
}

.bank-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 3px 10px;
    border-radius: 999px;
}

.status-available {
    color: var(--success);
    background: var(--success-soft);
}

.status-coming {
    color: var(--warning);
    background: #fef3c7;
}

.continue-btn {
    min-width: 240px;
    height: 50px;
    font-size: 15.5px;
}

/* -------------------------------------------------- Form section */
.form-section { animation: fadeUp 0.3s ease; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 0 18px;
    height: 42px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.back-btn:hover {
    color: var(--primary-700);
    border-color: var(--primary-500);
    background: #f8f9ff;
    transform: translateX(-2px);
}

.back-btn i { font-size: 16px; }

/* ---------------------------------------------- Bank info chip */
.bank-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.bank-info-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.bank-info-text h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.3;
}

.bank-info-text p {
    font-size: 12.5px;
    color: var(--text-2);
    margin-top: 2px;
}

/* --------------------------------------------------- Coming soon */
.coming-soon-message { animation: fadeUp 0.3s ease; }

.coming-soon-message .card {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.coming-soon-message h2 {
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
}

.coming-soon-message p {
    color: var(--text-2);
    font-size: 14.5px;
    margin-bottom: 8px;
}

.bank-name-highlight {
    color: var(--primary-700);
    font-weight: 700;
}

.progress-container { margin: 22px 0 18px; }

.progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #e8ecf5;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--grad-primary);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-3);
}

/* --------------------------------------------------- Responsive */
@media (max-width: 640px) {
    .step-indicator {
        padding: 14px 10px;
        border-radius: 20px;
    }
    .step span { display: none; }
    .step-number { width: 34px; height: 34px; font-size: 14px; }
    .bank-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .continue-btn { width: 100%; }
}
