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

.unimop-form {
    position: relative;
    padding: 20px;
    font-family: inherit;
    font-size: 16px;
}

.unimop-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.unimop-form .form-group {
    display: flex;
    flex-direction: column;
}

.unimop-form input[type="date"],
.unimop-form input[type="email"],
.unimop-form input[type="number"],
.unimop-form input[type="password"],
.unimop-form input[type="search"],
.unimop-form input[type="tel"],
.unimop-form input[type="text"],
.unimop-form input[type="url"],
.unimop-form select,
.unimop-form textarea {
	border: unset;
	border-radius: unset;
	padding: unset;
	transition: unset;
	width: unset;
}

.unimop-form select {
    /* max-width: 320px; */
}


.unimop-form .form-control,
.unimop-form textarea,
.unimop-form select,
.unimop-form input[type="file"] {
    border: 1px solid #404040 !important;
    border-radius: 0px;
    margin-top: 5px;
    padding: 12px !important;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 5px;
}

.checkbox-group,
.radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 5px;
}

.radio-group.two-columns,
.checkbox-group.two-columns {
    grid-template-columns: 1fr 1fr;
}

/* stili da figma */

.unimop-form input::placeholder,
.unimop-form textarea::placeholder {
    text-transform: uppercase;
    color: #000;
    opacity: 0.6;
}


.unimop-form .checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.unimop-form .checkbox .custom-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    border-radius: 0px;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}


.unimop-form .checkbox input[type="checkbox"]:checked + .custom-box {
    background-color: #000;
    border-color: #000;
}

.unimop-form .checkbox input[type="checkbox"]:checked + .custom-box::after {
    content: "\2714";
    color: #fff;
    font-size: 1rem;
    position: absolute;
    left: 2px;
}



.unimop-form .radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.unimop-form .radio .custom-radio {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}


.unimop-form .radio input[type="radio"]:checked + .custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
}

label.checkbox,
label.radio {
    margin-bottom: 11px;
}


.label-checkbox,
.label-checkboxlist,
.label-switch,
.label-radio {
    position: static;
    width: auto;
    height: auto;
    margin: 20px 0 11px 0;
    clip: auto;
    white-space: normal;
}

.label-text,
.label-email
.label-number,
.label-fileupload,
.label-datepicker,
.label-dropdown,
.label-textarea {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* fine stili da figma */


.field-error {
    color: red;
    font-size: 0.875rem;
    margin-top: 4px;
}


.alert-error {
    background-color: #ffe6e6;
    color: #900;
    padding: 10px;
    border: 1px solid #f00;
    border-radius: 4px;
}


.alert-success {
    background-color: #c4f0c5;
    color: #060;
    padding: 1rem;
    border: 1px solid #0a0;
    border-radius: 4px;
}

.section-divider {
    grid-column: span 2;
}

.actions-container {
    grid-column: span 2;
}


.form-actions {
    padding: 15px 20px;
    color: #fff;
    text-transform: unset;
    background: #000;
    border: 1px solid #fff !important;
    border-radius: 0px;
    margin-top: 5px;
    display: block;
    font-weight: bold;
    width: auto;
    max-width: 250px;
}

.form-actions:hover {
    border: 1px solid #000 !important;
    color: #000;
    background: #fff;
}

.full-row {
    grid-column: span 2;
}

button {
    padding: 10px 20px;
    border: none;
    background-color: #007BFF;
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.submitting-overlay {
    position: absolute;
    inset: 0;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(208, 226, 244, 0.35);
    z-index:50;
}

.success-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.6);
	z-index: 50;
}

.overlay-body {
    background:#fff;
    padding:20px;
    border-radius:8px;
    text-align:center;
    border: 1px solid #000;
}

.overlay-title {
    font-weight:bold;
    color:#060;
    margin-bottom:8px;
    min-width: 300px;
}

.overlay-btn {
    margin-top: 12px;
}

.spinner {
    margin-bottom:8px;
    min-width: 300px;
}

.dots {
    display:inline-flex;
    gap:4px;
}

.dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0056b3;
    opacity: .3;
    animation: bounce 1s infinite ease-in-out;
}
.dots span:nth-child(2) {
    animation-delay: .15s;
}
.dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes bounce {
    0%,80%,100% {
        transform: scale(0.6);
        opacity:.3;
    }
    40% {
        transform: scale(1);
        opacity:1;
    }
}

.text-success {
    color: #060 !important;
}

.text-danger {
    color: #900 !important;
}

.w-100 {
    width: 100% !important;
}

.my-15px {
    margin-top: 15px;
    margin-bottom: 15px;
}

.list-style-none {
    list-style: none !important;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .section-divider {
        grid-column: span 1;
    }

    .actions-container {
        grid-column: span 1;
    }

    .form-actions {
        grid-column: span 1;
    }

    .full-row {
        grid-column: span 1;
    }

    .label-text,
    .label-email
    .label-number,
    .label-checkbox,
    .label-checkboxlist,
    .label-switch,
    .label-radio,
    .label-fileupload,
    .label-datepicker,
    .label-dropdown,
    .label-textarea {
        position: static;
        width: auto;
        height: auto;
        margin: 20px 0 11px 0;
        clip: auto;
        white-space: normal;
    }
}
