/*** styles_donate.css ***/

/*** TYPOGRAPHY ***/
button,
input,
select,
textarea {
    /*Box model stuff*/
    margin: 0 0 1rem;
    /*Miscellaneous*/
    line-height: inherit;
}

.donate .content-container .row blockquote {
    text-align: center;
    color: #3c4b4b;
    font-size: 1.3rem;
    line-height: 1.2;
    font-family: var(--font-sans-serif);
    font-weight: 700;
    font-style: normal;
}

/*** DONATION FORM ***/

/* Donation form container */
#donn {
    z-index: 1;
    max-width: 600px;
    margin-top: -120px;
    margin: -400px auto 0;
    padding: 0;
    top: 20px;
    background-color: #efefef;
    position: sticky;
}

@media (min-width: 991px) {
    #donn {
        /* This makes the donation page element sticky */
        position: sticky;
        /* Safari fallback */
        position: -webkit-sticky;
        /* Specify how far from the top of the viewport */
        top: 20px;

    }
}

@media (max-width: 992px) {
    #donn {
        margin-top: 2rem !important;
    }
}

@media screen and (max-width: 768px) {
    #donn {
        position: unset;
        top: 0;
        right: 0;
        margin-top: 3rem;
    }
}

@media (max-width: 577px) {
    #donn {
        margin-left: 0;
        margin-right: 0;
        border: none;
    }

    #top-block {
        padding-bottom: 0;
    }

    .footer__bottom--left figure {
        display: none;
    }
}

.container-steps {
    display: none;
}

main .donate-container {
    position: relative;
}

@media screen and (max-width: 991px) {
    .row>.donate-col {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Test banner above the donate form. */

.donate-text {
    padding: 5px 10px;
    background-color: #6199be;
    background-color: var(--color-green) !important;
}

.donate-text h2 {
    font-family: var(--font-sans-serif);
    font-weight: 500;
    margin: 10px 0;
    color: white;
    text-align: center;
}

/* RGs keep admin costs low msg */

.donation-form-container div[id$="_Content"]:before {
    /* display: block; */
    content: "Regular gifts keep admin costs low and help us plan ahead!";
    font-family: var(--font-serif);
    font-weight: normal;
    font-size: 0.9rem;
    text-align: center;
    margin: 20px 10px 40px;
    display: none;
}

/* Gift type RG-SG */

div.donation-frequency {
  text-align: center;
  margin-bottom: 10px;
  margin-top: -10px;
  padding-top: 5px;
}

li.donation-frequency {
    margin-top: -10px;
}

.donation-frequency>ul {
    padding-left: 0;
    display: flex;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
}

.donation-frequency+div fieldset {
    border: 0;
    padding: 0 15px;
}

.donation-frequency .form-options {
    border: 0;
}

.donation-frequency ul.form-options {
    width: 100%;
    column-gap: 2rem;
    margin: 1rem auto 1.5rem auto;
}

.donation-frequency ul.form-options li.donation-frequency {
    padding: 15px;
    position: relative;
    background-color: white;
}

.donation-frequency ul.form-options li.donation-frequency.active {
    background-color: white;
}

.donation-frequency ul.form-options li.donation-frequency label {
    width: 100%;
    cursor: pointer;
    font-size: 1.1rem;
}

.donation-frequency ul.form-options li.donation-frequency.active label {
    color: black;
}

fieldset.paymentInformation {
  margin-top: -4rem;
}

/* Adjust spacing above nav buttons */
.adf[data-step="1"] fieldset.buttonInformation {
    margin-top: -2rem;
}

.adf[data-step="2"] fieldset.buttonInformation {
  margin-top: 4rem;
}

.adf[data-step="3"] fieldset.buttonInformation {
  margin-top: 2rem;
}

/*--- AND Moved from banner ---*/

.BBFormRadioGivingLevelItem {
    background-color: white;
    margin-bottom: 10px;
}

.BBFormRadioGivingLevelItem.other {
    margin-bottom: 0;
}

.BBFormRadioGivingLevelItem.amount-option.active {
    background-color: white;
}

.BBFormRadioGivingLevelItem>.BBFormRadioButtonContainer .BBFormRadioGivingLevel {
    position: absolute;
    left: -9999px;
}

.BBFormRadioGivingLevelItem>.BBFormRadioButtonContainer>label {
    display: flex;
    cursor: pointer;
    height: 90px;
}

.BBFormRadioGivingLevelItem>.BBFormRadioButtonContainer>label .thumbnail {
    display: flex;
}

.BBFormRadioGivingLevelItem>.BBFormRadioButtonContainer>label .thumbnail>img {
    width: 110px;
    height: 90px;
    max-width: unset;
}

.BBFormRadioGivingLevelItem>.BBFormRadioButtonContainer>label .description {
    padding-left: 70px;
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: left;
    align-items: center;
    padding-right: 10px;
    padding-left: 50px;
    color: #272727;
    font-size: 16px;
    font-family: var(--font-sans-serif);
    font-weight: normal;
}

@media screen and (max-width: 992px) {
    .BBFormRadioGivingLevelItem>.BBFormRadioButtonContainer>label .description {
        padding-left: 50px !important;
    }
}

.BBFormRadioGivingLevelItem>.BBFormRadioButtonContainer>label .thumbnail .amount {
    color: white;
    background-color: var(--color-green);
    display: flex;
    flex-grow: 1;
    align-content: center;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans-serif);
    margin-top: 0;
    border: 5px white solid;
    font-size: 24px;
    font-weight: 500;
    left: 65px;
}

.BBFormRadioGivingLevelItem.active>.BBFormRadioButtonContainer>label .amount {
    background-color: var(--color-coral);
}

.donation-form-container {
    background-color: var(--color-beige);
}

.BBFormRadioImage {
    position: relative;
}

span.BBFormRadioAmount.amount:before {
    content: "$";
}

span.BBFormRadioAmount.amount:after {
    content: "/monthly";
    font-size: 0.9rem;
    border-radius: 0 !important;
    border: none !important;
    font-weight: normal;
    display: block;
    content: "";
    border-radius: 50px;
    border: 5px solid white;
    position: absolute;
    width: 123%;
    height: 120%;
    top: -7px;
    left: -8px;
    bottom: 0;
}

.BBFormRadioGivingLevelItem.other {
    background-color: transparent;
}

.BBFormRadioGivingLevelItem.other label {
    flex-direction: unset;
    height: 50px;
}

.BBFormGiftOtherAmount {
    float: right;
    width: 100%;
}

.form-control,
input,
select,
textarea,
input[type="text"].x-form-text,
main table.BBFormTable.DonationFormTable .BBFieldControlCell.DonationCaptureFieldControlCell select,
main table.BBFormTable.DonationFormTable .address-search-container #address_search,
.BBFormSelectList:not(table) {
    height: 43px;
    width: 100%;
    font-family: var(--font-sans-serif);
    font-weight: 300;
    padding: 2px 5px 5px 5px;
    border: 1px solid black;
    border-radius: 2px;
    background: white;
    min-height: 40px;
    width: 100%;
    font-size: 1rem;
}

#donn .other-input-container .BBFormRadioDescriptionOther {
    font-size: 1.1rem !important;
    font-size: 16px !important;
    margin-right: 5px;
}

