:root {
    --th-newsletter-blue: #003349;
    --th-newsletter-harbor: #005e93;
    --th-newsletter-sky: #68bfd0;
    --th-newsletter-orange: #f18721;
    --th-newsletter-ink: #24495a;
    --th-newsletter-mist: #eef7fa;
    --th-newsletter-cream: #fff8ef;
}

.th-newsletter-page {
    overflow: clip;
    background: #fff;
    color: var(--th-newsletter-blue);
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.th-newsletter-page * {
    box-sizing: border-box;
}

.th-newsletter-container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.th-newsletter-hero {
    position: relative;
    padding: clamp(70px, 9vw, 120px) 0 clamp(52px, 7vw, 86px);
    background:
        linear-gradient(135deg, rgba(0, 51, 73, 0.98), rgba(0, 94, 147, 0.9)),
        url("/wp-content/uploads/2024/02/header-map-scaled.webp") left top / min(760px, 80vw) auto no-repeat;
    color: #fff;
    isolation: isolate;
}

.th-newsletter-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 82%);
    z-index: -1;
}

.th-newsletter-hero__grid,
.th-newsletter-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: clamp(32px, 7vw, 82px);
    align-items: center;
}

.th-newsletter-eyebrow {
    margin: 0 0 14px;
    color: var(--th-newsletter-sky);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.th-newsletter-hero h1,
.th-newsletter-benefits h2,
.th-newsletter-benefit h3,
.th-newsletter-form__copy h2 {
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    letter-spacing: 0;
}

.th-newsletter-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(50px, 7.6vw, 92px);
    line-height: 0.9;
}

.th-newsletter-hero p {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.58;
}

.th-newsletter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 34px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--th-newsletter-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(241, 135, 33, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.th-newsletter-button:hover,
.th-newsletter-button:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(241, 135, 33, 0.34);
}

.th-newsletter-hero__image {
    position: relative;
    margin: 0;
    min-height: 420px;
}

.th-newsletter-hero__image::before {
    content: "";
    position: absolute;
    inset: auto -8% 2% 12%;
    height: 42%;
    background: rgba(0, 0, 0, 0.22);
    filter: blur(28px);
}

.th-newsletter-hero__image img {
    position: relative;
    display: block;
    width: min(100%, 390px);
    height: auto;
    margin: 0 auto;
}

.th-newsletter-benefits,
.th-newsletter-form-section {
    padding: clamp(62px, 8vw, 104px) 0;
}

.th-newsletter-benefits h2,
.th-newsletter-form__copy h2 {
    margin: 0;
    color: var(--th-newsletter-blue);
    font-size: clamp(36px, 5vw, 62px);
    line-height: 0.94;
}

.th-newsletter-benefits h2 {
    max-width: 700px;
    margin-bottom: 30px;
}

.th-newsletter-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.th-newsletter-benefit {
    padding: clamp(22px, 3vw, 32px);
    background: #fff;
    border-top: 7px solid var(--th-newsletter-sky);
    box-shadow: 0 16px 34px rgba(0, 51, 73, 0.09);
}

.th-newsletter-benefit:nth-child(2) {
    border-top-color: var(--th-newsletter-orange);
}

.th-newsletter-benefit:nth-child(3) {
    border-top-color: var(--th-newsletter-harbor);
}

.th-newsletter-benefit h3 {
    margin: 0 0 12px;
    color: var(--th-newsletter-blue);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 0.98;
}

.th-newsletter-benefit p,
.th-newsletter-form__copy p {
    margin: 0;
    color: var(--th-newsletter-ink);
    font-size: 17px;
    line-height: 1.62;
}

.th-newsletter-form-section {
    background: linear-gradient(135deg, var(--th-newsletter-blue), #005e93);
}

.th-newsletter-form__copy h2,
.th-newsletter-form__copy p {
    color: #fff;
}

.th-newsletter-form__copy p {
    max-width: 620px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 1.6vw, 22px);
}

.th-newsletter-form-card {
    padding: clamp(24px, 4vw, 42px);
    background: #fff;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.th-newsletter-form-card .gform_wrapper.gform-theme {
    --gf-form-gap-y: 18px;
    --gf-field-gap-y: 8px;
}

.th-newsletter-form-card .gform_wrapper.gform-theme .gform_fields {
    row-gap: 18px;
}

.th-newsletter-form-card .gform_wrapper.gform-theme .gfield_label {
    color: var(--th-newsletter-blue);
    font-weight: 800;
}

.th-newsletter-form-card .gform_wrapper.gform-theme .gfield_required,
.th-newsletter-form-card .gform_wrapper.gform-theme .gfield_required .gfield_required_text {
    color: #d8492f;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.th-newsletter-form-card .gform_wrapper.gform-theme input[type="email"],
.th-newsletter-form-card .gform_wrapper.gform-theme input[type="text"] {
    width: 100%;
    min-height: 52px !important;
    padding: 12px 15px !important;
    border: 1.5px solid rgba(0, 51, 73, 0.38) !important;
    border-radius: 6px !important;
    background: #fbfdfe !important;
    color: var(--th-newsletter-blue) !important;
    font-size: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 1px 2px rgba(0, 51, 73, 0.06) !important;
}

.th-newsletter-form-card .gform_wrapper.gform-theme input:focus {
    border-color: var(--th-newsletter-harbor) !important;
    box-shadow: 0 0 0 3px rgba(104, 191, 208, 0.22) !important;
    outline: none;
}

.th-newsletter-form-card .gform_wrapper.gform-theme .gform_button {
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--th-newsletter-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.th-newsletter-form-note {
    margin: 20px 0 0;
    color: var(--th-newsletter-ink);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 980px) {
    .th-newsletter-hero__grid,
    .th-newsletter-form__grid,
    .th-newsletter-benefit-grid {
        grid-template-columns: 1fr;
    }

    .th-newsletter-hero__image {
        min-height: 0;
        width: min(380px, 100%);
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .th-newsletter-hero h1 {
        font-size: clamp(44px, 14vw, 66px);
    }

    .th-newsletter-button {
        width: 100%;
    }
}
