/* =========================================================
   CONTACT PAGE
   ========================================================= */


/* ---------------------------------------------------------
   PAGE
   --------------------------------------------------------- */

.contact-page,
.contact-page .site,
.contact-page main {
    color: var(--vida-blue);
    background: var(--vida-light);
}


/* =========================================================
   01. CONTACT INTRO — VIDA GREY
   ========================================================= */

.contact-intro {
    width: 100%;

    color: var(--vida-blue);
    background: var(--vida-grey);
}

.contact-intro__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: min(100%, 1320px);
    min-height: clamp(680px, 82vh, 940px);

    margin-inline: auto;

    padding:
        calc(var(--nav-height) + clamp(110px, 12vw, 190px))
        var(--page-gutter)
        clamp(130px, 14vw, 220px);
}

.contact-intro__title {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
}

.contact-intro__title-line {
    display: block;
    width: fit-content;
    max-width: 100%;
}

/* English */
html[lang="en"] .contact-intro__title-line--first {
    align-self: flex-start;
    text-align: left;
}

html[lang="en"] .contact-intro__title-line--second {
    align-self: flex-end;

    margin-top: clamp(52px, 6vw, 96px);

    text-align: right;
}

/* German */
html[lang="de"] .contact-intro__title-line--first,
html[lang="de"] .contact-intro__title-line--second {
    align-self: flex-start;

    text-align: left;
}

html[lang="de"] .contact-intro__title-line--second {
    margin-top: clamp(52px, 6vw, 96px);
}

@media (min-width: 1025px) {
    .contact-intro__title-line {
        white-space: nowrap;
    }

    html[lang="de"] .contact-intro__title {
        max-width: 1260px;
        font-size: clamp(3rem, 4.5vw, 4.8rem);
    }
}

@media (min-width: 1025px) {
    .contact-intro__title-line {
        white-space: nowrap;
    }

    html[lang="de"] .contact-intro__title {
        max-width: 1260px;
        font-size: clamp(3rem, 4.5vw, 4.8rem);
    }
}

/* =========================================================
   02. CONVERSATION + FORM — VIDA LIGHT
   ========================================================= */

.contact-conversation {
    width: 100%;

    color: var(--vida-blue);
    background: var(--vida-light);
}

.contact-conversation__inner {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.78fr)
        minmax(520px, 1.22fr);

    align-items: start;

    column-gap: clamp(80px, 10vw, 170px);

    width: min(100%, 1320px);

    margin-inline: auto;

    padding:
        clamp(150px, 17vw, 270px)
        var(--page-gutter);
}


/* Editorial copy */

.contact-conversation__copy {
    max-width: 520px;
}

.contact-conversation__title {
    max-width: 500px;

    color: var(--vida-blue);
}

.contact-conversation__text {
    max-width: 500px;

    margin-top: clamp(46px, 5vw, 74px);

    color: rgba(30, 45, 72, 0.72);
}

.contact-conversation__text + .contact-conversation__text {
    margin-top: 28px;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
    width: 100%;
}

.contact-form__field {
    position: relative;

    display: flex;
    flex-direction: column;

    margin-bottom: clamp(42px, 5vw, 68px);
}

.contact-form__field label {
    margin-bottom: 18px;

    color: rgba(30, 45, 72, 0.74);

    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;

    margin: 0;
    padding:
        8px
        0
        16px;

    border: 0;
    border-bottom: 1px solid rgba(30, 45, 72, 0.36);
    border-radius: 0;

    outline: none;

    color: var(--vida-blue);
    background: transparent;

    font-family: "Manrope", sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    font-weight: 400;
    line-height: 1.5;

    letter-spacing: 0.08em;

    transition:
        border-color 300ms ease;
}

.contact-form__field textarea {
    min-height: 160px;

    resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-bottom-color: var(--vida-blue);
}

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
    outline: none;
}


/* Submit button */

