.chestionar {
    font-family: Arial, sans-serif;
    background-color: rgb(250, 250, 250); /*#f4f4f9;*/
    display: flex;
    justify-content: center;
    padding: 20px;
}

.a4-page {
    width: 100%;
    max-width: 1024px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /*padding: 20px;*/
    padding: 20px;
    border-radius: 8px;
}

.header-content {
    display: flex;
    align-items: center;
    margin: 10px;
    padding: 10px;
}

.logo {
    width: 35%;
    height: auto;
    margin-right: 15px;
}

.title {
    font-weight: bold;
    font-size: 24px;
}

.page-indicator {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid black; /* Linie subtire neagra */
    padding-bottom: 0px; /* Spațiu între text și border */
}

.indicator-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px 0; /* Spațiu de sus/jos pentru text */
}

.indicator-item.current-page {
    font-weight: bold; /* Text îngroșat pentru pagina curentă */
    color: #007BFF;
}

.indicator-item.current-page::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px; /* Poziționează sublinierea imediat sub linia de bază */
    height: 3px; /* Grosimea sublinierii */
    background-color: #007BFF;
}

.question-block {
    /*margin-bottom: 20px;*/
    width: 100%;
    padding: 5px;
    border-top   : 0.5px solid #ccc;    
    border-bottom: 0.5px solid #ccc;
}

.question-type-obs-block {
    width: 100%;
    display: flex;        /* Enable flexbox on the parent container */
    flex-wrap: wrap;      /* This ensures that items wrap if the total width exceeds the container's width */
    gap: 10px;            /* Optional: Add spacing between the items, adjust the value as needed */
}

.question-type-obs {
    flex: 1;              /* Allows the div to grow and fill available space equally */
    min-width: 0;         /* Ensures that items can shrink past their content size if necessary */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    padding: 5px;
}

/* Al treilea div, dacă există, va ocupa 10% */
.question-type-obs:nth-child(3) {
    flex: 0 0 10%;
}


.question-type-obs textarea {
    border-radius: 8px;
    width: 100%; 
    padding: 5px;
    border: 0.5px solid #ccc;
    box-sizing: border-box;
    resize: none;
    font-size: 16px;
}

.question-text, .options {
    width: 100%;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 5px;
    padding: 5px;
}

.question-text label {
    flex: 1; /* Ocupă spațiul rămas */
    font-weight: bold;
}

.option-item {
    flex: 1 1 auto; /* Fiecare opțiune va lua un spațiu flexibil */
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f0f0f0;
    box-sizing: border-box; /* Asigură că padding-ul și marginile sunt incluse în lățime */
}

/* Medicalizează comportamentul responsiv */
@media (max-width: 768px) {
    .option-item {
        flex: 1 1 100%; /* La ecrane mici, opțiunile vor ocupa 100% */
    }
}

.option-item:hover {
    background-color: #e0e0e0;
}

.option-item input[type="radio"], .option-item input[type="text"] {
    margin-right: 5px;
    accent-color: #007BFF;
}

.option-item input[type="text"] {
    margin-right: 5px;
    accent-color: #007BFF;
    width: 100%; 
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.option-item textarea {
    border-radius: 8px;
    width: 100%; 
    padding: 5px;
    border: 0.5px solid #ccc;
    box-sizing: border-box;
    resize: none;
    font-size: 16px;
}

.option-confirm-ok {
    background-color: #d4edda;
    padding: 5px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-top: 10px;
    color: green;
}

.option-confirm-err {
    background-color:#edd4d4;
    padding: 5px;
    border: 1px solid #e6c3c3;
    border-radius: 5px;
    margin-top: 10px;
    color: red;
}

.clear-btn {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 20px; /* Spațiu între label și button */
}

.clear-btn:hover {
    background-color: #e0e0e0;
}

.clear-btn:hover {
    background-color: #e0e0e0;
}

.button-row {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.next-btn, .submit-btn {
    background-color: #007BFF;
    color: #fff;
    border: none;
}
.next-btn:hover, .submit-btn:hover {
    background-color: #0056b3;
}

.back-btn {
    background-color: #f0f0f0;
    color: #444;
    border: 1px solid #ccc;
}
.back-btn:hover {
    background-color: #dcdcdc;
}

.comanda-container {
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: block;
}

.comanda-container form {
    display: block; /* Activează flexbox pe formular */
    align-items: center; /* Aliniere verticală centrată */
}


.comanda-container form div {
    margin-right: 10px;
    align-items: center;
}

.comanda-container label {
    margin-bottom: 0;
    font-weight: bold;
}

.comanda-container input[type="text"] {
    width: auto;
    flex: 1; 
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.comanda-container button {
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    background-color: var(--albastru);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    cursor: pointer;
}
.error_message {
    padding:  10px 15px;
    border-radius: 5px;
    background-color:#edd4d4;
    color: red;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.signature canvas {
    border: 0.5px solid lightgrey;
    width:100%; 
    height:250px;
}

.signature button {
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    color: #444;
    border: 1px solid #ccc;
    width:40%;
}

.signature button:hover {
    background-color: #dcdcdc;
}
