
.closingMsg-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    max-width: 50%;
}

.closingMsg-contact h4 {
    color: var(--pink);
}

.closingMsg-contact p {
    text-align: justify;

    margin-top: 0;
}
.closingMsg-contact button {
    margin: 1em;
    background-color: transparent;
    border-radius: 5em;
    border: 1px solid white;
    color: white;
    padding: 0.5em 1em;
    font-size: 1rem;
    cursor: pointer;
}
.closingMsg-contact button:hover {
    background-color: white;
    color: var(--purple);
    transition: all ease 0.3s;
}

/* ---- Contact: scroll-triggered entrance ----
   The closing pitch rises in sequence: kicker -> heading -> copy -> CTA. The
   sliding contact form itself is a separate interaction (.show) and untouched.
   Gated behind .js; no-JS ships the message fully visible. */
.js #contact .closingMsg-contact > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.js #contact.is-visible .closingMsg-contact > * {
    opacity: 1;
    transform: translateY(0);
}
.js #contact.is-visible .closingMsg-contact > h4 {
    --reveal-delay: 0.25s;
}
.js #contact.is-visible .closingMsg-contact > h2 {
    --reveal-delay: 0.37s;
}
.js #contact.is-visible .closingMsg-contact > p {
    --reveal-delay: 0.49s;
}
.js #contact.is-visible .closingMsg-contact > button {
    --reveal-delay: 0.61s;
}

/*==================*/
/*Section Contact-Form*/
/*================== */

.contact-form {
    transition: all ease 0.5s;
    transform: translateY(100vh);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: #59225b;
    height: 100vh;
    width: 100vw;
}

.show {
    z-index: 3;
    transform: translateY(0vh);
    height: 100vh;
    transition: all ease 0.5s;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: #59225b;
}

.contact-header {
    display: flex;
    opacity: 1;
    width: 85%;
    padding-top: 2em;
    margin: 0 auto;
    transition: all ease 0.5s;
    justify-content: space-between;
}
.linkIcons {
    cursor: pointer;
}
.x-icon {
    width: 30px;
    cursor: pointer;
}
.form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    transition: all ease 0.5s;
    opacity: 1;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    width: 50%;
    min-width: 300px;
    max-width: 900px;
}


.fullname {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}
.fullname input {
    width: 100%;
}

.form input {
    height: 40px;
    width: 100%;
    background-color: transparent;
    border-radius: 0.5em;
    border: 2px solid white;
    color: white;
    padding: 0 1em;
}

.form input::placeholder {
    color: rgb(168, 168, 168);
    padding-left: 1em;
    font-family: "Elms Sans", sans-serif;
}
.form textarea {
    height: 100px;
    width: 100%;
    resize: vertical;
    background-color: transparent;
    border-radius: 0.5em;
    border: 2px solid white;
    color: white;
    padding: 1em;
}

.form textarea::placeholder {
    color: rgb(168, 168, 168);
    padding-left: 1em;
    padding-top: 1em;
    font-family: "Elms Sans", sans-serif;
}
.form button {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    height: 40px;
    margin-top: 2em;
    width: 100px;
    border-radius: 0.5em;
    cursor: pointer;
}
.form button:hover {
    background-color: white;
    color: #59225b;
    transition: all ease 0.3s;
}
@media(max-width: 1120px){
    .closingMsg-contact {
        max-width: 95%;
    }
}

@media(max-width: 480px){
    .closingMsg-contact {
        max-width: 100%;
    }
    .form {
        width: 88vw;
    }
    .fullname {
        flex-direction: column;
        gap: 0.6em;
    }
}
