:root {
    --fcc-pink: #d7136b; /* #ca005d; */
}

.form-page {
    font-family: LubalinGraphStd;
    font-size: 20px;
    
    background-color: var(--fcc-pink);
    color: white;
    overscroll-behavior: none;

    display: flex;
    align-items: center;
}
.form-page .wp-block-contact-form-7-contact-form-selector {
    width: 100%;
}
.form-page .form-page-link a,
.form-page .wpcf7-not-valid-tip {
    color: white;
}
.form-page .wpcf7 {
    max-width: unset;
    width: 70%;
}

.form-page form :is(
    input[type=email], 
    input[type=password], 
    input[type=text], 
    input[type=submit],
    textarea,
    select
){
    border: 4px solid white !important;
    background: transparent;
    color: white !important;
    max-width: unset;
    font-weight: bold;
    padding: 10px;
    border-radius: 0;
    font-size: 20px;
}
.form-page form :is(
    input[type=email], 
    input[type=password], 
    input[type=text], 
    textarea,
    select
):focus {
    background: initial;
}
.form-page form input[type=submit] {
    background-color: white !important;
    color: var(--fcc-pink) !important;
    font-weight: bold;
    width: 100%;
}


/* Stuff to make the pledge text box fill the available area */
.form-page .col-9, 
.form-page label:has([name=pledge-pledge]) {
    display: flex;
    flex-direction: column;
}
.form-page label:has([name=pledge-pledge]),
.form-page textarea[name=pledge-pledge] {
    height: 100%;
}

.form-page p:has([name=pledge-pledge]),
.form-page span:has([name=pledge-pledge]) {
    flex: 1;
}

.form-page .wpcf7 p:has(> label):not(:has(> label > br + *)){
    margin-bottom: 0;
}

.form-page ::selection {
    color: var(--fcc-pink);
    background-color: white;
}
.form-page .pea_cook_wrapper {
    display: none !important;
}

.pledge-icon-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    grid-auto-rows: max-content;
    align-items: center;
}
.pledge-icon-select label {
    border: 4px solid white;
    display: block;
    aspect-ratio: 1/1;
    transition: background-color .2s;
}
.pledge-icon-select label:has(:checked) {
    background-color: white;
}
.pledge-icon-select label input {
    display: none;
}
.pledge-icon-select label svg {
    width: 80%;
    max-height: 80%;
    fill: white;
    position: relative;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    transition: fill .2s;
}
.pledge-icon-select label:has(:checked) svg {
    fill: var(--fcc-pink)
}
.wpcf7 form:is(.sent, .invalid) .wpcf7-response-output {
    border: none;
    margin: 0;
    padding: 0;
    
}
.wpcf7 form .wpcf7-response-output a {
    color: white;
}

.post-type-archive-pledge .banner-image{
    height: 350px;
}

.pledge-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: max-content;
    gap: 40px;
    padding: 0;
}

.pledge {
    filter: drop-shadow(5px 5px 5px #00000040);
    padding: 30px;
    /* height: 100%; */
    position: relative;
    font-size: 16px;
    
    color: black;
    aspect-ratio: 1 / 1;
    
    rotate: var(--r);
}
.pledge-list li:nth-child(even) .pledge{
    rotate: calc( var(--r) * -1 );
}

@media screen and (max-width: 992px) and (min-width: 768px) {
    .pledge-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .pledge-list li:nth-child(even) .pledge{
        rotate: var(--r);
    }
    .pledge-list li:is(:nth-child(4n), :nth-child(4n + 1)) .pledge{
        rotate: calc( var(--r) * -1 );
    }
}

@media screen and (max-width: 767px) {
    .pledge-list {
        grid-template-columns: repeat(1, 1fr);
    }
    .pledge{
        aspect-ratio: 2 / 1;
    }
}  

.pledge h4 {
    font-size: 1.5em;
    font-weight: bold;
}
.pledge svg {
    position: absolute;
    z-index: -1;
    bottom: 30px;
    right: 30px;
    fill: black;
    height: 130px;
    width: 130px;
}
.pledge svg use {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 1200px) and (min-width: 992px), screen and (max-width: 576px){
    .pledge svg {
        bottom: 10px;
        right: 10px;
        height: 100px;
        width: 100px;
    }
}

.pledge.dark-olive {
    background-color: #627052;
}
.pledge.olive {
    background-color: #97985d;
}
.pledge.light-olive {
    background-color: #BCBB92;
}
.pledge.lime {
    background-color: #D6DE23;
}
.pledge.apple {
    background-color: #91c748;
}
.pledge.dark-green {
    background-color: #3c551b;
}
.pledge:is(.dark-green, .dark-olive) {
    color: white;
}
.pledge:is(.dark-green, .dark-olive) svg {
    fill: white;
}

.inline-edit-pledge :is(
    .inline-edit-col-left,
    .inline-edit-categories-label:first-child,
    .category-checklist,
    .inline-edit-tags-wrap 
){
    display: none !important;
}
.inline-edit-pledge ul.cat-checklist {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    overflow: visible;
}
.inline-edit-pledge .inline-edit-col-center {
    width: fit-content;
    min-width: 20%;
}
