:root {
    --fm-ink: #20231f;
    --fm-copy: #62675f;
    --fm-accent: #cb5b3b;
    --fm-accent-hover: #bb5133;
    --fm-canvas: #f8f5f4;
    --fm-cream: #fbf8f3;
    --fm-rose: #f2ece4;
    --fm-sage: #e3e8df;
    --fm-green: #697860;
    --fm-green-dark: #4f5e48;
    --fm-border: #e1d9ce;
    --fm-border-green: #cad3c5;
    --fm-footer: #515c6e;
    --fm-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.fm-page {
    margin: 0;
    background: var(--fm-canvas);
    color: var(--fm-copy);
    font-family: "Roboto", Verdana, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.fm-page h1,
.fm-page h2,
.fm-page h3,
.fm-page p {
    margin-top: 0;
}

.fm-page h1,
.fm-page h2,
.fm-page h3 {
    color: var(--fm-ink);
}

.fm-page h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 4.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.fm-page h2 {
    margin-bottom: 20px;
    font-size: clamp(1.75rem, 2.7vw, 2.55rem);
    font-weight: 700;
    line-height: 1.1;
}

.fm-page h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.fm-page a {
    color: inherit;
    text-decoration: none;
}

.fm-shell {
    width: min(100% - 48px, 1200px);
    margin-inline: auto;
}

.fm-eyebrow {
    margin-bottom: 10px;
    color: var(--fm-green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.fm-header {
    position: relative;
    z-index: 1000;
    background: var(--fm-canvas);
}

.fm-header-inner {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(100% - 48px, 1600px);
}

.fm-logo {
    display: inline-flex;
    align-items: center;
}

.fm-logo img {
    display: block;
    width: auto;
    height: 80px;
}

.fm-header-actions {
    display: flex;
    align-items: center;
}

.fm-navigation-mobile {
    display: none;
}

.fm-navigation > summary {
    display: none;
}

.fm-navigation > nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.fm-navigation a,
.fm-navigation-submenu > summary {
    padding: 14px 20px;
    color: var(--fm-footer);
    cursor: pointer;
    font-size: clamp(0.875rem, 0.3125vw + 0.625rem, 1rem);
    list-style: none;
    transition: color 160ms ease;
}

.fm-navigation a:hover,
.fm-navigation-submenu > summary:hover {
    color: var(--fm-accent);
}

.fm-navigation-submenu {
    position: relative;
}

.fm-navigation-submenu > summary::-webkit-details-marker,
.fm-navigation > summary::-webkit-details-marker {
    display: none;
}

.fm-navigation-submenu > summary::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-top: 5px solid currentcolor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    vertical-align: middle;
    content: "";
}

.fm-navigation-submenu > div {
    position: absolute;
    top: 100%;
    left: 0;
    display: grid;
    min-width: 210px;
    padding: 8px 0;
    background: var(--fm-canvas);
    box-shadow: 0 8px 18px rgb(32 35 31 / 9%);
}

.fm-navigation-submenu > div::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 1px;
    content: "";
}

.fm-navigation-submenu > div a {
    padding: 0.6rem 21px;
    font-weight: 600;
    text-transform: capitalize;
}

.fm-contact-button {
    margin-left: 15px;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--fm-accent);
    color: var(--fm-white);
}

.fm-contact-button:hover {
    background: var(--fm-accent-hover);
    color: var(--fm-white);
}

@media (max-width: 1024px) {
    .fm-header-inner {
        min-height: 80px;
    }

    .fm-logo {
        width: 45%;
    }

    .fm-logo img {
        width: auto;
        max-width: 100%;
        height: 80px;
    }

    .fm-header-actions {
        width: 55%;
        justify-content: flex-end;
        gap: 30px;
    }

    .fm-navigation-desktop {
        display: none;
    }

    .fm-navigation-mobile {
        display: block;
    }

    .fm-navigation > summary {
        display: grid;
        width: 32px;
        height: 32px;
        padding: 5px 2px;
        cursor: pointer;
        list-style: none;
    }

    .fm-navigation > summary span {
        display: block;
        width: 28px;
        height: 2px;
        align-self: center;
        background: var(--fm-footer);
    }

    .fm-navigation > nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 14px 0;
        align-items: stretch;
        flex-direction: column;
        background: var(--fm-canvas);
        box-shadow: 0 10px 20px rgb(32 35 31 / 9%);
    }

    .fm-navigation[open] > nav {
        display: flex;
    }

    .fm-navigation > nav > a,
    .fm-navigation-submenu > summary {
        padding: 0.6rem max(5vw, 21px);
        font-size: 1rem;
    }

    .fm-navigation-submenu > div {
        position: static;
        min-width: 0;
        padding: 3px 0 8px;
        box-shadow: none;
    }

    .fm-navigation-submenu > div a {
        padding: 0.6rem max(8vw, 34px);
        font-size: 1rem;
    }

    .fm-contact-button {
        margin-left: 0;
        padding: 5px 16px;
    }
}

