:root {
    --brand-green: #00924c;
    --brand-green-dark: #005835;
    --brand-green-light: #94c13d;
    --brand-beige: #f9f7f6;
    --brand-beige-dark: #e0dbd9;
    --brand-blue-soft: #a7bdec;
    --text-strong: #1f2933;
    --text-body: #52606d;
    --surface: #ffffff;
    --border: #d9d1ce;
    --shadow-soft: 0 18px 40px rgba(34, 34, 34, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top right, rgba(148, 193, 61, 0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--brand-beige) 18rem, var(--brand-beige) 100%);
    color: var(--text-strong);
    font-family: "Roboto Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

.page {
    min-height: 100vh;
}

.page-main {
    padding: 2rem 0 4rem;
}

.shell {
    width: min(100% - 2rem, 78rem);
    margin: 0 auto;
}

.shell--wide {
    width: min(100% - 2rem, 86rem);
}

.content {
    display: grid;
    gap: 1.5rem;
}

.site-ribbon {
    background: #121212;
    color: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-ribbon__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.site-ribbon__divider {
    width: 1px;
    height: 0.9rem;
    background: rgba(255, 255, 255, 0.35);
}

.site-header {
    z-index: 20;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.site-brand__logo {
    display: block;
    width: auto;
    height: 2.55rem;
}

.site-ribbon__program {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
}

.landing-hero,
.program-hero,
.form-shell,
.status-card,
.info-card,
.context-card,
.hero-panel {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.landing-hero {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.8fr);
    background: linear-gradient(140deg, #ffffff 0%, #ffffff 55%, rgba(167, 189, 236, 0.2) 100%);
    border: 1px solid rgba(224, 219, 217, 0.9);
    padding: 2rem;
}

.landing-hero__content {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.landing-hero h1,
.program-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    max-width: 16ch;
}

.landing-hero__copy,
.page-lead,
.info-card p,
.context-card p,
.hero-panel p,
.site-footer p {
    color: var(--text-body);
    font-size: 1.02rem;
    line-height: 1.65;
}

.landing-hero__actions,
.form-actions {
    margin-top: 0.5rem;
}

.landing-hero__aside {
    display: grid;
    align-content: stretch;
}

.hero-panel {
    background: linear-gradient(180deg, var(--brand-green-dark) 0%, #0d6a46 100%);
    color: white;
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.hero-panel__label {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero-panel h2 {
    margin: 0;
    font-size: 1.55rem;
}

.hero-panel p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.forms-catalog {
    display: grid;
    gap: 1rem;
}

.form-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid rgba(224, 219, 217, 0.95);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.form-card__content {
    display: grid;
    gap: 0.6rem;
}

.form-card__content h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.form-card__content p {
    margin: 0;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 46rem;
}

.form-card__meta {
    display: grid;
    gap: 0.85rem;
    justify-items: end;
}

.form-card__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 146, 76, 0.1);
    color: var(--brand-green-dark);
    border: 1px solid rgba(0, 146, 76, 0.2);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.member-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.member-entry-grid--two {
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.85fr);
}

.member-option-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid rgba(224, 219, 217, 0.95);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.member-option-card--soft {
    background: linear-gradient(180deg, rgba(167, 189, 236, 0.16) 0%, #ffffff 100%);
}

.member-option-card h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.08;
}

.member-option-card p {
    margin: 0;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
}

.member-option-card--feature {
    gap: 1.15rem;
}

.member-option-list {
    display: grid;
    gap: 1rem;
}

.member-option-list__item {
    display: grid;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(224, 219, 217, 0.95);
    border-radius: 1.1rem;
    background: #fbfbfa;
}

.member-option-list__content {
    display: grid;
    gap: 0.45rem;
}

.member-option-list__content h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.15;
}

.info-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid rgba(224, 219, 217, 0.95);
}

.info-card--accent {
    background: linear-gradient(180deg, rgba(167, 189, 236, 0.18) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.program-hero {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    background:
        linear-gradient(135deg, rgba(0, 88, 53, 0.94) 0%, rgba(0, 146, 76, 0.88) 100%);
    color: white;
}

.program-hero--compact {
    padding: 2rem 2.25rem;
}

.program-hero--formations {
    align-items: stretch;
}

.program-hero__content {
    max-width: 52rem;
    flex: 1 1 0;
}

.program-hero .eyebrow,
.context-card .eyebrow,
.info-card .eyebrow,
.form-header .eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.program-hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.program-hero .page-lead {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.hero-inline-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.hero-inline-link:hover {
    color: rgba(255, 255, 255, 0.92);
}

.program-hero--formations h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 0.97;
    letter-spacing: -0.045em;
}

.program-hero__visual {
    position: relative;
    flex: 0 0 min(32rem, 34vw);
    min-height: 24rem;
    border-radius: 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.program-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.program-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.program-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.72fr);
    align-items: start;
}

.program-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.program-info-card {
    padding: 1.6rem 1.75rem;
    background: white;
    border: 1px solid rgba(224, 219, 217, 0.95);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.program-info-card h2,
.program-info-card h3 {
    margin: 0 0 0.65rem;
}

.program-info-card h2 {
    font-size: 1.45rem;
    line-height: 1.15;
}

.program-info-card h3 {
    margin-top: 1.15rem;
    font-size: 1.08rem;
    line-height: 1.2;
}

.program-info-card p {
    margin: 0;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
}

.form-shell {
    background: white;
    border: 1px solid rgba(224, 219, 217, 0.95);
    padding: 1.75rem;
}

.form-shell__intro {
    margin-bottom: 1.5rem;
}

.form-shell__intro h2,
.info-card h2,
.context-card h2,
.status-card h2 {
    margin: 0 0 0.55rem;
    font-size: 1.4rem;
    line-height: 1.15;
}

.form-shell__intro p,
.field-help {
    color: var(--text-body);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.94rem;
    font-weight: 700;
}

.form-control {
    min-height: 3.25rem;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #cfc7c4;
    background: #fffdfd;
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--text-strong);
}

.form-control--multiline {
    min-height: 8rem;
    resize: vertical;
}

input[type="date"].form-control {
    padding-right: 2.75rem;
}

.form-control:focus,
.form-check-input:focus {
    outline: none;
    border-color: rgba(0, 146, 76, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(0, 146, 76, 0.14);
}

.consent-panel {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: #f5faf6;
    border: 1px solid rgba(148, 193, 61, 0.22);
}

.form-check {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.form-check-input {
    margin-top: 0.15rem;
}

.status-card {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, #f4fbf4 0%, #ffffff 100%);
    border: 1px solid rgba(148, 193, 61, 0.34);
}

.status-card p {
    margin: 0;
}

.context-card {
    padding: 1.35rem;
    background: white;
    border: 1px solid rgba(224, 219, 217, 0.95);
    position: sticky;
    top: 6rem;
}

.context-card--soft {
    background: linear-gradient(180deg, rgba(167, 189, 236, 0.16) 0%, #ffffff 100%);
}

.context-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-body);
    line-height: 1.7;
}

.newsletter-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.form-error-banner {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #fff3f1;
    border: 1px solid rgba(179, 33, 33, 0.18);
    color: #8a1f1f;
}

.eyebrow {
    color: var(--brand-green);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.btn-primary {
    min-height: 3.2rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-green) 0%, #007c41 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(0, 146, 76, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #00a055 0%, #00743e 100%);
}

.btn-secondary {
    min-height: 3.2rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    background: #eef6ef;
    color: var(--brand-green-dark);
    border: 1px solid rgba(0, 146, 76, 0.18);
    font-weight: 700;
}

.btn-secondary:hover {
    background: #e4f0e5;
}

.field-validation-error,
.validation-message {
    color: #b42318;
    font-size: 0.92rem;
}

.validation-summary-errors {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #fff4f4;
    border: 1px solid #f1c4c4;
    color: #8a1c1c;
}

.site-footer {
    margin-top: 2rem;
    background: #232323;
    color: #f6f3ef;
}

.site-footer__inner {
    display: grid;
    gap: 1.75rem;
    padding: 2rem 0 1.35rem;
}

.site-footer__brand {
    display: inline-flex;
    width: fit-content;
}

.site-footer__logo {
    display: block;
    width: auto;
    height: 3rem;
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer__column {
    display: grid;
    gap: 0.9rem;
}

.site-footer__column h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-footer__links {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a,
.site-footer__social a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__social a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer__social {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: center;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.site-footer__social svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.site-footer__legal {
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUu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4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.newsletter-status-card {
    display: grid;
    gap: 0.85rem;
}

.newsletter-status-card h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.newsletter-status-card p {
    margin: 0;
}

@media (min-width: 768px) {
    .form-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .landing-hero,
    .member-entry-grid,
    .program-layout {
        grid-template-columns: 1fr;
    }

    .program-hero {
        flex-direction: column;
    }

    .program-hero--formations h1 {
        max-width: 16ch;
    }

    .program-hero__visual {
        flex-basis: auto;
        min-height: 18rem;
    }

    .context-card {
        position: static;
    }
}

@media (min-width: 961px) {
    .member-option-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .site-footer__inner {
        padding-top: 1.6rem;
    }

    .site-ribbon__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-brand__logo {
        height: 2.5rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-footer__logo {
        height: 2.6rem;
    }

    .landing-hero,
    .program-hero,
    .form-shell,
    .status-card,
    .info-card,
    .context-card {
        padding: 1.25rem;
        border-radius: 1.2rem;
    }

    .info-strip {
        grid-template-columns: 1fr;
    }

    .member-entry-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        flex-direction: column;
        align-items: stretch;
    }

    .form-card__meta {
        justify-items: start;
    }
}

