.p24d-form {
    max-width: 760px;
    margin: 40px auto;
    color: #143d6b;

    --p24d-form-color: #d9023f;
}

.p24d-form__inner {
    background: #fff;
    padding: 20px 24px;
}

.p24d-form__title {
    margin: 0 0 10px;
    text-align: center;
    color: var(--p24d-form-color);
    font-size: 18px !important;
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: bold;
}

.p24d-form__subtitle,
.p24d-form__lead {
    text-align: center;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.25;
}

.p24d-form__modes {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.p24d-form__mode,
.p24d-form__amount {
    border: 2px solid var(--p24d-form-color);
    border-radius: 999px;
    background: #fff;
    color: var(--p24d-form-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.p24d-form__submit button {
    border: 0px;
    border-radius: 999px;
    background: #fff;
    color: var(--p24d-form-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.p24d-form__mode,
.p24d-form__amount {
    padding: 5px 20px;
    font-size: 14px;
}

.p24d-form__mode.is-active,
.p24d-form__amount.is-active,
.p24d-form__submit button {
    background: var(--p24d-form-color);
    color: #fff;
}

.p24d-form__submit button {
    background: #fff;
    color: var(--p24d-form-color);
}

.p24d-form__amounts {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0 20px;
}

.p24d-form__amounts.is-visible {
    display: flex;
}

.p24d-form__other-amount {
    display: none;
    margin-bottom: 16px;
}

.p24d-form__other-amount.is-visible {
    display: block;
}

.p24d-form input[type="text"],
.p24d-form input[type="email"],
.p24d-form input[type="number"] {
    width: 100%;
    border: none;
    border-radius: 999px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    padding: 16px 24px;
    margin-bottom: 12px;
    font-size: 10px;
    color: #143d6b;
}

.p24d-form input[type="text"].is-invalid,
.p24d-form input[type="email"].is-invalid,
.p24d-form input[type="number"].is-invalid {
    border-color: #cc0033;
}

.p24d-form__consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #143d6b;
}

.p24d-form__consent input {
    margin-top: 5px;
}

.p24d-form__consent input.is-invalid {
    outline: 2px solid #cc0033;
    outline-offset: 1px;
}

.p24d-form__error {
    color: #cc0033;
    text-align: center;
    min-height: 22px;
    margin: 10px 0;
}

.p24d-form__submit {
    text-align: center;
    margin-top: 16px;
}

.p24d-form__submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    min-width: 250px;
    padding: 12px 28px;
    font-size: 18px;
}

.p24d-form__submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: p24d-spin 0.8s linear infinite;
}

.p24d-form__submit button.is-loading {
    cursor: wait;
    opacity: 0.95;
}

.p24d-form__submit button.is-loading .p24d-form__submit-spinner {
    display: inline-block;
}

@keyframes p24d-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



.p24d-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p24d-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.p24d-popup__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    background: linear-gradient(to bottom, #feafca 0%, #d95682 100%);
}

.p24d-popup__title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #143d6b;
    font-weight: 700;
}

.p24d-popup__message {
    font-size: 42px;
    color: #fff;
}

.p24d-popup__close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    background: #E61788;
    border: none;
    padding: 5px 10px 8px 10px;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    border-radius: 50%;
    z-index: 10;
    transition: opacity 0.3s;
}

.p24d-popup__close:hover {
    opacity: 0.7;
}

.p24d-popup__success {
    display: none;
}

.p24d-popup__success img {
    width: 100%;
    height: auto;
}

.p24d-popup__success.show {
    display: flex;
}

.p24d-popup__payment-status {
    display: none;
    padding: 20px;
}

.p24d-popup__payment-status.show {
    display: flex;
    align-items: center;
    justify-content: center;
    height: min(calc(100vh - 40px), 640px);
}

.p24d-form__footer {
    margin-top: 20px;
}

.p24d-form__footer .p24d-form__footer-logos {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
