/* Styles specifically for the contact page (contact.html) */

:root {
    --warning-color: #aa2626;
}

#header {
    padding-top: 40px;
    text-align: center;
    font-size: calc(1.6vw + 1.7rem);
    font-family: Lato;
}

#description {
    font-family: "League Spartan";
    text-align: center;
    font-size: calc(0.6vw + 0.7rem);
    font-style: italic;
    max-width: min(70vw, 45ch);
    margin: 0 auto;
    padding-top: 10px;
    line-height: calc(0.8vw + 0.8rem);
}

#empty-fields-warning {
    width: 85%;
    max-width: 500px;
    height: 45px;
    margin: 0 auto;
    position: relative;
    display: none;
}

#caution-symbol-wrapper, #text-wrapper {
    border: 2px solid var(--warning-color);
    height: calc(0.6vw + 55px);
    position: absolute;
    top: calc(0.6vw + 10px);

    display: flex;
    justify-content: center;
    align-items: center;

    color: var(--warning-color);
}

#caution-symbol-wrapper {
    width: calc(20% - 1.5vw);
    border-radius: 8px 0 0 8px;
    font-size: calc(0.34vw + 1.3rem);
}

#text-wrapper {
    width: 82%;
    left: calc(20% - 1.5vw);
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: calc(0.35vw + 0.75rem);
    font-style: italic;
}

#contact-form {
    width: calc(70% + 150px);
    max-width: 90vw;
    margin: 70px auto;
    padding: 0 4%;
    border-radius: 12px;

    display: flex;
    flex-direction: column;

}

#form-wrapper {
    display: flex;
    justify-content: center;
    gap: 60px 10%;
    flex-wrap: wrap;
}

#form-wrapper-left, #form-wrapper-right {
    width: 41%;
    min-width: 250px;

    display: flex;
    flex-direction: column;
    gap: 30px;

}

.form-input {
    width: 100%;
    height: 60px;
    padding-left: 9px;
    font-size: calc(0.15vw + 0.85rem);
    border: 1px solid var(--text-color);
    border-radius: 12px;
    font-family: "League spartan";
}

#reasoning-input {
    margin-top: 40px;
    background-color: white;
    color: var(--text-color);
}

#message-input {
    padding-top: 10px;
    height: 100%;
    min-height: 350px;
    resize: none;
}

#send-button {
    width: 25%;
    height: 60px;
    margin: 70px auto 0 auto;
    font-size: calc(0.12vw + 1.5rem);
    background-color: var(--highlight-color);
    border: none;
    border-radius: 12px;
    font-family: "League spartan";
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    text-align: center;
    padding-top: calc(22px - 0.25vw);
    transition: background-color 0.5s;
}

#send-button::before, #send-button::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    translate: -50% -50%;
    border-radius: 14px;
}

#send-button::before {
    top: 50%;
    left: 50%;
    background: conic-gradient(
        from var(--angle),
        var(--text-color) 2%,
        transparent 2%,
        transparent 52%,
        var(--text-color) 52%,
        var(--text-color) 54%,
        transparent 54% 
        );
    padding: 4px;
    animation: 4s spin linear infinite;
    opacity: 0;
    transition: opacity 1s;
    z-index: -1;
}

#send-button::after {
    top: 57%;
    left: 51.25%;
    background-color: var(--mobile-dropdown-bg-color);
    z-index: -2;
}

#send-button:hover {
    background: var(--highlight-color-dark);
    cursor: pointer;
}

#send-button:hover::before {
    opacity: 1;
}



@media (orientation: portrait) and (max-width: 650px) {
    #empty-fields-warning {
        margin-top: 10px;
        margin-bottom: 55px;
    }
    #contact-form {
        margin: 40px auto 70px auto;
    }
    #form-wrapper-left, #form-wrapper-right {
        width: 100%;
    }
    #reasoning-input {
        margin-top: 0;
    }
    #send-button {
        width: 100%;
        margin: 30px auto 0 auto;
    }

    .form-input, #reasoning-input {
        font-size: 1rem;
    }
}