.afa-page {
    max-width: 540px;
    margin: 82px auto 40px;
    padding: 0 12px;
    font-family: "Poppins", Arial, sans-serif;
}

.afa-wallet-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-height: 230px;
    text-align: center;
    padding: 16px;
    margin: 0 auto 8px;
}

.afa-title-pill {
    display: inline-block;
    background: linear-gradient(135deg, #ffcb05, #f4b400);
    color: #020617;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
    padding: 8px 22px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.afa-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-size: 0.85rem;
    line-height: 1.1;
    white-space: nowrap;
}

.afa-meta-row i,
.afa-wallet-balance i,
.afa-stars i,
.afa-form-panel h1 i {
    color: #ffcc00;
}

.afa-stars i {
    color: #111827;
}

.afa-stars i:last-child {
    color: #64748b;
}

.afa-yellow-line {
    height: 3px;
    background: #ffcc00;
    width: 92%;
    margin: 12px auto;
}

.afa-wallet-balance {
    color: #178a2f;
    font-size: 14px;
    font-weight: 800;
    margin: 14px 0 20px;
}

.afa-greeting {
    color: #7a5a00;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.afa-outline-btn {
    border: 1px solid #c49a00;
    color: #b58900;
    background: #fff;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 700;
}

.afa-form-panel {
    background: linear-gradient(145deg, #ffffff, #f8f9fa, #f0f0f0);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 24px;
}

.afa-form-panel h1 {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 20px;
    color: #020617;
}

.afa-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.afa-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.afa-full {
    margin-bottom: 10px;
}

.afa-field label {
    color: #020617;
    font-size: 1rem;
    font-weight: 600;
}

.afa-field input,
.afa-field select {
    width: 100%;
    border: 1px solid #d6dee8;
    background: #f8fafc;
    border-radius: 4px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 1rem;
    color: #020617;
}

.afa-field input::placeholder {
    color: #64748b;
    opacity: 1;
}

.afa-field select {
    appearance: auto;
}

.afa-field .afa-id-type-display:disabled {
    background: #eef1f4;
    border-color: #eef1f4;
    border-radius: 8px;
    color: #1f2937;
    font-weight: 800;
    opacity: 1;
    -webkit-text-fill-color: #1f2937;
}

.afa-price-box {
    border: 1px solid #ffcc00;
    background: #fff9db;
    border-radius: 4px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 900;
    color: #020617;
}

.afa-payment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #4f8cff;
    background: #f8fbff;
    border-radius: 5px;
    min-height: 64px;
    padding: 12px 18px;
    margin-top: 12px;
    color: #0f172a;
}

.afa-payment-card i {
    color: #198754;
    font-size: 13px;
}

.afa-payment-card strong,
.afa-payment-card small {
    display: block;
}

.afa-payment-card strong {
    font-size: 14px;
}

.afa-payment-card small {
    font-size: 11px;
    color: #64748b;
}

.afa-submit {
    margin-top: 12px;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #198754;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.afa-submit:disabled {
    opacity: 0.55;
}

.afa-form-footer {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 12px;
}

.afa-form-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.afa-footer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}

.afa-admin-page {
    margin-top: 84px;
}

.afa-price-dialog {
    max-width: 760px;
}

.afa-price-dialog .modal-body {
    padding: 18px;
}

.afa-price-dialog .table {
    font-size: 0.85rem;
}

.afa-price-dialog .form-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.afa-price-dialog .form-control {
    font-size: 0.9rem;
}

.afa-eligibility-dialog {
    max-width: 520px;
}

.afa-eligibility-modal {
    border: 0;
    border-radius: 10px;
    padding: 24px 26px 22px;
    color: #111827;
    position: relative;
}

.afa-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
}

.afa-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.afa-eligibility-modal h3 {
    font-size: 20px;
    font-weight: 900;
    margin: 12px 0;
}

.afa-eligibility-modal ol {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 14px;
    padding-left: 24px;
}

.afa-eligibility-modal li {
    margin-bottom: 8px;
}

.afa-modal-muted,
.afa-modal-footer-text {
    color: #64748b;
    font-size: 16px;
    margin: 14px 0;
}

@media (max-width: 720px) {
    .afa-page {
        margin-top: 72px;
        padding: 0 12px;
        max-width: 100%;
    }

    .afa-wallet-card {
        min-height: 210px;
    }

    .afa-title-pill {
        font-size: 16px;
    }

    .afa-meta-row {
        font-size: 0.72rem;
        gap: 4px;
    }

    .afa-form-panel {
        padding: 20px 18px 16px;
    }

    .afa-eligibility-modal {
        padding: 22px 20px 18px;
    }

    .afa-eligibility-modal h3 {
        font-size: 18px;
    }

    .afa-eligibility-modal ol,
    .afa-modal-muted,
    .afa-modal-footer-text {
        font-size: 15px;
    }
}
