#contacts {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 55px 0 70px 0;
    flex-direction: column;

    .contacts-page {
        box-sizing: border-box;
        background: #fff;
        max-width: 1200px;
        width: 100%;
        flex-grow: 1;
        padding: 0 140px;
        display: flex;
        flex-direction: column;
    }

    .contacts-page__wrapper {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .contacts-page__title {
        color: rgba(184, 93, 58, 1);
        border-bottom: 1px solid rgba(184, 93, 58, 1);
        text-align: center;
        padding-bottom: 9px;
    }

    .contacts-page__tabs {
        list-style: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 100px;
        row-gap: 10px;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;

        a {
            font-family: "PT Serif Caption", serif;
            text-decoration: none;
            color: rgba(249, 116, 26, 1);
            border: 1px solid rgba(184, 93, 58, 1);
            border-radius: 50px;
            font-size: 24px;
            font-weight: 400;
            line-height: 32px;
            box-sizing: border-box;
            padding: 10px 30px;
            display: block;
            text-align: center;

            &:hover {
                color: rgba(23, 32, 48, 1);
            }

            &.-active {
                color: rgba(23, 32, 48, 1);
                cursor: default;
                border: 1px solid transparent;
            }
        }
    }

    .contacts-page__success-result {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(23, 32, 48, 1);
        font-family: "Roboto";
        font-size: 24px;
        font-weight: 300;
        line-height: 36px;
        display: none;
    }

    .contacts-page__content {
        padding: 40px 0;
        flex-grow: 1;
        flex-basis: 100%;
        position: relative;

        &.-success {
            .contacts-page__success-result {
                display: flex;
            }
        }
    }

    .contacts-page__tab-content {
        display: none;

        &.-active {
            display: block;
        }
    }

    .contacts-page__footer {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 60px;
        row-gap: 20px;
        align-items: center;
        justify-content: center;
        list-style: none;
        border-top: 1px solid rgba(184, 93, 58, 1);
        padding: 20px 5px;
        margin: 0;

        a {
            display: block;
            text-decoration: none;
            color: rgba(23, 32, 48, 1);
            font-family: "Roboto";
            font-size: 28px;
            font-weight: 500;
            line-height: 40px;
            display: flex;
            align-items: center;

            &:before {
                display: block;
                content: '';
                width: 32px;
                height: 32px;
                background-position: center center;
                background-repeat: no-repeat;
                background-size: contain;
                margin-right: 6px;
            }

            &.-email {
                &:before {
                    background-image: url("/static/images/icons/mail-orange.svg");
                }
            }

            &.-phone {
                &:before {
                    background-image: url("/static/images/icons/phone-orange.svg");
                }
            }
        }
    }

    form {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        column-gap: 32px;
        row-gap: 46px;
        
        .contacts__form-row {
            display: flex;
            flex-direction: row;
            column-gap: 32px;
            row-gap: 46px;

            &> .contacts__form-field {
                width: calc(50% - 16px);
            }
        }

        .contacts__form-field {
            input, textarea {
                width: 100%;
            }
        }

        .contacts__form-field-error {
            color: rgba(255, 81, 81, 1);
            font-family: "Roboto";
            font-size: 16px;
            font-weight: 300;
            line-height: 22px;
            padding: 0 10px;
        }

        input[type="checkbox"] {
            width: 20px;
            height: 20px;
            min-width: 20px;
            min-height: 20px;
            box-sizing: border-box;
            border-radius: 4px;
            background-color: #fff;
            border: 1px solid rgba(184, 93, 58, 1);
            -webkit-appearance: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease-in-out;

            &:before {
                width: 15px;
                height: 15px;
                content: "";
                display: block;
                background-image: url("/static/images/icons/check.svg");
                background-position: center center;
                background-repeat: no-repeat;
                background-size: contain;
            }

            &:checked {
                background-color: rgba(184, 93, 58, 1);
            }
        }

        input[type="text"] {
            outline: none;
            box-sizing: border-box;
            border-top: none;
            border-left: none;
            border-right: none;
            border-bottom: 1px solid rgba(153, 180, 207, 1);
            color: rgba(23, 32, 48, 1);
            font-family: "Roboto";
            font-size: 24px;
            font-weight: 300;
            line-height: 36px;
            padding: 10px;

            &.-error {
                border-bottom: 1px solid rgba(255, 81, 81, 1);
                color: rgba(255, 81, 81, 1);
            }

            &::placeholder {
                color: rgba(23, 32, 48, 0.5);
                font-family: "Roboto";
                font-size: 24px;
                font-weight: 300;
                line-height: 36px;
            }
        }

        textarea {
            outline: none;
            box-sizing: border-box;
            border-top: none;
            border-left: none;
            border-right: none;
            border-bottom: 1px solid rgba(153, 180, 207, 1);
            color: rgba(23, 32, 48, 1);
            font-family: "Roboto";
            font-size: 24px;
            font-weight: 300;
            line-height: 36px;
            padding: 10px;

            &.-error {
                border-bottom: 1px solid rgba(255, 81, 81, 1);
                color: rgba(255, 81, 81, 1);
            }

            &::placeholder {
                color: rgba(23, 32, 48, 0.5);
                font-family: "Roboto";
                font-size: 24px;
                font-weight: 300;
                line-height: 36px;
            }
        }

        label {
            align-self: center;
            display: flex;
            flex-direction: row;
            gap: 10px;
            font-family: "Roboto";
            font-size: 16px;
            font-weight: 300;
            line-height: 22px;
        }

        button {
            align-self: center;
        }
    }
}

@media only screen and (max-width: 800px) {
    #contacts {
        .contacts-page {
            padding: 0 20px;
        }

        .contacts-page__tabs {
            a {
                font-size: 20px;
                line-height: 28px;
            }
        }

        .contacts-page__success-result {
            font-size: 20px;
            line-height: 28px;
            text-align: center;
        }

        .contacts-page__footer {
            a {
                font-size: 20px;
                line-height: 28px;
            }
        }
    }
}

@media only screen and (max-width: 600px) {
    #contacts {
        form {
            .contacts__form-row {
                flex-wrap: wrap;

                &> .contacts__form-field {
                    width: 100%;
                }
            }

            input[type="text"] {
                font-size: 20px;
                line-height: 28px;

                &::placeholder {
                    font-size: 20px;
                    line-height: 28px;
                }
            }

            textarea {
                font-size: 20px;
                line-height: 28px;

                &::placeholder {
                    font-size: 20px;
                    line-height: 28px;
                }
            }
        }
    }
}