.contacts {
    padding-top: 92px;
}

.contacts__wrapper {
    max-width: 1310px;
    padding: 0 15px;
    margin: 0 auto;
}

.contacts__content {
    display: flex;
    max-height: 500px;
    box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    background-color: var(--main-light);
}

.contacts__sidebar {
    display: flex;
    flex-direction: column;
    max-width: 455px;
    padding: 0 108px;
    box-sizing: border-box;
    background-color: var(--accent);
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.contacts__asterisk {
    margin: 69px 0 57px 0;
    width: 239px;
    height: 227px;
    background-image: url("../icons/asterisk.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.contacts__details {
    margin: 0;
    margin-bottom: 54px;
    font-family: "Suisse Int'l";
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    line-height: 31px;
    text-align: center;
}

.contacts__main, .contacts__form {
    display: flex;
    flex-direction: column;
}

.contacts__main {
    width: 100%;
    box-sizing: border-box;
    margin: 99px 20px 0 97px;
    max-width: 503px;
}

.contacts__main-title {
    margin: 0;
    margin-bottom: 40px;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 23px;
}

.contacts__button {
    max-width: 180px;
    background-color: var(--accent);
    border: 0;
    border-radius: 57px;
    font-size: 14px;
    line-height: 18px;
    height: 40px;
    padding: 0 12px;
    cursor: pointer;
}

.input__wrapper {
    position: relative;
    padding: 0;
    padding-bottom: 8px;
    padding-left: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(18, 18, 18, 0.2);
}

.input__wrapper:last-of-type {
    margin-bottom: 40px;
}


.input {
    width: 100%;
    padding-left: 11px;
    outline: none;
    background-color: var(--main-light);
}

.input::placeholder {
    font-size: 14px;
    line-height: 14px;
}

.icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon--account {
    background-image: url('../icons/account.svg');
}

.icon--phone {
    background-image: url('../icons/phone.svg');
    background-position: bottom;
}

.icon--location {
    background-image: url('../icons/location.svg');
}

.icon--building {
    background-image: url('../icons/building.svg');
}

@media screen and (max-width: 991px) {
    .contacts__main {
        margin: 0;
        justify-content: center;
        align-items: center;
    }
    .contacts__main {
        padding: 0 24px;
        align-items: start;
    }
    .contacts__form {
        width: 100%;
    }
    .contacts__details {
        font-size: 14px;
    }
    .contacts__main-title {
        text-align: center;
        font-size: 14px;
    }
    .contacts__sidebar {
        padding: 0 54px;
    }
    .contacts__asterisk {
        margin: 69px auto 57px;
    }
}

@media screen and (max-width: 767px) {
    .contacts__content {
        flex-direction: column;
    }
    .contacts__asterisk {
        display: none;
    }
    .contacts__sidebar {
        max-width: 100%;
        padding: 25px 8px;
        border-bottom-left-radius: 0;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
    .contacts__details {
        font-size: 14px;
        margin: 0;
    }
}

@media screen and (max-width: 767px) {
    .contacts__main {
        padding: 25px 0;
        margin: 0 auto;
        align-items: center;
    }
    .contacts__main-title {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .contacts__form {
        padding: 0 12px;
    }
    .contacts__form--footer {
        padding: 24px;
    }
}
