:root {
    --green: #3A7968;
}

body {
    margin: 0;
    font-family: "Inter", serif;
    font-style: normal;
    background: #FFFFFF;
}

p, h1 {
    margin: 0;
}

.bold {
    font-weight: bold;
}

.leaply-color {
    color: var(--green);
}

.page {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
}

.logo {
    height: 26px;
}

.center {
    max-width: 1024px;
    height: 100%;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 1fr minmax(400px, 1fr);
}

/*CONTACTS*/
.contacts {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 20px;
    padding: 0 5px;
}

.contacts__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 27px;
    color: var(--green);
    cursor: pointer;
}

.contacts__info {
    font-weight: 500;
    font-size: 15px;
    line-height: 25px;
    color: #637282;
}

.icon-right {
    display: inline-block;
    animation: slide1 1.2s ease-in-out infinite;
}

.icon-down {
    display: none;
    animation: slide2 1.2s ease-in-out infinite;
}

@keyframes slide1 {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5px, 0);
    }
}

@keyframes slide2 {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, 5px);
    }
}

/*FORM*/
.form-wrapper {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 20px;
}

.form-wrapper__back-layout {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-rows: 200px 1fr;
    z-index: -1;
    border-radius: 12px;
    overflow: hidden;
}

.back-layout__top {
    height: 100%;
    background: var(--green);
    padding: 20px;
    box-sizing: border-box;
}

.back-layout__title {
    color: white;
    font-weight: 600;
    font-size: 27px;
    margin-top: 10px;
    margin-left: 3px;
    text-align: left;
}

.back-layout__bottom {
    position: relative;
    height: 100%;
    background: #F4F6F8;
}

.form {
    display: none;
    width: 100%;
    margin-top: 100px;
    margin-right: 20px;
    margin-left: 20px;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: calc(100% - 160px);
}

form {
    height: 100%;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    grid-gap: 15px;
}

.form.show {
    display: block;
}

.form__input-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form__textarea-row {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-gap: 2px;
}

.form__textarea-row textarea {
    height: 100%;
}

.response-popup {
    width: calc(100% - 30px);
    height: calc(100% - 120px);
    display: none;
    align-items: center;
    justify-content: center;
    background: white;
    margin-top: 100px;
    border-radius: 8px;
}

.response-popup.show {
    display: flex;
}

.response-popup__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 20px;
}

.response-popup__title {
    font-size: 18px;
    font-weight: bold;
    color: #322E48;
    text-align: center;
    line-height: 25px;
}

.form__title {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #322E48;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #322E48;
}

.label__required {
    position: relative;
    top: -3px;
    margin-right: 2px;
    color: rgb(255, 0, 0);
    font-size: 10px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgb(71, 88, 103);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

textarea {
    max-height: 100%;
    resize: none;
}

.action-button {
    width: 100%;
    height: 44px;
    padding: 10px;
    background-color: var(--green);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.action-button__loader-wrapper {
    display: none;
    justify-content: center;
    align-items: center;
}

.action-button:hover {
    background-color: #32916d;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.action-button:active {
    background-color: #2a7a5b;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .center {
        grid-template-columns: 1fr;
        grid-auto-rows: auto 1fr;
        grid-gap: 15px;
        justify-items: center;
    }

    .contacts {
        gap: 8px;
        margin-top: 10px;
        padding: 5px 15px;
    }

    .contacts__info {
        font-size: 13px;
    }

    .contacts__title {
        justify-content: center;
        font-size: 20px;
    }

    .form-wrapper {
        height: 98%;
        margin-top: 0;
        margin-bottom: 0;
        width: calc(100% - 20px);
    }

    .form {
        margin-top: 77px;
        height: calc(100% - 130px);
    }

    .icon-down {
        display: inline-block;
    }
    .icon-right {
        display: none;
    }
    .back-layout__title {
        font-size: 22px;
    }
}