:root {
    --background-color: #f5f6fa;
    --background-heavy: #32127a;
    --button-primary-color: #eb6f14;
    --button-primary-focus-color: #ff8c1f;
    --button-dark-color: #32127a;
    --button-dark-focus-color: #32127a;
    --button-gray-color: #5A5A5A;
    --theme-border-color: lightgrey;

    --keycloak-gradient: initial;
    --keycloak-body-bg: #f5f6fa;
    --keycloak-card-border-color: var(--background-heavy);
    --keycloak-heading-color: var(--background-heavy);

    --default-box-shadow: 0 10px 18px -5px #7090b033;
}

.keycloak-card {
    background-color: transparent;
    box-shadow: none;
    padding: 20px;
    max-width: 500px;
}


.keycloak-form-header h1 {
    color: var(--background-heavy);
}

h1, h2, h3, h4 {
    text-transform: none;
}

h2 {
    font-weight: 600;
    font-size: 26px;
    color: var(--background-heavy);
    margin-top: 17px;
}

h4 {
    font-size: 16px;
}


.carousel-indicators [data-bs-target] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--background-heavy);
}

.btn-primary {
    --bs-btn-bg: #ff8c1f;
    --bs-btn-border-color: var(--button-primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--button-primary-focus-color);
    --bs-btn-hover-border-color: var(--button-primary-focus-color);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--button-primary-focus-color);
    --bs-btn-active-border-color: var(--button-primary-focus-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
}

.btn-outline-primary {
    --bs-btn-color: var(--button-primary-color);
    --bs-btn-border-color: var(--button-primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--button-primary-color);
    --bs-btn-hover-border-color: var(--button-primary-color);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--button-primary-color);
    --bs-btn-active-border-color: var(--button-primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--button-primary-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--button-primary-color);
    --bs-gradient: none;
}

.btn-icon {
    padding: 0;
    border: 0 !important;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    user-select: none;
}

.btn-icon:hover {
    box-shadow: 0px 0px 10px 0px #000000;
}

.keycloak-header {
    background-image: url(../img/logo-sygmund.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 300px;
    margin: 0 auto;
    padding: 40px 0;
}

.keycloak-header-wrapper {
    display: none;
}

@media (min-width: 576px) {
    .keycloak-header {
        padding: 82px 0 60px;
    }
}


.survey input,
.survey .input-group {
    border: none;
    box-shadow: var(--default-box-shadow);
    background-color: white;
    border-radius: 10px;
    margin-top: 8px;
}

.survey input[type="range"] {
    background: none;
    box-shadow: none;
}

.survey input[type="range"]::-webkit-slider-thumb {
    background: var(--button-primary-color);
}

.survey label {
    margin-bottom: unset;
    line-height: unset;
    color: var(--background-heavy);
    font-size: 16px;
    font-weight: 600;
    width: fit-content;
    width: 100%;
}

.survey main section label {
    color: black;
    font-size: 14px;
    font-weight: 400;
}

.survey main section section label {
    color: black;
    font-size: 12px;
    font-weight: 400;
}

.survey main > .input-group.radio,
.survey > .input-group.check {
    position: relative;
}

.survey .input-group.radio,
.survey .input-group.check {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0;
}

.survey .input-group.radio input,
.survey .input-group.check input {
    margin: auto 10px;
    flex: 0 0 auto;
}

.survey .input-group.radio label,
.survey .input-group.check label {
    padding: 20px 10px;
    margin: 0 auto 0 0;
    box-sizing: border-box;
}

.survey main > .input-group.radio label,
.survey main > .input-group.check label,
.survey main > section > .input-group.radio label,
.survey main > section > .input-group.check label {
    border-left: 1px solid #F5F6FA;
}

.survey main > section > section {
    position: relative;
    background-color: white;
    margin: 0 !important;
    padding: 8px 8px 8px 45px;
    border-radius: 0 0 10px 10px;
    transform: translateY(-10px);
    box-shadow: var(--default-box-shadow);
}

.survey main > section > section::before {
    content: "";
    position: absolute;
    left: 39px;
    top: 0;
    bottom: 0;
    border-left: 1px solid #F5F6FA;
}

.survey main > section > section > .input-group {
    margin-top: 4px;
    box-shadow: none;
    background-color: #F5F6FA;
}

.survey main > section > section > .input-group:nth-child(1) {
    margin-top: 0;
}

.survey main > section > section > .input-group.radio label,
.survey main > section > section > .input-group.check label {
    padding: 13px 10px;
}

.survey input[type="radio"],
.survey input[type="checkbox"] {
    appearance: none;
    margin: auto 25px auto 0;
    height: 20px;
    width: 20px;
    aspect-ratio: 1;
    border: 1px solid #CBCBCB;
    background-color: white;
    border-radius: 50% !important;
    position: relative;
}

.survey input[type="radio"]:checked,
.survey input[type="checkbox"]:checked {
    border: 1px solid var(--button-primary-color);
    transition: 120ms border ease-in-out;
}

.survey input[type="radio"]::before,
.survey input[type="checkbox"]::before {
    content: "";
    position: absolute;
    background-color: var(--button-primary-color);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    width: 80%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) scale(0);
    transition: 120ms transform ease-in-out;
}

