:root {
    --ink: #142033;
    --ink-soft: #3c4d63;
    --muted: #5d6b7e;
    --line: #e2e7ee;
    --line-strong: #cfd6e1;
    --paper: #ffffff;
    --canvas: #eef1f5;
    --navy: #10243d;
    --navy-2: #1a3558;
    --gold: #9a7439;
    --gold-soft: #f7f1e6;
    --teal: #0e6b64;
    --danger: #9f2d2d;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 36, 61, 0.04), 0 16px 40px rgba(16, 36, 61, 0.08);
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background:
        radial-gradient(1200px 420px at 0% -10%, rgba(154, 116, 57, 0.08), transparent 55%),
        var(--canvas);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#beamsBackground,
.beams-overlay {
    display: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
}

/* ----- Landing ----- */
.landing-page {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.landing-page--hidden {
    display: none !important;
}

.form-app-hidden {
    display: none !important;
}

.site-header,
.appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.site-header__brand,
.appbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(16, 36, 61, 0.08);
    flex-shrink: 0;
}

.logo-globe {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.logo-globe__ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(154, 116, 57, 0.28);
    border-top-color: #9a7439;
    animation: logo-ring-spin 3.6s linear infinite;
    pointer-events: none;
}

.logo-globe__spin {
    display: grid;
    place-items: center;
    transform-origin: center center;
    animation: logo-globe-spin 3.6s linear infinite;
    will-change: transform;
}

.logo-globe__spin .site-logo {
    box-shadow: 0 0 0 1px rgba(16, 36, 61, 0.08);
}

.site-header__sub,
.appbar__product {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.landing-church-name,
.appbar__org {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy);
    line-height: 1.15;
}

.landing-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--navy);
    text-decoration: none;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.landing-social a:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.landing-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 36px;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 36px;
    align-items: stretch;
    width: 100%;
}

.eyebrow,
.hero__panel-label,
.sidebar-kicker,
.form-context__step {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero h1,
.hero-title__word {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--navy);
}

.hero h1 {
    margin: 10px 0 14px;
    max-width: 12em;
}

.hero-title__line {
    display: block;
}

.hero-title__word {
    display: inline-block;
    margin-right: 0.22em;
    opacity: 0;
    transform: translateY(0.45em);
    animation:
        hero-word-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        hero-word-float 2.6s ease-in-out infinite;
    animation-delay: calc(0.08s + var(--i) * 0.1s), calc(0.9s + var(--i) * 0.14s);
}

.hero-title__word:last-child {
    margin-right: 0;
}

.hero-title::after {
    content: "";
    display: block;
    width: 4.2rem;
    height: 3px;
    margin-top: 0.45em;
    border-radius: 99px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    animation: hero-rule-in 2.4s ease-in-out infinite;
}

.hero__lead,
.step-lead,
.report-intro {
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 42rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 26px;
}

.hero__facts {
    list-style: none;
    display: grid;
    gap: 10px;
    max-width: 460px;
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.hero__facts span {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hero__panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px 22px 8px;
}

.service-list {
    list-style: none;
    margin-top: 14px;
}

.service-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.service-list strong {
    display: block;
    color: var(--navy);
    font-size: 0.95rem;
}

.service-list p {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 2px;
}

.service-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--navy);
    color: #f6f0e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.mission-band {
    background:
        radial-gradient(520px 180px at 12% 120%, rgba(228, 196, 138, 0.22), transparent 70%),
        radial-gradient(420px 180px at 92% 0%, rgba(46, 86, 140, 0.45), transparent 65%),
        linear-gradient(180deg, #0c1c33 0%, #10243d 58%, #163156 100%);
    color: #f4efe6;
    position: relative;
    overflow: hidden;
}

.mission-band__aurora {
    position: absolute;
    inset: -50% -20%;
    background: linear-gradient(110deg, transparent 36%, rgba(228, 196, 138, 0.16) 48%, transparent 60%);
    animation: mission-aurora 9s ease-in-out infinite;
    pointer-events: none;
}

.landing-mouse-glow {
    display: none;
}

.mission-band__inner {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0 42px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.mission-band .landing-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e4c48a;
}

