/* ============================================================
   GURUJI SERVICE AWARDS (GSA) — page-specific overrides
   Shared by: guruji-service-awards.html,
              guruji-service-awards-apply.html,
              guruji-service-awards-application.html
   Depends on design tokens defined in css/style.css
   (--white, --line, --radius, --radius-lg, --space-*,
    --shadow-md, --font-head, --font-body, --charcoal,
    --charcoal-soft, --forest, --gold, --accent, --clay,
    --oatmeal, --oatmeal-deep, --premium) — no local
   :root overrides, so this file never drifts from the
   master palette.
   ============================================================ */

/* ---------- CORPUS PROGRESS (guruji-service-awards.html) ---------- */
.corpus-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    margin-top: calc(-1 * var(--space-6));
    position: relative;
    z-index: 5;
}
.corpus-panel-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}
.corpus-figure {
    font-family: var(--font-head);
    font-size: 2.1rem;
    color: var(--forest);
    font-weight: 600;
}
.corpus-figure small {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal-soft);
}
.corpus-target {
    font-size: .9rem;
    color: var(--charcoal-soft);
    font-weight: 600;
}
.progress-track {
    width: 100%;
    height: 14px;
    border-radius: 100px;
    background: var(--oatmeal-deep);
    overflow: hidden;
    border: 1px solid var(--line);
}
.progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    transition: width 1s ease;
}
.corpus-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: .82rem;
    color: var(--charcoal-soft);
}
.corpus-meta strong { color: var(--forest); }
.corpus-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}
.corpus-stat-num {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--forest);
    font-weight: 600;
}
.corpus-stat-label {
    font-size: .78rem;
    color: var(--charcoal-soft);
    margin-top: 2px;
}
.corpus-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: var(--space-3);
}
@media (max-width: 700px) {
    .corpus-stats { grid-template-columns: repeat(2, 1fr); }
    .corpus-panel { margin-top: var(--space-3); }
}

/* ---------- CATEGORY DETAIL BLOCKS ---------- */
.category-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--clay);
    border-radius: var(--radius);
    padding: var(--space-3);
    margin-top: var(--space-3);
}
.category-block:nth-of-type(2) { border-left-color: #B23A48; }
.category-block:nth-of-type(3) { border-left-color: #2E7D6B; }
.category-block:nth-of-type(4) { border-left-color: #6A5ACD; }
.category-block:nth-of-type(5) { border-left-color: #3E7A3E; }
.category-block:nth-of-type(6) { border-left-color: #1F7A99; }
.category-block:nth-of-type(7) { border-left-color: #B8860B; }
.category-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.category-head h3 {
    margin: 0;
    font-size: 1.2rem;
}
.category-tag {
    display: inline-block;
    background: var(--oatmeal-deep);
    color: var(--forest);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: 12px;
}
.category-grid h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--clay);
    margin-bottom: 6px;
}
.category-grid ul {
    margin: 0;
    padding-left: 18px;
    font-size: .9rem;
    color: var(--charcoal);
}
.category-grid li { margin-bottom: 5px; }
@media (max-width: 700px) {
    .category-grid { grid-template-columns: 1fr; }
}

/* ---------- CYCLE TIMELINE ---------- */
.cycle-timeline {
    position: relative;
    margin-top: var(--space-4);
    padding-left: 28px;
    border-left: 2px solid var(--line);
}
.cycle-step {
    position: relative;
    padding-bottom: var(--space-3);
}
.cycle-step:last-child { padding-bottom: 0; }
.cycle-step::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold);
}
.cycle-step.milestone::before { background: var(--forest); box-shadow: 0 0 0 2px var(--forest); }
.cycle-date {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--clay);
}
.cycle-step.milestone .cycle-date { color: var(--forest); }
.cycle-step h4 { margin: 3px 0 4px; font-size: 1.02rem; }
.cycle-step p { font-size: .88rem; margin: 0; }

/* ---------- TRANSPARENCY LIST ---------- */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-3);
}
.transparency-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.transparency-item .icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--oatmeal-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}
.transparency-item h4 { margin: 0 0 3px; font-size: .95rem; }
.transparency-item p { margin: 0; font-size: .85rem; color: var(--charcoal-soft); }
@media (max-width: 700px) { .transparency-grid { grid-template-columns: 1fr; } }

