/* =========================================================
   ECAMEC
   Contact
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.contact {
    background: var(--bg-main);
}

.contact__header {
    max-width: 860px;

    margin-bottom: 52px;
}


/* =========================================================
   LAYOUT
========================================================= */

.contact__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(320px, 0.8fr);

    gap: 18px;
}


/* =========================================================
   FORM CARD
========================================================= */

.contact__form-card {
    padding: 34px;

    background: var(--bg-secondary);

    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.contact-form__field {
    margin-bottom: 18px;
}

.contact-form__field label {
    display: block;

    margin-bottom: 10px;

    color: var(--color-white);

    font-size: 14px;
    font-weight: 600;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;

    padding: 16px 18px;

    background: #465052;

    border: 1px solid transparent;
    border-radius: 16px;

    color: var(--color-white);

    font-family: "Manrope", sans-serif;
    font-size: 15px;
    line-height: 1.5;

    outline: none;

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--text-muted);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    background: #4b5557;

    border-color: rgba(233, 91, 12, 0.45);

    box-shadow: 0 0 0 4px rgba(233, 91, 12, 0.10);
}

.contact-form__field textarea {
    min-height: 180px;

    resize: vertical;
}

.contact-form__actions {
    padding-top: 8px;
}


/* =========================================================
   INFO SIDE
========================================================= */

.contact__info {
    display: grid;

    gap: 18px;
}


/* =========================================================
   MAP CARD
========================================================= */

.contact__map-card {
    overflow: hidden;

    min-height: 320px;

    background: var(--bg-secondary);

    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.contact__map {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 320px;

    border: 0;
}


/* =========================================================
   INFO CARD
========================================================= */

.contact__info-card {
    padding: 28px;

    display: grid;

    gap: 24px;

    background: var(--bg-secondary);

    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.contact__item-label {
    display: block;

    margin-bottom: 8px;

    color: var(--color-orange);

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

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact__link {
    color: var(--text-secondary);

    font-size: 16px;
    line-height: 1.7;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.contact__link:hover {
    color: var(--color-white);

    transform: translateX(2px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .contact__layout {
        grid-template-columns: 1fr;
    }

    .contact__info {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 760px) {

    .contact__header {
        margin-bottom: 36px;
    }

    .contact__form-card,
    .contact__info-card,
    .contact__map-card {
        border-radius: 18px;
    }

    .contact__form-card {
        padding: 24px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact__info {
        grid-template-columns: 1fr;
    }

    .contact__info-card {
        padding: 22px;
    }

    .contact__map,
    .contact__map-card {
        min-height: 260px;
    }

}

/* =========================================================
   CONTACT - VISUAL BACKGROUND
   Standard ECAMEC treatment
========================================================= */

.contact {
    position: relative;
    isolation: isolate;

    background: var(--bg-main);

    overflow: hidden;
}


/* =========================================================
   DESKTOP BACKGROUND
========================================================= */

.contact::before {
    content: "";

    position: absolute;
    z-index: -2;

    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(16, 21, 23, 0.97) 0%,
            rgba(16, 21, 23, 0.90) 30%,
            rgba(16, 21, 23, 0.64) 65%,
            rgba(16, 21, 23, 0.46) 100%
        ),
        url("../assets/images/contact/contact-bg.jpg");

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

    opacity: 0.60;

    pointer-events: none;
}


/* =========================================================
   AMBIENT OVERLAY
========================================================= */

.contact::after {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(48, 56, 58, 0.12) 0%,
            rgba(48, 56, 58, 0.20) 38%,
            rgba(48, 56, 58, 0.32) 72%,
            rgba(48, 56, 58, 0.48) 100%
        );
}


/* =========================================================
   CONTENT
========================================================= */

.contact__header,
.contact__layout {
    position: relative;
    z-index: 1;
}


/* =========================================================
   FORM CARD
========================================================= */

.contact__form-card {
    background:
        linear-gradient(
            135deg,
            rgba(20, 26, 29, 0.94),
            rgba(26, 31, 34, 0.88)
        );

    border-color: rgba(255, 255, 255, 0.18);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.20);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* =========================================================
   INFO CARD
========================================================= */

.contact__info-card {
    background:
        linear-gradient(
            135deg,
            rgba(20, 26, 29, 0.94),
            rgba(26, 31, 34, 0.88)
        );

    border-color: rgba(255, 255, 255, 0.18);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* =========================================================
   MAP
========================================================= */

.contact__map-card {
    border-color: rgba(255, 255, 255, 0.18);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .contact::before {
        background-image:
            linear-gradient(
                180deg,
                rgba(16, 21, 23, 0.88) 0%,
                rgba(16, 21, 23, 0.76) 34%,
                rgba(16, 21, 23, 0.82) 68%,
                rgba(48, 56, 58, 0.94) 100%
            ),
            url("../assets/images/contact/contact-bg-mobile.jpg");

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


    .contact::after {
        background:
            linear-gradient(
                180deg,
                rgba(48, 56, 58, 0.10) 0%,
                rgba(48, 56, 58, 0.22) 40%,
                rgba(48, 56, 58, 0.38) 72%,
                rgba(48, 56, 58, 0.54) 100%
            );
    }


    .contact__form-card,
    .contact__info-card {
        background: rgba(20, 26, 29, 0.92);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

}

/* =========================================================
   CONTACT FORM - AJAX FEEDBACK / SECURITY HELPERS
========================================================= */

.contact-form { position: relative; }

.contact-form__hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.contact-form__feedback { min-height: 0; margin-top: 18px; }
.contact-form__feedback:empty { display: none; }

.contact-form__feedback-inner {
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(20,26,29,.78);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.contact-form__feedback-inner strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-white);
    font-size: 15px;
}

.contact-form__feedback--success .contact-form__feedback-inner {
    border-color: rgba(233,91,12,.42);
    box-shadow: 0 0 0 4px rgba(233,91,12,.06);
}

.contact-form__feedback--error .contact-form__feedback-inner {
    border-color: rgba(220,80,70,.46);
}

.contact-form.is-sending { pointer-events: none; opacity: .76; }
.contact-form.is-sending button[type="submit"] { cursor: wait; }