.mission-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mission-kicker__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e4c48a;
    box-shadow: 0 0 0 0 rgba(228, 196, 138, 0.55);
    animation: mission-pulse 2.4s ease-out infinite;
}

.mission-statement {
    margin: 0;
    width: 100%;
    max-width: none;
    container-type: inline-size;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.mission-line {
    display: block;
    white-space: nowrap;
    font-size: min(1.42rem, calc(100cqi / 52));
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0.78) 0%, #ffffff 38%, #f6e2b8 50%, #ffffff 62%, rgba(255, 255, 255, 0.78) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation:
        mission-enter 0.8s ease forwards,
        mission-sheen 8s ease-in-out infinite;
    animation-delay: calc(0.15s + var(--i) * 0.28s), calc(1s + var(--i) * 0.4s);
}

.landing-serenity__eyebrow {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.landing-word {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.landing-word.is-visible {
    opacity: 1;
    transform: none;
}

.landing-animated-title__wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.landing-animated-title__row {
    display: flex;
}

.landing-animated-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    animation: letter-in 0.4s ease forwards;
    animation-play-state: paused;
}

.landing-animated-letter.is-playing {
    animation-play-state: running;
}

.landing-animated-title__underline {
    display: block;
    height: 2px;
    width: 0;
    background: var(--gold);
    border-radius: 99px;
    animation: underline-in 0.5s ease forwards;
    animation-play-state: paused;
}

.landing-animated-title__underline.is-playing {
    animation-play-state: running;
}

@keyframes hero-word-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-word-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.08em); }
}

@keyframes hero-rule-in {
    0% { transform: scaleX(0); }
    40%, 100% { transform: scaleX(1); }
}

@keyframes logo-globe-spin {
    0% { transform: scaleX(1); }
    12.5% { transform: scaleX(0.7); }
    25% { transform: scaleX(0.08); }
    37.5% { transform: scaleX(-0.7); }
    50% { transform: scaleX(-1); }
    62.5% { transform: scaleX(-0.7); }
    75% { transform: scaleX(-0.08); }
    87.5% { transform: scaleX(0.7); }
    100% { transform: scaleX(1); }
}

@keyframes logo-ring-spin {
    to { transform: rotate(360deg); }
}

@keyframes mission-enter {
    to { opacity: 1; }
}

@keyframes mission-sheen {
    0%, 20% { background-position: 120% 0; }
    55%, 100% { background-position: -20% 0; }
}

@keyframes mission-aurora {
    0%, 100% { transform: translateX(-10%); }
    50% { transform: translateX(10%); }
}

@keyframes mission-pulse {
    0% { box-shadow: 0 0 0 0 rgba(228, 196, 138, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(228, 196, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 196, 138, 0); }
}

@keyframes letter-in {
    to { opacity: 1; transform: none; }
}

@keyframes underline-in {
    to { width: 100%; }
}

/* ----- Form application ----- */
#app-root:not(.form-app-hidden) {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.appbar {
    border: 1px solid var(--line);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 14px 18px;
}

.appbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appbar__secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.form-container.form-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow);
    overflow: visible;
}

.form-sidebar {
    width: 248px;
    flex: 0 0 248px;
    background: var(--navy);
    color: #f8fafc;
    padding: 22px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-bottom-left-radius: 15px;
}

.sidebar-kicker {
    color: #e4c48a;
    padding: 0 8px;
}

.sidebar-note {
    margin-top: auto;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.78rem;
    line-height: 1.45;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-step {
    border-radius: 10px;
}

.progress-step.completed {
    cursor: pointer;
}

.progress-step-surface {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
}

.progress-step:not(.active):hover .progress-step-surface {
    background: rgba(255, 255, 255, 0.05);
}

.progress-step.active .progress-step-surface {
    background: rgba(255, 255, 255, 0.1);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.progress-step.active .step-number {
    background: #e4c48a;
    border-color: #e4c48a;
    color: var(--navy);
}

.progress-step.completed .step-number {
    background: transparent;
    border-color: #e4c48a;
    color: transparent;
    position: relative;
}

.progress-step.completed .step-number::after {
    content: "✓";
    color: #e4c48a;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.step-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.94);
    line-height: 1.2;
}

.progress-step:not(.active) .step-label {
    font-weight: 500;
    color: rgba(248, 250, 252, 0.78);
}

.step-hint {
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.55);
}

.form-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 22px 28px 24px;
    background: #fff;
    border-bottom-right-radius: 15px;
}

