/* =========================================================
   SmileAge — Programs Page (page-specific styles)
   -----------------------------------------------------------
   Scope: This file ONLY styles the Programs page and the
   reusable "inner-page hero" pattern (class prefix: sa-page-*)
   meant to be reused on future inner pages (Impact, Research,
   About, etc.) so every inner page opens with a matching hero.

   Namespacing: every class in this file is prefixed with
   "sa-" (SmileAge) and does not redeclare any selector that
   already exists in style.css, to avoid collisions with the
   other developer's stylesheet. Shared design tokens (colors,
   fonts) are read from the :root custom properties already
   defined in style.css (--green, --navy-heading, --orange,
   --cream-bg, --font-serif, --font-sans, --mission-muted ...).
   Load order: style.css first, then this file, then
   responsive.css last.
   ========================================================= */

:root {
    --sa-shadow-soft: 0 1rem 2.5rem rgba(16, 24, 40, 0.06);
    --sa-shadow-hover: 0 1.5rem 3rem rgba(16, 24, 40, 0.14);
    --sa-radius-card: 1.25rem;
    --sa-radius-pill: 50rem;
    --sa-border-soft: 1px solid rgba(28, 27, 23, 0.08);
    --sa-teal-grad: linear-gradient(135deg, #2fa878 0%, #1f7d59 100%);
}

/* =========================================================
   Reusable inner-page hero
   ========================================================= */
.sa-page-hero {
    position: relative;
    background:
        radial-gradient(50rem 22rem at 12% -10%, rgba(47, 168, 120, 0.12), transparent 60%),
        radial-gradient(46rem 24rem at 92% 0%, rgba(47, 111, 214, 0.10), transparent 55%),
        linear-gradient(180deg, #eef1f2 0%, #f4f5f3 55%, #fbfaf7 100%);
    padding-block: clamp(3.5rem, 8vh, 5.5rem) clamp(3rem, 7vh, 4.5rem);
    overflow: hidden;
}

.sa-page-hero::before,
.sa-page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.sa-page-hero::before {
    width: 20rem;
    height: 20rem;
    top: -6rem;
    left: -6rem;
    background: rgba(47, 168, 120, 0.14);
}

.sa-page-hero::after {
    width: 22rem;
    height: 22rem;
    bottom: -9rem;
    right: -6rem;
    background: rgba(238, 101, 24, 0.10);
}

.sa-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 62rem;
    margin-inline: auto;
    text-align: center;
}

.sa-page-hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(47, 168, 120, 0.10);
    border: 1px solid rgba(47, 168, 120, 0.35);
    color: var(--green-dark, #16362a);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: var(--sa-radius-pill);
}

.sa-page-hero-badge i {
    color: var(--green, #2fa878);
}

.sa-page-hero-title {
    font-family: var(--font-serif, "Playfair Display", serif);
    font-weight: 700;
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    line-height: 1.1;
    color: var(--navy-heading, #16213e);
    margin-top: 1.25rem;
    margin-bottom: 0;
    overflow-wrap: break-word;
}

.sa-page-hero-title .sa-accent {
    background-image: var(--sa-teal-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sa-page-hero-subtitle {
    max-width: 34rem;
    margin: 1rem auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--mission-muted, #6f6c63);
    overflow-wrap: break-word;
}

.sa-search-wrap {
    position: relative;
    max-width: 34rem;
    margin: 2.25rem auto 0;
}

.sa-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mission-muted, #6f6c63);
    font-size: 1rem;
    pointer-events: none;
}

.sa-search-input {
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(28, 27, 23, 0.08);
    border-radius: var(--sa-radius-pill);
    box-shadow: var(--sa-shadow-soft);
    padding: 1.05rem 1.5rem 1.05rem 3.25rem;
    font-size: 0.95rem;
    color: var(--ink, #1c1b17);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.sa-search-input::placeholder {
    color: rgba(111, 108, 99, 0.75);
}

.sa-search-input:focus {
    outline: none;
    border-color: rgba(47, 168, 120, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(47, 168, 120, 0.15), var(--sa-shadow-soft);
}

/* =========================================================
   Programs listing section
   ========================================================= */
.sa-programs-section {
    background-color: #fff;
    padding-block: clamp(2.5rem, 5vh, 3.5rem) clamp(4rem, 8vh, 6rem);
}

.sa-results-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(28, 27, 23, 0.08);
}

.sa-results-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy-heading, #16213e);
}

.sa-results-eyebrow i {
    color: var(--green, #2fa878);
    font-size: 0.95rem;
}

.sa-results-count {
    font-size: 0.9rem;
    color: var(--mission-muted, #6f6c63);
}

.sa-results-count strong {
    color: var(--ink, #1c1b17);
}

.sa-no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--mission-muted, #6f6c63);
}

.sa-no-results i {
    font-size: 2rem;
    color: rgba(28, 27, 23, 0.2);
    margin-bottom: 1rem;
    display: block;
}

/* ---------- Program summary stat row ---------- */
.sa-prog-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 1.25rem;
    background-color: var(--cream-bg, #f8f4ee);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.sa-prog-stat-row > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.sa-prog-stat-row i {
    color: var(--green, #2fa878);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.sa-prog-stat-row strong {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-heading, #16213e);
}

.sa-prog-stat-row span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mission-muted, #6f6c63);
}

/* ---------- Program toolbar: status filter chips ---------- */
.sa-prog-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sa-prog-filter-chips {
    display: flex;
    gap: 0.4rem;
}

.sa-prog-filter-chip {
    border: 1px solid rgba(28, 27, 23, 0.14);
    background: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink, #1c1b17);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sa-prog-filter-chip:hover { border-color: var(--green, #2fa878); }

.sa-prog-filter-chip-active {
    background: var(--green, #2fa878);
    border-color: var(--green, #2fa878);
    color: #fff;
}

/* ---------- Program card list ----------
   Cards render as a single vertical stack (one full-width card per
   row), so each card lays itself out horizontally — image band on
   the left, content on the right — to make use of the freed-up
   width instead of the tall image-on-top layout a grid needed.
   Falls back to a stacked (image-on-top) layout on small screens,
   see the matching rule in responsive.css. Height is naturally
   variable per card since there's no row to align across. */
.sa-prog-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sa-prog-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(28, 27, 23, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--sa-shadow-soft);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.sa-prog-card:hover {
    box-shadow: var(--sa-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(47, 168, 120, 0.28);
}

.sa-prog-card-cover {
    position: relative;
    flex: 0 0 clamp(13rem, 26vw, 19rem);
    min-height: 15rem;
    overflow: hidden;
}

.sa-prog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sa-prog-card:hover .sa-prog-card-cover img {
    transform: scale(1.06);
}

.sa-prog-card-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.sa-prog-card-status-new {
    background-color: rgba(238, 101, 24, 0.95);
}

.sa-prog-card-events-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--navy-heading, #16213e);
    background: rgba(255, 255, 255, 0.94);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.sa-prog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 1.35rem 1.5rem 1.35rem;
}

/* ---------- Image-less card header ----------
   Used when a card has no cover photo (see our-work.php) — an icon
   badge stands in for the removed image, sitting inline with the org
   tag + title instead of overlaid on a .sa-prog-card-cover, so it
   reads as the pillar's identity mark rather than dead space. Kept
   separate from .sa-status-pill / .sa-prog-card-events-badge /
   .sa-prog-card-status (position:absolute, meant to sit on top of a
   photo) so the image-based cards on the Programs page are
   unaffected. The status/event chips markup is still in the page,
   just HTML-commented out — .sa-prog-card-head-meta and
   .sa-prog-card-chip* styles below stay so it renders correctly the
   moment it's uncommented. */
.sa-prog-card-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.sa-prog-card-head-text {
    flex: 1;
    min-width: 0;
}

.sa-prog-card-head-text .sa-feature-org {
    margin-bottom: 0.3rem;
}

.sa-prog-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background-image: var(--sa-teal-grad);
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 0.5rem 1.1rem rgba(22, 54, 42, 0.18);
}

/* Rotate through the site's brand tints so a vertical stack of
   pillar cards doesn't read as one repeated block. */
.sa-prog-grid > .sa-prog-card:nth-child(3n+2) .sa-prog-card-icon {
    background-image: none;
    background-color: var(--orange, #ee6518);
    box-shadow: 0 0.5rem 1.1rem rgba(238, 101, 24, 0.28);
}

.sa-prog-grid > .sa-prog-card:nth-child(3n+3) .sa-prog-card-icon {
    background-image: none;
    background-color: var(--blue, #2f6fd6);
    box-shadow: 0 0.5rem 1.1rem rgba(47, 111, 214, 0.28);
}

.sa-prog-card-head-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    margin-left: auto;
    gap: 0.5rem;
}

.sa-prog-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.32rem 0.7rem;
    border-radius: var(--sa-radius-pill);
    white-space: nowrap;
}

.sa-prog-card-chip-active {
    background-color: var(--icon-green-bg, #e2f0e8);
    color: var(--green-dark, #16362a);
}

.sa-prog-card-chip-active i {
    font-size: 0.55rem;
    color: var(--green, #2fa878);
}

.sa-prog-card-chip-events {
    background-color: var(--cream-bg, #f8f4ee);
    color: var(--navy-heading, #16213e);
}

.sa-prog-card-title {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy-heading, #16213e);
    margin: 0 0 0.4rem;
}

.sa-prog-card-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--mission-muted, #6f6c63);
    margin-bottom: 0.85rem;
}

/* Rich-text content (the_content) can include headings/lists — give
   them a compact, card-appropriate look distinct from full article
   typography in style.css. */
.sa-prog-card-text > *:first-child {
    margin-top: 0;
}

.sa-prog-card-text > *:last-child {
    margin-bottom: 0;
}

.sa-prog-card-text h1,
.sa-prog-card-text h2,
.sa-prog-card-text h3,
.sa-prog-card-text h4 {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(28, 27, 23, 0.45);
    margin: 0.8rem 0 0.45rem;
}

.sa-prog-card-text ul,
.sa-prog-card-text ol {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sa-prog-card-text li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.84rem;
}

.sa-prog-card-text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green, #2fa878);
}

.sa-prog-card-text strong {
    color: var(--ink, #1c1b17);
}

.sa-prog-card-body .sa-feature-tags {
    margin-bottom: 0.85rem;
}

.sa-prog-card-body .sa-feature-empty {
    margin-bottom: 0.85rem;
}

.sa-prog-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(28, 27, 23, 0.1);
}

.sa-prog-card-actions .sa-btn-sponsor {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.sa-prog-card-actions .sa-link-events {
    white-space: nowrap;
}

/* ---------- Programs timeline (alternating editorial layout — superseded
   by .sa-prog-grid above; rules kept only because .sa-feature-org,
   .sa-feature-tags, .sa-feature-empty, .sa-dot* and .sa-link-events
   below are still used by the new cards) ---------- */
.sa-programs-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 7vw, 6rem);
}

.sa-programs-timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(47, 168, 120, 0) 0%,
        rgba(47, 168, 120, 0.35) 12%,
        rgba(47, 168, 120, 0.35) 88%,
        rgba(47, 168, 120, 0) 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.sa-feature-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.sa-feature-row-reverse {
    flex-direction: row-reverse;
}

.sa-feature-visual,
.sa-feature-content {
    flex: 1 1 0;
    min-width: 0;
}

.sa-feature-visual {
    position: relative;
}

.sa-feature-img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
    border-radius: 1.75rem;
    box-shadow: var(--sa-shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sa-feature-row:hover .sa-feature-img {
    transform: translateY(-6px);
    box-shadow: var(--sa-shadow-hover);
}

.sa-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: var(--green-dark, #16362a);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.32rem 0.75rem;
    border-radius: var(--sa-radius-pill);
    box-shadow: 0 0.35rem 0.9rem rgba(16, 24, 40, 0.12);
}

.sa-status-pill i {
    font-size: 0.6rem;
    color: var(--green, #2fa878);
}

.sa-feature-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.sa-feature-stat-chip {
    position: absolute;
    bottom: -1.25rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background-color: #fff;
    border-radius: 1rem;
    padding: 0.75rem 1.1rem;
    box-shadow: 0 0.85rem 1.75rem rgba(16, 24, 40, 0.14);
}

.sa-feature-stat-chip i {
    color: var(--green, #2fa878);
    font-size: 1.1rem;
}

.sa-feature-stat-chip div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sa-feature-stat-chip strong {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-size: 1.1rem;
    color: var(--navy-heading, #16213e);
}

.sa-feature-stat-chip span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mission-muted, #6f6c63);
}

.sa-feature-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(47, 168, 120, 0.4);
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green-dark, #16362a);
    box-shadow: var(--sa-shadow-soft);
}

.sa-feature-content {
    padding-top: 1.5rem;
}

.sa-feature-org {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--green-dark, #16362a);
    background-color: var(--icon-green-bg, #e2f0e8);
    padding: 0.3rem 0.75rem 0.3rem 0.6rem;
    border-radius: var(--sa-radius-pill);
    margin-bottom: 0.9rem;
}

.sa-feature-org i {
    color: var(--green, #2fa878);
    font-size: 0.68rem;
}

.sa-feature-title {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: var(--navy-heading, #16213e);
    margin-bottom: 0.4rem;
}

.sa-feature-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--mission-muted, #6f6c63);
    margin-bottom: 1.35rem;
    max-width: 26rem;
}

.sa-feature-tags {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
}

.sa-feature-tags li {
    font-size: 0.82rem;
}

.sa-event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--cream-bg, #f8f4ee);
    padding: 0.4rem 0.85rem;
    border-radius: var(--sa-radius-pill);
    color: var(--ink, #1c1b17);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sa-event-link:hover {
    background-color: var(--icon-green-bg, #e2f0e8);
    color: var(--green-dark, #16362a);
    text-decoration: none;
}

.sa-feature-tags-more {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 1px dashed rgba(28, 27, 23, 0.2);
    padding: 0.4rem 0.85rem;
    border-radius: var(--sa-radius-pill);
    color: var(--mission-muted, #6f6c63);
    font-style: italic;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sa-feature-tags-more:hover {
    color: var(--green-dark, #16362a);
    border-color: rgba(47, 168, 120, 0.4);
    text-decoration: none;
}

.sa-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.sa-dot-online {
    background-color: var(--blue, #2f6fd6);
}

.sa-dot-offline {
    background-color: var(--orange, #ee6518);
}

.sa-feature-empty {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(111, 108, 99, 0.85);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.sa-feature-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sa-link-events {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green-dark, #16362a);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.sa-link-events:hover {
    color: var(--green, #2fa878);
    gap: 0.6rem;
}

.sa-btn-sponsor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background-image: var(--sa-teal-grad);
    border: none;
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.sa-btn-sponsor:hover,
.sa-btn-sponsor:focus {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-3px);
    box-shadow: 0 0.85rem 1.75rem rgba(22, 54, 42, 0.28);
}

.sa-btn-sponsor i {
    transition: transform 0.2s ease;
}

.sa-btn-sponsor:hover i {
    transform: translateX(3px);
}

/* =========================================================
   Sponsor Program modal
   ========================================================= */
.sa-modal-dialog {
    max-width: 34rem;
}

.sa-modal-content {
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2rem 4rem rgba(16, 24, 40, 0.25);
}

.sa-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-image: var(--sa-teal-grad);
    color: #fff;
}

.sa-modal-header-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    font-size: 1.1rem;
}

.sa-modal-header-text {
    flex: 1;
    min-width: 0;
}

.sa-modal-title {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.sa-modal-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-modal-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.sa-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.sa-modal-body {
    padding: 1.75rem;
}

.sa-modal-program-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem;
    margin-bottom: 1.5rem;
    background-color: var(--cream-bg, #f8f4ee);
    border-radius: 1rem;
}

.sa-modal-program-img {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.65rem;
    object-fit: cover;
}

.sa-modal-program-name {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-heading, #16213e);
}

.sa-modal-program-org {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--mission-muted, #6f6c63);
}

.sa-modal-program-org i {
    color: rgba(28, 27, 23, 0.35);
}

.sa-modal-field-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink, #1c1b17);
    margin-bottom: 0.6rem;
}

.sa-modal-field-label:not(:first-child) {
    margin-top: 1.25rem;
}

.sa-modal-field-label i {
    color: var(--green, #2fa878);
    font-size: 0.85rem;
}

.sa-required {
    color: var(--orange, #ee6518);
}

.sa-optional {
    font-weight: 500;
    color: var(--mission-muted, #6f6c63);
}

.sa-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.sa-amount-pill {
    position: relative;
    padding: 0.7rem 0.5rem;
    background-color: #fff;
    border: 1px solid rgba(28, 27, 23, 0.14);
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink, #1c1b17);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sa-amount-pill:hover {
    border-color: var(--green, #2fa878);
    transform: translateY(-2px);
}

.sa-amount-pill-active {
    background-image: var(--sa-teal-grad);
    border-color: transparent;
    color: #fff;
}

.sa-amount-pill-active:hover {
    transform: none;
}

.sa-amount-popular-badge {
    position: absolute;
    top: -0.55rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--orange, #ee6518);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    border-radius: var(--sa-radius-pill);
    white-space: nowrap;
}

.sa-input-icon-wrap {
    position: relative;
}

.sa-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mission-muted, #6f6c63);
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 1px solid rgba(28, 27, 23, 0.14);
    pointer-events: none;
}

.sa-modal-input {
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(28, 27, 23, 0.14);
    border-radius: 0.65rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    color: var(--ink, #1c1b17);
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sa-modal-input-icon {
    padding-left: 3.25rem;
}

.sa-modal-input::placeholder {
    color: rgba(111, 108, 99, 0.7);
}

.sa-modal-input:focus {
    outline: none;
    border-color: rgba(47, 168, 120, 0.5);
    box-shadow: 0 0 0 0.18rem rgba(47, 168, 120, 0.15);
}

.sa-modal-input-error {
    border-color: var(--orange, #ee6518);
    box-shadow: 0 0 0 0.18rem rgba(238, 101, 24, 0.15);
}

textarea.sa-modal-input {
    resize: vertical;
    min-height: 4.5rem;
}

.sa-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background-color: var(--icon-green-bg, #e2f0e8);
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink, #1c1b17);
}

.sa-modal-summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.sa-modal-summary i {
    color: var(--green-dark, #16362a);
    font-size: 0.85rem;
}

.sa-modal-summary strong {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-size: 1.15rem;
    color: var(--green-dark, #16362a);
}

.sa-modal-summary-compact {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.sa-modal-impact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background-color: #fdf4e3;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #92650f;
    line-height: 1.4;
}

.sa-modal-impact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--orange, #ee6518);
    color: #fff;
    font-size: 0.85rem;
}

/* ---------- Step indicator ---------- */
.sa-modal-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.sa-modal-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.45;
    transition: opacity 0.25s ease;
}

.sa-modal-step-active {
    opacity: 1;
}

.sa-modal-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background-color: var(--cream-bg, #f8f4ee);
    color: var(--mission-muted, #6f6c63);
    font-size: 0.9rem;
    transition: background-image 0.25s ease, color 0.25s ease;
}

.sa-modal-step-active .sa-modal-step-num {
    background-image: var(--sa-teal-grad);
    color: #fff;
}

.sa-modal-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink, #1c1b17);
}

.sa-modal-step-line {
    width: 3rem;
    height: 2px;
    margin-bottom: 1.5rem;
    background-color: rgba(28, 27, 23, 0.14);
}

.sa-modal-step-panel-hidden {
    display: none;
}

.sa-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mission-muted, #6f6c63);
    transition: color 0.2s ease, gap 0.2s ease;
}

.sa-modal-back:hover {
    color: var(--green-dark, #16362a);
    gap: 0.65rem;
}

.sa-modal-form-row {
    margin-top: 1.25rem;
}

.sa-modal-form-row .sa-modal-field-label {
    margin-top: 0;
}

.sa-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background-color: var(--cream-bg, #f8f4ee);
    border-radius: 0.75rem;
    cursor: pointer;
}

.sa-modal-checkbox input {
    flex-shrink: 0;
    accent-color: var(--green, #2fa878);
}

.sa-modal-checkbox-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--icon-green-bg, #e2f0e8);
    color: var(--green-dark, #16362a);
    font-size: 0.85rem;
}

.sa-modal-checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
    color: var(--ink, #1c1b17);
}

.sa-modal-checkbox small {
    font-size: 0.75rem;
    color: var(--mission-muted, #6f6c63);
}

.sa-modal-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--mission-muted, #6f6c63);
}

.sa-modal-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sa-modal-trust-row i {
    color: var(--green, #2fa878);
}

.sa-modal-submit {
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
}

.sa-modal-tax-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0.6rem 1rem;
    background-color: #fdf4e3;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92650f;
}

.sa-modal-tax-note i {
    color: var(--green, #2fa878);
}

.sa-modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem;
}

.sa-modal-success.sa-modal-success-active {
    display: flex;
}

.sa-modal-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background-image: var(--sa-teal-grad);
    color: #fff;
    font-size: 1.4rem;
}

.sa-modal-success h4 {
    font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
    font-weight: 700;
    color: var(--navy-heading, #16213e);
    margin-bottom: 0.5rem;
}

.sa-modal-success p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--mission-muted, #6f6c63);
    max-width: 24rem;
    margin-bottom: 1.5rem;
}

.sa-modal-success .sa-btn-sponsor {
    max-width: 12rem;
}

.sa-modal-form-hidden {
    display: none;
}
