/* ===========================
   Contest Page – Mobile-First
   ===========================
   Designed for booth-visitor use on a phone.
   The page hides the site header/footer and centres
   a clean form card on a gradient background.
   =========================== */

/* ============================================
   1. HIDE SITE CHROME
   ============================================ */
.page-template-page-contest :is(.ftr, .hdr, .notification_bar) {
    display: none !important;
}

/* ============================================
   2. PAGE CONTAINER
   ============================================ */
.nrpa_contest_container {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(180deg, #E4EFFE 0%, #EFF5FF 30%, #F8FBFF 60%, #FFFFFF 100%);
    overflow: hidden;
}

/* ============================================
   3. DOT-GRID DECORATIONS
   ============================================ */
.nrpa_dot_grid {
    position: absolute;
    width: 68px;
    height: 68px;
    background-image: radial-gradient(
        circle,
        var(--yellow-300, #F5F572) 2.2px,
        transparent 2.2px
    );
    background-size: 13px 13px;
    z-index: 1;
    pointer-events: none;
}

.nrpa_dot_grid--top-right {
    top: 16px;
    right: 12px;
}

.nrpa_dot_grid--bottom-left {
    bottom: 16px;
    left: 12px;
}

/* ============================================
   4. BACKGROUND SVG BLOBS
   ============================================ */
.nrpa_contest_container > .nrpa_lets_connect_top_right_svg,
.nrpa_contest_container > .nrpa_lets_connect_bottom_left_svg {
    position: absolute;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

.nrpa_contest_container > .nrpa_lets_connect_top_right_svg {
    top: -50px;
    right: -80px;
    width: 280px;
    height: auto;
}

.nrpa_contest_container > .nrpa_lets_connect_bottom_left_svg {
    bottom: -50px;
    left: -80px;
    width: 280px;
    height: auto;
}

/* ============================================
   5. LOGO + TAGLINE
   ============================================ */
.nrpa_contest_container > img {
    display: block;
    width: 190px;
    max-width: 190px;
    margin: 0 auto 3px;
    position: relative;
    z-index: 2;
    align-self: center;
}

.nrpa_contest_tagline {
    display: block;
    text-align: center;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 11px;
    color: var(--ink-500, #6A6A6A);
    font-weight: 400;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.01em;
}

/* ============================================
   6. FORM CARD  (.nrpa_gform_wrapper)
   ============================================ */
.nrpa_contest_container .nrpa_gform_wrapper {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #D0E2F8;
    border-radius: 18px;
    box-shadow:
        0 4px 24px -6px rgba(35, 105, 210, 0.08),
        0 0 0 1px rgba(35, 105, 210, 0.03);
}

/* ============================================
   7. FORM HEADING
   ============================================ */
.nrpa_contest_container .gform_title {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 26px;
    font-weight: 800;
    color: var(--ink-900, #101010);
    text-align: center;
    line-height: 1.18;
    margin: 0 0 0.6rem;
}

.nrpa_contest_container .gform_description {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 13.5px;
    color: var(--ink-600, #4D4D4D);
    text-align: center;
    line-height: 1.55;
    margin: 0 auto 0.75rem;
    max-width: 340px;
}

/* ============================================
   8. REQUIRED LEGEND
   ============================================ */
.nrpa_contest_container .gform_required_legend {
    display: block !important;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 11.5px;
    color: var(--ink-400, #9A9A9A);
    margin-bottom: 0.5rem;
}

/* ============================================
   9. FORM FIELDS — Inputs & Labels
   ============================================ */
.nrpa_gform.nrpa_gform :is(
    input:not([type="checkbox"]):not([type="radio"]),
    textarea
) {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    border: 1px solid #C8D6E8;
    background: #fff;
    color: var(--ink-800, #1A1A1A);
    transition: border-color 0.2s ease;
}

.nrpa_gform.nrpa_gform :is(input, textarea):focus {
    border-color: var(--blue-400, #5A92E4);
    outline: none;
}

.nrpa_gform label,
.nrpa_gform .gfield_label {
    color: #000;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 0;
    font-family: var(--font-sans, 'Poppins', sans-serif);
}

.nrpa_gform .contact_frm_checkbox label {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--ink-700, #333);
    line-height: 1.45;
}

.nrpa_gform .contact_frm_checkbox .gchoice {
    align-items: flex-start;
}

.nrpa_gform.nrpa_gform input::placeholder,
.nrpa_gform.nrpa_gform textarea::placeholder {
    color: #9A9A9A;
}

.nrpa_gform.nrpa_gform input[type="checkbox"] {
    border-color: var(--blue-500);
}

.nrpa_gform.nrpa_gform input[type="checkbox"]:checked {
    background-color: var(--blue-500);
}

/* ============================================
   10. GRAVITY FORMS — Foundation Theme Overrides
   ============================================ */
.nrpa_gform_wrapper.gform-theme--foundation {
    --gf-form-gap-x: 16px;
    --gf-form-gap-y: 20px;
    --gf-ctrl-label-font-size-primary: 13.5px;
    --gf-ctrl-label-color-primary: #000;
    --gf-ctrl-shadow: none;
    --gf-ctrl-color: var(--ink-800, #1A1A1A);
    --gf-ctrl-shadow-focus: none;
    --gf-label-space-primary: 5px;
    --gf-ctrl-checkbox-check-radius: 4px;
    --gf-form-footer-margin-y-start: 24px;
    --gf-ctrl-textarea-height: 62px;
    --gf-ctrl-desc-font-size: 10.5px;
    --gf-desc-space: 3px;
    --gf-ctrl-choice-check-color: #fff;
    --gf-ctrl-checkbox-check-size-md: 12px;
    --gf-label-req-gap: 2px;
}

.nrpa_gform_wrapper.gform-theme--foundation .gfield textarea.small {
    min-block-size: 62px;
}

.nrpa_gform_wrapper.gform-theme--foundation .gform_validation_errors {
    display: none;
}

/* ============================================
   11. SUBMIT BUTTON  (yellow pill + blue arrow)
   ============================================ */
.nrpa_contest_container .gform_footer {
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Hide GF Foundation theme's built-in submit icon (prevents double arrow) */
.nrpa_gform .gform_button .gform-button__icon,
.nrpa_gform .gform_button .gform-button__icon--submit {
    display: none !important;
}

.nrpa_gform.nrpa_gform.nrpa_gform .gform_button.gform_button {
    all: unset !important;
    display: inline-flex !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 2 !important;
    background: var(--yellow-300) !important;
    color: #000 !important;
    font-family: var(--font-sans, 'Poppins', sans-serif) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 12px 12px 12px 30px !important;
    line-height: 1.4 !important;
    border-radius: 50px !important;
    align-items: center !important;
    overflow: hidden !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.nrpa_gform.nrpa_gform.nrpa_gform .gform_button.gform_button:hover {
    color: #fff !important;
}

.nrpa_gform.nrpa_gform.nrpa_gform .gform_button.gform_button::after {
    content: '' !important;
    background: url("/wp-content/uploads/2026/01/button-arrow-icon.svg") center / contain no-repeat !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    z-index: 1 !important;
    flex-shrink: 0 !important;
}

.nrpa_gform.nrpa_gform.nrpa_gform .gform_button.gform_button::before {
    content: '' !important;
    background: var(--blue-500) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50px !important;
    display: inline-block !important;
    position: absolute !important;
    right: 12px !important;
    z-index: -1 !important;
    transition: .4s all ease-out !important;
    transform-origin: 85% 50% !important;
}

.nrpa_gform.nrpa_gform.nrpa_gform .gform_button.gform_button:hover::before {
    width: 100% !important;
    height: 100% !important;
    right: 0 !important;
    transform: scale(1.01) !important;
}

/* ============================================
   12. FORM FOOTER LINKS
       (HTML field in GF with class nrpa_form_links)
   ============================================ */
.nrpa_form_links,
.nrpa_contest_container .gfield_html {
    text-align: center;
}

.nrpa_form_links {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 12.5px;
    color: var(--ink-500, #6A6A6A);
    margin-top: 4px;
}

.nrpa_form_links a {
    color: var(--blue-500, #2369D2);
    text-decoration: none;
    font-weight: 500;
}

.nrpa_form_links a:hover {
    text-decoration: underline;
}

/* ============================================
   13. CONFIRMATION — WRAPPER OVERRIDE
       Removes card styling when showing the
       post-submission confirmation.
   ============================================ */
.nrpa_contest_container .nrpa_gform_wrapper:has(.nrpa_confirm),
.nrpa_contest_container .nrpa_gform_wrapper--confirmed {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 420px;
}

.nrpa_contest_container .gform_confirmation_wrapper {
    margin: 0;
    padding: 0;
}

.nrpa_contest_container .gform_confirmation_message {
    display: block;
    padding: 0;
}

/* ============================================
   14. CONFIRMATION — LAYOUT
   ============================================ */
.nrpa_confirm {
    text-align: center;
    padding: 0 4px;
}

/* ============================================
   15. CONFIRMATION — CHECK ICON
   ============================================ */
.nrpa_confirm_icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue-500, #2369D2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.nrpa_confirm_icon svg {
    width: 26px;
    height: 26px;
}

/* ============================================
   16. CONFIRMATION — TITLE + SUBTITLE
   ============================================ */
.nrpa_confirm_title {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 30px;
    font-weight: 800;
    color: var(--ink-900, #101010);
    margin: 0 0 4px;
    line-height: 1.15;
}

.nrpa_confirm_subtitle {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 14px;
    color: var(--ink-500, #6A6A6A);
    margin: 0 0 20px;
}

/* ============================================
   17. CONFIRMATION — TOKEN CARD
   ============================================ */
.nrpa_confirm_token {
    border: 1.5px solid #D0E2F8;
    border-radius: 14px;
    padding: 22px 16px 20px;
    margin-bottom: 12px;
    background: #FAFCFF;
}

.nrpa_confirm_token_label {
    display: block;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--blue-500, #2369D2);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.nrpa_confirm_token_number {
    display: block;
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 38px;
    font-weight: 800;
    color: var(--ink-900, #101010);
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.nrpa_confirm_token_instruction {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 13px;
    color: var(--ink-600, #4D4D4D);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 300px;
}

/* ============================================
   18. CONFIRMATION — TIP TEXT
   ============================================ */
.nrpa_confirm_tip {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 12px;
    color: var(--ink-400, #9A9A9A);
    margin: 0 0 28px;
    font-style: italic;
}

/* ============================================
   19. CONFIRMATION — RESOURCES SECTION
   ============================================ */
.nrpa_confirm_resources {
    border-top: 1px solid var(--border, #E2E8F1);
    padding-top: 24px;
    text-align: center;
}

.nrpa_confirm_resources_title {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--ink-900, #101010);
    margin: 0 0 6px;
    line-height: 1.25;
}

.nrpa_confirm_resources_desc {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 13px;
    color: var(--ink-500, #6A6A6A);
    line-height: 1.55;
    margin: 0 auto 20px;
    max-width: 320px;
}

/* ============================================
   20. CONFIRMATION — DOWNLOAD BUTTON
   ============================================ */
.nrpa_confirm_download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--yellow-300, #F5F572);
    color: #000;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px -6px rgba(201, 201, 21, 0.35);
}

.nrpa_confirm_download:hover {
    background: #EBEB50;
    box-shadow: 0 6px 20px -6px rgba(201, 201, 21, 0.5);
    color: #000;
}

.nrpa_confirm_download svg {
    flex-shrink: 0;
}

.nrpa_confirm_download_note {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 12px;
    color: var(--ink-400, #9A9A9A);
    margin: 8px 0 24px;
}

/* ============================================
   21. CONFIRMATION — PRODUCT CARDS
   ============================================ */
.nrpa_confirm_products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    text-align: left;
}

.nrpa_confirm_product {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border-left: 3.5px solid transparent;
    box-shadow: 0 1px 6px rgba(16, 24, 40, 0.05);
    transition: box-shadow 0.2s ease;
}

.nrpa_confirm_product:hover {
    box-shadow: 0 3px 12px rgba(16, 24, 40, 0.09);
}

.nrpa_confirm_product--blue  { border-left-color: #2369D2; }
.nrpa_confirm_product--amber { border-left-color: #E8A817; }
.nrpa_confirm_product--green { border-left-color: #168F6B; }
.nrpa_confirm_product--coral { border-left-color: #D4483E; }

/* --- Product icon pill --- */
.nrpa_confirm_product_icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nrpa_confirm_product--blue  .nrpa_confirm_product_icon { background: #EBF4FF; }
.nrpa_confirm_product--amber .nrpa_confirm_product_icon { background: #FFF8E1; }
.nrpa_confirm_product--green .nrpa_confirm_product_icon { background: #E8F5E9; }
.nrpa_confirm_product--coral .nrpa_confirm_product_icon { background: #FFEBE9; }

/* --- Product text --- */
.nrpa_confirm_product_content strong {
    display: block;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-900, #101010);
    margin-bottom: 2px;
}

.nrpa_confirm_product_content p {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 12.5px;
    color: var(--ink-500, #6A6A6A);
    line-height: 1.45;
    margin: 0 0 4px;
}

.nrpa_confirm_product_content a {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 12.5px;
    color: var(--blue-500, #2369D2);
    font-weight: 600;
    text-decoration: none;
}

.nrpa_confirm_product_content a:hover {
    text-decoration: underline;
}

/* ============================================
   22. CONFIRMATION — WEBSITE CTA
   ============================================ */
.nrpa_confirm_website {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #F5F7FA;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: left;
    flex-wrap: wrap;
}

.nrpa_confirm_website svg {
    flex-shrink: 0;
}

.nrpa_confirm_website span {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700, #333);
    flex: 1;
    min-width: 120px;
}

.nrpa_confirm_website a {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 12.5px;
    color: var(--blue-500, #2369D2);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nrpa_confirm_website a:hover {
    text-decoration: underline;
}

/* ============================================
   23. CONFIRMATION — CONTACT CTA
   ============================================ */
.nrpa_confirm_contact_text {
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900, #101010);
    margin: 0 0 12px;
}

.nrpa_confirm_talk_btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border: 2px solid var(--blue-500, #2369D2);
    border-radius: 50px;
    color: var(--blue-500, #2369D2);
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    margin-bottom: 8px;
}

.nrpa_confirm_talk_btn:hover {
    background: var(--blue-500, #2369D2);
    color: #fff;
}

/* ============================================
   24. BROCHURE BUTTONS (legacy / fallback)
   ============================================ */
.nrpa_brochure_cta {
    margin-top: 24px;
    text-align: center;
}

.nrpa_brochure_cta h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.nrpa_brochure_links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.nrpa_brochure_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--blue-500, #2369D2);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nrpa_brochure_btn:hover {
    background: var(--blue-600, #1B54AE);
    color: #fff;
    transform: translateY(-2px);
}

.nrpa_brochure_btn svg {
    flex-shrink: 0;
}

/* ============================================
   25. PAGE FOOTER TEXT
   ============================================ */
.nrpa_contest_footer_text {
    text-align: center;
    font-family: var(--font-sans, 'Poppins', sans-serif);
    font-size: 12px;
    color: var(--ink-400, #9A9A9A);
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* ============================================
   26. RESPONSIVE — Small phones (≤ 359px)
   ============================================ */
@media (max-width: 359px) {
    .nrpa_contest_container {
        padding: 1.5rem 0.75rem 1rem;
    }

    .nrpa_contest_container .nrpa_gform_wrapper {
        padding: 1.25rem 1rem 1rem;
        border-radius: 14px;
    }

    .nrpa_contest_container .gform_title {
        font-size: 22px;
    }

    .nrpa_confirm_token_number {
        font-size: 30px;
    }

    .nrpa_confirm_product {
        gap: 10px;
        padding: 12px;
    }
}

/* ============================================
   27. RESPONSIVE — Tablets & larger (≥ 480px)
   ============================================ */
@media (min-width: 480px) {
    .nrpa_contest_container {
        padding: 2.5rem 1.5rem 2rem;
    }

    .nrpa_contest_container > img {
        width: 220px;
        max-width: 220px;
    }

    .nrpa_contest_container .nrpa_gform_wrapper {
        padding: 2rem 2rem 1.5rem;
        border-radius: 22px;
    }

    .nrpa_contest_container .gform_title {
        font-size: 30px;
    }

    .nrpa_confirm_title {
        font-size: 34px;
    }

    .nrpa_confirm_token_number {
        font-size: 42px;
    }
}

/* ============================================
   28. RESPONSIVE — Desktop (≥ 768px)
   ============================================ */
@media (min-width: 768px) {
    .nrpa_contest_container {
        padding: 3rem 2rem 2rem;
    }

    .nrpa_dot_grid {
        width: 84px;
        height: 84px;
    }

    .nrpa_dot_grid--top-right { top: 24px; right: 24px; }
    .nrpa_dot_grid--bottom-left { bottom: 24px; left: 24px; }

    .nrpa_contest_container > .nrpa_lets_connect_top_right_svg {
        width: 340px;
    }

    .nrpa_contest_container > .nrpa_lets_connect_bottom_left_svg {
        width: 340px;
    }

    .nrpa_contest_container > img {
        width: 260px;
        max-width: 260px;
    }

    .nrpa_contest_tagline {
        font-size: 12px;
        margin-bottom: 1.5rem;
    }

    .nrpa_contest_container .nrpa_gform_wrapper {
        max-width: 500px;
        padding: 2.5rem;
    }

    .nrpa_contest_container .gform_title {
        font-size: 34px;
    }

    .nrpa_contest_container .gform_description {
        font-size: 15px;
        max-width: 400px;
    }

    .nrpa_gform.nrpa_gform :is(
        input:not([type="checkbox"]):not([type="radio"]),
        textarea
    ) {
        padding: 12px 16px;
        font-size: 15px;
    }

    .nrpa_confirm_resources_title {
        font-size: 22px;
    }

    .nrpa_brochure_links {
        flex-direction: row;
    }
}
