/* ==============================================
   AaLoan Wizard - Advance America Style
   ============================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.aaloan-wizard-body {
    background: #ddeef8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 20px;
}

.aaloan-page-bg {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.aaloan-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 40px 40px 28px 40px;
    box-shadow: 0 4px 30px rgba(0, 60, 120, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

.aaloan-logo {
    text-align: center;
    margin-bottom: 36px;
}

.aaloan-logo img {
    height: 36px;
    width: auto;
}

/* ── Steps ── */
.aaloan-step {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeIn 0.3s ease;
}

.aaloan-step.active { display: flex; }

/* ── Typography ── */
.aaloan-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.3;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.aaloan-subtitle {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ── Why link ── */
.aaloan-why-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1a3a5c;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 22px;
}

/* ── Choice buttons (Step 1) ── */
.aaloan-choice-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: opacity 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.aaloan-choice-btn:hover { opacity: 0.92; transform: translateY(-1px); }

.aaloan-choice-primary { background: #1a3a5c; color: #fff; }
.aaloan-choice-primary .aaloan-choice-text strong { color: #fff; font-size: 15px; display: block; margin-bottom: 2px; }
.aaloan-choice-primary .aaloan-choice-text span   { font-size: 13px; color: rgba(255,255,255,0.75); }
.aaloan-choice-secondary { background: #fff; color: #1a3a5c; border: 1.5px solid #1a3a5c; }
.aaloan-choice-secondary .aaloan-choice-text strong { color: #1a3a5c; font-size: 15px; display: block; margin-bottom: 2px; }
.aaloan-choice-secondary .aaloan-choice-text span   { font-size: 13px; color: #1a7aaa; }
.aaloan-choice-arrow { font-size: 20px; opacity: 0.7; }
.aaloan-choice-primary .aaloan-choice-arrow { color: #fff; }

.aaloan-login-link { text-align: center; font-size: 13px; color: #555; margin-top: 16px; }
.aaloan-login-link a { color: #1a3a5c; font-weight: 600; text-decoration: underline; }

/* ── Form fields ── */
.aaloan-field-group { margin-bottom: 16px; }

.aaloan-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.aaloan-field-group input,
.aaloan-field-group select {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    background: #f0f0f0;
    font-size: 15px;
    color: #222;
    outline: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0.5rem;
    box-shadow: inset 0 2px 2px rgba(0, 0, 0, .16);
}

.aaloan-field-group input:focus,
.aaloan-field-group select:focus {
    background: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.15);
}

.aaloan-field-group input.error,
.aaloan-field-group select.error { box-shadow: 0 0 0 2px #cc2200; }

.aaloan-field-error { display: block; font-size: 12px; color: #cc2200; margin-top: 5px; min-height: 16px; }

.aaloan-field-row { display: flex; gap: 12px; }
.aaloan-field-row .aaloan-field-group { flex: 1; }

/* ── Main CTA button ── */
.aaloan-btn-getstarted {
    display: block;
    width: 100%;
    padding: 15px;
    background: #e0e0e0;
    color: #999;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.aaloan-btn-getstarted.active,
.aaloan-btn-getstarted:not(:disabled):hover {
    background: #1a3a5c;
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 58, 92, 0.25);
}

/* ── Back link ── */
.aaloan-btn-back-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    margin-top: 12px;
    padding: 6px;
    transition: color 0.2s ease;
}

.aaloan-btn-back-link:hover { color: #1a3a5c; }

/* ── Review Box ── */
.aaloan-review-box {
    background: #f7f9fc;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid #e8ecf4;
}

.aaloan-review-item { display: flex; padding: 9px 0; border-bottom: 1px solid #eef0f8; gap: 12px; }
.aaloan-review-item:last-child { border-bottom: none; padding-bottom: 0; }
.aaloan-review-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.5px; min-width: 90px; flex-shrink: 0; padding-top: 2px; }
.aaloan-review-value { font-size: 14px; color: #222; font-weight: 500; flex: 1; word-break: break-word; }

/* ── Success ── */
.aaloan-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 0; animation: fadeIn 0.4s ease; }

.aaloan-success-check {
    width: 60px; height: 60px; border-radius: 50%;
    background: #1a3a5c; color: #fff; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

.aaloan-success .aaloan-title,
.aaloan-success .aaloan-subtitle { text-align: center; }

/* ── Card Footer ── */
.aaloan-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 8px;
}

.aaloan-secure-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #888; font-weight: 500; }
.aaloan-footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.aaloan-footer-links a { font-size: 12px; color: #1a3a5c; text-decoration: underline; }

/* ==============================================
   Multi-Select Bank List
   ============================================== */

.aaloan-multiselect {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.aaloan-ms-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
    border: 2px solid transparent;
}

.aaloan-ms-option:hover { background: #e8e8e8; }

.aaloan-ms-option.selected {
    background: #eef4fa;
    border-color: #1a3a5c;
}

/* Checkbox */
.aaloan-ms-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #ccc;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.aaloan-ms-check svg { width: 12px; height: 10px; opacity: 0; transition: opacity 0.15s ease; }

.aaloan-ms-option.selected .aaloan-ms-check { background: #1a3a5c; border-color: #1a3a5c; }
.aaloan-ms-option.selected .aaloan-ms-check svg { opacity: 1; }

.aaloan-ms-label { font-size: 14px; font-weight: 500; color: #222; transition: color 0.15s ease; }
.aaloan-ms-option.selected .aaloan-ms-label { color: #1a3a5c; font-weight: 600; }

.aaloan-ms-other .aaloan-ms-label { color: #1a7aaa; font-style: italic; }
.aaloan-ms-other.selected .aaloan-ms-label { color: #1a3a5c; font-style: normal; font-weight: 600; }

/* Count badge inside button */
.aaloan-bank-count {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 12px;
    margin-left: 6px;
    font-weight: 700;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 520px) {
    .aaloan-card { padding: 28px 22px 20px 22px; border-radius: 14px; }
    .aaloan-title { font-size: 22px; }
    .aaloan-field-row { flex-direction: column; gap: 0; }
    .aaloan-footer-links { align-items: flex-start; }
}
