:root {
    --th-stock-navy: #003349;
    --th-stock-blue: #005e93;
    --th-stock-sky: #68bfd0;
    --th-stock-orange: #f18721;
    --th-stock-ink: #234a58;
    --th-stock-mist: #eef7fa;
    --th-stock-line: rgba(0, 51, 73, 0.14);
}

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

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

.th-stock-page > section {
    scroll-margin-top: 118px;
}

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

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

.th-stock-hero h1,
.th-stock-section-heading h2,
.th-stock-impact-card h3,
.th-stock-give h2 {
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    letter-spacing: 0;
}

.th-stock-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.th-stock-button:hover,
.th-stock-button:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.th-stock-button--primary {
    background: var(--th-stock-orange);
    color: #fff;
    box-shadow: 0 16px 34px rgba(241, 135, 33, 0.3);
}

.th-stock-button--primary:hover,
.th-stock-button--primary:focus {
    color: #fff;
    box-shadow: 0 20px 42px rgba(241, 135, 33, 0.36);
}

.th-stock-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 4.5vw, 68px) 0;
    background: linear-gradient(135deg, var(--th-stock-navy), var(--th-stock-blue));
    color: #fff;
}

.th-stock-hero::before {
    content: "";
    position: absolute;
    inset: -6% auto auto -11%;
    width: min(1180px, 74vw);
    aspect-ratio: 2880 / 1800;
    background: url("/wp-content/uploads/2024/02/header-map-scaled.webp") center / contain no-repeat;
    opacity: 0.22;
    filter: brightness(1.65) saturate(0.55);
    mix-blend-mode: screen;
    pointer-events: none;
}

.th-stock-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
    gap: clamp(38px, 7vw, 80px);
    align-items: center;
}

.th-stock-hero h1 {
    max-width: 690px;
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 4.4vw, 60px);
    line-height: 1;
}

.th-stock-hero__intro {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.5;
}

.th-stock-hero__tax {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    font-weight: 600;
}

.th-stock-hero .th-stock-button {
    margin-top: 28px;
}

.th-stock-hero__image {
    position: relative;
    margin: 0;
}

.th-stock-hero__image::before {
    content: "";
    position: absolute;
    inset: auto 8% -18px;
    height: 40%;
    background: rgba(0, 0, 0, 0.3);
    filter: blur(26px);
}

.th-stock-hero__image img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.th-stock-hero__image figcaption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(0, 51, 73, 0.88);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    backdrop-filter: blur(8px);
}

