/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

#oa-auth-wrapper {
    row-gap: 1rem;
}

#oa-auth-wrapper .form-fieldset-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
#oa-auth-wrapper .form-fieldset-container .full-width {
    grid-column: span 2;
}

#oa-auth-wrapper div.form-choice {
    display: flex;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 8px;
    width: 100%;
}

/* Verberg de standaard input maar houd 'm toegankelijk voor screenreaders */
#oa-auth-wrapper div.form-choice input[type="radio"]{
    position: absolute;
    opacity: 0 !important;
    pointer-events: none;
}

/* Label als knop */
#oa-auth-wrapper div.form-choice label {
    display: inline-block;
    border: 2px solid var(--global-palette1);
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    background: #f9f9f9;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease;
    user-select: none;
    margin: 0 !important;
    background: var(--global-palette9);
    width: 100%;
}

/* Hover/focus */
#oa-auth-wrapper div.form-choice label:hover,
#oa-auth-wrapper div.form-choice label:hover *,
#oa-auth-wrapper div.form-choice input[type="radio"]:focus + label,
#oa-auth-wrapper div.form-choice input[type="radio"]:focus + label *{
    border-color: var(--global-palette1);
    background: var(--global-palette9);
    color: var(--global-palette1) !important;
}

/* Geselecteerde knoppen */
#oa-auth-wrapper div.form-choice input[type="radio"]:checked + label,
#oa-auth-wrapper div.form-choice input[type="radio"]:checked + label * {
    border-color: var(--global-palette1);
    background: var(--global-palette8);
    color: var(--global-palette3) !important;
}

/* Toetsenbord focus zichtbaar */
#oa-auth-wrapper div.form-choice input[type="radio"]:focus-visible + label {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

p.error-text {
    border: 1px solid var(--global-palette13, red);
    color: var(--global-palette13, red);
    padding: 0.5rem;
    margin-bottom: 1rem !important;
}

.button-wrapper {
    display: flex;
    justify-content: space-between;
}
.button-wrapper.single-button {
    flex-direction: row-reverse;
}
.button-wrapper .previous {
    background-color: var(--global-palette9);
    color: var(--global-palette1);
    border-color: var(--global-palette1);
}
.button-wrapper .next {
    background-color: var(--global-palette1);
    color: var(--global-palette9);
    border-color: var(--global-palette1);
}

#oa-auth-wrapper table th {
    text-align: left;
}