@import url('https://fonts.googleapis.com/css2?family=Anton&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
    font-family: "Rubik", sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

main {
    margin-top: 50px;
}

.contact {
    width: 100%;
    background-color: #ffffff;
}

.contact .container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    flex-wrap: wrap;
}

.left {
    flex: 1;
    padding: 65px 2rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-heading h1 {
    font-weight: 600;
    color: black;
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.contact-heading h1 span {
    color: #FF9000;
}

.text {
    color: #FF9000;
    line-height: 1.5;
    font-size: 1.1rem;
}

.form-wrapper {
    max-width: 600px;
    width: 100%;
}

.contact-form {
    display: grid;
    margin-top: 2.5rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.input-wrap {
    position: relative;
}

.input-wrap.w-100 {
    grid-column: span 2;
}

.contact-input {
    width: 100%;
    background-color: #f2f2f2;
    padding: 1.5rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 1rem;
    color: #111;
    transition: 0.3s;
    border: 2px solid transparent;
}

.input-wrap label {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    color: #494848;
    pointer-events: none;
    transition: 0.25s;
}

.input-wrap .icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #636262;
    font-size: 1.25rem;
}

textarea.contact-input {
    resize: none;
    min-height: 150px;
}

textarea.contact-input ~ label {
    top: 1.2rem;
    transform: none;
}

textarea.contact-input ~ .icon {
    top: 1.3rem;
    transform: none;
}

.input-wrap.focus .contact-input {
    background-color: #f5f4f4;
    border: 2px solid #FF9000;
    box-shadow: 0 0 0 5px hsla(33, 100%, 50%, 0.11);
}

.input-wrap.focus label,
.input-wrap.focus .icon {
    color: #FF9000;
}

.input-wrap.not-empty label {
    font-size: 0.66rem;
    top: 0.75rem;
    transform: translateY(0);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn {
    font-family: "Rubik", sans-serif;
    padding: 1rem 2rem;
    background-color: #FF9000;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: #653400;
}

.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.image-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.dashed-wave {
    position: absolute;
    z-index: 3;
    height: 130%;
    bottom: 60%;
    left: -28px;
}

#dashed-wave {
    fill: none;
    stroke: #828282;
    stroke-width: 1px;
    stroke-dasharray: 6.5;
    opacity: 0.8;
}

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

@media (max-width: 1200px) {
    .contact-heading h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .contact .container {
        flex-direction: column;
    }

    .right {
        order: -1;
        padding: 2rem 0;
    }

    .contact-heading h1 {
        font-size: 2.8rem;
    }

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

    .input-wrap.w-100 {
        grid-column: span 1;
    }

    .btn {
        width: 100%;
    }

    .contact-buttons {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .contact-heading h1 {
        font-size: 2.5rem;
    }

    .text {
        font-size: 0.95rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .left {
        padding: 40px 1rem;
    }
}

@media (max-width: 500px) {
    .contact-heading h1 {
        font-size: 2.2rem;
    }

    .form-wrapper {
        padding: 0 0.5rem;
    }

    .input-wrap label {
        font-size: 0.9rem;
    }

    .contact-input {
        font-size: 0.9rem;
        padding: 1.2rem;
    }
}

@media (max-width: 375px) {
    .contact-heading h1 {
        font-size: 2rem;
    }

    .contact-buttons {
        padding-top: 1rem;
    }
}

@media (max-width: 320px) {
    .contact-heading h1 {
        font-size: 1.8rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    .input-wrap label {
        font-size: 0.8rem;
    }
}

/* ========================= */
/*        DARK MODE         */
/* ========================= */

.dark-mode {
    background-color: #1e1e1e;
    color: white;
    transition: 0.8s ease;
}

.dark-mode .contact,
.dark-mode .left {
    background-color: #1e1e1e;
    color: white;
}

.dark-mode .contact-heading h1 {
    color: white;
}

.dark-mode .text {
    color: #FF9000;
}

.dark-mode .contact-input {
    background-color: #3b3b3b;
    color: white;
    border: 2px solid #444;
}

.dark-mode .contact-input:hover {
    background-color: #4d4d4d;
}

.dark-mode .input-wrap label {
    color: #b0b0b0;
}

.dark-mode .input-wrap .icon {
    color: #FF9000;
}

.dark-mode .btn {
    background-color: #FF9000;
    color: white;
}

.dark-mode header nav {
    background-color: #181818;
}

.dark-mode .btn-insc-nav:hover {
    background-color: #181818;
    border-color: #FF9000;
    color: #FF9000;
}

.dark-mode .perfil-font {
    color: #121212;
}