/* Giving levels */
.BBFormRadioAmount {
    position: absolute;
    width: 90px;
    height: 90px;
    min-width: auto;
    border-radius: 45px;
    text-align: center;
}

@media screen and (min-width: 400px) {
    .BBFormRadioLabelGivingLevel.BBFormRadioLabelGivingLevelOther {
        display: block;
    }

    .BBFormRadioGivingLevelItem.BBGivingOther .BBFormRadioDescriptionOther {
        width: 60%;
    }
}

@media screen and (max-width: 992px) {

    main>.container:not(.donate-container)>div,
    .donation-form-text-underneath,
    .donation-frequency+div fieldset {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 460px) {

    main>.container:not(.donate-container)>div,
    .donation-form-text-underneath {
        padding: 0;
    }
}

.messages-below-form {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* 2025 - Styles and fixes introduced for horizontal scroll bar and main wrapper opacity transition */

#donn [id$=_Content],
.messages-below-form {
    opacity: 0;
    transition: none;
}

.main-wrapper.loaded #donn [id$=_Content],
.main-wrapper.loaded .messages-below-form {
    transition: opacity 200ms ease-out;
    opacity: 1;
}

/*** ERROR MESSAGES ***/

p.error,
p.custom-error,
span.error {
    display: block;
    margin: -10px 0 15px;
    color: red;
    font-family: var(--font-sans-serif);
    font-weight: 300;
    font-size: 1rem;
}

p.custom-error {
    margin-top: 10px;
    color: #d93200;
    font-size: 1rem !important;
}

/** COMMENTS FIELD ***/

.row.adf[data-step='1'] fieldset.commentInformation {
    padding-bottom: 50px;
}

.row.adf[data-step='2'] fieldset.commentInformation {
    padding-bottom: 0;
}

.row.adf {
    margin-left: 0;
    margin-right: 0;
}

.row.adf>.col-12 {
    padding-left: 0;
    padding-right: 0;
}

ul.form-options {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-bottom: 2rem;
}

ul.form-options li {
    width: 50%;
    text-align: center;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 8px;
    font-weight: 500;
    cursor: pointer;
    justify-content: flex-start;
}

#txtAmount {
    display: none;
}

.adf fieldset {
    border: 0px;
}

.adf-hide {
    display: none;
}

/*** BUTTONS ***/

button.donate {
    font-family: inherit !important;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.adf .backbutton {
    visibility: hidden;
}

.adf[data-step="2"] .backbutton,
.adf[data-step="3"] .backbutton {
    visibility: visible;
}

.adf .form>fieldset {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    /* Moves slightly down */
    will-change: opacity, transform;
}

.adf[data-step="1"] [data-step="1"],
.adf[data-step="1"] [data-step="all"],
.adf[data-step="2"] [data-step="2"],
.adf[data-step="2"] [data-step="all"],
.adf[data-step="3"] [data-step="3"],
.adf[data-step="3"] [data-step="all"],
.adf[data-step="1"] .dollarHandles,
.adf[data-step="2"] .dollarHandles,
.adf[data-step="3"] .dollarHandles {
    opacity: 1;
    max-height: unset;
    /* Adjust as needed */
    transform: translateY(0);
    /* Moves into place */
}

.loaded .adf .form>fieldset {
    transition: opacity 0.6s ease-in-out, transform 0.5s ease-in-out, max-height 0.5s ease-in-out;
}

.main-wrapper.loaded {
    opacity: 1;
    transition: opacity 200ms ease-out;
}

/*** CONFIRMATION ***/

div#overlayFlexParent {
    position: fixed;
}

.magic-radio,
.magic-checkbox {
    position: absolute;
    display: none;
}

.magic-radio[disabled],
.magic-checkbox[disabled] {
    cursor: not-allowed;
}

.magic-radio+label,
.magic-checkbox+label {
    position: relative;
    display: block;
    padding-left: 30px;
    cursor: pointer;
}

.magic-radio+label:before,
.magic-checkbox+label:before {
    position: absolute;
    top: -1px;
    left: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    content: "";
    border: 2px solid var(--color-charcoal);
    border-radius: 3px;
}

.magic-radio+label:hover:before,
.magic-checkbox+label:hover:before {
    animation-duration: 0.4s;
    animation-fill-mode: both;
    animation-name: hover-color;
}

.magic-radio+label:after,
.magic-checkbox+label:after {
    position: absolute;
    display: none;
    content: "";
}

.magic-radio[disabled]+label,
.magic-checkbox[disabled]+label {
    cursor: not-allowed;
    color: #e4e4e4;
}

.magic-radio[disabled]+label:hover,
.magic-radio[disabled]+label:before,
.magic-radio[disabled]+label:after,
.magic-checkbox[disabled]+label:hover,
.magic-checkbox[disabled]+label:before,
.magic-checkbox[disabled]+label:after {
    cursor: not-allowed;
}

.magic-radio[disabled]+label:hover:before,
.magic-checkbox[disabled]+label:hover:before {
    border: 1px solid #e4e4e4;
    animation-name: none;
}

.magic-radio[disabled]+label:before,
.magic-checkbox[disabled]+label:before {
    border-color: #e4e4e4;
}

.magic-radio:checked+label:before,
.magic-checkbox:checked+label:before {
    animation-name: none;
}

.magic-radio:checked+label:after,
.magic-checkbox:checked+label:after {
    display: block;
}

.magic-radio+label:before {
    border-radius: 50%;
}

.magic-radio+label:after {
    top: -2px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: black;
}

.magic-radio:checked+label:before {
    border: 1px solid black;
}

.magic-radio:checked[disabled]+label:before {
    border: 1px solid var(--color-very-pale-blue);
}

.magic-radio:checked[disabled]+label:after {
    background: var(--color-very-pale-blue);
}

.magic-checkbox+label:after {
    left: 7px;
    box-sizing: border-box;
    width: 6px;
    height: 12px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: white;
    border-top: 0;
    border-left: 0;
    top: 1px;
}

.magic-checkbox:checked+label:before {
    border: black;
    background: black;
}

.magic-checkbox:checked[disabled]+label:before {
    border: var(--color-very-pale-blue);
    background: var(--color-very-pale-blue);
}

.magic-checkbox~label.text {
    padding-left: 25px;
}

/*** DONATION FREQUENCY ***/

#donn .donation-frequency.has-message .form-options {
    margin-top: 2rem;
}

