:root {
    --helperBlue: #576ED6;
    --main-blue: #2D63E4;
    --main-white: #FBFBFB;
}

.contacts {
    margin-top: 21px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contacts-under-form-text {
    font-weight: 700;
    font-size: 24px;
    color: var(--helperBlue);
    text-align: center;
    margin-bottom: 210px;
}

.contacts-action {
    max-width: 1196px;
    width: 100%;
    padding: 8px 10px;
    margin: 0 auto;
    border-radius: 10px;
    background-color: white;
    display: flex;
    
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 50px 0px;
}

.contacts-reference-contacts {
    position: relative;
    height: 560px;
    width: 491px;
    border-radius: 10px;
    background-color: var(--main-blue);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.contacts__h2 {
    font-weight: 600;
    font-size: 28px;
    color: white;
    margin-bottom: 8px;
}

.contacts__description {
    color: #C9C9C9;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 60px;
}

.contacts-blocks {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.contacts-contact-bloc {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contacts-contact-value {
    font-size: 16px;
    font-weight: 400;
    color: white;
}

.form {
    max-width: 695px;
    width: 100%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 45px;
    -webkit-tap-highlight-color: transparent;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: #8D8D8D;
}

.form-input {
    width: 100%;
    height: 30px;
    border: none;
    border-bottom: 1px solid #8D8D8D;
    color: black;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

.form-input::placeholder {
    font-size: 14px;
    font-weight: 500;
    color: #8D8D8D;
}

.submit-btn-container {
    display: flex;
    justify-content: end;
}

.submit-btn {
    font-size: 16px;
    font-weight: 700;
    color: var(--main-white);
    width: 214px;
    height: 54px;
    background-color: var(--main-blue);
    border-radius: 76px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: filter 0.3s;
}

.submit-btn:hover {
    filter: brightness(80%);
}

.contacts-small-ellipsis {
    position: absolute;
    right: 81px;
    bottom: 40px;
}

.contacts-big-ellipsis {
    position: absolute;
    right: 0;
    bottom: 0;
}

@media (max-width: 800px) {
    .contacts-action {
        width: 510px;
        display: flex;
        flex-direction: column;
        justify-content: unset;
    }

    .form-input {
        width: 100%;
    }

    .contacts-under-form-text {
        padding: 0 50px;
    }
}

@media (max-width: 600px) {
    .contacts {
        padding: 0 20px;
    }

    .contacts-action {
        width: 100%;
        align-items: center;
    }

    .contacts__h2 {
        font-size: 18px;

    }

    .contacts__description {
        font-size: 12px;
    }

    .contacts-blocks {
        gap: 20px;
    }

    .form-input {
        width: 100%;
    }

    .contacts-under-form-text {
        font-size: 18px;
        padding: 0 20px;
    }

    .contacts-reference-contacts {
        width: 100%;
        height: max-content;
        padding: 20px;
    }

    .contacts-small-ellipsis {
        display: none;
    }
    .contacts-big-ellipsis {
        display: none;
    }

    .submit-btn {
        width: 114px;
        height: 38px;
        border-radius: 76px;

    }

}

@media (max-width: 450px) {
    .contacts-under-form-text {
        font-size: 14px;
    }
    .form {
        padding: 20px;
    }
}