:root {
    --lm-contact-green: #0f4f32;
    --lm-contact-green-dark: #0b2f20;
    --lm-contact-lime: #d6e56a;
    --lm-contact-white: #ffffff;
    --lm-contact-black: #111111;
    --lm-contact-map-line: #aeb7c9;
}

body.page-contacto,
body.leapmotors-contacto-page {
    margin: 0;
    overflow-x: hidden;
    background: var(--lm-contact-green);
    font-family: Arial, Helvetica, sans-serif;
}

body.page-contacto .page-container,
body.leapmotors-contacto-page .page-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.page-contacto #content.site-content,
body.leapmotors-contacto-page #content.site-content {
    display: block;
    margin: 0;
}

.lm-contacto-page {
    padding: 0;
    color: var(--lm-contact-white);
}

.lm-contact-container {
    width: min(100%, 1728px);
    margin: 0 auto;
    padding-right: clamp(24px, 5vw, 84px);
    padding-left: clamp(24px, 5vw, 84px);
}

.lm-contact-map-section {
    min-height: 974px;
    padding-top: 84px;
    background: #111;
}

.lm-contact-map-frame {
    position: relative;
    width: min(calc(100% - 220px), 1400px);
    min-height: 765px;
    margin: 76px auto 0;
    overflow: hidden;
    border: 1px solid var(--lm-contact-green);
    background: #f3f4f1;
    z-index: 0;
}

.lm-contact-map-frame #mapa {
    height: 765px !important;
    width: 100%;
}

.lm-map-marker {
    width: 34px !important;
    height: 42px !important;
    background: transparent;
}

.lm-map-marker span {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    border: 4px solid var(--lm-contact-white);
    border-radius: 50% 50% 50% 0;
    background: var(--lm-contact-green);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
    transform: rotate(-45deg);
}

.lm-map-marker span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    content: "";
    background: var(--lm-contact-lime);
    transform: translate(-50%, -50%);
}

.lm-map-branches {
    position: absolute;
    z-index: 500;
    top: 230px;
    left: 100px;
    width: min(545px, calc(100% - 200px));
    color: var(--lm-contact-white);
    pointer-events: none;
}

.lm-map-branches__viewport {
    position: relative;
    min-height: 350px;
    width: 25rem;
}

