a {
    color: #006af3;
}


body {
    background-color: #ccc;
}

.container {
    background-color: #fff;
    padding-bottom: 2em;
}

.container:last-of-type {
    margin-bottom: 5em;
}

.container:first-of-type {
    margin-top: 1em;
    padding-top: 1em;
}

.container td.ALLEGHEADERS {
    padding-top: 0.75em;
    padding-bottom: 0.25em;
    font-size: 2em;
    color: #222;
    background-color: #fff;
}

input[type=checkbox],
input[type=radio] {
    margin-right: 5px;
}

label {
    margin-right: 15px;
}


div#recaptcha_area {
    padding-bottom: 0.5em;
}

img.logo {
    padding-top: 1em;
    margin-left: -10px;
    max-width: 100%;
}

div.header {
    /* padding-bottom: 0px; */
    background-color: #006af3;
}

td.ALLEGSECTIONS {
    padding-top: 1em;
}


input,
textarea,
select {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* --------------------------------------------------
   Donation Type Buttons
   -------------------------------------------------- */

#ctl00_AllegMain_MODETABLE input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

#ctl00_AllegMain_MODETABLE label {
    display: inline-block;
    box-sizing: border-box;

    padding: 12px 20px;
    margin: 0 8px 8px 0;

    border: 1px solid #aaa;
    border-radius: 5px;

    background-color: #e5e5e5;
    color: #000;

    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.15s ease-in-out,
        color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
}


/* Hover */
#ctl00_AllegMain_MODETABLE label:hover {
    background-color: #d5d5d5;
    border-color: #999;
}


/* Selected */
#ctl00_AllegMain_MODETABLE input[type="radio"]:checked + label {
    background-color: #006af3;
    border-color: #006af3;
    color: #fff;
}


/* Selected hover */
#ctl00_AllegMain_MODETABLE input[type="radio"]:checked + label:hover {
    background-color: #0055c7;
    border-color: #0055c7;
}


/* Keyboard focus */
#ctl00_AllegMain_MODETABLE input[type="radio"]:focus + label {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* --------------------------------------------------
   Standard form buttons
   -------------------------------------------------- */

input[type="submit"],
button {
    border-radius: 5px;
    border: 1px solid #006af3;
    padding: 2px 7px;
    background-color: #fff;
}

input[type="submit"]:hover,
button:hover {
    background-color: #006af3;
    color: #fff;
}

button {
    margin-top: 5px;
    margin-bottom: 5px;
}

button#SearchName {
    margin-left: 5px;
}

button#SearchCompany {
    margin-left: 5px;
}

button#SearchAddress {
    margin-left: 5px;
}

button#SearchPhone {
    margin-left: 5px;
}

input[type="submit"] {
    margin-top: 5px;
}


/* --------------------------------------------------
   Donation Amount Buttons
   -------------------------------------------------- */

/*
   The original Allegiance form contains:

       <input type="radio">
       <label>Amount</label>

   The radio button is visually hidden and the label
   becomes the clickable button.
*/

#ctl00_AllegMain_UPGRADETABLE {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}


/* Hide the actual radio buttons */

#ctl00_AllegMain_UPGRADETABLE input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}


/* --------------------------------------------------
   Four buttons per row Amount
   -------------------------------------------------- */

@media (min-width: 768px) {

    #ctl00_AllegMain_UPGRADETABLE {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    #ctl00_AllegMain_UPGRADETABLE tbody {
        display: contents;
    }

    #ctl00_AllegMain_UPGRADETABLE tr {
        display: contents;
    }

    #ctl00_AllegMain_UPGRADETABLE td {
        display: block;
        padding: 0;
    }
}

/* --------------------------------------------------
   Four buttons per row Payment Type
   -------------------------------------------------- */

@media (min-width: 768px) {

    #ctl00_AllegMain_MODETABLE {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #ctl00_AllegMain_MODETABLE tbody {
        display: contents;
    }

    #ctl00_AllegMain_MODETABLE tr {
        display: contents;
    }

    #ctl00_AllegMain_MODETABLE td {
        display: block;
        padding: 0;
    }
}

/* --------------------------------------------------
   Donation button appearance
   -------------------------------------------------- */

#ctl00_AllegMain_UPGRADETABLE label {
    display: block;
    width: 100%;
    box-sizing: border-box;

    padding: 12px 8px;

    border: 1px solid #aaa;
    border-radius: 5px;

    background-color: #e5e5e5;
    color: #000;

    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;

    cursor: pointer;

    margin: 0;

    transition:
        background-color 0.15s ease-in-out,
        color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
}


/* Hover state */

#ctl00_AllegMain_UPGRADETABLE label:hover {
    background-color: #d5d5d5;
    border-color: #999;
}


/* Selected button */

#ctl00_AllegMain_UPGRADETABLE input[type="radio"]:checked + label {
    background-color: #d62021;
    border-color: #d62021;
    color: #fff;
}


/* Selected button hover */

#ctl00_AllegMain_UPGRADETABLE input[type="radio"]:checked + label:hover {
    background-color: #b91b1c;
    border-color: #b91b1c;
}


/* Keyboard focus */

#ctl00_AllegMain_UPGRADETABLE input[type="radio"]:focus + label {
    outline: 2px solid #333;
    outline-offset: 2px;
}


/* --------------------------------------------------
   Mobile donation buttons
   -------------------------------------------------- */

@media (max-width: 767px) {

    #ctl00_AllegMain_UPGRADETABLE {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #ctl00_AllegMain_UPGRADETABLE tbody {
        display: contents;
    }

    #ctl00_AllegMain_UPGRADETABLE tr {
        display: contents;
    }

    #ctl00_AllegMain_UPGRADETABLE td {
        display: block;
        padding: 0;
    }

    #ctl00_AllegMain_UPGRADETABLE label {
        padding: 12px 6px;
        font-size: 16px;
    }
    #ctl00_AllegMain_MODETABLE {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #ctl00_AllegMain_MODETABLE tbody {
        display: contents;
    }

    #ctl00_AllegMain_MODETABLE tr {
        display: contents;
    }

    #ctl00_AllegMain_MODETABLE td {
        display: block;
        padding: 0;
    }

    #ctl00_AllegMain_MODETABLE label {
        padding: 12px 6px;
        font-size: 16px;
    }
}

/* --------------------------------------------------
   Donation Type Buttons
   -------------------------------------------------- */

#ctl00_AllegMain_MODETABLE input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

#ctl00_AllegMain_MODETABLE label {
    display: inline-block;
    box-sizing: border-box;

    padding: 12px 20px;
    margin: 0 8px 8px 0;

    border: 1px solid #aaa;
    border-radius: 5px;

    background-color: #e5e5e5;
    color: #000;

    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.15s ease-in-out,
        color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
}


/* Hover */
#ctl00_AllegMain_MODETABLE label:hover {
    background-color: #d5d5d5;
    border-color: #999;
}


/* Selected */
#ctl00_AllegMain_MODETABLE input[type="radio"]:checked + label {
    background-color: #006af3;
    border-color: #006af3;
    color: #fff;
}


/* Selected hover */
#ctl00_AllegMain_MODETABLE input[type="radio"]:checked + label:hover {
    background-color: #0055c7;
    border-color: #0055c7;
}


/* Keyboard focus */
#ctl00_AllegMain_MODETABLE input[type="radio"]:focus + label {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* --------------------------------------------------
   Donation summary / payment information
   -------------------------------------------------- */

table#ctl00_AllegMain_tblPayInfo {
    display: block;
    padding: 8px;
    font-weight: bold;
    background-color: #eee;
    border: 3px solid #006af3;
}