.hidden {
    display: none;
}

main {
    margin-top: 8rem;
}

#contact_info_container, #contact_form_container {
    --form_background_color: #080808;
    
    margin: 0 auto;
    margin-bottom: 4rem;    
    
    width: 60%;
    
    color: white;
    font-family: Lexend, sans-serif;
    font-size: 1.3rem;
    
    p {
        text-align: center;
    }

    a {
        color: white;
    }

    h1 {
        margin-inline: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 0;
        
        text-align: center;
        
        font-family: Antonio, serif;
        font-size: 6rem;
    }
}

#contact_info_container {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    padding: 1.5rem;

    box-sizing: border-box;

    a {
        display: block;

        width: 50%;

        padding: 1rem;
        margin-block: 0.5rem;
        box-sizing: border-box;

        font-weight: 300;
        text-decoration: none;
    }
}

#contact_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    padding: 1.5rem;
    
    gap: 0.5rem;
}

.input {
    position: relative;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    
    margin-block: 0.5rem;
    
    width: 50%;
    
    label { 
        font-size: 1.3rem;
        font-weight: 400;
    }
    
    input, select, textarea {
        width: 100%;
        height: 3.5rem;
        
        overflow: hidden;
        text-overflow: ellipsis;
        
        padding-inline: 0.5rem;
        box-sizing: border-box;
        
        font-size: 1.2rem;
        font-family: Lexend, sans-serif;
        font-weight: 200;
        
        color: white;
        
        border: 1px solid #ccc;
        background-color: #161616;
        box-shadow: 4px 4px 10px rgba(255,255,255,0.2);
    }
    
    textarea {
        height: 7rem;
        width: 100%;
        
        box-sizing: border-box;
    }
}

.input.stacked {
    flex-direction: column;
    align-items: start;
    
    label {
        margin-top: 0.5rem;
    }
}

input.prefilled {
    background-color: rgb(32, 93, 32);
}

.form_subsection {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    width: 100%;
    
    a {
        color: white;
    }
}

.form_subsection.hidden {
    display: none;
}

#prefill_hint {
    font-size: 1rem;
}

#btn_submit {
    padding: 1rem;
    
    font-size: 1.3rem;
    font-family: Lexend, sans-serif;
    font-weight: 400;
    
    color: white;
    background-color: #161616;
    border: 1px solid white;
    box-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

#btn_submit.hidden {
    display: none;
}

@media (max-aspect-ratio: 1/1) {
    #contact_info_container, #contact_form_container {
        width: 90%;
        
        h1 {
            font-size: 4rem;
        }
    }
    
    #contact_info_container > a {
        width: 100%;
    }

    .input {
        width: 100%;
        
        label {
            margin-inline: 0.5rem;
            
            font-size: 1rem;
        }
    }
}