.ms-contact-container {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 100;
    color: white;
    width: 300px;
    border: 2px solid transparent;
    transition: all .2s;
    border-radius: 35px 0 0 35px;
    border-right: 0;
    overflow: hidden;
}

.ms-contact-container a:focus {
    outline: none;
}

.ms-contact-btn {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    margin: 10px 0 10px 10px;
    cursor: pointer;
}

.ms-contact-btn:hover .ms-contact-btn-icon {
    animation-name: shake;
    animation-duration: 1s;
}

.ms-contact-btn-icon {
    width: 60px;
    height: 60px;
    border: 5px solid #272727;
    border-radius: 30px;
    background: white;
    padding: 5px;
    z-index: 1;
    flex-shrink: 0;
}

.ms-contact-btn-text {
    padding: 5px 15px;
    text-align: center;
    z-index: 1;
    flex-grow: 1;
}

.ms-contact-btn-bckg {
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    bottom: 5px;
    z-index: 0;
    background: #272727;
    mask: radial-gradient(67px 47px at left, #0000 98%, #000);
}

.ms-contact-container.ms-active {
    border: 2px solid #272727;
    border-right: 0;
    background: #E9E9E9;
}

.ms-contact-list {
    color: #272727;
}

.ms-contact-list-item {
    cursor: pointer;
    background: white;
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #4D8F4A;
    overflow: hidden;
}

.ms-contact-list-item > div:first-child {
    margin-right: 10px;
}

.ms-contact-list-item > div:last-child > div:first-child {
    font-weight: bold;
}

.ms-contact-list-item > div:last-child > div:last-child {
    font-size: 12px;
    line-height: 14px;
}

.ms-ico {
    --ms-ico-width: 45px;
    --ms-ico-height: 43px;
    --ms-ico-border-radius: 23px;
    width: var(--ms-ico-width);
    height: var(--ms-ico-height);
    border-radius: var(--ms-ico-border-radius);
    position: relative;
    border-radius: 23px;
}

.ms-fg > img {
    z-index: 3;
    position: relative;
}

.ms-ico > div {
    width: var(--ms-ico-width);
    height: var(--ms-ico-height);
    border-radius: var(--ms-ico-border-radius);
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
}

.ms-ico > .ms-bg {
    z-index: 1;
    top: 3px;
    bottom: -3px;
}

.ms-ico > .ms-fg {
    z-index: 2;
    padding: 10px;
}

.ms-ico-phone > .ms-fg {
    --ms-ico-color: #E51A1A;
    background: var(--ms-ico-color);
}

.ms-ico-phone > .ms-bg {
    background: #C31717;
}

.ms-ico-email > .ms-fg {
    --ms-ico-color: #E5611A;
    background: var(--ms-ico-color);
}

.ms-ico-email > .ms-bg {
    background: #BD5015;
}

.ms-ico-form > .ms-fg {
    --ms-ico-color: #337BCC;
    background: var(--ms-ico-color);
}

.ms-ico-form > .ms-bg {
    background: #215DA1;
}

.ms-ico-whatsapp > .ms-fg {
    --ms-ico-color: #64B161;
    background: var(--ms-ico-color);
}

.ms-ico-whatsapp > .ms-bg {
    background: #4D8F4A;
}

.ms-fg > div {
    position: absolute;
    transition: all;
    width: var(--ms-ico-width);
    height: var(--ms-ico-height);
    border-radius: var(--ms-ico-border-radius);
    background: var(--ms-ico-color);
    opacity: .05;
    top: 0;
    left: 0;
    z-index: 0;
    scale: 0;
}

.ms-fg > div:nth-child(1) {
    transition: all .3s;
}

.ms-fg > div:nth-child(2) {
    transition: all .4s;
}

.ms-fg > div:nth-child(3) {
    transition: all .5s;
}

.ms-fg > div:nth-child(4) {
    transition: all .6s;
}

.ms-contact-list-item:hover .ms-fg > div:nth-child(1) {
    scale: 6;
}

.ms-contact-list-item:hover .ms-fg > div:nth-child(2) {
    scale: 8;
}

.ms-contact-list-item:hover .ms-fg > div:nth-child(3) {
    scale: 10;
}

.ms-contact-list-item:hover .ms-fg > div:nth-child(4) {
    scale: 12;
}

@keyframes shake {
    0% {
        transform: rotate(0);
    }
    20% {
        transform: rotate(-30deg);
    }
    40% {
        transform: rotate(30deg);
    }
    60% {
        transform: rotate(-15deg);
    }
    80% {
        transform: rotate(15deg);
    }
    100% {
        transform: rotate(0);
    }
}

@media (max-width: 500px) {
    .ms-contact-btn-text {
        font-size: 12px;
    }
    .ms-contact-container {
        width: 250px;
    }
    .ms-contact-btn-bckg {
        top: 5px;
        bottom: 5px;
    }
    .ms-contact-btn-icon {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    .ms-contact-btn-bckg {
        mask: radial-gradient(57px 40px at left, #0000 98%, #000);
    }
    .ms-ico {
        --ms-ico-width: 40px;
        --ms-ico-height: 38px;
    }
}

.ms-contact-modal .modal-title {
    display: none;
}

.ms-contact-modal.ms-ctype-1 .modal-title.type-1 {
    display: block;
}

.ms-contact-modal.ms-ctype-2 .modal-title.type-2 {
    display: block;
}

.ms-contact-modal .modal-dialog {
    max-width: 500px;
}

.ms-contact-modal .modal-body {
    padding: 20px;
}

.ms-contact-modal .modal-title {
    text-transform: uppercase;
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.ms-contact-modal .ms-form > div {
    display: flex;
    margin-bottom: 15px;
}

.ms-contact-modal .ms-form > div > div:first-child {
    width: 100px;
    padding-right: 15px;
    text-align: right;
    padding-top: 7px;
}

.ms-contact-modal .ms-form > div > div:last-child {
    flex-grow: 1;
}

.ms-contact-modal .ms-form input, .ms-contact-modal .ms-form textarea {
    border: 1px solid #333333;
    padding: 8px 10px;
    width: 100%;
}

.ms-contact-modal .ms-form textarea {
    min-height: 100px;
}

.ms-contact-modal hr {
    background: #333333;
}

@media (max-width: 500px) {
    .ms-contact-modal .ms-form > div {
        display: block;
        margin-bottom: 5px;
    }

    .ms-contact-modal .ms-form > div > div:first-child {
        text-align: left;
        margin-bottom: 5px;
    }
}

@media (min-width: 501px) {
    .ms-contact-data {
        display: grid;
        grid-template-columns: auto min-content;
        grid-template-rows: auto auto;
    }
}

.ms-contact-data {
    font-size: 1rem;
    font-weight: 600;
}

.ms-contact-data > div > div {
    display: flex;
    white-space: nowrap;
    align-items: center;
}

.ms-contact-data > div > div:not(:last-child) {
    margin-bottom: 10px;
}

@media (max-width: 500px) {
    .ms-contact-data > div > div {
        margin-bottom: 10px;
    }
}

.ms-contact-data img {
    width: 30px;
    margin-right: 15px;
}

.ms-contact-modal .ms-actions button {
    background: #232323;
    color: white;
    text-transform: uppercase;
    width: 100%;
    padding: 6px 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.ms-contact-modal .ms-actions button:hover {
    opacity: .9;
}

.ms-form .ms-feedback {
    display: none;
}

.ms-form .ms-invalid {
    color: #ff4c4c;
}

.ms-form .ms-invalid .ms-feedback {
    display: block;
}

.ms-form .ms-invalid input, .ms-form .ms-invalid textarea {
    border-color: #ff4c4c;
}

.ms-form [name='sending'] {
    display: none;
}

.ms-form.ms-sending [name='sending'] {
    display: block;
}

.ms-form.ms-sending [name='send'] {
    display: none;
}
.ms-errors-common {
    margin-bottom: 10px;
    font-weight: 600;
}
.ms-success-feedback {
    display: none;
    text-align: center;
    padding: 40px 0;
}
.ms-success-feedback h2 {
    margin-top: 15px;
}

#ms-contact-modal.ms-success .ms-success-feedback {
    display: block;
}

#ms-contact-modal.ms-success .ms-form {
    display: none;
}

.ms-schedule-consultation {
    border: 1px solid #333;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    background: white;
    text-transform: uppercase;
    cursor: pointer;
}

a#toTop {
    bottom: 78px;
}

.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 4px !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}
