.nhf-dif {
    --nhf-blue: #123A63;
    --nhf-red: #B32025;
    --nhf-gold: #D4AF37;
    --nhf-ink: #151515;
    --nhf-paper: #ffffff;
    --nhf-soft: #f5f7f9;
    --nhf-line: #dce2e7;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 1080px;
    margin: 32px auto;
    color: var(--nhf-ink);
    background: var(--nhf-paper);
    border: 1px solid rgba(18,58,99,.16);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(18,58,99,.12);
}

.nhf-dif * { box-sizing: border-box; }
.nhf-dif [hidden] { display: none !important; }

.nhf-dif .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.nhf-dif__hero {
    position: relative;
    padding: 42px 48px 38px;
    color: #fff;
    background: linear-gradient(135deg, var(--nhf-blue), #081f36);
    overflow: hidden;
}

.nhf-dif__hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    top: -120px;
    border: 36px solid rgba(212,175,55,.18);
    border-radius: 50%;
}

.nhf-dif__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 10px;
    color: var(--nhf-gold);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nhf-dif__headline {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0;
    color: #fff !important;
    font-size: clamp(30px, 4.5vw, 54px);
    line-height: 1.02;
    letter-spacing: -.03em;
    font-weight: 800;
}

.nhf-dif__description {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.9);
    font-size: 17px;
    line-height: 1.65;
}

.nhf-dif__grid {
    display: grid;
    grid-template-columns: minmax(390px, .95fr) minmax(430px, 1.25fr);
    align-items: stretch;
    gap: 0;
    min-height: 620px;
}

.nhf-dif__thermometer-card,
.nhf-dif__donation-card {
    padding: 42px;
}

/* The entire left side stretches with whichever donation step is taller. */
.nhf-dif__thermometer-card {
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    min-height: 620px;
    background: var(--nhf-soft);
    border-right: 1px solid var(--nhf-line);
}

.nhf-dif__thermo-wrap {
    position: relative;
    width: 175px;
    min-height: 520px;
    height: 100%;
    margin: 0 auto;
    align-self: stretch;
}

.nhf-dif__thermometer {
    position: absolute;
    left: 91px;
    top: 8px;
    bottom: 8px;
    width: 62px;
    height: auto;
}