.th-stock-match {
    position: relative;
    overflow: hidden;
    padding: clamp(66px, 8vw, 104px) 0;
    background: linear-gradient(180deg, #f7fbfc, var(--th-stock-mist));
}

.th-stock-match::after {
    content: "";
    position: absolute;
    inset: auto -12% -38% auto;
    width: min(920px, 72vw);
    aspect-ratio: 2880 / 1800;
    background: url("/wp-content/uploads/2024/02/header-map-scaled.webp") center / contain no-repeat;
    opacity: 0.2;
    filter: saturate(0.35);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.th-stock-match .th-stock-container {
    position: relative;
    z-index: 1;
}

.th-stock-section-heading {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.th-stock-section-heading h2,
.th-stock-give h2 {
    margin: 0;
    color: var(--th-stock-navy);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.98;
}

.th-stock-section-heading > p:last-child,
.th-stock-give__copy > p {
    margin: 20px 0 0;
    color: var(--th-stock-ink);
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.58;
}

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

.th-stock-multiplier {
    display: grid;
    grid-template-columns: auto 42px auto;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 142px;
    padding: 26px 20px;
    border: 1px solid var(--th-stock-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(0, 51, 73, 0.1);
}

.th-stock-multiplier__gift,
.th-stock-multiplier strong {
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    font-size: clamp(32px, 3.2vw, 45px);
    line-height: 1;
}

.th-stock-multiplier__gift {
    color: var(--th-stock-blue);
}

.th-stock-multiplier strong {
    color: var(--th-stock-orange);
}

.th-stock-multiplier__becomes {
    color: var(--th-stock-sky);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.th-stock-match__note {
    margin: 26px 0 0;
    color: var(--th-stock-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.th-stock-impact {
    position: relative;
    padding: clamp(68px, 8vw, 110px) 0;
    background: #fff;
}

.th-stock-impact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 500px);
    gap: clamp(42px, 7vw, 82px);
    align-items: center;
}

.th-stock-section-heading--left {
    margin: 0 0 34px;
    text-align: left;
}

.th-stock-impact-list {
    display: grid;
    gap: 14px;
}

.th-stock-impact-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid var(--th-stock-line);
    border-left: 6px solid var(--th-stock-sky);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 51, 73, 0.07);
}

.th-stock-impact-card:nth-child(2) {
    border-left-color: var(--th-stock-orange);
}

.th-stock-impact-card:nth-child(3) {
    border-left-color: var(--th-stock-blue);
}

.th-stock-impact-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--th-stock-mist);
    color: var(--th-stock-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.th-stock-impact-card h3 {
    margin: 0;
    color: var(--th-stock-navy);
    font-size: clamp(25px, 2.2vw, 32px);
    line-height: 1.05;
}

.th-stock-impact-card p {
    margin: 8px 0 0;
    color: var(--th-stock-ink);
    font-size: 16px;
    line-height: 1.5;
}

.th-stock-impact__image {
    position: relative;
    margin: 0;
}

.th-stock-impact__image::before {
    content: "";
    position: absolute;
    top: -22px;
    right: -22px;
    width: 72%;
    height: 72%;
    border-radius: 10px;
    background: var(--th-stock-orange);
}

.th-stock-impact__image img {
    position: relative;
    display: block;
    width: 100%;
    min-height: 520px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 24px 54px rgba(0, 51, 73, 0.18);
}

.th-stock-give {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 116px) 0;
    background: linear-gradient(135deg, var(--th-stock-navy), #004b6b);
    color: #fff;
}

.th-stock-give::before {
    content: "";
    position: absolute;
    inset: -10% auto auto -10%;
    width: min(1120px, 84vw);
    aspect-ratio: 2880 / 1800;
    background: url("/wp-content/uploads/2024/02/header-map-scaled.webp") center / contain no-repeat;
    opacity: 0.18;
    filter: brightness(1.7) saturate(0.5);
    mix-blend-mode: screen;
    pointer-events: none;
}

.th-stock-give__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: clamp(42px, 7vw, 78px);
    align-items: start;
}

.th-stock-give__copy {
    padding-top: 18px;
}

.th-stock-give h2 {
    color: #fff;
}

.th-stock-give__copy > p {
    color: rgba(255, 255, 255, 0.9);
}

.th-stock-give__match {
    display: grid;
    gap: 6px;
    margin-top: 30px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 6px solid var(--th-stock-orange);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.th-stock-give__match strong {
    color: #fff;
    font-size: 20px;
}

.th-stock-give__match span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.5;
}

.th-stock-give__disclosure {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 14px;
    line-height: 1.55;
}

.th-stock-form-card {
    min-width: 0;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: #fff;
    color: var(--th-stock-navy);
    box-shadow: 0 28px 66px rgba(0, 0, 0, 0.28);
}

.th-stock-form-card script {
    display: none;
}

.th-stock-form-card form[id*="vcrm"],
.th-stock-form-card form[id*="vcrm"] .v_fw,
.th-stock-form-card form[id*="vcrm"] .v_fr {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

.th-stock-form-card form[id*="vcrm"] .v_fr .v_ig .v_lw {
    margin-bottom: 10px;
}

.th-stock-form-card form[id*="vcrm"] .v_fr .v_ig input,
.th-stock-form-card form[id*="vcrm"] .v_fr .v_ig select,
.th-stock-form-card form[id*="vcrm"] .v_ig .Select-control {
    border-color: var(--th-stock-sky);
    border-radius: 8px;
}

.th-stock-form-card form[id*="vcrm"] .v_ig .v_gaw {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.th-stock-form-card form[id*="vcrm"] .v_ig .v_gaw .v_gao,
.th-stock-form-card form[id*="vcrm"] .v_ig .v_gaw .button,
.th-stock-form-card form[id*="vcrm"] .v_ig .button:active,
.th-stock-form-card form[id*="vcrm"] .v_ig .button:focus,
.th-stock-form-card form[id*="vcrm"] .v_ig .button:not(.v_btn_outline):hover,
.th-stock-form-card form[id*="vcrm"] .v_ig button.v_btn_outline.active.btn.button {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border-width: 0 !important;
    border-color: var(--th-stock-orange);
    border-radius: 8px;
    background-color: var(--th-stock-orange);
    color: #fff !important;
    font-family: "Mr Eaves Mod OT", Helvetica, Arial, Lucida, sans-serif;
    font-size: 18px;
    line-height: 1em !important;
    text-align: center;
}

.th-stock-form-card form[id*="vcrm"] .v_ig .v_gao::before,
.th-stock-form-card form[id*="vcrm"] .v_ig .button::before,
.th-stock-form-card form[id*="vcrm"] .v_ig .v_gao.active::before {
    border-width: 0 !important;
    border-radius: 8px;
    background-color: var(--th-stock-sky);
    filter: brightness(1);
}

.th-stock-form-card .button .v-text,
.th-stock-form-card .button.v-text,
.th-stock-form-card .v_gao .v-text,
.th-stock-form-card form[id*="vcrm"] .v_ig button.v_btn_outline.active .v-text {
    color: #fff;
}

.th-stock-form-card form[id*="vcrm"] .v_ig button:not(.react-datepicker__navigation),
.th-stock-form-card form[id*="vcrm"] .v_ig input[type="button"],
.th-stock-form-card form[id*="vcrm"] .v_ig input[type="submit"] {
    padding: 15px 30px;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .th-stock-hero__grid,
    .th-stock-impact__grid,
    .th-stock-give__grid {
        grid-template-columns: 1fr;
    }

    .th-stock-hero__image,
    .th-stock-impact__image {
        max-width: 680px;
    }

    .th-stock-impact__image {
        margin-top: 8px;
    }

    .th-stock-impact__image img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .th-stock-give__copy {
        max-width: 760px;
        padding-top: 0;
        text-align: center;
    }

    .th-stock-give__match {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .th-stock-container {
        width: min(100% - 40px, 1120px);
    }

    .th-stock-hero {
        padding: 48px 0 56px;
    }

    .th-stock-hero::before {
        inset: 4% auto auto -290px;
        width: 760px;
        max-width: none;
    }

    .th-stock-hero h1 {
        font-size: clamp(38px, 12vw, 50px);
    }

    .th-stock-hero__intro {
        font-size: 18px;
    }

    .th-stock-multiplier-grid {
        grid-template-columns: 1fr;
    }

    .th-stock-multiplier {
        min-height: 112px;
    }

    .th-stock-impact__image::before {
        top: -14px;
        right: -14px;
    }

    .th-stock-form-card {
        padding: 24px 18px;
    }

    .th-stock-form-card form[id*="vcrm"] .v_ig .v_gaw {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .th-stock-form-card form[id*="vcrm"] .v_fc__2,
    .th-stock-form-card form[id*="vcrm"] .v_fc__3 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}

@media (max-width: 479px) {
    .th-stock-container {
        width: min(100% - 32px, 1120px);
    }

    .th-stock-eyebrow {
        font-size: 12px;
        letter-spacing: 0.14em;
    }

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

    .th-stock-multiplier {
        grid-template-columns: auto 34px auto;
        gap: 8px;
        padding: 22px 12px;
    }

    .th-stock-multiplier__gift,
    .th-stock-multiplier strong {
        font-size: 32px;
    }

    .th-stock-impact-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 16px;
    }

    .th-stock-impact-card > span {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-stock-button {
        transition: none;
    }

    .th-stock-button:hover,
    .th-stock-button:focus {
        transform: none;
    }
}