.contact-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    min-width: 340px;
    min-height: 64px;

    padding:
        18px
        28px;

    border: 1px solid var(--vida-blue);

    color: var(--vida-white);
    background: var(--vida-blue);

    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.24em;
    text-transform: uppercase;

    transition:
        color 300ms ease,
        background-color 300ms ease,
        transform 300ms var(--ease-standard);
}

.contact-form__button:hover,
.contact-form__button:focus-visible {
    color: var(--vida-blue);
    background: transparent;

    transform: translateY(-2px);
}


/* =========================================================
   03. CONTACT DETAILS — VIDA GREY
   ========================================================= */

.contact-details {
    width: 100%;

    color: var(--vida-blue);
    background: var(--vida-grey);
}

.contact-details__inner {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.95fr)
        minmax(400px, 1.05fr);

    align-items: start;

    column-gap: clamp(80px, 11vw, 180px);

    width: min(100%, 1320px);

    margin-inline: auto;

    padding:
        clamp(140px, 16vw, 250px)
        var(--page-gutter)
        clamp(160px, 18vw, 280px);
}

.contact-details__title {
    max-width: 560px;

    color: var(--vida-blue);
}

.contact-details__title span {
    display: block;
}

.contact-details__list {
    display: grid;

    gap: clamp(34px, 4vw, 56px);

    margin: 0;

    font-style: normal;
}

.contact-details__item {
    display: grid;
    grid-template-columns:
        minmax(110px, 0.35fr)
        minmax(260px, 0.65fr);

    align-items: baseline;

    column-gap: clamp(30px, 4vw, 70px);
}

