/* AEFC Volunteer Portal — Public Styles */

:root {
    --aefc-blue:   #1B4F8A;
    --aefc-green:  #2E7D32;
    --aefc-amber:  #B45309;
    --aefc-red:    #c00028;
    --aefc-border: #d1d5db;
    --aefc-bg:     #f9fafb;
    --aefc-radius: 8px;
}

/* ── Shared ─────────────────────────────────────────────────────────────── */
.aefc-notice {
    padding: 14px 18px;
    border-radius: var(--aefc-radius);
    margin-bottom: 20px;
    font-size: 15px;
}
.aefc-notice--success { background: #e6f4ea; border-left: 4px solid var(--aefc-green); color: #1b5e20; }
.aefc-notice--error   { background: #fce8e6; border-left: 4px solid var(--aefc-red);   color: #7f0000; }
.aefc-notice--info    { background: #e8f0fe; border-left: 4px solid var(--aefc-blue);  color: #0d2b5e; }

.aefc-badge { display:inline-block; padding:2px 10px; border-radius:12px; font-size:12px; font-weight:600; }
.aefc-badge--good    { background:#e6f4ea; color:var(--aefc-green); }
.aefc-badge--warn    { background:#fff3cd; color:#856404; }
.aefc-badge--danger  { background:#fce8e6; color:var(--aefc-red); }
.aefc-badge--neutral { background:#e8eaf6; color:var(--aefc-blue); }

.aefc-muted { color:#888; font-size:13px; }

/* ── Signup Form ─────────────────────────────────────────────────────────── */
.aefc-signup-wrap {
    max-width: 680px;
    margin: 0 auto;
}
.aefc-signup-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--aefc-blue);
    margin-bottom: 6px;
}
.aefc-signup-intro {
    color: #555;
    margin-bottom: 28px;
    font-size: 15px;
}

/* Form layout */
.aefc-form { display: flex; flex-direction: column; gap: 18px; }
.aefc-form-row { display: flex; gap: 16px; }
.aefc-form-row--half > * { flex: 1; }

.aefc-field { display: flex; flex-direction: column; gap: 5px; }
.aefc-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.aefc-field .req { color: var(--aefc-red); }
.aefc-field-hint { font-size: 12px; color: #888; margin: 2px 0 0; }

.aefc-field input[type="text"],
.aefc-field input[type="email"],
.aefc-field input[type="tel"],
.aefc-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--aefc-border);
    border-radius: 6px;
    font-size: 15px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}
.aefc-field input:focus,
.aefc-field select:focus {
    outline: none;
    border-color: var(--aefc-blue);
    box-shadow: 0 0 0 3px rgba(27,79,138,.12);
}

.aefc-fieldset {
    border: 1px solid var(--aefc-border);
    border-radius: var(--aefc-radius);
    padding: 16px 18px;
}
.aefc-fieldset legend {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    padding: 0 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aefc-field--checkbox label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}
.aefc-field--checkbox input { margin-top: 2px; flex-shrink: 0; }

.aefc-form-footer { padding-top: 8px; }

.aefc-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
}
.aefc-btn:hover { opacity: .88; }
.aefc-btn--primary {
    background: var(--aefc-blue);
    color: #fff;
}

@media (max-width: 560px) {
    .aefc-form-row { flex-direction: column; }
}

/* ── Volunteer Dashboard ─────────────────────────────────────────────────── */
.aefc-vol-dashboard { max-width: 760px; margin: 0 auto; }

.aefc-vol-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.aefc-vol-header h2 { margin: 0 0 4px; font-size: 22px; color: var(--aefc-blue); }
.aefc-vol-role { color: #555; margin: 0; font-size: 14px; }

.aefc-risk-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}
.aefc-risk-badge--low    { background: #e6f4ea; color: var(--aefc-green); }
.aefc-risk-badge--medium { background: #fff3cd; color: var(--aefc-amber); }
.aefc-risk-badge--high   { background: #fce8e6; color: var(--aefc-red); }

/* Progress bar */
.aefc-progress-wrap {
    background: #fff;
    border: 1px solid var(--aefc-border);
    border-radius: var(--aefc-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.aefc-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
}
.aefc-progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
.aefc-progress-fill {
    height: 100%;
    background: var(--aefc-blue);
    border-radius: 6px;
    transition: width .4s ease;
}
.aefc-onboarding-done {
    margin: 10px 0 0;
    color: var(--aefc-green);
    font-weight: 600;
    font-size: 14px;
}

/* Sections */
.aefc-section {
    background: #fff;
    border: 1px solid var(--aefc-border);
    border-radius: var(--aefc-radius);
    padding: 20px 22px;
    margin-bottom: 20px;
}
.aefc-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--aefc-blue);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

/* Steps */
.aefc-steps-list { display: flex; flex-direction: column; gap: 10px; }
.aefc-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--aefc-bg);
}
.aefc-step--complete { background: #e6f4ea; }
.aefc-step--pending  { background: #fff3cd; }
.aefc-step--todo     { background: #f3f4f6; }

.aefc-step-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.aefc-step-body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.aefc-step-note { font-size: 12px; color: #888; }

/* Credentials */
.aefc-creds-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.aefc-cred-card {
    border: 1px solid var(--aefc-border);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--aefc-bg);
}
.aefc-cred-type { font-weight: 600; font-size: 14px; color: #111; }
.aefc-cred-expiry { font-size: 12px; color: #555; }
.aefc-cred-note { font-size: 12px; color: var(--aefc-red); }

/* Assignments */
.aefc-assignments-list { display: flex; flex-direction: column; gap: 8px; }
.aefc-assignment-card {
    padding: 10px 14px;
    background: var(--aefc-bg);
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid var(--aefc-border);
}
