﻿.lienhe-top {
    padding-top: 25px;
    background-color: #F8F7F7;
    text-align: center;
}

.lienhe-bottom {
    padding-bottom: 40px;
    margin-top: 20px;
    background-color: #F8F7F7;
}

.lienhe-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 50px;
    max-width: 1120px;
    margin: 0 auto;
    margin-top: 42px;
    /*padding: 0 125px;*/
}

.contact-map {
    height: 100%;
}

#submit {
    cursor: pointer;
    margin-left: 38%;
    margin-top: 48px;
}

.err-span {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #ED243A;
}

.lienhe-box {
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 28px;
    padding-top: 55px;
    background: #FDFCFC;
    box-shadow: 0px 40px 120px rgba(50, 8, 8, 0.06);
    border-radius: 8px;
}

.lienhe-item:nth-child(2) {
    position: relative;
    z-index: 2;
}

    .lienhe-item:nth-child(2) .lienhe-box::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 110%;
        left: 18px;
        top: 0px;
        background-color: #FEF1F2;
        border-radius: 8px;
        transform: rotate(-3deg);
        z-index: -1;
    }

.lienhe-item-title {
    margin-top: 32px;
    margin-bottom: 24px;
}

.lienhe-form {
    max-width: 1120px;
    margin: 0 auto;
    /*margin: 0 80px;*/
    padding: 30px;
    background: #FDFCFC;
    box-shadow: 0px 4px 64px 16px rgba(0, 0, 0, 0.04);
    border-radius: 20px;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form {
    padding: 16px 20px;
}

.contact-group:not(:first-child) {
    margin-top: 24px;
}

.contact-label {
    text-align: left;
    margin-bottom: 8px;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: calc(16 / 14);
    color: #747272;
}

input, textarea {
    border: none;
    outline: none;
}

    input:focus, textarea:focus {
        border: none;
        outline: none;
    }

.contact-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #B8B8B8;
    border-radius: 8px;
    /*gap: 8px;*/
    padding: 10px 0 10px 14px;
}

    .contact-input-group input {
        margin-right: 8px;
    }

.contact-input-active {
    background-color: #FDFCFC;
    border: 1px solid #ED243A;
}

    .contact-input-active path {
        stroke: #ED243A;
    }

.contact-input-group input {
    border: none;
    outline: none;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 170%;
    color: #000000;
    width: 100%;
    background-color: #FDFCFC;
}

.contact-button {
    margin-top: 48px;
}

.contact-left {
    margin-right: 7.5px;
}

.contact-textarea {
    height: 100%;
    margin-left: 7.5px;
}

.contact-textarea-group {
    display: flex;
    align-items: start;
    width: 100%;
    border: 1px solid #B8B8B8;
    border-radius: 8px;
    padding: 15px;
    height: 93%;
    gap: 7px;
}

    .contact-textarea-group textarea {
        width: 100%;
        height: 100%;
        resize: none;
        font-family: 'Roboto';
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 1;
        color: #747272;
        width: 100%;
        background-color: #FDFCFC;
    }

#pick-location {
    animation: pickLocation .3s infinite alternate;
}

.contact-textarea-active {
    background-color: #FDFCFC;
    border: 1px solid #ED243A;
}

    .contact-textarea-active path {
        stroke: #ED243A;
    }

.lienhe-list > div:nth-child(2) > div > div.lienhe-item-data {
    white-space: nowrap;
}

@keyframes pickLocation {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5%);
    }
}

@media screen and (max-width: 1200px) {
    .lienhe-box {
        padding: 20px;
        padding-top: 55px;
    }

    .lienhe-item-data {
        font-size: 16px;
    }
}

@media screen and (max-width: 992px) {
    .lienhe-top {
        padding: 40px 0 32px 0;
    }

    .lienhe-list {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
        grid-gap: 24px 0;
    }

    .lienhe-item:nth-child(2) .lienhe-box::after {
        display: none;
    }

    .contact-left {
        margin-right: 0;
        padding: 0 26px;
    }

    .contact-textarea {
        margin-top: 40px;
        margin-left: 0;
        padding: 0 26px;
    }

    .contact-form > .row:nth-child(2) > div {
        margin-top: 68px;
        display: flex;
        justify-content: center;
    }

    #submit {
        margin-left: 0;
    }

    .lienhe-item-data {
        font-weight: 500;
        font-size: 16px;
        line-height: calc(24 / 16);
        color: #747272;
    }

    .lienhe-item-title {
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .lienhe-bottom {
        padding: 0;
    }

        .lienhe-bottom .customize-container {
            padding: 0 !important;
            width: 100% !important;
        }

    .lienhe-form {
        padding: 40px 0 32px 0;
        border-radius: 0;
        margin: 0;
    }

    .contact-form {
        padding: 40px 10px;
    }

    .contact-map {
        margin: 0 16px;
    }
}
