.form-section {
    padding: 120px 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
h3.title-item {
    font-size: 32px;
}
@media screen and (max-width: 1024px) {
    h3.title-item {
        font-size: 24px;
    }
}
@media screen and (max-width: 1024px) {
    h3.title-item {
        font-size: 18px;
    }
}
input, select, button, option {
    font-family: "Montserrat Arm", serif;
    font-size: 16px;
}
input, select, button, option, input:focus-within, select:focus-within, button:focus-within, option:focus-within, input:focus, select:focus, button:focus, option:focus, input:focus-visible, select:focus-visible, button:focus-visible, option:focus-visible {
    outline: 0;
}
label {
    cursor: pointer;
    white-space: nowrap;
}
.form-item {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 25px;
}
.form-item .form-logo-wrapper {
    display: none;
}
.form-item.preloading {
    opacity: 0.6;
    cursor: progress;
}
.form-item.preloading * {
    pointer-events: none;
}
.form-item label {
    padding: 7px 4px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: 0.3s all ease;
}
.form-item label input[type=radio] {
    pointer-events: none;
    width: 0;
    appearance: none;
}
.form-item label.active {
    border: 2px solid #001f46;
}
.form-item label.err-inp {
    border-color: #c41515;
}
.form-item label.err-inp input, .form-item label.err-inp input::placeholder {
    color: #c41515;
}
.frequency-wrapper {
    justify-content: center;
    width: 100%;
    max-width: 500px;
    box-shadow: inset 0 0 0 2px #ebf1fc;
    border-radius: 8px;
}
.frequency-wrapper label {
    flex: 1;
    --margin-minuse: -4px;
    display: flex;
    justify-content: center;
}
.frequency-wrapper label:first-child {
    margin-right: var(--margin-minuse);
}
.frequency-wrapper label:nth-child(2) {
    margin-left: var(--margin-minuse);
}
.amount-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.amount-wrapper label {
    flex: 1 0 calc(33.33% - 17px);
    padding: 15px 8px;
    border-radius: 8px;
    border: 2px solid #ebf1fc;
}
.glob-amount label {
    border: 2px solid #ebf1fc;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    cursor: default;
}
.glob-amount label:focus-within {
    border: 2px solid #001f46;
}
.glob-amount label input {
    flex: 1 1 auto;
    border: 0;
    padding: 0 7px;
    max-width: calc(100% - 75px);
}
.glob-amount label select {
    flex: 0 0;
    background-color: transparent;
}
.glob-amount select {
    border: 0;
}
.name-email-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.name-email-wrapper input {
    border: 0;
    width: 100%;
}
.name-email-wrapper label {
    width: 100%;
    border: 2px solid #ebf1fc;
    padding: 15px 7px;
    cursor: text;
}
.name-email-wrapper label:focus-within {
    border: 2px solid #001f46;
}
.name-email-wrapper label:focus-within.err-inp {
    border: 2px solid #c41515;
}
.submit-btn {
    margin-top: 8px;
}
.submit-btn button {
    width: 100%;
    padding: 17px 8px;
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    background-color: #001f46;
    color: #fff;
    position: relative;
}
.submit-btn button .lds-dual-ring {
    display: inline-flex;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    position: absolute;
    right: 15px;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.submit-btn button .lds-dual-ring:before, .submit-btn button .lds-dual-ring:after {
    width: 100%;
    height: auto;
}
.subscription-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    margin-top: -25px;
    transition: 0.3s all ease;
}
.subscription-wrapper .subscription-toggleing {
    display: flex;
    min-height: 0;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}
.subscription-wrapper.active {
    grid-template-rows: 1fr;
    margin-top: 0;
}
.subscription-wrapper span br {
    display: none;
}
.subscription-wrapper select {
    min-width: fit-content;
    border: 2px solid #ebf1fc;
    border-radius: 8px;
    padding: 3px 5px;
    background-color: transparent;
}

.projects-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: .25rem;
}

.projects-wrapper label {
    padding-left: 0;
}

.projects-wrapper select {
    width: 100%;
    border: 2px solid #ebf1fc;
    border-radius: 8px;
    padding: 10px 8px;
    background-color: transparent;
    cursor: pointer;
}

.form-item .logo-wrapper {
    max-width: 120px;
    margin: 0 auto;
}

.form-item.submitting {
    opacity: 0.6;
    cursor: progress;
}

.form-item.submitting * {
    pointer-events: none;
}

.form-item.submitting .submit-btn .lds-dual-ring {
    opacity: 1;
}

.not-found-main {
    display: flex;
    justify-content: center;
    align-items: center;
}
main .popup-body {
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
main .popup-body .popup-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 45px;
    text-align: center;
    max-width: calc(100% - 40px);
    display: none;
}
main .popup-body .popup-item.active {
    display: block;
}
main .popup-body .popup-item .form-result-icon {
    width: 45px;
    margin-top: 26px;
}
main .popup-body.active {
    opacity: 1;
    pointer-events: all;
}
.form-top-wrapper {
    --box-spacing: 0;
    max-width: 750px;
    margin: 0 auto 45px;
}
.form-top-wrapper .project-title {
    color: #001f46;
}
.form-top-wrapper .title-wrapper {
    background-color: #fff;
    padding: var(--box-spacing);
}
.form-top-wrapper .title-wrapper h2.title-item {
    margin-bottom: 16px;
}
.form-top-wrapper .title-wrapper h2.title-item br {
    display: none;
}
.form-top-wrapper .title-wrapper h3.title-item {
    margin-bottom: 16px;
}
.form-top-wrapper .title-wrapper .image-wrapper img {
    width: 100%;
    max-width: 400px;
}
.form-top-wrapper .title-wrapper .content-title {
    display: none;
}
.form-top-wrapper .title-wrapper .content-title.active {
    display: unset;
}
@media screen and (max-width: 767px) {
    .form-top-wrapper .title-wrapper h2.title-item br, .subscription-toggleing span br {
        display: block;
    }
    .subscription-wrapper .subscription-toggleing {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 25px;
    }
    .subscription-wrapper .subscription-toggleing select {
        width: 100%;
    }
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
