/** ========================== **
 ** BASE                       **
 ** ========================== **/
:root:not([data-theme="dark"]), [data-theme="light"] {
    --font-size: 1rem;
    --primary: #197bb7;
    --primary-hover: #105782;
    --primary-focus: #eff9ff;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body > main {
    flex: 1 0 auto;
}

fieldset legend {
    display: block;
    width: 100%;
    font-weight: 600;
}

fieldset legend.heading--section {
    font-size: 125%;
    font-weight: bold;
}

fieldset legend.heading--section small {
    display: block;
    font-size: 75%;
    font-weight: normal;
    font-style: italic;
    opacity: 0.9;
}

label {
    font-weight: 600;
}

[type="checkbox"] + label,
[type="radio"] + label {
    font-weight: normal;
}

[type="checkbox"][disabled] ~ label,
[type="radio"][disabled] ~ label {
    opacity: .5;
}

/** ========================== **
 ** GRID                       **
 ** ========================== **/
@media (min-width: 1200px) {
    .container {
        max-width: 920px;
    }
}

@media (min-width: 992px) {
    .grid.odd-even {
        grid-template-columns: 70% 30%;
    }
}

/** ========================== **
 ** FORMS                      **
 ** ========================== **/

.checkboxes,
.radios {
    display: flex;
    gap: 30px;

    > label {
        cursor: pointer;
        font-weight: normal;
    }
}

.form-actions {
    margin-top: calc(var(--spacing) * 2);
}

.form-actions > button + div {
    position: absolute;
}

/** ========================== **
 ** ALERT                      **
 ** ========================== **/
[class*="alert-"] {
    --color: var(--contrast-inverse);
    padding: 20px;
    color: white;
    margin-bottom: var(--spacing);

    p:last-child {
        margin-bottom: 0;
    }
}

.alert-error {
    background-color: var(--del-color);
    --color: var(--contrast-inverse);
}

.alert-success {
    background-color: var(--ins-color);
}

/** ========================== **
 ** BUTTON GROUP               **
 ** ========================== **/
.button-group button {
    display: inline-block;
    width: auto;
    min-width: 8rem;
}

.button-group button ~ button {
    margin-left: 0.5rem;
}

/** ========================== **
 ** FORM STEPS                 **
 ** ========================== **/
.form-steps--heading {
    margin-top: calc(var(--spacing) * 2);
    margin-bottom: 0;
}

.form-steps {
    counter-reset: form_step;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: var(--spacing) 0 calc(var(--spacing) * 2);
    padding: 0;
    background: '';
    box-shadow: none;
    border-radius: .28571429rem;
    border: 1px solid rgba(34,36,38,.15);
}

@media (min-width: 768px) {
    .form-steps {
        flex-direction: row;
    }
}

.form-steps hgroup {
    margin-bottom: 0;
}

.form-steps h6 {
    font-size: 0.75rem;
}

.form-steps .step {
    vertical-align: middle;
    display: flex;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0;
    margin: 0 0;
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    background: #fff;
    color: rgba(0,0,0,.87);
    box-shadow: none;
    transition: background-color .1s ease,opacity .1s ease,color .1s ease,box-shadow .1s ease;
}

.form-steps .step h4 {
    --font-size: 20px;
}

.form-steps .step h6 {
    font-size: 14px;
}

@media (min-width: 768px) {
    .form-steps .step {
        width: 33.33332%;
        flex: 1 1 33.33332%;
    }
}

.form-steps .step::before {
    counter-increment: form_step;
    content: counters(form_step, ".");
    display: block;
    align-self: middle;
    margin-right: var(--spacing);
    position: static;
    font-size: 2.5em;
    font-family: inherit;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 768px) {
    .form-steps .step {
        border-right: 1px solid rgba(34,36,38,.15);
    }

    .form-steps .step::after {
        width: 1.14285714em;
        height: 1.14285714em;
        border: medium none;
        border-style: solid;
        border-color: rgba(34,36,38,.15);
        border-width: 0 1px 1px 0;
        position: absolute;
        z-index: 2;
        content: '';
        top: 50%;
        right: 0;
        background-color: #fff;
        transition: background-color .1s ease,opacity .1s ease,color .1s ease,box-shadow .1s ease;
        transform: translateY(-50%) translateX(50%) rotate(-45deg);
    }
}

.form-steps .step:last-child::after {
    content: none;
}

.form-steps .step:first-child {
    padding-left: 1rem;
    border-radius: .28571429rem 0 0 .28571429rem
}

.form-steps .step:last-child {
    border-radius: 0 .28571429rem .28571429rem 0
}

.form-steps .step:last-child {
    border-right:none;
    margin-right:0
}

.form-steps .step.active {
    cursor: auto;
    background: #f3f4f5;
}

.form-steps .step.active::after {
    background-color: #f3f4f5;
}

.form-steps .step.active h4 {
    color: var(--primary);
}

/** ========================== **
 ** FORM WIZARD                **
 ** ========================== **/
.form-wizard .step {
    display: none;
}

.form-wizard .step.active {
    display: block;
}

/** ========================== **
 ** UTITLIES                   **
 ** ========================== **/

.hidden {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    visibility: hidden !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.asterisk {
    color: var(--form-element-invalid-active-border-color);
}

/** ========================== **
 ** LAYOUT                     **
 ** ========================== **/
#header {
    --block-spacing-vertical: 1.5rem;
    background-color: var(--primary-focus);
}

#header nav hgroup {
    margin-bottom: 0;
}

#logo {
    max-width: 100%;
    width: 380px;
    height: auto;
}

#slogan {
    font-weight: bold;
    font-size: 18px;
}

@media (min-width: 1200px) {
    #slogan {
        font-size: 22px;
    }
}

#footer {
    --block-spacing-vertical: 1.5rem;
    background-color: var(--primary-focus);
}

#slots {
    opacity: 1;
}

#slots.loading {
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
}