body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.script-container {
    background-color: #fff;
    border-radius: 20px;
    /* Increased border radius */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* padding: 20px; */
    margin-bottom: 20px;
    /* position: relative; */
}

.page-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.previous-question,
.current-question {
    margin-bottom: 20px;
}

.question-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.agent-icon,
.client-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.question-content {
    flex-grow: 1;
    margin-left: 10px;

}

.question-text {
    background-color: #D3D3D3;
    border-radius: 15px;
    /* Increased border radius */
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    font-size: 1.3rem;
}

.response-box {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.response-content {
    margin-right: 10px;
}

.response-bubble {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 15px;
    /* Increased border radius */
    font-style: italic;
    display: inline-block;
}

.response-options {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.option-form,
.text-form {
    flex-grow: 1;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center form elements */
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: start;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 85px;
    width: 100%;
    max-width: 100%;
    /* Limit width for better centering */
}

/* Radio button style option buttons */
.option-button {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 50px;
    /* Very rounded for pill shape */
    padding: 8px 20px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: all 0.2s;
    position: relative;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.option-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Radio button circle */
.option-circle {
    width: 24px;
    height: 24px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
    /* Prevent circle from shrinking */
}

/* Style for active buttons */
.option-button.active .option-circle::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Color-specific active styles */
.option-button.success.active .option-circle::after {
    background-color: #28a745;
    /* Green for success */
}

.option-button.danger.active .option-circle::after {
    background-color: #dc3545;
    /* Red for danger */
}

.option-button.primary.active .option-circle::after {
    background-color: #007bff;
    /* Blue for primary */
}

.option-button.warning.active .option-circle::after {
    background-color: #4285f4;
    /* Blue for warning (as per your image) */
}

.option-button.success {
    background-color: #00c853;
}

.option-button.danger {
    background-color: #f44336;
}

.option-button.primary {
    background-color: #2196f3;
}

.option-button.warning {
    background-color: #4285f4;
    color: white;
}

/* .text-input-container {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
} */

/* .text-input-container input,
.text-input-container textarea {
    flex-grow: 1;
    border-radius: 20px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
} */

.text-input-container button {
    border-radius: 20px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    align-items: center;
    /* Center items vertically */
    position: relative;
    /* For positioning the pagination */
}

.nav-button {
    background-color: #f0f0f0;
    border: none;
    border-radius: 30px;
    /* Increased border radius */
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    /* Set minimum width */
    justify-content: center;
    /* Center content */
}

.nav-button:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Add shadow on hover */
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button.finish {
    background-color: #28a745;
    color: white;
}

.nav-button.finish:hover {
    background-color: #218838;
}

/* Pagination styles */
/* .pagination {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #495057;
} */

/* Styles for response summary */
.summary-container {
    background-color: #fff;
    border-radius: 20px;
    /* Increased border radius */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.summary-container h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    /* Center text */
}

.summary-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 15px;
    /* Increased border radius */
    overflow: hidden;
    /* Ensure border radius works with table */
}

.summary-container th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.summary-container td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

.summary-container tr:nth-child(even) {
    background-color: #f8f9fa;
}

.summary-container .btn {
    border-radius: 30px;
    /* Increased border radius */
    padding: 10px 25px;
    font-weight: bold;
}

.sinistre-details {
    margin-bottom: 20px;
}

.sinistre-details .card {
    border-radius: 15px;
    /* Increased border radius */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sinistre-details h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
    /* Center text */
}

/* Center form elements */
/* .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

*/
/* .form-select,
.form-control {
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    max-width: 600px;
    width: 100%;
} */

.form-select:focus,
.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 0.5rem;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 15px;
    /* Increased border radius */
    text-align: center;
    /* Center text */
    max-width: 600px;
    /* Limit width for better centering */
    margin-left: auto;
    margin-right: auto;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.btn-secondary {
    color: #fff;
    background-color: #858796;
    border-color: #858796;
    padding: 0.5rem 1rem;
    /* font-size: 1rem;  */
    border-radius: 20px;
    /* Increased border radius */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-info {
    color: #fff;
    background-color: #36b9cc;
    border-color: #36b9cc;
    padding: 0.5rem 1rem;
    /* font-size: 1rem;  */
    border-radius: 20px;
    /* Increased border radius */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-danger {
    color: #fff;
    background-color: red;
    border-color: red;
    padding: 0.5rem 1rem;
    /* font-size: 1rem;  */
    border-radius: 20px;
    /* Increased border radius */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-warning {
    color: #fff;
    background-color: #f6c23e;
    border-color: #f6c23e;
    padding: 0.5rem 1rem;
    /* font-size: 1rem;  */
    border-radius: 20px;
    /* Increased border radius */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-success {
    color: #fff;
    background-color: #155724;
    border-color: #155724;
    padding: 0.5rem 1rem;
    /* font-size: 1rem;  */
    border-radius: 20px;
    /* Increased border radius */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 0.5rem 1rem;
    /* font-size: 1rem; */
    border-radius: 30px;
    /* Increased border radius */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Improve step appearance */
.question-text strong {
    color: black;
    font-size: 1.3rem;
}

/* Style for active buttons */
.option-button.active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Calendar styles */
.calendar-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    /* Increased border radius */
    overflow: hidden;
    max-width: 600px;
    /* Limit width for better centering */
    margin: 0 auto;
    /* Center the calendar */
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.calendar-header div {
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.calendar-day {
    padding: 15px 10px;
    text-align: center;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
}

.calendar-day:nth-child(5n) {
    border-right: none;
}

.calendar-day.available {
    background-color: #d4edda;
    color: #155724;
}

.calendar-day.unavailable {
    background-color: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-day.selected {
    background-color: #007bff;
    color: white;
}

.calendar-day:hover.available {
    background-color: #c3e6cb;
}

/* Form step styles */
.form-step {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center form steps */
}

.fw-bold {
    font-weight: bold;
}

/* Center form navigation */
.form-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Center complex form elements */
.complex-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    /* Limit width for better centering */
    margin: 0 auto;
}

/* Special buttons for steps 104 and 107 */
.special-buttons {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .options-container {
        flex-direction: column;
        align-items: center;
    }

    .option-button {
        width: 100%;
        max-width: 250px;
    }

    .text-input-container {
        flex-direction: column;
    }

    .question-text {
        max-width: 100%;
    }

    .summary-container {
        overflow-x: auto;
    }

    /* .pagination {
        position: static;
        transform: none;
        margin: 10px 0;
    } */

    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Styles pour les modales */
/* .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
} */

/* .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* 
.modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    justify-content: space-between;
} */

/* Styles pour les étapes */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Styles pour les indicateurs d'étape */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.step-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
}

.step-dot.active {
    background-color: #0d6efd;
}

/* Styles pour le calendrier */
.calendar-container {
    margin-top: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: #f0f0f0;
}

.calendar-day.selected {
    background-color: #0d6efd;
    color: white;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Styles pour les horaires */
.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.time-slot:hover {
    background-color: #f0f0f0;
}

.time-slot.selected {
    background-color: #0d6efd;
    color: white;
}

/* Styles pour les disponibilités */
.bg-disponible {
    background-color: #d4edda;
}

.bg-mi-journee {
    background-color: #fff3cd;
}

.bg-autre-date {
    background-color: #f8d7da;
}

.bg-sans-rdv {
    background-color: #d1ecf1;
}