.contact-details__label {
    color: rgba(30, 45, 72, 0.5);

    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.4;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.contact-details__item a,
.contact-details__item p {
    margin: 0;

    color: var(--vida-blue);

    font-size: clamp(0.95rem, 1.15vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75;

    letter-spacing: 0.12em;
}

.contact-details__item a {
    transition: opacity 250ms ease;
}

.contact-details__item a:hover,
.contact-details__item a:focus-visible {
    opacity: 0.56;
}


/* =========================================================
   CONTACT FORM — STATUS AND CONSENT
   ========================================================= */

.contact-form__message {
    width: 100%;

    margin-bottom: clamp(42px, 5vw, 68px);
    padding: 22px 24px;

    border: 1px solid rgba(30, 45, 72, 0.22);

    color: var(--vida-blue);
    background: transparent;

    font-size: 0.9rem;
    font-weight: 200;
    line-height: 1.7;

    letter-spacing: 0.08em;
}

.contact-form__message p {
    margin: 0;
}

.contact-form__message ul {
    margin: 14px 0 0;
    padding-left: 20px;

    list-style: disc;
}

.contact-form__message--success {
    border-color: rgba(30, 45, 72, 0.34);
}

.contact-form__message--error {
    border-color: rgba(130, 42, 42, 0.42);

    color: #7d2f2f;
}


/* Consent */

.contact-form__consent {
    margin:
        calc(clamp(42px, 5vw, 68px) * -0.35)
        0
        clamp(42px, 5vw, 68px);
}

.contact-form__consent label {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    color: rgba(30, 45, 72, 0.68);

    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.7;

    letter-spacing: 0.1em;

    cursor: pointer;
}

.contact-form__consent input {
    flex: 0 0 auto;

    width: 16px;
    height: 16px;

    margin-top: 3px;

    accent-color: var(--vida-blue);
}


/* =========================================================
   CONTACT PAGE — TABLET
   ========================================================= */

@media (max-width: 1024px) {

    /* -----------------------------------------------------
       INTRO
       ----------------------------------------------------- */

    .contact-intro__inner {
        min-height: auto;

        padding:
            calc(var(--nav-height) + 100px)
            var(--page-gutter)
            130px;
    }


    .contact-intro__title {
        max-width: 100%;
    }


    .contact-intro__title-line {
        max-width: 100%;

        white-space: normal;
    }


    .contact-intro__title-line--second,
    html[lang="de"]
    .contact-intro__title-line--second {
        margin-top: 54px;
    }


    /* -----------------------------------------------------
       CONVERSATION + FORM
       ----------------------------------------------------- */

    .contact-conversation__inner {
        grid-template-columns:
            minmax(240px, 0.8fr)
            minmax(0, 1.2fr);

        column-gap:
            clamp(50px, 7vw, 90px);

        padding:
            130px
            var(--page-gutter);
    }


    .contact-conversation__copy {
        max-width: 420px;
    }


    .contact-conversation__title {
        max-width: 420px;
    }


    /* -----------------------------------------------------
       CONTACT DETAILS
       ----------------------------------------------------- */

    .contact-details__inner {
        grid-template-columns:
            minmax(220px, 0.75fr)
            minmax(0, 1.25fr);

        column-gap:
            clamp(50px, 7vw, 90px);

        padding:
            130px
            var(--page-gutter)
            150px;
    }


    .contact-details__item {
        grid-template-columns:
            100px
            minmax(0, 1fr);

        column-gap: 30px;
    }
}


/* =========================================================
   CONTACT PAGE — MOBILE
   ========================================================= */

@media (max-width: 760px) {

    /* -----------------------------------------------------
       PAGE SAFETY
       Prevent horizontal overflow
       ----------------------------------------------------- */

    .contact-page,
    .contact-page .site,
    .contact-page main {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }


    /* -----------------------------------------------------
       INTRO
       ----------------------------------------------------- */

    .contact-intro {
        width: 100%;
    }


    .contact-intro__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        min-height: auto;

        margin: 0;

        padding:
            calc(var(--nav-height) + 76px)
            var(--page-gutter)
            100px;
    }


    .contact-intro__title {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: 100%;

        margin: 0;

        font-size:
            clamp(2.35rem, 10vw, 4rem);
        line-height: 1.05;

        letter-spacing: 0.04em;

        overflow-wrap: normal;
        word-break: normal;
    }


    .contact-intro__title-line,
    html[lang="en"]
    .contact-intro__title-line--first,
    html[lang="en"]
    .contact-intro__title-line--second,
    html[lang="de"]
    .contact-intro__title-line--first,
    html[lang="de"]
    .contact-intro__title-line--second {
        align-self: flex-start;

        display: block;

        width: 100%;
        max-width: 100%;

        margin-left: 0;
        margin-right: 0;

        white-space: normal;

        text-align: left;
    }


    .contact-intro__title-line--second,
    html[lang="en"]
    .contact-intro__title-line--second,
    html[lang="de"]
    .contact-intro__title-line--second {
        margin-top: 34px;
    }


    /* -----------------------------------------------------
       CONVERSATION + FORM
       ----------------------------------------------------- */

    .contact-conversation__inner {
        display: block;

        width: 100%;

        margin: 0;

        padding:
            100px
            var(--page-gutter)
            110px;
    }


    .contact-conversation__copy {
        width: 100%;
        max-width: 100%;

        margin-bottom: 86px;
    }


    .contact-conversation__title {
        width: 100%;
        max-width: 100%;

        margin: 0;

        overflow-wrap: normal;
        word-break: normal;
    }


    .contact-conversation__text {
        width: 100%;
        max-width: 100%;

        margin-top: 40px;
    }


    .contact-conversation__text
    + .contact-conversation__text {
        margin-top: 24px;
    }


    /* -----------------------------------------------------
       FORM
       ----------------------------------------------------- */

    .contact-form {
        width: 100%;
        max-width: 100%;
    }


    .contact-form__field {
        width: 100%;

        margin-bottom: 48px;
    }


    .contact-form__field label {
        margin-bottom: 14px;

        font-size: 0.68rem;

        letter-spacing: 0.2em;
    }


    .contact-form__field input,
    .contact-form__field textarea {
        display: block;

        width: 100%;
        max-width: 100%;

        padding:
            8px
            0
            14px;

        font-size: 1rem;
        line-height: 1.5;

        letter-spacing: 0.05em;
    }


    .contact-form__field textarea {
        min-height: 150px;

        resize: vertical;
    }


    /* -----------------------------------------------------
       FORM MESSAGES
       ----------------------------------------------------- */

    .contact-form__message {
        width: 100%;

        margin-bottom: 48px;

        padding:
            18px
            20px;

        font-size: 0.82rem;
    }


    /* -----------------------------------------------------
       CONSENT
       ----------------------------------------------------- */

    .contact-form__consent {
        width: 100%;

        margin:
            -8px
            0
            46px;
    }


    .contact-form__consent label {
        display: grid;

        grid-template-columns:
            18px
            minmax(0, 1fr);

        align-items: start;

        gap: 13px;

        width: 100%;

        font-size: 0.74rem;
        line-height: 1.65;

        letter-spacing: 0.06em;
    }


    .contact-form__consent input {
        width: 17px;
        height: 17px;

        margin: 3px 0 0;
    }


    /* -----------------------------------------------------
       SEND BUTTON
       ----------------------------------------------------- */

    .contact-form__button {
        display: flex;

        width: 100%;
        min-width: 0;
        min-height: 60px;

        padding:
            18px
            22px;

        gap: 24px;
    }


    /* -----------------------------------------------------
       CONTACT DETAILS
       ----------------------------------------------------- */

    .contact-details__inner {
        display: block;

        width: 100%;

        margin: 0;

        padding:
            100px
            var(--page-gutter)
            120px;
    }


    .contact-details__heading {
        width: 100%;

        margin-bottom: 72px;
    }


    .contact-details__title {
        width: 100%;
        max-width: 100%;

        margin: 0;
    }


    .contact-details__list {
        display: grid;

        width: 100%;

        gap: 44px;
    }


    .contact-details__item {
        display: block;

        width: 100%;
    }


    .contact-details__label {
        display: block;

        margin-bottom: 12px;

        font-size: 0.64rem;

        letter-spacing: 0.2em;
    }


    .contact-details__item a,
    .contact-details__item p {
        display: block;

        width: 100%;
        max-width: 100%;

        font-size: 0.95rem;
        line-height: 1.7;

        letter-spacing: 0.07em;

        overflow-wrap: anywhere;
    }
}


/* =========================================================
   CONTACT PAGE — SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    /* -----------------------------------------------------
       INTRO
       ----------------------------------------------------- */

    .contact-intro__inner {
        padding:
            calc(var(--nav-height) + 58px)
            var(--page-gutter)
            82px;
    }


    .contact-intro__title {
        font-size:
            clamp(2rem, 10.5vw, 3rem);

        line-height: 1.08;

        letter-spacing: 0.025em;
    }


    .contact-intro__title-line--second,
    html[lang="en"]
    .contact-intro__title-line--second,
    html[lang="de"]
    .contact-intro__title-line--second {
        margin-top: 26px;
    }


    /* -----------------------------------------------------
       CONVERSATION
       ----------------------------------------------------- */

    .contact-conversation__inner {
        padding-top: 82px;
        padding-bottom: 90px;
    }


    .contact-conversation__copy {
        margin-bottom: 68px;
    }


    .contact-conversation__text {
        margin-top: 32px;
    }


    /* -----------------------------------------------------
       FORM
       ----------------------------------------------------- */

    .contact-form__field {
        margin-bottom: 42px;
    }


    .contact-form__field label {
        font-size: 0.62rem;
    }


    .contact-form__consent {
        margin-bottom: 40px;
    }


    .contact-form__consent label {
        font-size: 0.68rem;
    }


    .contact-form__button {
        min-height: 58px;

        padding:
            17px
            20px;

        font-size: 0.72rem;
    }


    /* -----------------------------------------------------
       CONTACT DETAILS
       ----------------------------------------------------- */

    .contact-details__inner {
        padding-top: 82px;
        padding-bottom: 96px;
    }


    .contact-details__heading {
        margin-bottom: 56px;
    }


    .contact-details__list {
        gap: 36px;
    }


    .contact-details__item a,
    .contact-details__item p {
        font-size: 0.88rem;
    }
}