/* =========================================================
   MERTHERAPY - CONTACTO
   ========================================================= */

.mer-contact-page,
.mer-contact-page * {
    box-sizing: border-box;
}

.mer-contact-page {
    width: 100%;

    background: #fcfaf7;
    color: #202936;

    font-family: 'Manrope', Arial, sans-serif;
}


/* =========================================================
   SECCIÓN PRINCIPAL
   ========================================================= */

.mer-contact-main {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, .94fr)
        minmax(0, 1.06fr);

    min-height: 790px;
}


/* =========================================================
   IZQUIERDA
   ========================================================= */

.mer-contact-info {
    min-width: 0;

    display: grid;

    grid-template-rows:
        auto
        minmax(250px, 1fr);

    background: #f7f2ec;
}

.mer-contact-info-inner {
    padding:
        80px
        65px
        65px
        max(65px, calc((100vw - 1680px) / 2));
}


/* EYEBROW */

.mer-contact-eyebrow {
    margin-bottom: 25px;

    color: #6c7780;

    font-family: 'Manrope', Arial, sans-serif !important;
    font-size: 11px;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: 4px;
}

.mer-contact-eyebrow span {
    display: inline-block;

    margin: 0 5px;

    color: #aaa19a;
}


/* H1 */

.mer-contact-info h1 {
    max-width: 660px;

    margin: 0 0 28px;

    color: #202936;

    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(58px, 4.6vw, 82px);
    font-weight: 500 !important;

    line-height: .98;

    letter-spacing: -0.025em !important;
}


/* INTRO */

.mer-contact-lead {
    max-width: 590px;

    margin: 0 0 48px;

    color: #59646d;

    font-size: 18px;
    line-height: 1.65;
}


/* =========================================================
   DATOS DE CONTACTO
   ========================================================= */

.mer-contact-details {
    max-width: 600px;

    border-top: 1px solid rgba(47,42,40,.13);
}

.mer-contact-detail {
    min-height: 94px;

    padding: 22px 0;

    display: grid;

    grid-template-columns: 34px 1fr;

    gap: 18px;

    align-items: start;

    border-bottom: 1px solid rgba(47,42,40,.13);
}

.mer-contact-detail-icon {
    width: 26px;
    height: 26px;

    color: #18c5d1;
}

.mer-contact-detail-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.mer-contact-detail-label {
    display: block;

    margin-bottom: 7px;

    color: #77818a;

    font-family: 'Manrope', Arial, sans-serif !important;
    font-size: 9px;
    font-weight: 600;

    letter-spacing: 2.5px;
}

.mer-contact-detail p,
.mer-contact-detail a {
    margin: 0;

    color: #37434d;

    text-decoration: none;

    font-size: 15px;
    line-height: 1.55;

    transition: color .2s ease;
}

.mer-contact-detail a:hover {
    color: #18c5d1;
}


/* =========================================================
   FOTO
   ========================================================= */

.mer-contact-photo {
    position: relative;

    min-height: 285px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ded2c7,
            #bba99b
        );

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mer-contact-placeholder {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    color: rgba(47,42,40,.38);

    font-family: 'Manrope', Arial, sans-serif !important;
    font-size: 11px;
    font-weight: 600;

    text-align: center;

    letter-spacing: 2px;
}


/* =========================================================
   ÁREA FORMULARIO
   ========================================================= */

.mer-contact-form-area {
    min-width: 0;

    padding:
        80px
        max(65px, calc((100vw - 1680px) / 2))
        80px
        75px;

    display: flex;
    align-items: center;

    background: #fcfaf7;
}

.mer-contact-form-inner {
    width: 100%;
    max-width: 720px;

    margin: 0 auto;
}


/* CABECERA FORM */

.mer-contact-form-heading {
    margin-bottom: 40px;
}

.mer-contact-form-heading > span {
    display: block;

    margin-bottom: 17px;

    color: #18c5d1;

    font-family: 'Manrope', Arial, sans-serif !important;
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 3px;
}