@media (max-width: 1399px) {
    #donn .donation-frequency.has-message .form-options {
        margin-top: 2.5rem;
    }
}

#donn .donation-frequency .msg-rg {
    font-family: var(--font-sans-serif);
    font-size: 0.9rem;
    position: relative;
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 1199px) {
    #donn .donation-frequency .msg-rg {
        width: 100%;
        text-align: center;
    }
}

#donn .donation-frequency .msg-rg:after {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: url(/image/donation-pages/asks/arrow-to-donate-monthly.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    content: "";
    width: 25px;
    height: 50px;
    z-index: 2;
}

@media (max-width: 1399px) {
    #donn .donation-frequency .msg-rg:after {
        top: 1.5rem;
    }
}

@media (max-width: 1199px) {
    #donn .donation-frequency .msg-rg:after {
        top: 1.5rem;
        right: 2.5rem;
    }
}

@media (max-width: 991px) {
    #donn .donation-frequency .msg-rg:after {
        top: 1.5rem;
        right: 4.5rem;
    }
}

@media (max-width: 769px) {}

#donn .other-input-container {
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

#donn .other-input-container .BBFormRadioDescriptionOther {
    align-self: center;
    height: auto;
    font-size: 1.2rem;
}

#donn .other-input-container .BBFormGiftOtherAmount.BBFormCurrency {
    float: none;
    max-width: 100%;
}

