:root {
    color-scheme: light;
    --bg: #f5f3ef;
    --ink: #161616;
    --muted: #5f6671;
    --panel: #ffffff;
    --line: #ded9d0;
    --accent: #006b5f;
    --accent-dark: #004940;
    --error: #b42318;
    --success: #0f766e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

.page {
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero__media,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}

.hero__overlay {
    background:
        linear-gradient(90deg, rgba(245, 243, 239, .86) 0%, rgba(245, 243, 239, .58) 42%, rgba(245, 243, 239, .12) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .04));
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 48px 0;
}

.copy {
    max-width: 650px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-dark);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 5.4vw, 5.5rem);
    line-height: .98;
    letter-spacing: 0;
    max-width: 10ch;
}

.lead {
    max-width: 620px;
    color: #242930;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.meta span {
    border: 1px solid rgba(0, 73, 64, .22);
    background: rgba(255, 255, 255, .7);
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--accent-dark);
    font-size: .92rem;
    font-weight: 700;
}

.form-panel {
    width: 100%;
    border: 1px solid rgba(22, 22, 22, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 70px rgba(22, 22, 22, .18);
    padding: clamp(22px, 3vw, 34px);
}

form h2 {
    margin-bottom: 22px;
    font-size: 1.45rem;
    line-height: 1.2;
}

label {
    display: block;
    margin-bottom: 15px;
}

label span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    font-size: .94rem;
    font-weight: 750;
}

label em {
    color: var(--muted);
    font-style: normal;
    font-weight: 600;
}

input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 12px 13px;
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 107, 95, .16);
}

small {
    display: block;
    margin-top: 6px;
    color: var(--error);
    font-size: .84rem;
    font-weight: 650;
}

button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

button:hover,
button:focus {
    background: var(--accent-dark);
}

.note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.success {
    margin-bottom: 22px;
    border: 1px solid rgba(15, 118, 110, .28);
    border-radius: 8px;
    background: #ecfdf5;
    padding: 16px;
}

.success h2 {
    margin-bottom: 6px;
    color: var(--success);
    font-size: 1.1rem;
}

.success p {
    margin: 0;
    color: #1f4f49;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .hero {
        min-height: 100svh;
        background: var(--bg);
        overflow: visible;
    }

    .hero__media {
        position: relative;
        height: 48vh;
        min-height: 340px;
        inset: auto;
    }

    .hero__media img {
        object-position: center 23%;
    }

    .hero__overlay {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 48vh;
        min-height: 340px;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .03) 62%, rgba(245, 243, 239, .92) 100%);
    }

    .hero__content {
        position: relative;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 22px;
        min-height: auto;
        width: min(100% - 24px, 560px);
        margin-top: -28px;
        padding-top: 0;
        padding-bottom: 24px;
    }

    .copy {
        max-width: 100%;
        border-radius: 8px;
        background: rgba(245, 243, 239, .97);
        padding: 20px 16px 0;
    }

    .eyebrow {
        margin-bottom: 9px;
        font-size: .78rem;
    }

    h1 {
        max-width: 13ch;
        margin-bottom: 14px;
        font-size: clamp(2.05rem, 10.5vw, 3.35rem);
        line-height: 1;
    }

    .lead {
        margin-bottom: 0;
        font-size: 1rem;
        line-height: 1.45;
    }

    .meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 16px;
    }

    .meta span {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 8px 10px;
        font-size: .82rem;
        line-height: 1.2;
    }

    .form-panel {
        padding: 20px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 18px 46px rgba(22, 22, 22, .14);
    }

    form h2 {
        margin-bottom: 17px;
        font-size: 1.25rem;
    }

    label {
        margin-bottom: 12px;
    }

    input {
        min-height: 46px;
    }
}

@media (max-width: 430px) {
    .hero__media {
        height: 46vh;
        min-height: 310px;
    }

    .hero__overlay {
        height: 46vh;
        min-height: 310px;
    }

    .meta {
        grid-template-columns: 1fr;
    }

    .form-panel {
        padding: 18px;
    }
}
