@layer settings, tools, generic, elements, objects, components, trumps;
/* form Block */
.form {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.form--stretch {
    width: 100%;
} 

.form__title {
    background-color: var(--dark-color);
    margin: 0;
    color: white;
    text-align: center;
    padding: .75rem;
    font-weight: 700;
    font-family: var(--font-title);
    border-color: black;
    border-width: 2px 2px 0 2px;
    border-style: solid;
    border-radius: .5rem .5rem 0 0;
}
.form__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-color: black;
    border-width: 0 2px 2px 2px;
    border-style: solid;
    border-radius: 0 0 .5rem .5rem;
    padding: 1rem;
}
@layer components {
    .form__part {
        display: contents;
    }
}


.form__button  {
    margin: .2rem;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    width: 15rem;
    padding: .75rem 1rem;
    text-align: center;
    border-radius: 10px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color .2s linear;
    border: 0;
    cursor: pointer;
    align-self: center;
}
.form__button--dull  {
    background: #4b546f
}
.form__button:not(.form__button--dull):hover, .form__button:active {
    background-color: var(--accent-color-2);
}
.form__questions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 1rem;
    width: max-content;
}

.form__text {
    line-height: 1.5;
    border-radius: 4px;
    border: gray solid 1.5px;
    padding: 5px;
    font-size: .8rem;
    font-family: 'Arial', sans-serif;
    max-width:100%;

}
.form__text.form__text--short {
    width: 25rem;
}
.form__text.form__text--medium {
    width: 40rem;
}
.form__text--long {
    resize: vertical;
}
.form__text:focus {
    outline-color: var(--dark-color);
}

.form__options{
    display: flex;
    flex-direction: column;
}


.form__fieldset{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .5rem 1.2rem 1rem 1.2rem;
    border: 3px solid var(--dark-color);
    border-radius: 4px;
}
.form__legend {
    font-weight: 600;
    font-size: 1rem;
}
.form__label {
    font-weight: 600;
    justify-self: start;
}
/* formGrid Block */

.formGrid{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem;
    gap: 1rem;
    align-items: center;
    align-self: stretch;
}
.formGrid__implode{
    display: contents;
}

@media only screen and (min-width: 480px){
    .formGrid{
        grid-template-columns: auto minmax(0, 1fr);
    }
    .formGrid__line {
        grid-column: span 2;
    }
}

@layer trumps {
    .form__button:disabled {
        background-color: rgb(100, 100, 100) !important;
        cursor: not-allowed !important;
    }
}