@media (max-width: 767px) {
    .fm-navigation > summary {
        width: 24px;
        height: 24px;
        padding: 3px 0;
    }

    .fm-navigation > summary span {
        width: 24px;
    }
}

.fm-hero {
    overflow: hidden;
    padding-block: clamp(42px, 5vw, 66px);
    border-bottom: 1px solid var(--fm-border);
    background: var(--fm-cream);
}

.fm-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    align-items: center;
    gap: clamp(38px, 6vw, 72px);
}

.fm-hero-copy {
    max-width: 610px;
}

.fm-hero-copy > p:not(.fm-eyebrow) {
    max-width: 650px;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.fm-hero-values {
    display: flex;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.fm-hero-values span {
    display: inline-flex;
    min-height: 39px;
    padding: 8px 13px;
    border: 1px solid var(--fm-border-green);
    border-radius: 5px;
    align-items: center;
    gap: 4px;
    background: var(--fm-white);
    color: var(--fm-green-dark);
    font-size: 0.9rem;
    line-height: 1.35;
}

.fm-hero-image {
    display: block;
    width: 100%;
    height: clamp(330px, 35vw, 440px);
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 14px 36px rgb(44 40 34 / 7%);
}

.fm-button {
    display: inline-flex;
    min-height: 48px;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: var(--fm-accent);
    color: var(--fm-white) !important;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fm-button:hover {
    background: var(--fm-accent-hover);
    transform: translateY(-1px);
}

.fm-button:focus-visible {
    box-shadow: 0 0 0 4px rgb(203 91 59 / 25%);
    outline: 0;
}

.fm-button-secondary {
    margin-top: 28px;
    border: 1px solid var(--fm-green);
    border-radius: 5px;
    background: var(--fm-green);
}

.fm-button-secondary:hover {
    border-color: var(--fm-green-dark);
    background: var(--fm-green-dark);
}

.fm-registration {
    padding-block: 72px;
}

.fm-registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(42px, 6vw, 84px);
    align-items: start;
}

.fm-explanation {
    position: sticky;
    top: 28px;
    padding-top: 16px;
}

.fm-variant-info {
    display: grid;
    gap: 14px;
}

.fm-variant-info article {
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--fm-border);
    background: var(--fm-cream);
}

.fm-variant-info article.is-preferred {
    border-color: var(--fm-border-green);
    background: var(--fm-sage);
}

.fm-variant-info article p:last-child,
.fm-variant-info article ul:last-child {
    margin-bottom: 0;
}

.fm-variant-info ul {
    padding-left: 20px;
}

.fm-variant-label {
    margin-bottom: 4px;
    color: var(--fm-green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.fm-variant-value {
    display: block;
    margin: -2px 0 12px;
    color: var(--fm-green-dark);
    font-size: 1.1rem;
}

.fm-product-image {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 225px;
    margin: 24px auto 0;
    filter: drop-shadow(0 14px 18px rgb(47 40 32 / 14%));
}

.fm-form-panel {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 8px;
    background: var(--fm-white);
    /* box-shadow: 0 20px 60px rgb(17 17 17 / 8%); */
    border: 1px solid var(--fm-border);
}

.fm-form-heading {
    margin-bottom: 28px;
}

.fm-form-heading h2 {
    margin-bottom: 8px;
}

.fm-form-heading > p:last-child {
    margin-bottom: 0;
    color: rgb(65 65 65 / 80%);
    font-size: 0.88rem;
}

.fm-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fm-field {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.fm-field label,
.fm-field legend {
    display: block;
    margin-bottom: 7px;
    color: var(--fm-ink);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
}

.fm-field input[type="text"],
.fm-field input[type="email"],
.fm-field input[type="tel"],
.fm-field input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--fm-border);
    border-radius: 6px;
    background: var(--fm-white);
    color: var(--fm-copy);
    font: inherit;
    line-height: 1.35;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fm-field input[type="file"] {
    padding: 7px 9px;
    font-size: 0.84rem;
}

.fm-field input:focus {
    border-color: var(--fm-accent);
    box-shadow: 0 0 0 3px rgb(203 91 59 / 16%);
    outline: 0;
}

.fm-field small {
    display: block;
    margin-top: 5px;
    color: rgb(65 65 65 / 72%);
    font-size: 0.78rem;
}

.fm-variant-choice > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fm-variant-choice label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.fm-variant-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fm-variant-choice span {
    display: flex;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid var(--fm-border);
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.fm-variant-choice strong {
    color: var(--fm-green-dark);
}

.fm-variant-choice b {
    color: var(--fm-copy);
    font-size: 0.84rem;
    font-weight: 500;
}

.fm-variant-choice input:checked + span {
    border-color: var(--fm-green);
    background: var(--fm-sage);
    box-shadow: inset 0 0 0 1px var(--fm-green);
}

.fm-variant-choice input:focus-visible + span {
    box-shadow: 0 0 0 3px rgb(203 91 59 / 20%);
}

.fm-difm-evidence {
    margin: 8px 0 24px;
    padding: 22px;
    border-radius: 8px;
    background: var(--fm-cream);
}

.fm-difm-evidence.is-hidden {
    display: none;
}

.fm-difm-evidence h3 {
    margin-bottom: 5px;
}

.fm-difm-evidence > p {
    margin-bottom: 18px;
    font-size: 0.86rem;
}

.fm-difm-evidence .fm-field:last-child {
    margin-bottom: 0;
}

.fm-submit {
    width: 100%;
}

.fm-errors {
    margin-bottom: 24px;
    padding: 15px 17px;
    border-left: 4px solid var(--fm-accent);
    border-radius: 6px;
    background: #fbf1ee;
    color: #8f3325;
    font-size: 0.9rem;
}

.fm-errors ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.fm-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fm-review {
    padding-block: 58px;
    background: var(--fm-rose);
    text-align: center;
}

.fm-review-inner {
    max-width: 760px;
}

.fm-review-inner h2 {
    margin-bottom: 12px;
}

.fm-review-inner > p:last-child {
    margin-bottom: 0;
}

.fm-footer {
    position: relative;
    background: var(--fm-footer);
    color: var(--fm-cream);
}

.fm-footer-wave {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 44px;
    overflow: hidden;
}

.fm-footer-wave svg {
    display: block;
    width: 250%;
    height: 44px;
    fill: var(--fm-canvas);
}

.fm-footer-main {
    padding-block: 70px 18px;
}

.fm-footer-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 45px;
}

.fm-footer-logo {
    display: block;
    width: 20%;
    min-width: 150px;
    height: auto;
    margin-bottom: 18px;
}

.fm-footer p,
.fm-footer address {
    margin-bottom: 14px;
    font-style: normal;
}

.fm-footer nav {
    display: grid;
    gap: 7px;
}

.fm-footer-contact {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    column-gap: 14px;
}

.fm-footer a {
    color: var(--fm-cream);
}

.fm-footer a:hover {
    color: var(--fm-white);
}

.fm-footer-bottom {
    background: var(--fm-footer);
}

.fm-footer-bottom > div {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: clamp(0.875rem, 0.3125vw + 0.625rem, 1rem);
}

.fm-footer-bottom nav {
    display: flex;
    flex-direction: row;
    gap: 7px;
}

.fm-success-main {
    display: grid;
    min-height: 540px;
    padding-block: 70px;
    place-items: center;
    background: var(--fm-sage);
}

.fm-success {
    max-width: 760px;
    padding: clamp(34px, 6vw, 64px);
    border-radius: 8px;
    background: var(--fm-white);
    box-shadow: 0 20px 60px rgb(17 17 17 / 8%);
    text-align: center;
}

.fm-success h1 {
    font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.fm-success > p:not(.fm-eyebrow) {
    margin-bottom: 28px;
}

@media (hover: hover) {
    .fm-navigation-submenu:not([open]) > div {
        display: none;
    }

    .fm-navigation-submenu:hover > div,
    .fm-navigation-submenu:focus-within > div {
        display: grid;
    }
}

@media (max-width: 900px) {
    .fm-hero-inner {
        min-height: 350px;
        grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
    }

    .fm-registration-grid {
        grid-template-columns: 1fr;
    }

    .fm-explanation {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .fm-explanation > .fm-eyebrow,
    .fm-explanation > h2 {
        grid-column: 1 / -1;
    }

    .fm-explanation > h2 {
        margin-top: -22px;
    }

    .fm-steps {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .fm-shell {
        width: min(100% - 32px, 1200px);
    }

    .fm-page h1 {
        font-size: 2.35rem;
    }

    .fm-hero-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fm-hero-copy {
        padding-block: 42px 18px;
    }

    .fm-hero-image {
        width: 100%;
        height: clamp(245px, 75vw, 340px);
        margin-bottom: 42px;
    }

    .fm-registration {
        padding-block: 48px;
    }

    .fm-explanation,
    .fm-fields-grid {
        grid-template-columns: 1fr;
    }

    .fm-explanation {
        gap: 18px;
    }

    .fm-form-panel {
        padding: 25px 20px;
    }

    .fm-variant-choice > div {
        grid-template-columns: 1fr;
    }

    .fm-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fm-footer-main {
        padding-top: 90px;
    }

    .fm-footer-logo {
        width: 50%;
    }

    .fm-footer-bottom > div {
        padding-block: 18px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .fm-footer-bottom nav {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fm-page *,
    .fm-page *::before,
    .fm-page *::after {
        transition-duration: 0.01ms !important;
    }
}