.nhf-dif__tube {
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 52px;
    width: 30px;
    border: 4px solid #d5dde4;
    border-bottom: 0;
    border-radius: 18px 18px 6px 6px;
    background: linear-gradient(90deg, #fefefe, #edf2f5 50%, #fff);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.8), 0 5px 18px rgba(0,0,0,.08);
    overflow: hidden;
}

.nhf-dif__mercury {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 0;
    min-height: 3px;
    background: linear-gradient(90deg, #8f1118, var(--nhf-red) 60%, #db4047);
    border-radius: 10px 10px 0 0;
    transition: height .8s cubic-bezier(.2,.8,.2,1);
}

.nhf-dif__shine {
    position: absolute;
    top: 8px;
    left: 5px;
    width: 5px;
    height: calc(100% - 16px);
    border-radius: 4px;
    background: rgba(255,255,255,.75);
    pointer-events: none;
}

.nhf-dif__bulb {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 4px solid #d5dde4;
    background: radial-gradient(circle at 38% 30%, #e2484f 0 13%, var(--nhf-red) 14% 62%, #7f0f16 100%);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.2), 0 5px 18px rgba(0,0,0,.1);
}

.nhf-dif__scale {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 70px;
    width: 91px;
    height: auto;
    font-size: 12px;
    font-weight: 800;
    color: var(--nhf-blue);
}

.nhf-dif__scale span {
    position: absolute;
    right: 13px;
    transform: translateY(-50%);
    white-space: nowrap;
}

.nhf-dif__scale span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    width: 18px;
    height: 2px;
    background: var(--nhf-gold);
    transform: translateY(-50%);
}

.nhf-dif__scale [data-level="100"] { top: 0; transform: translateY(0); }
.nhf-dif__scale [data-level="75"] { top: 25%; }
.nhf-dif__scale [data-level="50"] { top: 50%; }
.nhf-dif__scale [data-level="25"] { top: 75%; }
.nhf-dif__scale [data-level="0"] { bottom: -3px; transform: translateY(50%); }

.nhf-dif__progress-copy {
    align-self: center;
    min-width: 0;
}

.nhf-dif__progress-copy strong {
    display: block;
    color: var(--nhf-red);
    font-size: clamp(38px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -.04em;
}

.nhf-dif__progress-copy > span {
    display: block;
    margin-top: 9px;
    color: #4d5862;
    font-size: 16px;
}

.nhf-dif__percent {
    margin-top: 22px;
    color: var(--nhf-blue);
    font-size: 21px;
    font-weight: 800;
}

.nhf-dif__remaining {
    margin-top: 6px;
    color: #68727b;
    font-size: 14px;
}

.nhf-dif__donation-card {
    display: flex;
    min-height: 620px;
    background: #fff;
}

.nhf-dif__donation-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}

.nhf-dif__steps {
    display: grid;
    grid-template-columns: auto minmax(36px, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0 0 34px;
}

.nhf-dif__step-marker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8a939b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.nhf-dif__step-marker span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid #cbd3d9;
    border-radius: 50%;
    background: #fff;
    color: #74808a;
    line-height: 1;
}

.nhf-dif__step-marker.is-active { color: var(--nhf-blue); }
.nhf-dif__step-marker.is-active span {
    color: #fff;
    border-color: var(--nhf-blue);
    background: var(--nhf-blue);
}

.nhf-dif__step-marker.is-complete span {
    color: #111;
    border-color: var(--nhf-gold);
    background: var(--nhf-gold);
}

.nhf-dif__step-line {
    height: 2px;
    background: var(--nhf-line);
}

.nhf-dif__step-panel {
    animation: nhfDifStepIn .24s ease both;
}

@keyframes nhfDifStepIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

.nhf-dif__step-heading {
    margin-bottom: 28px;
}

.nhf-dif__step-heading--with-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.nhf-dif__step-heading h3 {
    margin: 0 0 9px;
    color: var(--nhf-blue);
    font-size: 30px;
    line-height: 1.1;
}

.nhf-dif__step-heading p {
    max-width: 560px;
    margin: 0;
    color: #57616a;
    font-size: 15px;
    line-height: 1.55;
}

.nhf-dif__gift-summary {
    flex: 0 0 auto;
    min-width: 118px;
    padding: 10px 13px;
    border: 1px solid rgba(18,58,99,.14);
    border-radius: 10px;
    background: var(--nhf-soft);
    text-align: right;
}

.nhf-dif__gift-summary span {
    display: block;
    margin-bottom: 2px;
    color: #68727b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.nhf-dif__gift-summary strong {
    color: var(--nhf-red);
    font-size: 21px;
}

.nhf-dif__preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 13px;
}

.nhf-dif__amount-button,
.nhf-dif__next-button,
.nhf-dif__checkout-button,
.nhf-dif__back-button {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease, color .15s ease;
}

.nhf-dif__amount-button {
    width: 100%;
    min-height: 66px;
    padding: 12px;
    color: #111;
    background: var(--nhf-gold);
    border: 3px solid transparent;
    font-size: 22px;
    box-shadow: 0 5px 0 rgba(108,84,9,.28);
}

.nhf-dif__amount-button:hover,
.nhf-dif__amount-button.is-selected {
    transform: translateY(-1px);
    filter: brightness(1.035);
}

.nhf-dif__amount-button.is-selected {
    border-color: var(--nhf-blue);
    box-shadow: 0 5px 0 rgba(18,58,99,.24), 0 0 0 2px rgba(18,58,99,.1);
}

.nhf-dif__custom-form {
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid var(--nhf-line);
}

.nhf-dif__custom-form label {
    display: block;
    margin-bottom: 9px;
    color: var(--nhf-blue);
    font-size: 14px;
    font-weight: 800;
}

.nhf-dif__currency-input {
    display: flex;
    align-items: center;
    width: min(100%, 290px);
    min-height: 56px;
    border: 2px solid #ccd5dc;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.nhf-dif__currency-input:focus-within {
    border-color: var(--nhf-blue);
    box-shadow: 0 0 0 3px rgba(18,58,99,.11);
}

.nhf-dif__currency-input span {
    padding-left: 14px;
    color: var(--nhf-blue);
    font-weight: 900;
}

.nhf-dif__currency-input input {
    min-width: 0;
    width: 100%;
    height: 52px;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 12px 0 5px;
    color: #111;
    background: transparent;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    outline: none;
}

.nhf-dif__field-error {
    min-height: 19px;
    margin-top: 7px;
    color: var(--nhf-red);
    font-size: 12px;
    font-weight: 700;
}

.nhf-dif__next-button,
.nhf-dif__checkout-button {
    width: 100%;
    min-height: 58px;
    padding: 13px 20px;
    color: #fff;
    background: var(--nhf-red);
    font-size: 17px;
    box-shadow: 0 5px 0 rgba(95,11,17,.25);
}

.nhf-dif__next-button { margin-top: 22px; }

.nhf-dif__next-button:disabled {
    cursor: not-allowed;
    opacity: .48;
    filter: grayscale(.15);
    box-shadow: none;
}

.nhf-dif__next-button:not(:disabled):hover,
.nhf-dif__checkout-button:hover,
.nhf-dif__back-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.nhf-dif__donor-fields {
    margin: 0;
    padding: 0;
    border: 0;
}

.nhf-dif__field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 15px 13px;
}