/* ---------- WAYS TO GIVE ---------- */
.give-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}
.give-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-2);
    text-align: center;
}
.give-card .emoji { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.give-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--forest); }
.give-card p { font-size: .85rem; margin-bottom: 12px; color: var(--charcoal-soft); }
/* .give-card sits on a white background even though its parent section is
   .section-dark — override the light-on-dark text/button colors that rule
   applies, so headings, copy, and buttons stay readable on the white card. */
.give-card .btn-outline {
    color: var(--forest);
    border-color: var(--forest);
    background: transparent;
    white-space: normal;
    width: 100%;
    text-align: center;
    line-height: 1.3;
}
.give-card .btn-outline:hover {
    background: var(--forest);
    color: var(--oatmeal);
}

.eligibility-strip {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--forest);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-top: var(--space-4);
    align-items: center;
}
.eligibility-strip span:first-child {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--oatmeal);
    font-weight: 600;
}
.eligibility-strip span.pill {
    background: rgba(247,242,234,.1);
    border: 1px solid rgba(247,242,234,.2);
    color: rgba(247,242,234,.9);
    font-size: .8rem;
    padding: 5px 14px;
    border-radius: 100px;
}

/* ============================================================
   APPLICATION PORTAL
   Shared by: guruji-service-awards-apply.html,
              guruji-service-awards-application.html
   ============================================================ */

.gsf-portal-wrap { max-width: 760px; margin: 0 auto; }

.gsf-status-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
}
.gsf-status-panel.not-open { border: 2px solid var(--clay); }
.gsf-status-panel.open { border: 2px solid var(--gold); background: #fffbf0; }
.gsf-status-panel h2 {
    font-family: var(--font-head);
    color: var(--forest);
    margin-top: 0;
}
.gsf-countdown {
    display: inline-block;
    background: var(--oatmeal-deep);
    color: var(--forest);
    font-weight: 700;
    font-size: .85rem;
    padding: 6px 14px;
    border-radius: 100px;
    margin: 10px 0 4px;
}

.gsf-form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-3);
}
.gsf-form-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--forest);
    margin: 0 0 var(--space-2);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.gsf-form-card h3:not(:first-child) { margin-top: var(--space-3); }
.gsf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 640px) {
    .gsf-two-col { grid-template-columns: 1fr; }
}
.gsf-age-readout {
    font-size: .82rem;
    color: var(--charcoal-soft);
    margin-top: 4px;
}
.gsf-age-readout strong { color: var(--forest); }
.gsf-charcount {
    font-size: .75rem;
    color: var(--charcoal-soft);
    text-align: right;
    margin-top: 4px;
}
.gsf-charcount.ok { color: var(--forest); }
.gsf-success-card {
    text-align: center;
    padding: var(--space-4);
}
.gsf-success-card .big-check {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 10px;
}
.gsf-app-id {
    display: inline-block;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forest);
    background: var(--oatmeal-deep);
    padding: 6px 16px;
    border-radius: 100px;
    margin: 10px 0;
    letter-spacing: .04em;
}

/* ---------- GENERIC FORM CONTROLS (portal-scoped) ---------- */
.form-group { margin-bottom: var(--space-2); }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}
.form-group label .required { color: #c73a3a; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.form-group textarea { resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.12);
}
.form-group input[type="file"] {
    padding: 0.5rem 0.7rem;
    background: var(--oatmeal);
    cursor: pointer;
}
.file-hint {
    font-size: 0.75rem;
    color: var(--charcoal-soft);
    margin-top: 4px;
}
.file-picked {
    font-size: 0.8rem;
    color: var(--forest);
    font-weight: 600;
    margin-top: 4px;
    display: none;
}

.btn-donate {
    background: var(--gold);
    color: var(--premium);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(212, 160, 23, 0.30);
    width: 100%;
    margin-top: var(--space-2);
}
.btn-donate:hover {
    background: #f0ad52;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.40);
}
.btn-donate:active { transform: scale(0.97); }
.btn-donate:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }

.status-msg {
    margin-top: var(--space-2);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    display: none;
}
.status-msg.error { display: block; background: #fdf5f5; border: 1px solid #e6b3b3; color: #b13a3a; }
.status-msg.success { display: block; background: #f0f8f2; border: 1px solid #b3d9b3; color: #1d7a4e; }
.status-msg.info { display: block; background: #f0f4f8; border: 1px solid #b3c9d9; color: #1a405a; }

.spinner-sm {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
