/**
 * Armoedefonds Donate Form Enhancer Styles
 * Styles for radio button donation form
 */


#gform_wrapper_30 {
    max-width: 400px;
}

.hp_donate_form {
    min-width: 300px;
    width: 100%;
    box-sizing: border-box;
}

.hp_donate_form p,
.gform_title {
    color: #1D1E1B !important;
}

.hp_donate_form_wrapper {
    background: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.35) 2px 2px 4px 0px;
    border-radius: 16px;
    border: 3px solid rgb(29, 30, 27);
    padding: 20px;
    box-sizing: border-box;
}


.hp_donate_form .gfield_radio {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}


.hp_donate_form input[type="radio"] {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}


.hp_donate_form .gfield_radio label {
    text-overflow: clip;
    white-space: nowrap;
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    flex: 1;
    min-width: 90px;
    height: 78px;
    line-height: 78px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    border: 0px;
    border-radius: 16px;
    background-color: rgb(231, 222, 214);
    color: rgb(0, 0, 0);
    transition: all 0.3s ease;
    margin: 0;
    font-weight: 600;
}


.hp_donate_form .gfield_radio label:hover {
    background-color: rgb(200, 190, 175);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hp_donate_form input[type="radio"]:checked+label {
    text-overflow: clip;
    white-space: nowrap;
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    width: 94px;
    height: 78px;
    line-height: 78px;
    box-sizing: border-box;
    text-align: center;
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
    border: 0px;
    border-radius: 16px;
    color: rgb(255, 255, 255);
    background-color: rgb(148, 31, 130);
    box-shadow: 0 4px 12px rgba(148, 31, 130, 0.3);
}


.hp_donate_form input[type="radio"]:focus+label {
    outline: 2px solid rgb(148, 31, 130);
    outline-offset: 2px;
}


.hp_donate_form .gfield--type-consent .gfield_consent_label,
.hp_donate_form .newsletter .gfield_consent_label {
    font-size: 14px;
    line-height: 1.4;
}

.hp_donate_form select,
.hp_donate_form .gfield select,
.hp_donate_form input[type="text"],
.hp_donate_form input[type="email"],
.hp_donate_form input[type="tel"],
.hp_donate_form input[type="number"],
.hp_donate_form .gfield input[type="text"],
.hp_donate_form .gfield input[type="email"],
.hp_donate_form .gfield input[type="tel"],
.hp_donate_form .gfield input[type="number"] {
    appearance: none;
    width: 100%;
    min-width: 80px;
    height: 46px;
    border-radius: 16px;
    background-color: rgb(255, 255, 255);
    font-size: 18px;
    padding-left: 13px;
    border: 2px solid rgb(231, 222, 214);
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.hp_donate_form select:hover,
.hp_donate_form .gfield select:hover,
.hp_donate_form input[type="text"]:hover,
.hp_donate_form input[type="email"]:hover,
.hp_donate_form input[type="tel"]:hover,
.hp_donate_form input[type="number"]:hover,
.hp_donate_form .gfield input[type="text"]:hover,
.hp_donate_form .gfield input[type="email"]:hover,
.hp_donate_form .gfield input[type="tel"]:hover,
.hp_donate_form .gfield input[type="number"]:hover {
    border-color: rgb(148, 31, 130);
}

.hp_donate_form select:focus,
.hp_donate_form .gfield select:focus,
.hp_donate_form input[type="text"]:focus,
.hp_donate_form input[type="email"]:focus,
.hp_donate_form input[type="tel"]:focus,
.hp_donate_form input[type="number"]:focus,
.hp_donate_form .gfield input[type="text"]:focus,
.hp_donate_form .gfield input[type="email"]:focus,
.hp_donate_form .gfield input[type="tel"]:focus,
.hp_donate_form .gfield input[type="number"]:focus {
    outline: none;
    border-color: rgb(148, 31, 130);
    box-shadow: 0 0 0 3px rgba(148, 31, 130, 0.1);
}

.hp_donate_form select,
.hp_donate_form .gfield select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(0,0,0)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

/**
 * Submit/Send button styling
 */
.hp_donate_form input[type="submit"],
.hp_donate_form button[type="submit"],
.hp_donate_form .gform_button {
    color: #FFFFFF !important;
    border-color: #FFFFFF;
    background-color: #941C84 !important;
    width: 100%;
    font-size: 20px;
    font-variant: normal;
    font-style: normal;
    font-weight: 400;
    text-shadow: none;
    text-transform: none;
    border: 2px solid transparent !important;
    padding: 0.3em 2em 0.3em 0.7em;
    border-radius: 0px;
    cursor: pointer;
    transition: none !important;
    box-sizing: border-box;
    display: block;
    margin-top: 20px;
}

.hp_donate_form input[type="submit"]:hover,
.hp_donate_form button[type="submit"]:hover,
.hp_donate_form .gform_button:hover {
    background-color: #7d1370 !important;
}

.hp_donate_form input[type="submit"]:focus,
.hp_donate_form button[type="submit"]:focus,
.hp_donate_form .gform_button:focus {
    outline: 2px solid #941C84;
    outline-offset: 2px;
}


@media (max-width: 768px) {
    .hp_donate_form .gfield_radio {
        gap: 12px;
    }

    .hp_donate_form .gfield_radio label {
        width: 80px;
        height: 70px;
        line-height: 70px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hp_donate_form {
        padding: 15px;
    }

    .hp_donate_form .gfield_radio {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
    }

    .hp_donate_form .gfield_radio label {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 14px;
        flex: 1;
        min-width: 50px;
    }

    .hp_donate_form select,
    .hp_donate_form .gfield select {
        height: 40px;
        font-size: 16px;
    }
}