.form-main__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.form-context {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.form-context__note {
    color: var(--muted);
    font-size: 0.82rem;
}

.form-steps-region {
    flex: 1;
    min-height: 0;
}

.form-step {
    display: none;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.form-step-title,
.form-step h2 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 6px;
}

.form-step-title__wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-width: 100%;
}

.form-step-title__row {
    display: block;
    max-width: 100%;
}

.form-step-title__letter {
    display: inline-block;
    white-space: pre;
    opacity: 0;
    transform: translateY(8px);
    animation: letter-in 0.35s ease forwards;
    animation-play-state: paused;
}

.form-step-title__letter.is-playing {
    animation-play-state: running;
}

.form-step-title__underline {
    display: block;
    height: 3px;
    width: 0;
    border-radius: 99px;
    background: var(--gold);
    animation: underline-in 0.45s ease forwards;
    animation-play-state: paused;
}

.form-step-title__underline.is-playing {
    animation-play-state: running;
}

.step-lead {
    margin-bottom: 20px;
}

.field-grid,
.request-type-fields,
.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
}

.request-type-fields .form-group:has(textarea),
.request-type-fields .form-group:has(input[type="file"]),
.request-type-fields .form-group:has(small),
.report-grid .form-group:first-child {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 16px;
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.form-group label:has(+ input[required])::after,
.form-group label:has(+ textarea[required])::after,
.form-group label:has(+ select[required])::after {
    content: " *";
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea,
.workspace-trigger {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    padding: 0.78rem 0.9rem;
    font-size: 0.98rem;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.workspace-trigger.open,
.workspace-trigger:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(154, 116, 57, 0.16);
}

.form-group select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}

.form-group input[type="file"] {
    padding: 0.65rem;
    background: #f8fafc;
    border-style: dashed;
    cursor: pointer;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.8rem;
}

.request-type-fields {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 18px 6px;
}

.visually-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.workspace-dropdown {
    position: relative;
    max-width: 640px;
}

.workspace-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.workspace-trigger-left,
.workspace-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.workspace-avatar,
.workspace-option-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.workspace-label,
.workspace-option-label {
    font-weight: 600;
    color: var(--ink);
}

.workspace-chevron {
    color: var(--muted);
    font-size: 0.85rem;
}

.workspace-menu {
    display: none;
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    max-height: none;
    overflow-y: auto;
}

.workspace-menu--up {
    top: auto;
    bottom: calc(100% + 6px);
}

.workspace-menu.open {
    display: block;
}

.workspace-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.workspace-option:hover {
    background: #f8fafc;
}

.workspace-option-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.workspace-option-desc {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.workspace-option-check {
    color: transparent;
    font-weight: 700;
}

.workspace-option.selected .workspace-option-check {
    color: var(--navy);
}

/* Congregation and request colors — visible on every row and on the closed field */
.workspace-option.choice-red-deer,
.workspace-option.choice-sylvan-lake,
.workspace-option.choice-lacombe,
.workspace-option.choice-ponoka,
.workspace-option.choice-wetaskiwin,
.workspace-option.choice-calgary,
.workspace-option.choice-edmonton,
.workspace-option.choice-petty-cash-form,
.workspace-option.choice-liquidation-form,
.workspace-option.choice-expense-reimbursement-form,
.workspace-option.choice-budget-request-form,
.workspace-option.choice-generate-report {
    box-shadow: inset 3px 0 0 var(--choice, #cbd5e1);
}

.workspace-option.choice-red-deer { --choice: #b91c1c; }
.workspace-option.choice-sylvan-lake { --choice: #0ea5e9; }
.workspace-option.choice-lacombe { --choice: #10b981; }
.workspace-option.choice-ponoka { --choice: #ca8a04; }
.workspace-option.choice-wetaskiwin { --choice: #8b5cf6; }
.workspace-option.choice-calgary { --choice: #c2410c; }
.workspace-option.choice-edmonton { --choice: #2563eb; }
.workspace-option.choice-petty-cash-form { --choice: #16a34a; }
.workspace-option.choice-liquidation-form { --choice: #0284c7; }
.workspace-option.choice-expense-reimbursement-form { --choice: #ea580c; }
.workspace-option.choice-budget-request-form { --choice: #7c3aed; }
.workspace-option.choice-generate-report { --choice: #4f46e5; }

#congregationMenu .workspace-option.choice-red-deer .workspace-option-avatar,
#congregationTrigger.choice-red-deer .workspace-avatar { background: #fecaca; color: #991b1b; }
#congregationMenu .workspace-option.choice-sylvan-lake .workspace-option-avatar,
#congregationTrigger.choice-sylvan-lake .workspace-avatar { background: #bae6fd; color: #0369a1; }
#congregationMenu .workspace-option.choice-lacombe .workspace-option-avatar,
#congregationTrigger.choice-lacombe .workspace-avatar { background: #a7f3d0; color: #047857; }
#congregationMenu .workspace-option.choice-ponoka .workspace-option-avatar,
#congregationTrigger.choice-ponoka .workspace-avatar { background: #fef08a; color: #a16207; }
#congregationMenu .workspace-option.choice-wetaskiwin .workspace-option-avatar,
#congregationTrigger.choice-wetaskiwin .workspace-avatar { background: #ddd6fe; color: #5b21b6; }
#congregationMenu .workspace-option.choice-calgary .workspace-option-avatar,
#congregationTrigger.choice-calgary .workspace-avatar { background: #fed7aa; color: #9a3412; }
#congregationMenu .workspace-option.choice-edmonton .workspace-option-avatar,
#congregationTrigger.choice-edmonton .workspace-avatar { background: #bfdbfe; color: #1d4ed8; }

#requestTypeMenu .workspace-option.choice-petty-cash-form .workspace-option-avatar,
#requestTypeTrigger.choice-petty-cash-form .workspace-avatar { background: #bbf7d0; color: #166534; }
#requestTypeMenu .workspace-option.choice-liquidation-form .workspace-option-avatar,
#requestTypeTrigger.choice-liquidation-form .workspace-avatar { background: #bae6fd; color: #075985; }
#requestTypeMenu .workspace-option.choice-expense-reimbursement-form .workspace-option-avatar,
#requestTypeTrigger.choice-expense-reimbursement-form .workspace-avatar { background: #fed7aa; color: #9a3412; }
#requestTypeMenu .workspace-option.choice-budget-request-form .workspace-option-avatar,
#requestTypeTrigger.choice-budget-request-form .workspace-avatar { background: #ddd6fe; color: #5b21b6; }
#requestTypeMenu .workspace-option.choice-generate-report .workspace-option-avatar,
#requestTypeTrigger.choice-generate-report .workspace-avatar { background: #c7d2fe; color: #3730a3; }

.workspace-option.selected.choice-red-deer,
.workspace-option.selected.choice-red-deer:hover { background: #fef2f2; }
.workspace-option.selected.choice-sylvan-lake,
.workspace-option.selected.choice-sylvan-lake:hover { background: #ecfeff; }
.workspace-option.selected.choice-lacombe,
.workspace-option.selected.choice-lacombe:hover { background: #ecfdf5; }
.workspace-option.selected.choice-ponoka,
.workspace-option.selected.choice-ponoka:hover { background: #fefce8; }
.workspace-option.selected.choice-wetaskiwin,
.workspace-option.selected.choice-wetaskiwin:hover { background: #f5f3ff; }
.workspace-option.selected.choice-calgary,
.workspace-option.selected.choice-calgary:hover { background: #fff7ed; }
.workspace-option.selected.choice-edmonton,
.workspace-option.selected.choice-edmonton:hover { background: #eff6ff; }
.workspace-option.selected.choice-petty-cash-form,
.workspace-option.selected.choice-petty-cash-form:hover { background: #f0fdf4; }
.workspace-option.selected.choice-liquidation-form,
.workspace-option.selected.choice-liquidation-form:hover { background: #f0f9ff; }
.workspace-option.selected.choice-expense-reimbursement-form,
.workspace-option.selected.choice-expense-reimbursement-form:hover { background: #fff7ed; }
.workspace-option.selected.choice-budget-request-form,
.workspace-option.selected.choice-budget-request-form:hover { background: #f5f3ff; }
.workspace-option.selected.choice-generate-report,
.workspace-option.selected.choice-generate-report:hover { background: #eef2ff; }

#congregationTrigger.choice-red-deer { border-color: #b91c1c; background: #fef2f2; }
#congregationTrigger.choice-sylvan-lake { border-color: #0ea5e9; background: #ecfeff; }
#congregationTrigger.choice-lacombe { border-color: #10b981; background: #ecfdf5; }
#congregationTrigger.choice-ponoka { border-color: #ca8a04; background: #fefce8; }
#congregationTrigger.choice-wetaskiwin { border-color: #8b5cf6; background: #f5f3ff; }
#congregationTrigger.choice-calgary { border-color: #c2410c; background: #fff7ed; }
#congregationTrigger.choice-edmonton { border-color: #2563eb; background: #eff6ff; }

#requestTypeTrigger.choice-petty-cash-form { border-color: #16a34a; background: #f0fdf4; }
#requestTypeTrigger.choice-liquidation-form { border-color: #0284c7; background: #f0f9ff; }
#requestTypeTrigger.choice-expense-reimbursement-form { border-color: #ea580c; background: #fff7ed; }
#requestTypeTrigger.choice-budget-request-form { border-color: #7c3aed; background: #f5f3ff; }
#requestTypeTrigger.choice-generate-report { border-color: #4f46e5; background: #eef2ff; }

.report-generator {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 4px 0 0;
}

.report-grid {
    margin-bottom: 8px;
}

.report-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
}

.report-status.success { background: #ecfdf5; color: #065f46; }
.report-status.error { background: #fef2f2; color: #991b1b; }
.report-status.info { background: #eff6ff; color: #1d4ed8; }

.form-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 8px;
    padding: 14px 0 6px;
    background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
    border-top: 1px solid var(--line);
}

.form-navigation__primary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.72rem 1.05rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary,
.form-main .btn-primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.btn-primary:hover,
.form-main .btn-primary:hover {
    background: var(--navy-2);
    transform: none;
    filter: none;
    box-shadow: none;
}

.btn-secondary,
.form-main .btn-secondary {
    background: #fff;
    color: var(--navy);
    border-color: var(--line-strong);
}

.btn-secondary:hover,
.form-main .btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--navy);
    color: var(--navy);
    transform: none;
    filter: none;
}

.btn-success,
.form-main .btn-success {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.btn-success:hover,
.form-main .btn-success:hover {
    background: #0b5853;
    transform: none;
    filter: none;
    box-shadow: none;
}

.btn:focus-visible,
.workspace-trigger:focus-visible,
.workspace-option:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.report-action-btn {
    margin-top: 4px;
}

/* ----- Summary, alerts, modal ----- */
.summary-table-container {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: auto;
    max-height: min(62vh, 640px);
}

.summary-table-container h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    padding: 16px 18px 0;
    color: var(--navy);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.95rem;
}

.summary-table th,
.summary-table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.summary-table th {
    width: 34%;
    background: #f8fafc;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.summary-table tr:last-child td,
.summary-table tr:last-child th {
    border-bottom: none;
}

.choice-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-weight: 650;
    font-size: 0.82rem;
    border: 1px solid transparent;
    color: var(--ink);
}

.congregation-badge.choice-red-deer { background: #fef2f2; border-color: #fecaca; }
.congregation-badge.choice-sylvan-lake { background: #ecfeff; border-color: #a5f3fc; }
.congregation-badge.choice-lacombe { background: #ecfdf5; border-color: #a7f3d0; }
.congregation-badge.choice-ponoka { background: #fefce8; border-color: #fde68a; }
.congregation-badge.choice-wetaskiwin { background: #f5f3ff; border-color: #ddd6fe; }
.congregation-badge.choice-calgary { background: #fff7ed; border-color: #fed7aa; }
.congregation-badge.choice-edmonton { background: #eff6ff; border-color: #bfdbfe; }
.request-type-badge.choice-petty-cash-form { background: #f0fdf4; border-color: #bbf7d0; }
.request-type-badge.choice-liquidation-form { background: #f0f9ff; border-color: #bae6fd; }
.request-type-badge.choice-expense-reimbursement-form { background: #fff7ed; border-color: #fed7aa; }
.request-type-badge.choice-budget-request-form { background: #f5f3ff; border-color: #ddd6fe; }
.request-type-badge.choice-generate-report { background: #eef2ff; border-color: #c7d2fe; }

.alert-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 380px);
}

.ui-alert {
    border: 1px solid;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    background: #fff;
}

.ui-alert strong { text-transform: capitalize; }
.ui-alert.alert-success { background: #ecfdf5; color: #166534; border-color: #86efac; }
.ui-alert.alert-error { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.ui-alert.alert-warning { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.ui-alert.alert-info { background: #eff6ff; color: #1e40af; border-color: #93c5fd; }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(16, 36, 61, 0.46);
    padding: 24px 16px;
    overflow: auto;
}

.modal-content {
    width: min(640px, 100%);
    margin: 6vh auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 18px 20px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 600;
}

.modal-header h3 i {
    color: var(--teal);
    margin-right: 6px;
}

.close-btn {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
}

.loading {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----- Footer ----- */
.request-footer {
    position: relative;
    margin: 16px auto 18px;
    width: min(1180px, calc(100% - 32px));
    background: var(--navy);
    color: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}

body.landing-mode .request-footer {
    width: 100%;
    margin: 0;
    border-radius: 0;
    background: #0c1c31;
}

body.landing-mode .request-footer__main {
    display: none;
}

body.landing-mode .request-footer__bar {
    border-top: none;
}

.request-footer__glow {
    display: none;
}

.request-footer__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 12px;
}

.request-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.request-footer__logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.request-footer__title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1rem;
}

.request-footer__text {
    margin: 0;
    max-width: 46rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.78);
}

.request-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.request-footer__bar-inner {
    padding: 10px 20px 12px;
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.7);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.request-footer__bar-inner a {
    color: #e4c48a;
    text-decoration: none;
}

.request-footer__bar-inner a:hover {
    text-decoration: underline;
}

.request-footer__sep {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .landing-animated-letter,
    .form-step-title__letter,
    .landing-word,
    .mission-band__aurora,
    .mission-kicker__dot,
    .mission-line {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .mission-line {
        color: #fff !important;
        background: none !important;
    }

    .landing-animated-title__underline,
    .form-step-title__underline {
        animation: none !important;
        width: 100% !important;
    }
}

@media (max-width: 900px) {
    .hero,
    .mission-band__inner,
    .field-grid,
    .request-type-fields,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .request-type-fields .form-group,
    .report-grid .form-group {
        grid-column: auto;
    }

    .mission-band__inner {
        gap: 10px;
    }

    .landing-serenity__eyebrow {
        white-space: normal;
        flex-wrap: wrap;
    }

    .hero h1 {
        max-width: none;
    }

    .form-container.form-layout {
        flex-direction: column;
        min-height: 0;
    }

    .form-sidebar {
        width: 100%;
        flex-basis: auto;
        padding-bottom: 12px;
    }

    .sidebar-note {
        display: none;
    }

    .progress-bar {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
    }

    .progress-step {
        flex: 0 0 auto;
    }

    .step-hint {
        display: none;
    }

    .form-main {
        padding: 18px 16px 20px;
    }

    .form-context {
        flex-direction: column;
        gap: 4px;
    }

    .request-footer__main,
    .site-header,
    .appbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .appbar__actions,
    .form-navigation,
    .form-navigation__primary,
    .modal-footer {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .form-navigation__primary {
        margin-left: 0;
    }

    .btn,
    .modal-footer .btn {
        width: 100%;
    }

    .landing-inner {
        width: min(1120px, calc(100% - 28px));
        padding-top: 28px;
        align-items: flex-start;
    }
}
