.cfa-wrapper {
    max-width: 440px;
    margin: 20px auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eef2f5;
}

/* Step Indicator */
.cfa-step-indicator {
    background: #eef2f7;
    color: #1b263b;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

/* Tabs */
.cfa-tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f1f4f8;
    padding: 4px;
    border-radius: 6px;
}

.cfa-tab-btn {
    flex: 1;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cfa-tab-btn.active {
    background: #ffffff;
    color: #1b263b;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.cfa-tab-content {
    display: none;
}

.cfa-tab-content.active {
    display: block;
}

/* Profile Header */
.cfa-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f4f8;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.cfa-profile-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1b263b;
    font-weight: 700;
}

.cfa-logout-btn {
    background-color: #fee2e2;
    color: #dc2626 !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.cfa-logout-btn:hover {
    background-color: #fecaca;
}

/* Form Inputs */
.cfa-input-group {
    margin-bottom: 14px;
}

.cfa-input-group input,
.cfa-input-group select {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    background-color: #f7f9fa;
    border: 1px solid #eef2f5;
    border-radius: 6px;
    font-size: 14px;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.cfa-input-group input:focus,
.cfa-input-group select:focus {
    border-color: #55cbf2;
    background-color: #ffffff;
}

.cfa-input-group input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.cfa-phone-group {
    display: flex;
    align-items: center;
    background-color: #f7f9fa;
    border: 1px solid #eef2f5;
    border-radius: 6px;
}

.cfa-flag-prefix {
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cfa-phone-group input {
    border: none;
    background: transparent;
    padding-left: 0;
}

.cfa-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #2c3e50;
}

.cfa-forgot-link-wrapper {
    text-align: right;
    margin-bottom: 14px;
}

.cfa-forgot-link-wrapper a {
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
}

.cfa-forgot-link-wrapper a:hover {
    text-decoration: underline;
}

.cfa-submit-btn {
    width: 100%;
    height: 48px;
    background-color: #1b263b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.cfa-submit-btn:hover {
    background-color: #0d1b2a;
}

.cfa-submit-btn:disabled {
    background-color: #7b889b;
    cursor: not-allowed;
}

.cfa-link-btn {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    display: block;
    margin: 12px auto 0;
    text-decoration: underline;
    font-size: 13px;
}

.cfa-alert {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 13px;
}
.cfa-alert.error { background: #ffebee; color: #c62828; }
.cfa-alert.success { background: #e8f5e9; color: #2e7d32; }
.cfa-otp-notice { margin-bottom: 12px; font-size: 14px; color: #333; }
.cfa-info-text { font-size: 14px; color: #555; margin-bottom: 14px; }

#recaptcha-container,
#recaptcha-forgot-container {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}