

/* Оверлей чтобы затемнить картинку если она есть */
.bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.donation-container {
    width: 95%;
    max-width: 940px;
    position: relative;
    z-index: 10;
    margin: 40px auto 150px;
}

.donation-card {
}

.card-header {
    margin-bottom: 36px;
    display: flex;
    align-items: end;
}

.card-header img {
    width: 67.63px;
    height: 59.17px;
    object-fit: contain;
}
.card-header div {
    display: block;
    margin-left: 23px;
}
.card-header h2 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #C2DBFF;
    margin: 0px;
    font-weight: 700;
}

.card-header p {
    color: #C2DBFF;
    font-size: 14px;
    font-weight: 400;
    margin: 0px;
}

.form-group {
    margin-bottom: 0px;
}

.label-text, label {
    display: block;
    color: #C2DBFF;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    margin-bottom: 8px;
}


.donation-form {
    display: flex;
    flex-direction: column;
}

.donation-form-box {
    display: flex;
    align-items: start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.payment-method-block {
    height: max-content;
}

.method-box {
    height: 46px;
    width: 100%;
    background-color: white;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.method-box::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('../images/credits/robokassa.webp');
    background-size: contain;
    background-repeat: no-repeat;
}


.method-badge {
    color: #3E7BFA;
    position: absolute;
    right: 16.27px;
    top: 11.17px;
    font-size: 24px;
    line-height: 24px;
    width: 21px;
    height: 24px;
}

.input-wrapper, .select-wrapper {
    position: relative;
}



.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0087DF;
    z-index: 2;
}

input[type="text"], select {
    width: 100%;
    padding: 10px 15px 10px 40px; 
    border-radius: 4px;
    border: none;
    background-color: white;
    color: black;
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.2s;
    border: 1.54px solid transparent;
    color: black;
    font-weight: 400;
    font-size: 16px;
}

input:focus {
    box-shadow: 0 0 0 2px var(--primary-blue);
    outline: 1.54px solid #3b82f6;
}

.field-hint {
    display: block;
    margin-top: 7px;
    font-weight: 400;
    font-size: 15px;
    color: #C2DBFF;
}

/* ------PACKAGES-------- */

.donation_packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    align-items: stretch;
    margin-top: 26.98px;
}

.donation_packages label {
    width: 100%;
    position: relative;
    cursor: pointer;
    display: block;
    margin-bottom: 0px;
}

.donation_packages > label:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.donation_packages input {
    position: absolute;
    opacity: 0;
}
.donation_package {
    width: 100%;
    height: 189px;
    border-radius: 10px;
    height: max-content;
    background-color: white;
    color: black;
    border: 1.59px solid #667488;
    box-shadow: 0 0px 20px rgba(73, 73, 73, 0.5);
    overflow: hidden;
    position: relative;
}

.donation_package_discount {
    position: absolute;
    right: 4.5px;
    top: 6.71px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 97.49px;
    height: 24.70px;
    padding: 4.01px 4.13px 4.7px;
    color:#0F0624;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    box-shadow: 0px 0px 9.55px 1.34px #FF99008A;
    font-weight: 700;
    border-radius: 8.01px;
    background: radial-gradient(101.66% 108.57% at 101.66% 177.14%, #FFD95B 0%, #FFF279 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

.donation_package_img {
    width: 100%;
    height: 136px;
}

.donation_package_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donation_package:hover {
    box-shadow: 0 0px 10px rgba(153, 153, 153, 0.5);
}

.donation_package_text {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 6px 10px 9px;
    background-color: #C2DBFF;
}

.donation_package_text div {
    width: calc(100% - 50px);
}

.donation_package_text img {
    width: 40.73px;
    height: 35.39px;
}

.donation_package h4 {
    font-size: 21px;
    font-weight: 700;
    line-height: 26px;
    line-height: 20px;
    margin: 0px;
}

.donation_package span,
.donation_package span b {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    display: inline-block;
    position: relative;
}

/* ----------- */

.donation_package .card-icon {
    margin-bottom: 0px;
    width: 30px;
    font-size: 30px;
    color: rgb(233, 200, 17);
}

input:checked ~ .donation_package {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 1.59px solid #C2DBFF;
    color: white;
}
input:checked ~ .donation_package .donation_package_text {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    color: white;
}

/* Кнопка */
.btn-submit {
    width: 100%;
    max-width: 400px;
    padding: 11px 12px 14px;
    margin: 32px auto 0px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 21px;
    line-height: 21px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

.btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(1px);
}

.secure-info {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #5b6572;
}


@media screen and (max-width: 733px) {
    .donation-container {
        margin: 80px auto 100px;
    }
    .donation-form-box {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 20px;
    }

    .donation_packages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 26.98px;
    }

    .donation_package_text div {
        width: calc(100% - 40px);
    }

    .donation_package h4 {
        font-size: 18px; 
        line-height: 18px;
    }

    .donation_package span, .donation_package span b {
        font-size: 14px;
        line-height: 14px;
        margin-top: 2px;
    }

    .donation_package_text img {
        width: 37.73px;
        height: 29.39px;
    }
}

@media screen and (max-width: 450px) {

    .donation-container {
        margin: 70px auto 90px;
    }

    .card-header {
        margin-bottom: 26px;
    }
    
    .card-header img {
        width: 47.63px;
        height: 39.17px;
        object-fit: contain;
    }
    .card-header div {
        margin-left: 13px;
    }
    .card-header h2 {
        font-size: 20px;
    }
    
    .card-header p {
        font-size: 12px;
    }



    .donation-form-box {
        gap: 14px;
    }

    .label-text, label {
        font-size: 12px;
        line-height: 12px;
        margin-bottom: 4px;
    }

    .method-box {
        height: 38px;
        width: 100%;
    }

    .field-hint {
        margin-top: 4px;
        font-size: 12px;
    }

    .method-badge {
        right: 10px;
        top: 9px;
        font-size: 20px;
        line-height: 20px;
        width: 20px;
        height: 20px;
    }

    input[type="text"], select {
        width: 100%;
        padding: 5px 15px 7px 40px; 
     
        font-size: 16px;
    }
    




    .donation_package_img {
        height: 80px;
    }
    
    .donation_package_discount {
        position: absolute;
        right: 4.5px;
        top: 6.71px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 77.49px;
        height: 20.70px;
        padding: 2.01px 2.13px 2.7px;
        font-size: 10px;
        line-height: 10px;
    }

    .donation_package_text {
        padding: 4px 7px 6px;
    }

    .donation_package_text div {
        width: calc(100% - 34px);
    }

    .donation_package h4 {
        font-size: 14px; 
        line-height: 14px;
    }

    .donation_package span, .donation_package span b {
        font-size: 12px;
        line-height: 12px;
        margin-top: 2px;
    }

    .donation_package_text img {
        width: 30.73px;
        height: 24.39px;
    }


    .btn-submit {
        margin: 22px auto 0px;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        font-size: 18px;
        line-height: 18px;
        padding: 9px 12px 11px;
    }

}
