/* Flat Design styling with unique class names */
.form-group-Flat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: 8px;
    border: 1px solid var(--grey-300);
}

.form-check-Flat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--grey-300);
    border-radius: 6px;
    background-color: var(--light);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-check-Flat:hover {
    background-color: var(--grey-100);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.form-check-input-Flat {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background-color: var(--light);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-check-input-Flat:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label-Flat {
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.2s ease;
}

.form-check-Flat:hover .form-check-label-Flat {
    color: var(--primary-300);
}

/* Focused input states */
.form-check-input-Flat:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(75, 110, 210, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .form-group-Flat {
        padding: 1rem;
        gap: 0.8rem;
    }

    .form-check-Flat {
        padding: 0.6rem 1rem;
    }

    .form-check-label-Flat {
        font-size: 0.9rem;
    }
}

/* Styling for dropdown and radio input specific to this component in Flat Design */

/* Dropdown styling for Flat Design */
.form-select-Flat {
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--light);
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius2x);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-select-Flat:hover, .form-select-Flat:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-rgba-30);
    outline: none;
}

/* Radio button styling for Flat Design */
.form-check-input-Flat[type="radio"] {
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--grey-300);
    border-radius: 50%;
    background-color: var(--light);
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-check-input-Flat[type="radio"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-rgba-40);
}

.form-check-input-Flat[type="radio"]:hover {
    border-color: var(--primary-200);
}

/* Label styling for Flat Design */
.form-check-label-Flat {
    font-size: 1rem;
    color: var(--dark);
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.form-check-label-Flat:hover {
    color: var(--primary);
}

/* Flat Design - DateTime Component */
.date-input-Flat,
.time-input-Flat {
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--light);
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius2x);
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 300px;
    margin-top: 5px;
}

.date-input-Flat:focus,
.time-input-Flat:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-rgba-30);
    outline: none;
}

.date-input-Flat:hover,
.time-input-Flat:hover {
    border-color: var(--primary-200);
}

.form-label-Flat {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
}

.mt-2 {
    margin-top: 1rem;
}

/* Text Input Flat Design */
.form-control-Flat {
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--light);
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius2x);
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 300px;
    margin-top: 5px;
}

.form-control-Flat:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-rgba-30);
    outline: none;
}

.form-control-Flat:hover {
    border-color: var(--primary-200);
}

.form-label-Flat {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
}

.loading-indicator-Flat {
    width: 100%;
    height: 4px;
    background: var(--primary);
    animation: loading-Flat 1.5s infinite;
}

@keyframes loading-Flat {
    0% {
        width: 0;
        background: var(--primary-300);
    }
    50% {
        width: 50%;
        background: var(--primary-200);
    }
    100% {
        width: 100%;
        background: var(--primary);
    }
}

/* Flat Design - Input Number */
.form-control-Flat {
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--light);
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius2x);
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 300px;
    margin-top: 5px;
    text-align: left;
}

.form-control-Flat:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-rgba-30);
    outline: none;
}

.form-control-Flat:hover {
    border-color: var(--primary-200);
}
.force-font .fod-button-text {
    font-family: Onest, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 500;
    color: white;
}

.force-font .fod-button-header {
    font-family: Onest, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 500;
    color: white;
}
custom-language-header.fod-button {
    font-family: inherit !important;
    color: var(--default) !important;
}

.custom-language-header.fod-button-root.fod-button.fod-button-text.fod-button-text-default {
    font-family: inherit !important;
    color: var(--default) !important;
}


.form-label-Flat {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
}

.loading-indicator-Flat {
    width: 100%;
    height: 4px;
    background: var(--primary);
    animation: loading-Flat 1.5s infinite;
}

@keyframes loading-Flat {
    0% {
        width: 0;
        background: var(--primary-300);
    }
    50% {
        width: 50%;
        background: var(--primary-200);
    }
    100% {
        width: 100%;
        background: var(--primary);
    }
}

