
/* Hero uses same teal pattern as content area — seamless transition */
body.page-id-29575 .pledge-hero,
body.page-id-29871 .pledge-hero {
    background-image: url(https://www.cleanairday.org/wp-content/uploads/2023/02/elementarySchoolBackground.png) !important;
    background-size: 32.5em !important;
    background-repeat: repeat !important;
    background-position: 0 0 !important;
}

/* Elementary hero — remove gap between hero and content */
body.page-id-29575 .pledge-hero,
body.page-id-29871 .pledge-hero {
    margin-bottom: 0 !important;
}

/* Spanish toggle link — white on teal background */
body.page-id-29575 .pledge-lang-toggle,
body.page-id-29871 .pledge-lang-toggle {
    margin-bottom: 0;
    padding: 12px 30px;
}
body.page-id-29575 .pledge-lang-toggle__link,
body.page-id-29871 .pledge-lang-toggle__link {
    color: #ffffff !important;
}

/* Description paragraph below title */
.pledge-hero-description {
    color: #ffffff;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
    line-height: 1.2;
    margin: 16px auto 0;
    max-width: 700px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Gold script subtitle ("For Kids" / "Para Los Niños") */
.pledge-hero--elementary .pledge-hero-subtitle {
    color: #ffd700;
    font-family: 'DK Cool Crayon', 'Libre Franklin', sans-serif;
    font-weight: normal;
    text-transform: none;
}

@media (max-width: 768px) {
    .pledge-hero-description {
        font-size: 1.1em;
    }
}

/* Teal repeating pattern on content area — restores original TheGem look */
body.page-id-29575 .entry-content,
body.page-id-29871 .entry-content {
    background-image: url(https://www.cleanairday.org/wp-content/uploads/2023/02/elementarySchoolBackground.png), linear-gradient(to right, rgba(86,126,191,0.1), rgba(86,126,191,0.1));
    background-size: 32.5em;
    background-position: 0 0;
    background-repeat: repeat;
    padding-bottom: 40px;
}

/* White text on teal background */
body.page-id-29575 .entry-content > .gb-element-cad0040 > p,
body.page-id-29871 .entry-content > .gb-element-cad0050 > p {
    color: #ffffff;
    font-size: 1.15em;
    font-weight: 300;
}

/* Gravity Form Specific styles */
#gform_submit_button_51 {
    font-weight: 900 !important;
    font-size: 1.25em !important;
    letter-spacing: 1px;
    background: rgba(255,255,255,.8);

}
#gform_51
{
    background: rgba(255,255,255,.8);
    padding: 1.5em;
    border: 4px solid #00594c;
    border-radius: 1em;

}
#gform_submit_button_51{
    background-color: #00594c !important;
}

/* Elementary specific styles */

.back, .check {
    opacity: 0;
    transition: opacity .4s;
}

.check {
    fill: #fff;
}

input:checked + label > svg .back, input:checked + label > svg .check {
    opacity: 1;
}

/* Hide native checkbox — SVG circle acts as the visual indicator */
#gform_51 input[type="checkbox"].gfield-choice-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Label layout: kids-pledge.js sets flex + column-reverse so SVG floats to top */
.gform_wrapper ul.gfield_checkbox li {
    position: relative;
}

.gform_wrapper ul.gfield_checkbox li label {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding-left: 0 !important;
    padding-right: 10px !important;
    font-size: 1.25em;
}

/** Undo GF Checkboxes — hide GF's custom ::before checkbox visual **/
#gform_51 .gfield_checkbox li label::before,
#gform_51 .gfield_checkbox li label::after {
    content: none !important;
    display: none !important;
}

label > svg {
    width: 3.75em;
    padding-right: 0;
    margin-bottom: .5em;
}

body .gform_wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

textarea, input[type="text"], input[type="number"] {
    border: 3px solid rgb(0, 89, 76, .7) !important;
    background: rgba(154, 73, 18, .03) !important;
    padding: 15px !important;
    width: 100% !important;
    border-radius: 4px;
}

textarea:focus, input[type="text"]:focus, input[type="number"]:focus {
    border-color: #00594c !important;
    background: #ffffff !important;
}