.mer-contact-form-heading h2 {
    margin: 0;

    color: #202936;

    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(48px, 3.5vw, 65px);
    font-weight: 500 !important;

    line-height: 1;

    letter-spacing: -0.02em !important;
}


/* =========================================================
   CONTACT FORM 7
   ========================================================= */

.mer-contact-form-area .wpcf7 {
    width: 100%;
}

.mer-cf7 {
    width: 100%;
}

.mer-cf7-intro {
    margin-bottom: 28px;
}

.mer-cf7-intro p {
    margin: 0;

    color: #6c757c;

    font-size: 15px;
    line-height: 1.6;
}


/* GRID */

.mer-cf7-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    column-gap: 22px;
    row-gap: 25px;
}


/* CAMPOS */

.mer-cf7-field {
    min-width: 0;
}

.mer-cf7-field label {
    display: block;

    margin-bottom: 9px;

    color: #525d66;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .4px;
}

.mer-cf7-field .wpcf7-form-control-wrap {
    display: block;
}


/* INPUT / SELECT / TEXTAREA */

.mer-cf7 input[type="text"],
.mer-cf7 input[type="email"],
.mer-cf7 input[type="tel"],
.mer-cf7 select,
.mer-cf7 textarea {
    width: 100%;

    border: 0;
    border-bottom: 1px solid rgba(47,42,40,.23);

    border-radius: 0;

    background: transparent;

    color: #29343e;

    font-family: 'Manrope', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;

    outline: none;

    transition:
        border-color .25s ease,
        background .25s ease;
}


/* ALTURA */

.mer-cf7 input[type="text"],
.mer-cf7 input[type="email"],
.mer-cf7 input[type="tel"],
.mer-cf7 select {
    min-height: 52px;

    padding: 0 3px;
}

.mer-cf7 textarea {
    min-height: 115px;

    padding:
        14px
        3px;

    resize: vertical;
}


/* FOCUS */

.mer-cf7 input:focus,
.mer-cf7 select:focus,
.mer-cf7 textarea:focus {
    border-bottom-color: #18c5d1;
}


/* PLACEHOLDER */

.mer-cf7 input::placeholder,
.mer-cf7 textarea::placeholder {
    color: #aaa19b;

    opacity: 1;
}


/* SELECT */

.mer-cf7 select {
    cursor: pointer;

    color: #7b756f;
}


/* TEXTAREA */

.mer-cf7-full {
    margin-top: 27px;
}


/* =========================================================
   PRIVACIDAD
   ========================================================= */

.mer-cf7-privacy {
    margin-top: 24px;

    color: #737b80;

    font-size: 12px;
    line-height: 1.5;
}

.mer-cf7-privacy .wpcf7-list-item {
    margin: 0;
}

.mer-cf7-privacy label {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;
}

.mer-cf7-privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;

    margin-top: 2px;

    accent-color: #18c5d1;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.mer-cf7-submit {
    position: relative;

    width: fit-content;

    margin-top: 29px;
}