.survey input[type="radio"]:checked::before,
.survey input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

.survey .input-group input[type="radio"]:not(checked),
.survey .input-group input[type="radio"]:not(checked) {
    border-right: 0.8px solid #CBCBCB !important;
}

.survey .input-group input[type="radio"]:checked,
.survey .input-group input[type="radio"]:checked {
    border-right: 0.8px solid var(--button-primary-color) !important;
}

.wizard-layout {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.wizard-layout > h1 {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 15px 24px;
}


.wizard-layout > header,
.wizard-layout > ol,
.wizard-layout > ul {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 0.5px 0 0;
    list-style-position: inside;
}

.wizard-layout > header {
}

.wizard-layout > ul {
    list-style-type: none;
}

.wizard-layout > header > *,
.wizard-layout > ul > *,
.wizard-layout > ol > * {
    flex: 1;
    height: 79px;
    text-align: center;
    display: flex;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.wizard-layout > header > *.active,
.wizard-layout > ol > *.active,
.wizard-layout > ul > *.active {
    font-weight: bold;
    display: flex;
}

.wizard-layout > section {
    flex: 1 0 auto;
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
}

.wizard-layout > section > footer {
    flex: 1 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 0.7rem 0;
}

.wizard-layout > section > footer .progress {
    margin-bottom: 22px;
    margin-right: 15px;
}


.wizard-layout > section:not(.current) {
    display: none;
}

label {
    position: relative;
    width: 100%;
    font-weight: 700;
    color: #EF8318;
}

label.has-error {
    color: #F64E60;
}

label.has-error input[type=text],
label.has-error input[type=date],
label.has-error input[type=email],
label.has-error input[type=password],
label.has-error input[type=number],
label.has-error .selectize-input,
label.has-error select {
    border: 1px solid #ccc;
    border: 1px solid #F64E60;
}

label.file.has-error::after {
    background-color: #F64E60;
}

label.has-error[data-error]::before {
    content: attr(data-error);
    max-width: 100%;
    color: #F64E60;
    text-align: right;
    position: absolute;
    top: 100%;
    right: 0;
    margin: auto;
}


.progress {
    --bs-progress-height: 10px;
    --bs-progress-bg: white;
    --bs-progress-bar-bg: var(--background-heavy);
    margin-bottom: 14px;
}

/*overrides*/


.wizard-layout > section {
    min-height: 400px;
}

.wizard-layout > header > *,
.wizard-layout > ul > *,
.wizard-layout > ol > * {
    height: auto !important;
}

.wizard-layout > section > footer {
    margin-top: 20px;
}

.wizard-layout > section {
    flex: 1 0 auto;
    padding: 0;
}

.input-group {
    & .btn {
        border: 1px transparent var(--theme-border-color);
        border-left: none;
        transition: none;
    }
    &:has(input:focus) .btn,
    &:hover .btn {
        border: 1px solid var(--theme-border-color);
        border-left: none;
    }
}


div#kc-form-buttons {
    margin-top: 24px;
}

div#kc-social-providers > hr {
    display: none;
}

div#kc-social-providers > h2 {
    text-align: center;
    color: black;
    margin: 22px auto;
    font-weight: 400;
    font-size: 16px;
}

div#kc-social-providers > ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

div#kc-social-providers > ul > li {
    display: block;
}

div#kc-social-providers ul a[id^="social-"] {
    background: white;
    border: none !important;
    border-radius: 7px !important;
    box-shadow: var(--default-box-shadow);
    margin-bottom: 12px !important;
    padding: 9px 13px;
    text-align: left;
    font-size: 18px;
}

div#kc-social-providers ul a[id^="social-"] i {
    margin-right: 30px;
    font-size: 23px;
}

#kc-registration {
    text-align: center;
}

div#kc-info {
    margin: 0;
    background: none;
    font-size: 15px;
}

div#kc-form-options {
    margin-top: 20px;
}