section#selection-form-section{
    display: flex;
    width: 100%;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background-color: var(--background-color);
    font-size: 1rem;
}

section#selection-form-section * {
    color: var(--dark-color);
    font-family: inherit !important;
}

section#selection-form-section form#selection-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    background-color: var(--background-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border: 2px solid transparent;
    font-size: 1em;
    padding: 2rem 1rem;
    gap: 2rem;
}

form#selection-form h2{
    max-width: 500px;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    align-self: center;
}

form#selection-form .name-wrapper{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1em;
}

form#selection-form .name-wrapper p {
    font-size: 1.5em;
    font-weight: bold;
}

form#selection-form .name-wrapper .details{
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1rem;
    font-size: 1em;
}


form#selection-form .name-wrapper label{
    display: flex;
    flex-direction: column;
    font-size: 1.3em;
    font-weight: 500;
    width: 100%;
    gap: 0.2rem;
}

form#selection-form .name-wrapper label input{
    display: flex;
    width: 100%;
    padding: 1rem 1rem;
    font-size: 1em;
    background-color: var(--background-color);
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 
        0 2px 3px rgba(0,0,0,0.3),
        0 0 3px rgba(0,0,0,0.3);
    outline: none;
    resize: vertical;
    transition: 0.3s ease-out, background-color 0.3s ease;
}

form#selection-form .name-wrapper label input:hover{
    cursor:pointer;
    background-color: var(--gray-color);
    border-bottom: 2px solid var(--detail-color);
}

form#selection-form .name-wrapper label input:focus,
form#selection-form .name-wrapper label input:active{
    cursor: text;
    background-color: var(--gray-color);
    border: 2px solid var(--detail-color);
    box-shadow: inset 0 0 2px rgba(0,0,0,0.3);
}


form#selection-form .value-wrapper{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 100%;
    gap: 2rem;
    padding: 1rem 1rem;
    font-size: 1em;
    overflow-y: auto;
    overflow-x: hidden;
}

form#selection-form .value-wrapper::-webkit-scrollbar {
    width: 8px;
}

form#selection-form .value-wrapper::-webkit-scrollbar-thumb {
    background: var(--detail-color);
    border-radius: 4px;
}

form#selection-form .value-wrapper::-webkit-scrollbar-thumb:hover{
    background-color: var(--accent-color);
}

form#selection-form .value-wrapper p {
    font-size: 1.5em;
    font-weight: bold;
}

form#selection-form .value-wrapper .value{
    display: flex;
    width: 100%;
    font-size: 1em;
}

form#selection-form .value-wrapper .value label{
    display: flex;
    width: 100%;
    flex-direction: column;
    font-size: 1.3em;
    font-weight: 500;
    gap: 0.5rem;
}

form#selection-form .value-wrapper .value label input{
    display: flex;
    width: 100%;
    padding: 1rem 1rem;
    font-size: 1em;
    background-color: var(--background-color);
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 
        0 2px 3px rgba(0,0,0,0.3),
        0 0 3px rgba(0,0,0,0.3);
    outline: none;
    resize: vertical;
    transition: 0.3s ease-out, background-color 0.3s ease;
}

form#selection-form .value-wrapper .value label input:hover{
    cursor:pointer;
    background-color: var(--gray-color);
    border-bottom: 2px solid var(--detail-color);

}

form#selection-form .value-wrapper .value label input:focus,
form#selection-form .value-wrapper .value label input:active{
    cursor: text;
    background-color: var(--gray-color);
    border: 2px solid var(--detail-color);
    box-shadow: inset 0 0 2px rgba(0,0,0,0.3);
}

/* form#selection-form .value-wrapper .value label input{
    display: flex;
    width: 100%;
    padding: 1rem 0.8rem;
    font-size: 1em;
    background-color: var(--background-color);
    border: 2px solid transparent;
    border-bottom: 2px solid var(--gray-color);
    outline: none;
    resize: vertical;
    transition: 0.3s ease-out, background-color 0.3s ease;
}

form#selection-form .value-wrapper .value label input:hover{
    cursor: pointer;
    border-bottom: 2px solid var(--detail-color);
    background-color: var(--gray-color);
    border-radius: 2px;

}

form#selection-form .value-wrapper .value label input:focus,
form#selection-form .value-wrapper .value label input:active{
    cursor: text;
    border: 2px solid var(--detail-color);
    background-color: var(--gray-color);
    border-radius: 5px;
} */


#selectionFormMessege {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    height: auto;
    transition: opacity 1s ease;
    opacity: 1;
}

#selectionFormMessege.fadeOut {
    opacity: 0;
}


form#selection-form button{
    display: flex;
    justify-content: center;
    align-self: center;
    width: 100%;
    min-width: 150px;
    max-width: 180px;
    font-size: 1.5em;
    padding: 1rem;
    gap: 0.5rem;
    border-radius: 5px;
    font-weight: normal;
    background-color: var(--detail-color);
    color: var(--background-color);
    outline: none;
    border: none;
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
    transition: 0.3s ease-out;
}

form#selection-form button:hover{
    cursor: pointer;
    background-color: var(--accent-color);
}

form#selection-form button:active{
    scale: 0.95;
}

form#selection-form button .icon-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

form#selection-form button .icon-wrapper img{
    height: 1.8rem;
    width: 1.8rem;
    filter: invert(1);
    box-shadow: none;
}

form.formSuccess {
    border-color: green !important;
}

.formErrorText {
    color: red !important;
    height: 0.9rem;
    margin-top: 0.3rem;
}

input.formErrorInput,
textarea.formErrorInput {
    border-color: red !important;
    color: var(--dark-color);
}

.successMessage {
    color: green !important;
}

.errorMessage {
    color: red !important;
}

@media (max-width: 600px){
    form#selection-form .name-wrapper .details{
        flex-direction: column;
    }

}

@media (max-width: 480px){

    section#selection-form-section{
        display: flex;
        width: 100%;
        flex: 1;
        justify-content: center;
        align-items: center;
        padding: 1rem 0.5rem;
        background-color: var(--background-color);
        font-size: 0.8rem !important;
    }

    section#selection-form-section form#selection-form{
        padding: 1rem 0.5rem !important;
        gap: 0.5rem;
    }

    form#selection-form h2{
        font-size: 2.3em;
        margin-bottom: 1rem;
    }
    
    form#selection-form .name-wrapper label input,
    form#selection-form .value-wrapper .value label input{
        padding: 0.8rem;
    }

    form#selection-form button{
        width: auto !important;
        min-width: none !important;
        font-size: 1.5em;
        padding: 0.6rem;
    }

    form#selection-form button .icon-wrapper {
        height: 100%;
    }

    form#selection-form button .icon-wrapper img{
        height: 1.2rem;
        width: 1.2rem;
        filter: invert(1);
        box-shadow: none;
    }

    #selectionFormMessege {
        font-size: 1.2em;
    }
}

.g-recaptcha * {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
}