/*
 * Highway Heroes v1.0.26 conversion and consent presentation.
 * Page-scoped so it cannot alter other Charitable campaigns.
 */
body.khh-highway-heroes-page {
    --khh-community-green: #128c4a;
    --khh-community-bright: #25d366;
    --khh-community-pale: #eef9f2;
    --khh-navy: #071b5b;
    --khh-blue: #0a57b5;
    --khh-line: #d7e3eb;
    --khh-body-font: Montserrat, Helvetica, Arial, sans-serif;
    --khh-heading-font: "KHH Roboto Condensed", "Arial Narrow", sans-serif;
}

body.khh-highway-heroes-page .khh-community,
body.khh-highway-heroes-page .khh-community-rules-section,
body.khh-highway-heroes-page .khh-charitable-form {
    color: var(--khh-navy);
    font-family: var(--khh-body-font);
}

body.khh-highway-heroes-page .khh-container {
    width: min(calc(100% - 64px), 1120px);
    margin: 0 auto;
}

body.khh-highway-heroes-page .khh-community {
    padding: 56px 0 48px;
    background: linear-gradient(135deg, #f5fcf7 0%, var(--khh-community-pale) 100%);
    border-top: 1px solid #dceee2;
    border-bottom: 1px solid #dceee2;
}

body.khh-highway-heroes-page .khh-community-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto 14px;
}

body.khh-highway-heroes-page .khh-whatsapp-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--khh-community-green);
    box-shadow: 0 10px 24px rgba(18, 140, 74, 0.18);
}

body.khh-highway-heroes-page .khh-whatsapp-mark img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