/* Flat Design - Submit Button */
.btn-submit-Flat {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-submit-Flat:hover {
    background-color: var(--primary--100);
    transform: translateY(-2px);
}

.btn-submit-Flat:active {
    background-color: var(--primary--200);
    transform: translateY(0);
}

.btn-submit-Flat:disabled {
    background-color: var(--grey-400);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading Spinner */
.loading-spinner-Flat {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--light);
    border-top: 2px solid var(--primary--300);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Wrapper Flat Design */
.question-wrapper-flat {
    margin-bottom: 20px;
    padding: 10px;
    background: var(--light);
    border: 1px solid var(--grey-200);
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s ease;
}

.question-wrapper-flat:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Titlu Întrebare - Flat Design */
.question-title-flat {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Descriere Întrebare - Flat Design */
.question-description-flat {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 0;
}

.question-description-flat a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.question-description-flat a:hover {
    color: var(--primary--200);
}

/* Wrapper Card Flat */
.card-flat {
    background: var(--light);
    border: 1px solid var(--grey-200);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden;
    margin: 35px 0;
    padding: 0;
}

.card-flat:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Card Header */
.card-header-flat {
    background: var(--primary);
    color: var(--primary-inverse);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--primary--300);
}

.card-title-flat {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.card-icon-flat {
    font-size: 1.5rem;
    margin-left: 10px;
    color: var(--primary-inverse);
}

/* Card Body */
.card-body-flat {
    padding: 20px;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
}

/* Card Footer */
.card-footer-flat {
    background: var(--grey-100);
    padding: 15px;
    border-top: 1px solid var(--grey-300);
    text-align: right;
}

/* Success Page Wrapper */
.success-page-flat {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--light-100);
    padding: 20px;
}

/* Success Card */
.success-card-flat {
    background: var(--light);
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    padding: 20px;
}

/* Header */
.success-header-flat {
    background: var(--primary);
    color: var(--primary-inverse);
    padding: 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.success-icon-flat {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.success-title-flat {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Body */
.success-body-flat {
    padding: 20px;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
}

.success-message-flat {
    margin: 0;
}

/* Footer */
.success-footer-flat {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--grey-300);
}

.btn-flat-primary {
    background: var(--primary);
    color: var(--primary-inverse);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-flat-primary:hover {
    background: var(--primary--300);
    transform: translateY(-2px);
}

.btn-flat-secondary {
    background: var(--grey-300);
    color: var(--dark);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-flat-secondary:hover {
    background: var(--grey-400);
    transform: translateY(-2px);
}

.is-invalid,
.is-invalid * {
    color: red !important;
}

.custom-role-icon {
    display: flex;
    align-items: center;
    transform: scale(1.5);
}

.progress-bar-survey{
    background: var(--primary);
    transition: width 160ms ease-in-out;
}

.survey-titile-m--3{
    margin-bottom: -3rem;
}

.force-white.fod-icon-root.fod-svg-icon{
    fill: white !important;
}



.quill-markup-clean h1, .quill-markup-clean h2, .quill-markup-clean h3, .quill-markup-clean h4, .quill-markup-clean h5 {
    font-weight: normal !important;
    text-transform: none !important;
    margin: 0;
    color: var(--default) !important;
}

.quill-markup-clean h1{
    font-size: 2em !important;
}

.quill-markup-clean h2{
    font-size: 1.5em !important;
}

.quill-markup-clean h3{
    font-size: 1.3em !important;
}

.quill-markup-clean h4{
    font-size: 1em !important;
}

.quill-markup-clean h5{
    font-size: 0.8em !important;
}

.quill-markup-clean h6{
    font-size: 0.7em !important;
}

@media (max-width: 990px) {
    .quill-markup-clean img{
        /*noinspection CssInvalidPropertyValue*/
        width: -webkit-fill-available !important;
    }
}

.max-elevation-dropdown .dropdown-menu{
    z-index: 3000 !important;
}