.mer-cf7-submit .wpcf7-submit {
    min-height: 61px;

    padding:
        0
        62px
        0
        31px;

    border: 0;
    border-radius: 0;

    background: #18c5d1;
    color: #ffffff;

    font-family: 'Manrope', Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.mer-cf7-submit:hover .wpcf7-submit {
    background: #12b5c0;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(24,197,209,.16);
}

.mer-cf7-submit-arrow {
    position: absolute;

    top: 50%;
    right: 27px;

    transform: translateY(-50%);

    color: #ffffff;

    font-size: 19px;

    pointer-events: none;

    transition: transform .25s ease;
}

.mer-cf7-submit:hover .mer-cf7-submit-arrow {
    transform: translate(3px,-65%);
}


/* =========================================================
   CF7 MENSAJES / VALIDACIÓN
   ========================================================= */

.mer-contact-form-area .wpcf7-not-valid-tip {
    margin-top: 6px;

    color: #a75353;

    font-size: 11px;
}

.mer-contact-form-area .wpcf7-response-output {
    margin:
        25px
        0
        0 !important;

    padding:
        14px
        17px !important;

    border:
        1px solid
        rgba(47,42,40,.15) !important;

    color: #58636b;

    font-size: 13px;

    background: #f7f2ec;
}

.mer-contact-form-area form.sent .wpcf7-response-output {
    border-color: rgba(24,197,209,.45) !important;
}


/* SPINNER */

.mer-contact-form-area .wpcf7-spinner {
    margin:
        0
        0
        0
        12px;
}


/* =========================================================
   FRANJA INFERIOR
   ========================================================= */

.mer-contact-bottom {
    width: 100%;

    padding: 63px 0;

    background: #403630;
}

.mer-contact-bottom-inner {
    width: calc(100% - 90px);
    max-width: 1680px;

    margin: 0 auto;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;
}

.mer-contact-bottom .mer-contact-eyebrow {
    color: rgba(247,242,236,.58);
}

.mer-contact-bottom h2 {
    max-width: 690px;

    margin: 0;

    color: #f7f2ec;

    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(40px, 3vw, 56px);
    font-weight: 500 !important;

    line-height: 1.04;

    letter-spacing: -0.02em !important;
}


/* LINK MAPA */

.mer-contact-map-link {
    flex-shrink: 0;

    min-height: 55px;

    padding: 0 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    border: 1px solid rgba(247,242,236,.35);

    color: #f7f2ec;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        color .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.mer-contact-map-link span:last-child {
    color: #18c5d1;

    font-size: 18px;

    transition: transform .25s ease;
}

.mer-contact-map-link:hover {
    color: #ffffff;

    border-color: #18c5d1;

    background: rgba(24,197,209,.06);
}

.mer-contact-map-link:hover span:last-child {
    transform: translate(3px,-3px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .mer-contact-main {
        grid-template-columns: 45% 55%;
    }

    .mer-contact-info-inner {
        padding:
            60px
            40px;
    }

    .mer-contact-info h1 {
        font-size: 58px;
    }

    .mer-contact-form-area {
        padding: 60px 40px;
    }

    .mer-contact-form-heading h2 {
        font-size: 51px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {

    .mer-contact-main {
        display: flex;
        flex-direction: column;

        min-height: auto;
    }


    /* INTRO */

    .mer-contact-info {
        display: flex;
        flex-direction: column;
    }

    .mer-contact-info-inner {
        order: 1;

        padding:
            48px
            24px
            45px;
    }

    .mer-contact-info h1 {
        margin-bottom: 22px;

        font-size: 46px;

        line-height: 1;
    }

    .mer-contact-info h1 br {
        display: none;
    }

    .mer-contact-lead {
        margin-bottom: 35px;

        font-size: 16px;
    }


    /* FOTO */

    .mer-contact-photo {
        order: 2;

        min-height: 310px;
    }


    /* FORMULARIO */

    .mer-contact-form-area {
        padding:
            52px
            24px
            58px;
    }

    .mer-contact-form-inner {
        max-width: none;
    }

    .mer-contact-form-heading {
        margin-bottom: 33px;
    }

    .mer-contact-form-heading h2 {
        font-size: 43px;
    }

    .mer-contact-form-heading h2 br {
        display: none;
    }

    .mer-cf7-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .mer-cf7-full {
        margin-top: 24px;
    }

    .mer-cf7-submit {
        width: 100%;
    }

    .mer-cf7-submit .wpcf7-submit {
        width: 100%;
    }


    /* BOTTOM */

    .mer-contact-bottom {
        padding: 52px 0;
    }

    .mer-contact-bottom-inner {
        width: calc(100% - 48px);

        display: block;
    }

    .mer-contact-bottom h2 {
        margin-bottom: 30px;

        font-size: 39px;
    }

    .mer-contact-map-link {
        width: 100%;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

    .mer-contact-info-inner,
    .mer-contact-form-area {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mer-contact-info h1 {
        font-size: 41px;
    }

    .mer-contact-form-heading h2 {
        font-size: 38px;
    }

    .mer-contact-photo {
        min-height: 270px;
    }

}

