#debt-amount-slider {
    display: flex;
    flex-direction: row;
    align-content: stretch;
    position: relative;
    width: 100%;
    height: 50px;
    user-select: none;
}

#debt-amount-slider::before {
    content: " ";
    position: absolute;
    height: 2px;
    width: 100%;
    width: calc(100% * (2 / 3));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #F26522;
}

#debt-amount-slider input, #debt-amount-slider label {
    box-sizing: border-box;
    flex: 1;
    user-select: none;
    cursor: pointer;
}

#debt-amount-slider label {
    display: inline-block;
    position: relative;
    width: 20%;
    height: 100%;
    user-select: none;
}

#debt-amount-slider label::before {
    content: attr(data-debt-amount);
    position: absolute;
    left: 50%;
    padding-top: 10px;
    transform: translate(-50%, 45px);
    font-size: 14px;
    letter-spacing: 0.4px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0.85;
    transition: all 0.15s ease-in-out;
}

#debt-amount-slider label::after {
    content: " ";
    position: absolute;
    left: 51%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid #F26522;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

#debt-amount-slider label:hover::after {
    transform: translate(-50%, -50%) scale(1.25);
}

#debt-amount-slider input {
    display: none;
}

#debt-amount-slider input:checked + label::before {
    font-weight: 800;
    opacity: 1;
}

#debt-amount-slider input:checked + label::after {
    border-width: 4px;
    transform: translate(-50%, -50%) scale(0.75);
}

#debt-amount-slider input:checked ~ #debt-amount-pos {
    opacity: 1;
}

#debt-amount-slider input:checked:nth-child(1) ~ #debt-amount-pos {
    right: 14.1%;
}

#debt-amount-slider input:checked:nth-child(3) ~ #debt-amount-pos {
    right: 47.4%;
}

#debt-amount-slider input:checked:nth-child(5) ~ #debt-amount-pos {
    right: 80.9%;
}

#debt-amount-slider #debt-amount-pos {
    display: block;
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #F26522;
    border-radius: 50%;
    transition: all 0.15s ease-in-out;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    opacity: 0;
    z-index: 2;
}

form:valid #debt-amount-slider input + label::before {
    transform: translate(-50%, 45px) scale(0.9);
    transition: all 0.15s linear;
}

form:valid #debt-amount-slider input:checked + label::before {
    transform: translate(-50%, 45px) scale(1.1);
    transition: all 0.15s linear;
}

form + button {
    display: block;
    position: relative;
    margin: 56px auto 0;
    padding: 10px 20px;
    appearance: none;
    transition: all 0.15s ease-in-out;
    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    background: #F26522;
    border: 2px solid #000;
    border-radius: 8px;
    outline: 0;
    user-select: none;
    cursor: pointer;
}

form + button:hover {
    background: #F26522;
    color: #fff;
}

form + button:hover:active {
    transform: scale(0.9);
}

form + button:focus {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
    pointer-events: none;
}

form + button:focus::before {
    animation: spin 1s linear infinite;
}

form + button::before {
    display: inline-block;
    width: 0;
    opacity: 0;
    content: "\f3f4";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    margin-right: 0;
    transform: rotate(0deg);
}

form:invalid + button {
    pointer-events: none;
    opacity: 0.25;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
        width: 24px;
        opacity: 1;
        margin-right: 12px;
    }
    to {
        transform: rotate(360deg);
        width: 24px;
        opacity: 1;
        margin-right: 12px;
    }
}

.select-amount {
    margin-right: 6%;
}

#donation_period input[type=radio] {
    position: absolute;
    visibility: hidden;
    display: none;
}

#donation_period label {
    color: #9a929e;
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 40px;
}

#donation_period input[type=radio]:checked + label {
    color: #FFFFFF;
    background: #F26522;
}

#donation_period label + input[type=radio] + label {
    /*border-left: solid 3px #675f6b;*/
}

#donation_period .radio-group {
    /*border: solid 3px #675f6b;*/
    display: inline-block;
    margin: 20px;
    /*border-radius: 10px;*/
    overflow: hidden;
    width: 95%;
}

.custom-input-group{
    width: 90%;
}

@media only screen and (max-width: 1199px) {
    #donation_period label {
        padding: 5px 25px;
    }
}

@media only screen and (max-width: 991px) {
    #donation_period label {
        padding: 5px 15px;
    }
    #debt-amount-slider input:checked:nth-child(1) ~ #debt-amount-pos {
        right: 13.1%;
    }

    #debt-amount-slider input:checked:nth-child(3) ~ #debt-amount-pos {
        right: 46.4%;
    }

    #debt-amount-slider input:checked:nth-child(5) ~ #debt-amount-pos {
        right: 79.9%;
    }
}

@media only screen and (max-width: 767px) {
    #donation_period label {
        padding: 5px 65px;
    }
    #debt-amount-slider input:checked:nth-child(1) ~ #debt-amount-pos {
        right: 14.5%;
    }

    #debt-amount-slider input:checked:nth-child(3) ~ #debt-amount-pos {
        right: 47.9%;
    }

    #debt-amount-slider input:checked:nth-child(5) ~ #debt-amount-pos {
        right: 81.3%;
    }
}

@media only screen and (max-width: 756px) {
    #donation_period label {
        padding: 5px 60px;
    }
}

@media only screen and (max-width: 714px) {
    #donation_period label {
        padding: 5px 55px;
    }
}

@media only screen and (max-width: 672px) {
    #donation_period label {
        padding: 5px 50px;
    }
}

@media only screen and (max-width: 629px) {
    #donation_period label {
        padding: 5px 40px;
    }
}

@media only screen and (max-width: 545px) {
    #donation_period label {
        padding: 5px 30px;
    }

    #debt-amount-slider input:checked:nth-child(1) ~ #debt-amount-pos {
        right: 13.5%;
    }

    #debt-amount-slider input:checked:nth-child(3) ~ #debt-amount-pos {
        right: 46.9%;
    }

    #debt-amount-slider input:checked:nth-child(5) ~ #debt-amount-pos {
        right: 80.3%;
    }
}

@media only screen and (max-width: 466px) {
    #donation_period label {
        padding: 5px 20px;
    }
}

@media only screen and (max-width: 382px) {
    #donation_period label {
        padding: 5px 15px;
    }
    #debt-amount-slider input:checked:nth-child(1) ~ #debt-amount-pos {
        right: 12.5%;
    }

    #debt-amount-slider input:checked:nth-child(3) ~ #debt-amount-pos {
        right: 45.9%;
    }

    #debt-amount-slider input:checked:nth-child(5) ~ #debt-amount-pos {
        right: 79.3%;
    }
}

@media only screen and (max-width: 340px) {
    #donation_period label {
        padding: 5px 10px;
    }
}