.nhf-dif__field--full { grid-column: 1 / -1; }

.nhf-dif__field label {
    display: block;
    margin-bottom: 6px;
    color: #394550;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
}

.nhf-dif__field label span {
    color: #7b858e;
    font-weight: 500;
}

.nhf-dif__field input {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    border: 1.5px solid #c9d2d9;
    border-radius: 9px;
    background: #fff;
    color: #111;
    box-shadow: none;
    font: inherit;
    font-size: 15px;
}

.nhf-dif__field input:focus {
    border-color: var(--nhf-blue);
    outline: 3px solid rgba(18,58,99,.11);
    outline-offset: 0;
}

.nhf-dif__step-actions {
    display: grid;
    grid-template-columns: minmax(115px, .42fr) minmax(220px, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.nhf-dif__back-button {
    min-height: 58px;
    padding: 12px 16px;
    color: var(--nhf-blue);
    background: #eef2f5;
    box-shadow: 0 4px 0 #d5dce2;
}

.nhf-dif__secure-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 20px;
    color: #68727b;
    font-size: 12.5px;
    line-height: 1.45;
}

.nhf-dif__secure-note--step-one { margin-top: 22px; }
.nhf-dif__lock { line-height: 1.2; }

.nhf-dif__amount-button:focus-visible,
.nhf-dif__next-button:focus-visible,
.nhf-dif__checkout-button:focus-visible,
.nhf-dif__back-button:focus-visible,
.nhf-dif__custom-form input:focus-visible,
.nhf-dif__field input:focus-visible {
    outline: 3px solid rgba(18,58,99,.28);
    outline-offset: 2px;
}

.nhf-dif__noscript {
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid #efc2c4;
    border-radius: 8px;
    color: #8b171d;
    background: #fff0f0;
    font-size: 13px;
    font-weight: 700;
}

.nhf-dif__notice {
    margin: 20px 22px 0;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.nhf-dif__notice--success { background: #eaf7ef; color: #195b31; border: 1px solid #b8dfc5; }
.nhf-dif__notice--neutral { background: #f5f6f7; color: #3d4650; border: 1px solid #d8dde1; }
.nhf-dif__notice--error { background: #fff0f0; color: #8b171d; border: 1px solid #efc2c4; }

@media (max-width: 950px) {
    .nhf-dif__grid { grid-template-columns: 1fr; min-height: 0; }
    .nhf-dif__thermometer-card {
        min-height: 520px;
        border-right: 0;
        border-bottom: 1px solid var(--nhf-line);
    }
    .nhf-dif__thermo-wrap { min-height: 430px; }
    .nhf-dif__donation-card { min-height: 0; }
}

@media (max-width: 620px) {
    .nhf-dif { border-radius: 14px; margin: 20px auto; }
    .nhf-dif__hero { padding: 30px 24px; }
    .nhf-dif__thermometer-card,
    .nhf-dif__donation-card { padding: 28px 22px; }

    .nhf-dif__thermometer-card {
        grid-template-columns: 150px minmax(0,1fr);
        gap: 14px;
        min-height: 445px;
    }

    .nhf-dif__thermo-wrap {
        width: 150px;
        min-height: 385px;
    }

    .nhf-dif__thermometer { left: 78px; }
    .nhf-dif__scale { width: 78px; font-size: 11px; }

    .nhf-dif__steps {
        gap: 8px;
        margin-bottom: 28px;
    }

    .nhf-dif__step-marker b { display: none; }
    .nhf-dif__step-heading--with-summary { display: block; }
    .nhf-dif__gift-summary { margin-top: 14px; text-align: left; width: fit-content; }
    .nhf-dif__preset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .nhf-dif__field-grid { grid-template-columns: 1fr; }
    .nhf-dif__field--full { grid-column: auto; }
    .nhf-dif__step-actions { grid-template-columns: 1fr; }
    .nhf-dif__back-button { order: 2; }
    .nhf-dif__checkout-button { order: 1; }
}

@media (max-width: 430px) {
    .nhf-dif__thermometer-card {
        grid-template-columns: 1fr;
        min-height: 560px;
        text-align: center;
    }
    .nhf-dif__thermo-wrap {
        width: 165px;
        min-height: 390px;
        max-height: 390px;
        margin-bottom: 0;
    }
    .nhf-dif__thermometer { left: 85px; }
    .nhf-dif__progress-copy { align-self: start; }
    .nhf-dif__percent { margin-top: 14px; }
    .nhf-dif__step-heading h3 { font-size: 27px; }
}
