/* ═══════════════════════════════════════════════════════
   WISH Volunteer Hub — Front-End Styles
   Brand: teal #1a6b5a · gold #c8a96e
   Font: Poppins throughout
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --wish-teal:    #1a6b5a;
    --wish-teal-dk: #145549;
    --wish-teal-lt: #e8f5f0;
    --wish-gold:    #c8a96e;
    --wish-warm:    #faf8f4;
    --wish-text:    #2a2a2a;
    --wish-muted:   #6b7280;
    --wish-border:  #d6ede8;
    --wish-radius:  10px;
    --wish-shadow:  0 4px 24px rgba(26,107,90,0.08);
}

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

/* Full-width base wrappers */
.wish-form-wrap,
.wish-portal-wrap,
.wish-opps-wrap,
.wish-hub-landing {
    font-family: 'Poppins', sans-serif;
    color: var(--wish-text);
    width: 100%;
    max-width: 100%;
}

/* ── Notices ─────────────────────────────────── */
.wish-notice {
    padding: 14px 18px; border-radius: 8px;
    font-size: 14px; line-height: 1.6; margin: 12px 0;
    font-family: 'Poppins', sans-serif;
}
.wish-notice a { color: var(--wish-teal); font-weight: 600; }
.wish-notice-info    { background: #eff8ff; color: #1e6091; border-left: 3px solid #1e6091; }
.wish-notice-success { background: var(--wish-teal-lt); color: var(--wish-teal); border-left: 3px solid var(--wish-teal); }
.wish-notice-warn    { background: #fff8e6; color: #92630a; border-left: 3px solid var(--wish-gold); }
.wish-notice-error   { background: #fde8e8; color: #b91c1c; border-left: 3px solid #b91c1c; }

/* ── Buttons ─────────────────────────────────── */
.wish-pub-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--wish-teal); color: #fff;
    padding: 12px 28px; border-radius: 6px;
    font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; text-decoration: none;
    transition: background 0.15s, transform 0.1s; line-height: 1.4;
}
.wish-pub-btn:hover         { background: var(--wish-teal-dk); color: #fff; transform: translateY(-1px); }
.wish-pub-btn-outline       { background: transparent; color: var(--wish-teal); border: 2px solid var(--wish-teal); }
.wish-pub-btn-outline:hover { background: var(--wish-teal-lt); color: var(--wish-teal); transform: none; }
.wish-pub-btn-submit        { min-width: 180px; justify-content: center; }
.wish-pub-btn-gold          { background: var(--wish-gold); color: #fff; }
.wish-pub-btn-gold:hover    { background: #b8964f; color: #fff; }
.wish-pub-btn-sm            { padding: 8px 18px; font-size: 13px; }

/* ── Hub landing ─────────────────────────────── */
.wish-hub-hero {
    background: linear-gradient(135deg, var(--wish-teal) 0%, #2d9070 100%);
    padding: 64px 40px; border-radius: var(--wish-radius);
    margin-bottom: 28px; text-align: center; width: 100%;
}
.wish-hub-hero h2 {
    font-family: 'Poppins', sans-serif; font-size: 36px; font-weight: 700;
    color: #fff; margin: 0 0 14px; line-height: 1.2;
}
.wish-hub-hero p {
    font-size: 16px; color: rgba(255,255,255,0.9);
    max-width: 580px; margin: 0 auto 28px; line-height: 1.7;
}
.wish-hub-hero .wish-cta-btn {
    display: inline-block; background: #fff; color: var(--wish-teal);
    padding: 14px 36px; border-radius: 6px; font-weight: 700; font-size: 15px;
    text-decoration: none; font-family: 'Poppins', sans-serif; transition: all 0.15s;
}
.wish-hub-hero .wish-cta-btn:hover { background: var(--wish-gold); color: #fff; }

.wish-hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; width: 100%; }
.wish-card {
    background: #fff; border: 1px solid var(--wish-border);
    border-top: 3px solid var(--wish-teal); border-radius: var(--wish-radius);
    padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s;
}
.wish-card:hover { box-shadow: var(--wish-shadow); transform: translateY(-2px); }
.wish-card-icon { font-size: 28px; margin-bottom: 12px; }
.wish-card h3   { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--wish-teal); }
.wish-card p    { font-size: 14px; color: var(--wish-muted); margin: 0 0 16px; line-height: 1.6; }
.wish-card a    { color: var(--wish-teal); font-weight: 600; font-size: 14px; text-decoration: none; }
.wish-card a:hover { text-decoration: underline; }

/* ── Application form ────────────────────────── */
.wish-form-wrap { background: var(--wish-warm); border-radius: var(--wish-radius); padding: 40px; width: 100%; }
.wish-form-header { margin-bottom: 28px; }
.wish-form-header h2 { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; color: var(--wish-teal); margin: 0 0 10px; }
.wish-form-header p  { font-size: 14px; color: var(--wish-muted); line-height: 1.7; margin: 0; }

.wish-progress-bar { display: flex; margin-bottom: 36px; border-bottom: 2px solid var(--wish-border); width: 100%; }
.wish-progress-step {
    flex: 1; padding: 10px 8px; font-size: 12px; font-weight: 500;
    text-align: center; color: var(--wish-muted);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    font-family: 'Poppins', sans-serif;
}
.wish-progress-step span {
    width: 22px; height: 22px; border-radius: 50%;
    background: #ddd; color: #888; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wish-progress-step.active        { color: var(--wish-teal); border-bottom-color: var(--wish-teal); }
.wish-progress-step.active span   { background: var(--wish-teal); color: #fff; }
.wish-progress-step.done span     { background: var(--wish-gold); color: #fff; }

.wish-step        { display: none; }
.wish-step.active { display: block; }
.wish-step-title  { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; color: var(--wish-teal); margin: 0 0 20px; }
.wish-section-title {
    font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600;
    color: var(--wish-teal); margin: 28px 0 16px;
    padding-bottom: 8px; border-bottom: 1px solid var(--wish-border);
}

.wish-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
@media (max-width: 620px) { .wish-field-grid { grid-template-columns: 1fr; } }

.wish-field { margin-bottom: 18px; width: 100%; }
.wish-field label {
    display: block; font-size: 11px; font-weight: 600; color: #555;
    margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}
.wish-field input[type="text"],
.wish-field input[type="email"],
.wish-field input[type="tel"],
.wish-field input[type="date"],
.wish-field input[type="number"],
.wish-field select,
.wish-field textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--wish-border);
    border-radius: 6px; font-size: 14px; font-family: 'Poppins', sans-serif;
    background: #fff; color: var(--wish-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none; appearance: none;
}
.wish-field input:focus,
.wish-field select:focus,
.wish-field textarea:focus { border-color: var(--wish-teal); outline: none; box-shadow: 0 0 0 3px rgba(26,107,90,0.12); }
.wish-field textarea { resize: vertical; min-height: 80px; }
.wish-field-hint { font-size: 12px; color: var(--wish-muted); margin: 4px 0 0; font-style: italic; }

.wish-radio-group { display: flex; gap: 20px; margin-top: 6px; flex-wrap: wrap; }
.wish-radio-group label { font-size: 14px; font-weight: 400; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: 'Poppins', sans-serif; }

.wish-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 8px; margin-top: 8px; width: 100%; }
.wish-check { font-size: 13px; font-weight: 400 !important; cursor: pointer; display: flex !important; align-items: flex-start; gap: 8px; font-family: 'Poppins', sans-serif; }
.wish-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--wish-teal); flex-shrink: 0; }
.wish-check-full { display: flex !important; align-items: flex-start !important; line-height: 1.5; padding: 10px 14px; background: #fff; border: 1.5px solid var(--wish-border); border-radius: 6px; transition: border-color 0.15s; }
.wish-check-full:has(input:checked) { border-color: var(--wish-teal); background: var(--wish-teal-lt); }

.req { color: #e05252; }
.wish-safeguard-note { font-size: 13px; color: var(--wish-muted); background: #fff; border: 1px solid var(--wish-border); border-radius: 6px; padding: 14px 16px; margin-bottom: 20px; line-height: 1.7; }
.wish-step-nav { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--wish-border); flex-wrap: wrap; }

.wish-badge-approved { display: inline-block; background: var(--wish-teal); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; font-family: 'Poppins', sans-serif; }

/* ── Volunteer portal ────────────────────────── */
.wish-portal-wrap { width: 100%; }
.wish-portal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    background: linear-gradient(135deg, var(--wish-teal) 0%, #2d9070 100%);
    padding: 36px 40px; border-radius: var(--wish-radius); margin-bottom: 28px; width: 100%;
}
.wish-portal-header h2  { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.wish-portal-header p   { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; }
.wish-portal-stats      { display: flex; gap: 28px; align-items: center; }
.wish-portal-stat       { text-align: center; }
.wish-portal-stat .stat-n { display: block; font-size: 34px; font-weight: 700; line-height: 1; color: #fff; font-family: 'Poppins', sans-serif; }
.wish-portal-stat .stat-l { font-size: 11px; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

.wish-portal-notifications { background: #fff8e6; border: 1px solid #f0d898; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.wish-portal-notifications > strong { display: block; color: #92630a; margin-bottom: 10px; font-family: 'Poppins', sans-serif; }
.wish-notif-item { padding: 10px 0; border-bottom: 1px solid #f0d898; }
.wish-notif-item:last-child { border-bottom: none; padding-bottom: 0; }
.wish-notif-item strong { font-size: 14px; font-family: 'Poppins', sans-serif; }
.wish-notif-item p { font-size: 13px; color: #555; margin: 4px 0; }
.wish-notif-time { font-size: 11px; color: #aaa; }
.wish-notif-dismiss { background: none; border: none; color: #92630a; font-size: 12px; cursor: pointer; margin-left: 12px; text-decoration: underline; font-family: 'Poppins', sans-serif; }

.wish-portal-tabs { display: flex; border-bottom: 2px solid var(--wish-border); margin-bottom: 28px; width: 100%; overflow-x: auto; }
.wish-tab {
    background: none; border: none; border-bottom: 3px solid transparent;
    padding: 11px 22px; font-size: 13px; font-weight: 600; color: var(--wish-muted);
    cursor: pointer; margin-bottom: -2px; transition: color 0.15s;
    font-family: 'Poppins', sans-serif; white-space: nowrap;
}
.wish-tab.active            { color: var(--wish-teal); border-bottom-color: var(--wish-teal); }
.wish-tab:hover:not(.active){ color: var(--wish-text); }

.wish-tab-panel        { display: none; width: 100%; }
.wish-tab-panel.active { display: block; }
.wish-tab-panel h3     { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; color: var(--wish-teal); margin: 0 0 16px; }

.wish-portal-table-wrap { overflow-x: auto; border-radius: var(--wish-radius); border: 1px solid var(--wish-border); width: 100%; }
.wish-portal-table { width: 100%; border-collapse: collapse; font-size: 14px; font-family: 'Poppins', sans-serif; }
.wish-portal-table thead th {
    background: var(--wish-teal); color: #fff;
    padding: 12px 16px; text-align: left; font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600; border-bottom: none;
}
.wish-portal-table tbody td { padding: 11px 16px; border-bottom: 1px solid #f0f0f0; color: var(--wish-text); }
.wish-portal-table tbody tr:last-child td { border-bottom: none; }
.wish-portal-table tbody tr:hover td { background: var(--wish-teal-lt); }

.wish-empty-state   { color: var(--wish-muted); font-size: 14px; padding: 28px 0; font-family: 'Poppins', sans-serif; }
.wish-empty-state a { color: var(--wish-teal); font-weight: 600; }

/* Status badges — always light text on coloured background */
.wish-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-family: 'Poppins', sans-serif; }
.wish-badge.active,
.wish-badge.confirmed,
.wish-badge.attended   { background: var(--wish-teal); color: #fff; }
.wish-badge.pending    { background: #f59e0b; color: #fff; }
.wish-badge.open       { background: #3b82f6; color: #fff; }
.wish-badge.absent,
.wish-badge.cancelled  { background: #ef4444; color: #fff; }
.wish-badge.onboarding { background: var(--wish-gold); color: #fff; }
.wish-badge.inactive   { background: #9ca3af; color: #fff; }

.wish-cert-preview { text-align: center; padding: 48px 24px; background: var(--wish-warm); border-radius: var(--wish-radius); border: 1px solid var(--wish-border); }
.wish-cert-icon { font-size: 52px; margin-bottom: 16px; }
.wish-cert-preview p { font-size: 15px; color: var(--wish-text); margin-bottom: 12px; line-height: 1.6; }

/* ── Opportunities ───────────────────────────── */
.wish-opps-wrap { width: 100%; }
.wish-opps-title { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; color: var(--wish-teal); margin: 0 0 24px; }
.wish-opps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; width: 100%; }

.wish-opp-card {
    background: #fff; border: 1.5px solid var(--wish-border);
    border-radius: var(--wish-radius); padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column;
}
.wish-opp-card:hover   { box-shadow: var(--wish-shadow); transform: translateY(-2px); }
.wish-opp-card.signed-up { border-color: var(--wish-teal); background: var(--wish-teal-lt); }

.wish-opp-area-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: var(--wish-teal); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; font-family: 'Poppins', sans-serif; }
.wish-opp-card h3  { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; color: var(--wish-text); margin: 0 0 10px; }
.wish-opp-desc     { font-size: 13px; color: var(--wish-muted); line-height: 1.6; margin-bottom: 14px; }
.wish-opp-meta     { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--wish-muted); margin-bottom: 16px; flex: 1; }
.wish-opp-action   { margin-top: auto; }
.wish-opp-signed-badge { color: var(--wish-teal); font-weight: 700; font-size: 13px; font-family: 'Poppins', sans-serif; }
.wish-opp-full-badge   { color: #b91c1c; font-size: 13px; font-family: 'Poppins', sans-serif; }
.wish-opp-note         { font-size: 12px; color: var(--wish-muted); font-family: 'Poppins', sans-serif; }

.wish-empty-state-card { background: var(--wish-warm); border: 1px solid var(--wish-border); border-radius: var(--wish-radius); padding: 40px; text-align: center; color: var(--wish-muted); font-size: 14px; width: 100%; font-family: 'Poppins', sans-serif; }
.wish-empty-state-card a { color: var(--wish-teal); font-weight: 600; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 680px) {
    .wish-form-wrap       { padding: 24px 16px; }
    .wish-portal-header   { padding: 24px 20px; }
    .wish-portal-stats    { gap: 20px; }
    .wish-hub-hero        { padding: 40px 20px; }
    .wish-hub-hero h2     { font-size: 24px; }
    .wish-hub-hero p      { font-size: 14px; }
    .wish-opps-grid       { grid-template-columns: 1fr; }
    .wish-hub-cards       { grid-template-columns: 1fr; }
}