.lm-map-branch-card {
    position: absolute;
    inset: 0;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 50px;
    height:fit-content;
    opacity: 0;
    color: var(--lm-contact-white);
    background: rgba(15, 79, 50, .9);
    box-shadow: 0 22px 46px rgba(0, 0, 0, .18);
    transform: translateX(-18px);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.lm-map-branch-card.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.lm-map-branch-card__eyebrow {
    margin: 0 0 2px;
    color: var(--lm-contact-white);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lm-map-branch-card h2 {
    margin: 0 0 24px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.lm-map-branch-card__address,
.lm-map-branch-card__hours {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.18;
}

.lm-map-branch-card__address {
    font-weight: 400;
}

.lm-map-branch-card__phones {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 22px;
}

.lm-map-branch-card__phones a,
.lm-map-branch-card__phones a:hover {
    color: var(--lm-contact-white);
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
}

.lm-map-branch-card__address i,
.lm-map-branch-card__phones i,
.lm-map-branch-card__hours i {
    width: 34px;
    color: var(--lm-contact-white);
    font-size: 31px;
    line-height: 1;
    text-align: center;
}

.lm-map-branch-card__route,
.lm-map-branch-card__route:hover {
    display: none;
    width: 176px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    color: var(--lm-contact-green);
    background: var(--lm-contact-lime);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.lm-map-branches__controls {
    position: absolute;
    top: 50%;
    left: -72px;
    right: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: auto;
}

.lm-map-branches__button {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 0;
    border-radius: 0;
    color: var(--lm-contact-green);
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.lm-map-branches__button:hover,
.lm-map-branches__button:focus {
    background: var(--lm-contact-lime);
    outline: none;
}

.lm-map-branches__counter {
    display: none;
}

.lm-contact-filter {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    display: inline-flex;
    min-width: 260px;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    border-radius: 0;
    color: var(--lm-contact-white);
    background: var(--lm-contact-green);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
}

.lm-coded-map {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 60%, rgba(154, 213, 147, .46) 0 2.2%, transparent 2.4%),
        radial-gradient(circle at 61% 13%, rgba(154, 213, 147, .36) 0 1.8%, transparent 2%),
        radial-gradient(circle at 49% 79%, rgba(154, 213, 147, .42) 0 2.8%, transparent 3%),
        linear-gradient(90deg, #f1f2f0 0 65%, #99d2ef 65% 100%);
}

.lm-coded-map__water {
    position: absolute;
    top: -16%;
    right: -10%;
    width: 45%;
    height: 120%;
    border-left: 7px solid rgba(142, 154, 175, .72);
    background: #99d2ef;
    transform: skewX(-10deg);
}

.lm-coded-map__road {
    position: absolute;
    height: 7px;
    border-radius: 999px;
    background: var(--lm-contact-map-line);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .82);
}

.lm-coded-map__road--one {
    top: 16%;
    left: -5%;
    width: 68%;
    transform: rotate(14deg);
}

.lm-coded-map__road--two {
    top: 42%;
    left: -8%;
    width: 63%;
    transform: rotate(-4deg);
}

.lm-coded-map__road--three {
    top: 58%;
    left: 21%;
    width: 56%;
    transform: rotate(22deg);
}

.lm-coded-map__road--four {
    top: 19%;
    left: 44%;
    width: 45%;
    transform: rotate(61deg);
}

.lm-coded-map__road--five {
    top: 66%;
    left: 48%;
    width: 38%;
    transform: rotate(-58deg);
}

.lm-coded-map__road--six {
    top: 74%;
    left: 13%;
    width: 56%;
    transform: rotate(-39deg);
}

.lm-coded-map__label {
    position: absolute;
    color: #2d3136;
    font-size: clamp(19px, 1.7vw, 27px);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .94);
}

.lm-coded-map__label--pilar {
    top: 14%;
    left: 13%;
}

.lm-coded-map__label--tigre {
    top: 6%;
    left: 43%;
}

.lm-coded-map__label--san-isidro {
    top: 18%;
    left: 50%;
}

.lm-coded-map__label--buenos-aires {
    top: 40%;
    left: 57%;
}

.lm-coded-map__label--moreno {
    top: 48%;
    left: 24%;
}

.lm-coded-map__label--merlo {
    top: 54%;
    left: 31%;
}

.lm-coded-map__label--moron {
    top: 52%;
    left: 42%;
}

.lm-coded-map__label--lanus {
    top: 68%;
    left: 63%;
}

.lm-coded-map__label--quilmes {
    top: 72%;
    left: 75%;
}

.lm-coded-map__marker {
    position: absolute;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: 5px solid var(--lm-contact-white);
    border-radius: 50%;
    background: var(--lm-contact-green);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.lm-coded-map__marker::after {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 12px;
    height: 12px;
    content: "";
    background: var(--lm-contact-green);
    transform: translateX(-50%) rotate(45deg);
}

.lm-coded-map__marker--branch {
    top: 36%;
    left: 30%;
}

.lm-coded-map__zoom,
.lm-coded-map__accessibility {
    position: absolute;
    z-index: 4;
    left: 0;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #1b1b1b;
    background: var(--lm-contact-white);
    font-size: 25px;
    font-weight: 800;
}

.lm-coded-map__zoom--in {
    top: 86px;
}

.lm-coded-map__zoom--out {
    top: 130px;
}

.lm-coded-map__accessibility {
    top: 188px;
    color: #fff;
    background: #22378c;
    font-size: 24px;
}

.lm-contact-branch-card {
    position: absolute;
    z-index: 5;
    top: 177px;
    left: 100px;
    width: min(100% - 200px, 545px);
    min-height: 410px;
    padding: 0;
    color: var(--lm-contact-white);
}

.lm-contact-branch-card h1 {
    margin: 0 0 28px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
}

.lm-contact-branch-card p {
    max-width: 470px;
    margin: 0 0 25px;
    font-size: 15px;
    line-height: 1.2;
}

.lm-contact-branch-card p:first-of-type {
    font-size: 40px;
    line-height: 1.08;
}

.lm-contact-branch-card i {
    width: 30px;
    margin-right: 16px;
    text-align: center;
}

.lm-contact-branch-card a,
.lm-contact-branch-card a:hover {
    display: inline-flex;
    min-width: 176px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    color: var(--lm-contact-green);
    background: var(--lm-contact-lime);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.lm-contact-form-section {
    position: relative;
    min-height: 505px;
    overflow: hidden;
    background: #fff;
    z-index: 1;
}

.lm-contact-form-section>.container {
    max-width: none;
}

.lm-contact-form-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, rgba(0, 0, 0, .68) 0 38%, rgba(0, 0, 0, .2) 70%, rgba(0, 0, 0, .08) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .88) 0 48%, rgba(0, 0, 0, .58) 74%, rgba(0, 0, 0, .34) 100%),
        url("../../img/leadmotors/contacto/contacto-hero.jpg");
    background-position: center 58%;
    background-size: cover;
}

.lm-contact-form-section .lm-contact-container {
    padding-right: 70px;
    padding-left: 70px;
}

.lm-contact-form-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 656px);
    padding-top: 26px;
    padding-bottom: 10px;
}