#donn .other-input-container .BBFormRadioLabel.BBFormRadioLabelGivingLevel {
    justify-content: flex-end;
    max-width: 15rem;
}

#donn .other-input-container .BBFormRadioLabel.BBFormRadioLabelGivingLevel>span {
    position: relative;
    text-align: right;
}

#donn .other-input-container .BBFormRadioLabel.BBFormRadioLabelGivingLevel>span:before {
    content: "$";
    position: absolute;
    display: block;
    top: 30%;
    transform: translateY(-50%);
    left: 0.5rem;
    font-size: 1.5rem;
    font-family: var(--font-sans-serif);
    font-weight: 500;
}

#donn .other-input-container .BBFormRadioLabel.BBFormRadioLabelGivingLevel>span input {
    padding-left: 2rem;
    font-size: 1.3rem;
}

.donation-frequency+div fieldset.inner {
    padding-left: 0px;
    padding-right: 0px;
}

.adf[data-step="2"] .donation-frequency,
.adf[data-step="3"] .donation-frequency {
    display: none;
}

.adf[data-step="2"] .BBFormRadioList .amount-option:not(.active),
.adf[data-step="2"] .BBFormRadioList .BBGivingOther:not(.active),
.adf[data-step="3"] .BBFormRadioList .amount-option:not(.active),
.adf[data-step="3"] .BBFormRadioList .BBGivingOther:not(.active) {
    display: none;
}

.donationInformation {
    display: none;
}

/*** BOTTOM OF FORM ***/

.content-container .msg-first-step {
    margin-top: 1rem;
    text-align: center;
}

.content-container .msg-first-step p {
    font-family: var(--font-sans-serif);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0rem;
}

/*** PAYMENT OPTIONS ***/



.payment-options {
    text-align: center;
    list-style: none;
    padding-left: 0px;
}

.options-payment .text {
    padding-left: 2rem;
    font-size: 1rem;
}

.payment-options img {
    max-width: 15rem;
    height: auto;
    margin: 0 auto;
    max-height: 40px;
    margin-top: 0.25rem;
}

.options-payment .magic-radio+label:before {
    top: 3px;
}

.options-payment .magic-radio+label:after {
    top: 9px;
}

.options-payment input[type="radio"]+label {
    font-size: 1rem;
    padding-top: 0.15rem;
}

.options-payment input[type="radio"]:checked~label {
    font-weight: 500;
}

.donationForm[data-frequency="OneTime"] .payment-options .hide-oneoff,
.donationForm[data-frequency="Recurring"] .payment-options .hide-recurring {
    display: none;
}

