[x-cloak] {
    display: none !important;
}

button.green-big {
    color: #fff;
    background-color: var(--color-avrio-green);
    padding: 10px 20px;
    transition: all linear 300ms;

    &:hover {
        border-color: var(--color-avrio-green);
        color: var(--color-avrio-green);
        background-color: #fff;
    }

    &.onemogoci {
        background-color: gray;
        transition: all linear 300ms;

        i {
            color: white;
        }
    }
}

.base-button {
    border-radius: 28px;
    padding: 10px 30px;
    font-size: 18px;
    line-height: 22px;
    font-weight: 600;
    transition: all ease 300ms;
    outline: none;
    border: unset;
    text-decoration: none;

    &.small-button {
        border-radius: 28px;
        font: normal normal 600 12px/19px Montserrat !important;
        padding: 4px 11px !important;
        background: unset;
        text-transform: uppercase;
    }

    &.bg-none {
        background: unset;
    }

    &.rumen-outline,
    .active {
        border: 2px solid var(--color-yellow);

        &:hover:not(.active) {
            border: 2px solid transparent;
            background-color: var(--color-yellow);
        }
    }

    &.zelen-outline {
        border: 2px solid var(--color-green);
        background: unset;

        &:hover:not(.active) {
            border: 2px solid transparent;
            background-color: var(--color-green);
            color: #fff !important;
        }
    }

    &.crn-outline {
        border: 2px solid #000;
        background: unset;

        &:hover:not(.active) {
            border: 2px solid transparent;
            background-color: #000;
            color: #fff !important;
        }
    }

    &.rumen-background {
        border: 2px solid transparent;
        background-color: var(--color-yellow);

        &:hover:not(.active) {
            border: 2px solid var(--color-yellow);
            background-color: unset;
        }
    }

    &.zelen-background {
        background: var(--color-green);
        border: 2px solid transparent;
        color: #fff;

        &:hover:not(.active) {
            border: 2px solid var(--color-green);
            background-color: unset;
            color: #000
        }
    }

    &.rdec-background {
        background: red;
        border: 2px solid transparent;
        color: #fff;

        &:hover:not(.active) {
            border: 2px solid red;
            background-color: unset;
            color: #000
        }
    }

    &:disabled {
        opacity: 0.6;
        filter: grayscale(100%);
        cursor: not-allowed;
    }
}

button {
    cursor: pointer;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    min-width: 100%;
}

@media (min-width: 640px) {
    .form-group {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: 250px;
    }

    .form-group:has(.radio-group),
    .form-group:has(.checkbox-group),
    .form-group:has(textarea) {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

#izpolnjevanje-dokumentov .form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-group {

    input:not([type="radio"]):not([type="checkbox"]),
    select,
    textarea {
        border-color: var(--color-green);
        border-radius: 8px;
        border-style: solid;
        outline: none;
        padding: 12px 15px;
        width: 100%;
        font-size: 16px;
        transition: all 0.3s ease;
        background: white;
        border-width: 2px;
    }

    input:not([type="radio"]):not([type="checkbox"]):focus,
    select:focus,
    textarea:focus {
        outline: none;
        box-shadow: 0 0 3px 3px rgb(0 141 74 / 29%);
    }

    input:not([type="radio"]):not([type="checkbox"]).error {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    }

    input:not([type="radio"]):not([type="checkbox"])::placeholder {
        color: #6c757d;
        font-style: italic;
    }
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    min-width: 150px;

    @media (max-width:576px) {
        width: 100%;
    }
}

.radio-group label span {
    max-width: 96%;

    @media (max-width:576px) {
        max-width: 91%;
    }
}

.radio-group label:hover {
    border-color: var(--color-green);
    background: #e9faf2;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-green);
}

.radio-group input[type="radio"]:checked+span {
    font-weight: 600;
    color: var(--color-green);
}

.radio-group label:has(input:checked) {
    border-color: var(--color-green);
    background: #e9faf2;
}

/* Checkbox Groups */
.checkbox-group {
    margin-top: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #e9faf2;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-group label:hover {
    background: #e9faf2;
    border-color: var(--color-green);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 3px 0 0 0;
    flex-shrink: 0;
    accent-color: var(--color-green);
}

.form-section {
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    background: #fafbfc;
}

.form-section h3 {
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 21px;
    padding-bottom: 10px;
}

.form-section h4 {
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 16px;
}

.wrapper-badge,
.wrapper-badge-errors {
    position: fixed;
    bottom: 20px;
    right: 50px;
    height: 32px;
    transform: translatex(0%) translatey(0%);
    width: 32px;
    z-index: 1000;

    &.expand {
        width: 128px;

        >.notification-banner {
            opacity: 1;
            width: 128px;
        }

        >svg.notification-icon {
            transform: translatex(calc(-32px - 100%)) translatey(-50%);
        }
    }

    &.wrapper-badge-errors {
        >.notification-banner {
            background: #cb9696;

        }

        >.svg.notification-icon,
        >.notification-banner {
            transition-duration: 0.5s;
        }

        &.expand {
            >.notification-banner {
                width: 192px;
            }

            >svg.notification-icon {
                transform: translatex(calc(-64px - 100%)) translatey(-50%);
            }
        }

    }

    >.notification-banner {
        height: 32px;
        width: 32px;
        border-radius: 32px;
        background: var(--color-green);
        position: absolute;
        top: 50%;
        left: 50%;
        overflow: hidden;
        opacity: 0;
        transform: translatex(-50%) translatey(-50%);
        transition-property: transform, opacity, width;
        transition-duration: 0.25s;
        display: flex;
        align-items: center;
        padding-left: 34px;
        color: #fff;
        font-size: 14px;
    }

    >svg.notification-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translatex(-50%) translatey(-50%);
        width: 32px;
        height: 32px;
        animation: draw-and-fill 1.25s ease;
        transition-property: transform, opacity;
        transition-duration: 0.25s;
    }

    @keyframes draw-and-fill {
        0% {
            fill-opacity: 0;
            stroke-dasharray: 200;
            stroke-dashoffset: 200;
        }

        35% {
            fill-opacity: 0;
        }

        90% {
            stroke-dashoffset: 0;
        }

        100% {
            stroke-width: 0;
            fill-opacity: 1;
        }
    }

    &.closing {
        >svg.notification-icon {
            animation: draw-and-fill-reverse 1.25s ease;
        }
    }

    @keyframes draw-and-fill-reverse {
        0% {
            stroke-width: 0;
            fill-opacity: 1;
            stroke-dashoffset: 0;
        }

        10% {
            fill-opacity: 1;
        }

        65% {
            fill-opacity: 0;
        }

        100% {
            fill-opacity: 0;
            stroke-dasharray: 200;
            stroke-dashoffset: 200;
        }
    }
}

@media (max-width: 640px) {

    .wrapper-badge,
    .wrapper-badge-errors {
        right: 16px;
        bottom: 16px;
    }
}