body.khh-highway-heroes-page .khh-community .khh-eyebrow {
    margin: 0 0 4px;
    color: var(--khh-community-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.khh-highway-heroes-page .khh-community h2 {
    margin: 0;
    color: var(--khh-navy);
    font-family: var(--khh-heading-font);
    font-size: clamp(42px, 4.2vw, 58px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

body.khh-highway-heroes-page .khh-community-lead {
    max-width: 820px;
    margin: 0 auto 28px;
    color: #263a6b;
    font-size: 17px;
    line-height: 1.65;
}

body.khh-highway-heroes-page .khh-community-steps {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    counter-reset: none;
}

body.khh-highway-heroes-page .khh-community-steps li {
    min-width: 0;
    margin: 0;
    padding: 20px 18px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    border: 1px solid #dceee2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(7, 27, 91, 0.06);
}

body.khh-highway-heroes-page .khh-step-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2f7e9;
    color: var(--khh-community-green);
    font-size: 24px;
}

body.khh-highway-heroes-page .khh-step-number {
    display: block;
    margin: 0 0 3px;
    color: var(--khh-community-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.khh-highway-heroes-page .khh-community-steps h3 {
    margin: 0 0 5px;
    color: var(--khh-navy);
    font-family: var(--khh-heading-font);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

body.khh-highway-heroes-page .khh-community-steps p {
    margin: 0;
    color: #334875;
    font-size: 14px;
    line-height: 1.5;
}

body.khh-highway-heroes-page .khh-community-alternative {
    margin: 20px 0 0;
    color: #334875;
    font-size: 14px;
    line-height: 1.55;
}

body.khh-highway-heroes-page .khh-community a,
body.khh-highway-heroes-page .khh-community-rules-section a {
    color: var(--khh-blue);
    font-weight: 700;
}

/* The full rules remain available without interrupting the signup journey. */
body.khh-highway-heroes-page .khh-community-rules-section {
    padding: 30px 0 34px;
    background: #f7fafc;
    border-top: 1px solid #e2e8ef;
}

body.khh-highway-heroes-page .khh-community-rules {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid var(--khh-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(7, 27, 91, 0.05);
    scroll-margin-top: 24px;
}

body.khh-highway-heroes-page .khh-community-rules summary {
    min-height: 66px;
    padding: 13px 18px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    color: var(--khh-navy);
    cursor: pointer;
    list-style: none;
}

body.khh-highway-heroes-page .khh-community-rules summary::-webkit-details-marker {
    display: none;
}

body.khh-highway-heroes-page .khh-community-rules summary:focus-visible {
    border-radius: 10px;
    outline: 3px solid rgba(10, 87, 181, 0.28);
    outline-offset: 3px;
}

body.khh-highway-heroes-page .khh-rules-summary-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf4ff;
    color: var(--khh-blue);
    font-size: 22px;
}

body.khh-highway-heroes-page .khh-community-rules summary strong,
body.khh-highway-heroes-page .khh-community-rules summary small {
    display: block;
}

body.khh-highway-heroes-page .khh-community-rules summary strong {
    font-family: var(--khh-heading-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

body.khh-highway-heroes-page .khh-community-rules summary small {
    margin-top: 2px;
    color: #526382;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

body.khh-highway-heroes-page .khh-rules-caret,
body.khh-highway-heroes-page .khh-consent-disclosure summary i {
    transition: transform 180ms ease;
}

body.khh-highway-heroes-page .khh-community-rules[open] .khh-rules-caret,
body.khh-highway-heroes-page .khh-consent-disclosure[open] summary i {
    transform: rotate(180deg);
}

body.khh-highway-heroes-page .khh-community-rules-content {
    padding: 0 24px 22px 70px;
    border-top: 1px solid #edf1f5;
}

body.khh-highway-heroes-page .khh-community-rules-content ol {
    margin: 18px 0 12px;
    padding-left: 22px;
}

body.khh-highway-heroes-page .khh-community-rules-content li,
body.khh-highway-heroes-page .khh-community-rules-content p {
    color: #334875;
    font-size: 14px;
    line-height: 1.6;
}

body.khh-highway-heroes-page .khh-community-links {
    max-width: 920px;
    margin: 12px auto 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

/* Clear hierarchy and comfortable touch targets in the donation form. */
body.khh-highway-heroes-page .khh-join {
    padding-top: 48px;
}

body.khh-highway-heroes-page .khh-form-subheading {
    width: 100%;
    margin: 28px 0 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid #d6e4ee;
    color: var(--khh-navy);
    font-family: var(--khh-heading-font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    clear: both;
}

body.khh-highway-heroes-page .khh-charitable-form label {
    font-size: 15px !important;
    line-height: 1.45 !important;
}

body.khh-highway-heroes-page .khh-form-helper,
body.khh-highway-heroes-page .khh-privacy-copy,
body.khh-highway-heroes-page .khh-consent-summary,
body.khh-highway-heroes-page .khh-choice-helper {
    color: #425579 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

body.khh-highway-heroes-page .khh-policy-link {
    color: var(--khh-blue) !important;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

body.khh-highway-heroes-page .khh-required-text {
    color: #425579;
    font-weight: 500;
    white-space: nowrap;
}

body.khh-highway-heroes-page input[name="khh_whatsapp_number_raw"]::placeholder {
    color: #98a5b7 !important;
    opacity: 1;
}

body.khh-highway-heroes-page input[name="khh_whatsapp_number_raw"].khh-country-code-prefill {
    color: #98a5b7 !important;
    -webkit-text-fill-color: #98a5b7 !important;
}

body.khh-highway-heroes-page input[name="khh_whatsapp_number_raw"]:not(.khh-country-code-prefill) {
    color: #14285d !important;
    -webkit-text-fill-color: #14285d !important;
}

body.khh-highway-heroes-page .khh-form-helper {
    margin: -5px 0 16px !important;
    clear: both;
}

body.khh-highway-heroes-page .khh-privacy-copy {
    margin: 0 0 22px !important;
    padding: 12px 14px;
    border-left: 3px solid #a8c8e8;
    border-radius: 0 6px 6px 0;
    background: rgba(255, 255, 255, 0.58);
    clear: both;
}

body.khh-highway-heroes-page .khh-choice-row,
body.khh-highway-heroes-page .khh-charitable-form .charitable-terms-and-conditions.khh-choice-row {
    min-height: 44px;
    margin: 0 0 10px !important;
    padding: 9px 10px !important;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 11px !important;
    border-radius: 8px;
    clear: both;
}

body.khh-highway-heroes-page .khh-choice-row:hover,
body.khh-highway-heroes-page .khh-choice-row:focus-within {
    background: rgba(255, 255, 255, 0.7);
}

body.khh-highway-heroes-page .khh-choice-row input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 1px 0 0 !important;
    grid-column: 1 !important;
}

body.khh-highway-heroes-page .khh-choice-row > label,
body.khh-highway-heroes-page .khh-choice-row > .charitable-terms-and-conditions-label {
    min-width: 0;
    margin: 0 !important;
    grid-column: 2 !important;
}

body.khh-highway-heroes-page .khh-choice-helper {
    display: block;
    margin-top: 3px;
    font-weight: 400;
}

body.khh-highway-heroes-page .khh-consent-summary,
body.khh-highway-heroes-page .khh-consent-disclosure {
    margin-left: 43px;
}

body.khh-highway-heroes-page .khh-consent-summary {
    margin-top: -5px;
    margin-bottom: 9px;
}

body.khh-highway-heroes-page .khh-consent-disclosure {
    margin-top: 0;
    margin-bottom: 18px;
    border: 1px solid #cfe0ea;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

body.khh-highway-heroes-page .khh-consent-disclosure summary {
    min-height: 44px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--khh-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

body.khh-highway-heroes-page .khh-consent-disclosure summary::-webkit-details-marker {
    display: none;
}

body.khh-highway-heroes-page .khh-consent-disclosure summary:focus-visible {
    outline: 3px solid rgba(10, 87, 181, 0.25);
    outline-offset: 2px;
}

body.khh-highway-heroes-page .khh-consent-disclosure div {
    padding: 0 12px 11px;
}

body.khh-highway-heroes-page .khh-consent-disclosure p {
    margin: 6px 0;
    color: #425579;
    font-size: 13px;
    line-height: 1.55;
}

body.khh-highway-heroes-page .khh-v1026-form-notice:empty {
    display: none;
}

body.khh-highway-heroes-page .khh-membership-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 980px) {
    body.khh-highway-heroes-page .khh-community-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body.khh-highway-heroes-page .khh-container {
        width: min(calc(100% - 32px), 1120px);
    }

    body.khh-highway-heroes-page .khh-community {
        padding: 36px 0 32px;
    }

    body.khh-highway-heroes-page .khh-community-heading {
        align-items: flex-start;
        gap: 13px;
    }

    body.khh-highway-heroes-page .khh-whatsapp-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    body.khh-highway-heroes-page .khh-whatsapp-mark img {
        width: 27px;
        height: 27px;
    }

    body.khh-highway-heroes-page .khh-community .khh-eyebrow {
        font-size: 11px;
    }

    body.khh-highway-heroes-page .khh-community h2 {
        font-size: 39px;
    }

    body.khh-highway-heroes-page .khh-community-lead {
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.6;
    }

    body.khh-highway-heroes-page .khh-community-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.khh-highway-heroes-page .khh-community-steps li {
        min-height: 86px;
        padding: 15px 14px;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
    }

    body.khh-highway-heroes-page .khh-step-icon {
        width: 44px;
        height: 44px;
    }

    body.khh-highway-heroes-page .khh-community-alternative {
        margin-top: 16px;
    }

    body.khh-highway-heroes-page .khh-community-rules-section {
        padding: 22px 0 26px;
    }

    body.khh-highway-heroes-page .khh-community-rules summary {
        min-height: 64px;
        padding: 11px 12px;
        grid-template-columns: 36px minmax(0, 1fr) 20px;
        gap: 9px;
    }

    body.khh-highway-heroes-page .khh-rules-summary-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    body.khh-highway-heroes-page .khh-community-rules summary strong {
        font-size: 15px;
    }

    body.khh-highway-heroes-page .khh-community-rules summary small {
        font-size: 12px;
    }

    body.khh-highway-heroes-page .khh-community-rules-content {
        padding: 0 16px 18px 18px;
    }

    body.khh-highway-heroes-page .khh-community-rules-content li,
    body.khh-highway-heroes-page .khh-community-rules-content p {
        font-size: 13px;
    }

    body.khh-highway-heroes-page .khh-form-subheading {
        margin-top: 24px;
        font-size: 18px;
    }

    body.khh-highway-heroes-page .khh-charitable-form label {
        font-size: 14px !important;
    }

    body.khh-highway-heroes-page .khh-consent-summary,
    body.khh-highway-heroes-page .khh-consent-disclosure {
        margin-left: 0;
    }

    body.khh-highway-heroes-page .khh-consent-summary {
        margin-top: 0;
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.khh-highway-heroes-page .khh-rules-caret,
    body.khh-highway-heroes-page .khh-consent-disclosure summary i {
        transition: none;
    }
}