.col-form-label,
input[type="checkbox"]+label {
    font-family: var(--font-sans-serif);
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.col-form-label .required,
input[type="checkbox"]+label .required {
    color: red;
}

.custom-radio-container {
    margin-bottom: 1rem;
}

.adf[data-step="2"] .billingInformation h1 {
    margin-top: 0;
}

.billingInformation h2 {
  margin-top: 0;
}

.billingInformation input[type="radio"]+label,
.billingInformation input[type="checkbox"]+label {
    display: inline;
}

.billingInformation .magic-checkbox~label.text {
    padding-left: 0px;
    font-weight: 500;
    cursor: pointer;
}

/* RG Direct Debit agreement */

#divDayOfMonth {
    display: flex;
    column-gap: 1rem;
    margin-top: 1rem;
}

div#divDayOfMonth label {
  font-size: 1rem !important;
}

#day-of-month {
    min-width: 4rem;
}

#divDayOfMonth .show-date {
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

#divDayOfMonth bold {
    font-weight: 500;
}

label[for=DdAgreement] {
  margin-top: 2rem;
}

#Ddagreement.magic-checkbox+.text {
    margin-top: 2rem;
}

.custom-ddagreement-container .magic-radio:checked+label:after,
.custom-ddagreement-container .magic-checkbox:checked+label:after {
    display: inline-block;
    top: 0px;
}

tr.custom-ddagreement-container>td:nth-child(2) {
    padding-top: 20px;
    padding-bottom: 10px;
}

.custom-disabled:disabled {
    cursor: not-allowed;
}

/* modify the error message for no address selected */
.container-error-address {
    margin-top: -20px;
}

.container-error-address span.error[for="address_search"] {
    /* Hide the original "Required field" text by shrinking it to zero */
    font-size: 0 !important;
    /* Ensure the element respects layout so our new text can appear */
    display: block;
}

.container-error-address span.error[for="address_search"]::after {
    /* New message */
    content: "Please click on the address and select one of the options in the drop-down list";
    /* Restore the font size for the new message */
    font-size: 16px;
    visibility: visible;
    display: block;
}

.container-error-address span.error[for="address_search"]:empty {
    display: none !important;
}

#donn .other-input-container> :not(.container-error-other) {
    flex: 1 1 0;
}

#donn .other-input-container>.container-error-other {
    flex-basis: 100%;
    width: 100%;
}

.helper {
    display: block;
    padding-left: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border: 1px solid black;
    border-top: 0px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* address - qas end */



.visually-hidden {
    display: none;
}

.custom-radio-container .text {
    display: none;
}

/* BUTTONS */

.bottom-navigation-container {
    align-items: flex-end;
}

.buttonInformation .backbutton,
.buttonInformation button.donate {
    font-family: var(--font-sans-serif) !important;
    display: block;
    color: white !important;
    font-weight: 500 !important;
    background-size: cover !important;
    width: 130px !important;
    height: 35px !important;
    text-align: center;
    text-decoration: none;
    padding: 5px 10px 10px 10px !important;
    cursor: pointer;
    outline: 0px;
    border: 0px;
    font-size: 0.9rem;
}

.buttonInformation .backbutton {
    background: url(/image/reskin/splash_grey_short_to-left.png);
    transition: background 0.3s ease;
}

.buttonInformation button.donate {
    background: url(/image/reskin/splash_coral_short_to-right.png);
    transition: background 0.3s ease;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: auto;
}

.buttonInformation .col-nxt-button {
    text-align: right;
}

.buttonInformation .bottom-navigation-container {
    text-align: right;
}

/*** CONFIRMATION ***/

#thankyou-confirmation {
    padding: 20px;
}

.confirmation-page .donate-text {
    margin-bottom: 1rem;
}

.confirmation-page .donate-text~p {
    padding: 0.5rem 1.5rem;
    padding-bottom: 0;
}

.confirmation-page .donate-text~p:last-of-type {
    padding-bottom: 2rem;
}

/* animation */

#divBlocker_donn:after,
#divBlocker_donn:before {
    display: none !important;
}

/* HTML: <div class="loader"></div> */

.loader {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    position: absolute;
    overflow: hidden;
    top: 0;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 8px solid transparent;
    transform: translate(-50%, -50%);
}

.loader:before {
    border-top-color: var(--color-orange);
    animation: spin 1s linear infinite;
}

.loader:after {
    border-bottom-color: var(--color-green);
    animation: spinReverse 1.5s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinReverse {
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

#overlayText {
    font-family: var(--font-sans-serif) !important;
}

.dd-processing .donationForm {
    min-height: 15rem;
}

#bbcheckout-loader-wrapper #bbcheckout-spinner {
    display: none !important;
}