.lm-contact-form-eyebrow {
    margin: 0 0 34px;
    color: var(--lm-contact-white);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.lm-contact-form-copy h2 {
    margin: 0 0 28px;
    color: var(--lm-contact-white);
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.lm-contact-form__grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
}

.lm-contact-form .wpcf7-form {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 36px;
}

.lm-contact-form .wpcf7-form>p {
    display: grid;
    gap: 9px;
    margin: 0;
    line-height: 1;
}

.lm-contact-form br {
    display: none;
}

.lm-contact-form .wpcf7-form>p:has(textarea),
.lm-contact-form .wpcf7-form>p:has(.wpcf7-submit),
.lm-contact-form .wpcf7-form>p:has(.wpcf7-acceptance),
.lm-contact-form .wpcf7-response-output {
    grid-column: 1 / -1;
}

.lm-contact-form label:has(textarea) {
    grid-column: 1 / -1;
}

.lm-contact-form label {
    display: grid;
    gap: 9px;
    margin: 0;
    color: var(--lm-contact-white);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.1;
    text-align: left;
}

.lm-contact-form input[type="text"],
.lm-contact-form input[type="tel"],
.lm-contact-form input[type="email"],
.lm-contact-form textarea,
.lm-contact-form select {
    width: 100%;
    border: 2px solid #b69a3e;
    border-radius: 0;
    padding: 0 12px;
    color: var(--lm-contact-black);
    background: #cfcfcf;
    outline: none;
}

.lm-contact-form input[type="text"],
.lm-contact-form input[type="tel"],
.lm-contact-form input[type="email"],
.lm-contact-form select {
    height: 36px;
}

.lm-contact-form textarea {
    min-height: 145px;
    padding-top: 12px;
    resize: vertical;
}

.lm-contact-form__consent {
    grid-column: 1 / -1;
    display: flex !important;
    grid-template-columns: none;
    max-width: 656px;
    align-items: center;
    gap: 12px !important;
    margin-top: 7px !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}

.lm-contact-form__consent label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lm-contact-form__consent .wpcf7-form-control-wrap,
.lm-contact-form__consent .wpcf7-form-control,
.lm-contact-form__consent .wpcf7-list-item {
    display: contents;
}

.lm-contact-form__consent input,
.lm-contact-form input[type="checkbox"] {
    position: absolute;
    /* opacity: 0; */
    width: 26px;
    height: 26px;
    margin: 0;
    pointer-events: none;
}

.lm-contact-form__consent .wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.lm-contact-form__consent .wpcf7-list-item-label::before {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 2px solid #b69a3e;
    content: "";
    background: transparent;
    box-sizing: border-box;
}

.lm-contact-submit,
.lm-contact-form .wpcf7-submit {
    display: inline-flex;
    width: 200px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    transform: none;
    margin-top: 7px;
    margin-left: 0;
    border-radius: 0;
    color: var(--lm-contact-green);
    background: var(--lm-contact-lime);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.lm-contact-form .wpcf7-not-valid-tip {
    margin-top: 8px;
    color: #ffd6d6;
    font-size: 13px;
}

.lm-contact-form .wpcf7-response-output {
    margin: 0 !important;
    border-color: rgba(255, 255, 255, .82) !important;
    color: var(--lm-contact-white);
}

.lm-contact-notice {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 24px;
    color: var(--lm-contact-white);
    background: var(--lm-contact-green);
    font-size: 16px;
    line-height: 1.4;
}

.lm-contact-map-frame .lm-contact-notice {
    position: absolute;
    top: 40px;
    left: 40px;
}

@media (max-width: 991px) {
    .lm-contact-map-section {
        min-height: 850px;
    }

    .lm-contact-map-frame {
        width: calc(100% - 48px);
        min-height: 660px;
        margin-top: 52px;
    }

    .lm-contact-map-frame #mapa {
        height: 660px !important;
    }

    .lm-map-branches {
        top: 150px;
        left: 58px;
        width: min(520px, calc(100% - 116px));
    }

    .lm-map-branch-card {
        min-height: 350px;
        padding: 36px;
    }

    .lm-map-branch-card h2 {
        font-size: 30px;
    }

    .lm-map-branch-card__address {
        font-size: 16px;
    }

    .lm-map-branches__controls {
        left: -60px;
        right: -60px;
    }

    .lm-map-branches__button {
        width: 58px;
        height: 58px;
    }

    .lm-contact-branch-card {
        top: 150px;
        left: 58px;
        width: min(100% - 116px, 520px);
    }

    .lm-contact-branch-card p:first-of-type {
        font-size: 30px;
    }
}

@media (max-width: 575px) {
    .lm-contact-map-section {
        min-height: auto;
        padding-top: 0;
        position: relative;
        z-index: 2;
    }

    .lm-contact-map-frame {
        width: calc(100% - 24px);
        min-height: 590px;
        margin-top: 34px;
        overflow: visible;
        margin: 0;
        width: 100%;
    }

    .lm-contact-map-frame #mapa {
        height: 590px !important;
    }

    .lm-map-branches {
        top: auto;
        bottom: -30px;
        left: 0;
        width: 100%;
        transform: none;
        z-index: 999999;
    }

    .lm-map-branches__viewport {
        min-height: 220px;
        width: 19rem;
        margin: auto;
    }

    .lm-map-branch-card {
        min-height: 292px;
        padding: 24px;
        width: 100%;
        margin: auto;
    }

    .lm-map-branch-card h2 {
        font-size: 25px;
    }

    .lm-map-branch-card__address {
        font-size: 15px;
    }

    .lm-map-branch-card__eyebrow {
        font-size: 18px;
    }

    .lm-map-branch-card__address i,
    .lm-map-branch-card__phones i,
    .lm-map-branch-card__hours i {
        font-size: 24px;
    }

    .lm-map-branches__controls {
        right: 0;
        left: 0;
    }

    .lm-map-branches__button {
        width: 46px;
        height: 46px;
    }

    .lm-contact-filter {
        min-width: 100%;
    }

    .lm-contact-branch-card {
        top: 122px;
        left: 32px;
        width: calc(100% - 64px);
    }

    .lm-contact-branch-card h1 {
        font-size: 30px;
    }

    .lm-contact-branch-card p:first-of-type {
        font-size: 24px;
    }

    .lm-contact-form-panel {
        width: 100%;
        padding-top: 72px;
    }

    .lm-contact-form-eyebrow {
        font-size: 38px;
    }

    .lm-contact-form__grid,
    .lm-contact-form .wpcf7-form {
        grid-template-columns: 1fr;
    }

    .lm-contact-submit,
    .lm-contact-form .wpcf7-submit {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        transform: none;
    }

    .lm-contact-form-section .lm-contact-container {
        padding-right: 0;
        padding-left: 0;
    }
}