* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #073d1c;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #073d1c;
    color: #ffffff;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.newsletter-page {
    position: relative;
    width: 100%;
    min-height: 100svh;
    background: #073d1c;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    min-height: 54svh;
    padding:
        max(28px, env(safe-area-inset-top))
        clamp(22px, 5vw, 72px)
        70px;
}

.newsletter-header {
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.03;
}

.brand-copy strong {
    font-size: clamp(17px, 2.2vw, 25px);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.brand-copy span {
    margin-top: 4px;
    font-size: clamp(16px, 2.1vw, 24px);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.newsletter-form-area {
    width: min(680px, 100%);
    margin-top: clamp(75px, 12vh, 135px);
}

.newsletter-intro {
    width: min(570px, 100%);
}

.eyebrow {
    display: block;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0.68;
}

.newsletter-intro h1 {
    margin: 0;
    font-size: clamp(43px, 6.5vw, 76px);
    line-height: 0.97;
    font-weight: 500;
    letter-spacing: -0.055em;
}

.newsletter-intro p {
    max-width: 500px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.55;
    letter-spacing: -0.015em;
}

.form-message {
    margin-top: 28px;
    padding: 15px 17px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.form-message.success {
    background: rgba(213, 255, 220, 0.12);
    border: 1px solid rgba(220, 255, 225, 0.28);
    color: #f3fff5;
}

.form-message.error {
    background: rgba(255, 170, 170, 0.12);
    border: 1px solid rgba(255, 190, 190, 0.25);
    color: #fff4f4;
}

.form-message.info {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 42px;
}

.form-row {
    display: grid;
    grid-template-columns:
        minmax(130px, 0.38fr)
        minmax(0, 1fr);
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.field label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.field input,
.field select {
    width: 100%;
    height: 58px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 11px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.field input:hover,
.field select:hover {
    background: rgba(255, 255, 255, 0.095);
    border-color: rgba(255, 255, 255, 0.30);
}

.field input:focus,
.field select:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}

.field select option {
    color: #111111;
    background: #ffffff;
}

.select-wrap {
    position: relative;
}

.select-wrap select {
    padding-right: 44px;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
}

.form-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 7px;
}

.privacy-note {
    max-width: 370px;
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.55;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-width: 156px;
    height: 54px;
    padding: 0 18px 0 20px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: #062f16;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    transition:
        transform 150ms ease,
        background 150ms ease;
}

.submit-button:hover {
    background: #f1f1ed;
    transform: translateY(-1px);
}

.submit-button:active {
    transform: scale(0.985);
}

.submit-arrow {
    font-size: 20px;
    line-height: 1;
}

.newsletter-image {
    position: relative;
    width: 100%;
    height: clamp(420px, 52svh, 760px);
    overflow: hidden;
    background: #102b20;
}

.newsletter-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 47%;
}

.image-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.08) 62%,
            rgba(0, 0, 0, 0.42) 100%
        );
}

.newsletter-footer {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom:
        max(
            22px,
            calc(env(safe-area-inset-bottom) + 14px)
        );
    transform: translateX(-50%);
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.80);
    font-size: 11px;
    line-height: 1.4;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.42);
    transition:
        color 150ms ease,
        text-decoration-color 150ms ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.42);
    font-size: 9px;
    line-height: 1.4;
}

@media (max-width: 800px) {

    .newsletter-content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .newsletter-form-area {
        margin-top: 85px;
    }

}

@media (max-width: 600px) {

    .newsletter-content {
        min-height: auto;
        padding:
            max(25px, env(safe-area-inset-top))
            22px
            65px;
    }

    .brand {
        gap: 11px;
    }

    .brand-logo {
        width: 47px;
        height: 47px;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .brand-copy span {
        margin-top: 2px;
        font-size: 15px;
    }

    .newsletter-form-area {
        margin-top: 82px;
    }

    .eyebrow {
        margin-bottom: 14px;
        font-size: 11px;
    }

    .newsletter-intro h1 {
        font-size: clamp(42px, 12vw, 59px);
        line-height: 0.98;
    }

    .newsletter-intro p {
        margin-top: 21px;
        font-size: 15px;
        line-height: 1.5;
    }

    .newsletter-form {
        margin-top: 35px;
        gap: 17px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .field input,
    .field select {
        height: 56px;
        border-radius: 10px;
    }

    .form-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 19px;
    }

    .privacy-note {
        max-width: none;
    }

    .submit-button {
        width: 100%;
        height: 56px;
    }

    .newsletter-image {
        height: 51svh;
        min-height: 410px;
    }

    .newsletter-image img {
        object-position: center center;
    }

    .newsletter-footer {
        bottom:
            max(
                18px,
                calc(env(safe-area-inset-bottom) + 10px)
            );
        width: calc(100% - 32px);
    }

    .footer-links {
        gap: 7px 14px;
    }

    .footer-links a {
        font-size: 10px;
    }

    .footer-meta {
        font-size: 8px;
    }

}

@media (max-width: 360px) {

    .newsletter-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-logo {
        width: 43px;
        height: 43px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .brand-copy span {
        font-size: 13px;
    }

}
