:root {
    --primary-color: #d37068;
    --secondary-color: #ff9800;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
}

.slidebar {
    width: 100%;
    margin: 10px 0;
    cursor: pointer;
}

.slidebar-labels {
    display: block;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
	width: 100%;
    position: relative;
}
.slidebar-labels .left {
    position: absolute;
    left: 0px;
}
.slidebar-labels .right {
    position: absolute;
    right: 0px;
}
.slidebar-labels span {
    transition: all 0.3s ease;
}

.slidebar-value {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.progress-container h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.progress-step {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: default; 
    pointer-events: none; 
}

.progress-step.active {
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--secondary-color);
}

.progress-step.completed {
background-color: #e8f5e8;
color: #304c61;
border-left-color: #c0d101;
}


.progress-step:hover:not(.active) {
    background-color: inherit; 
}

.current-estimate {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    text-align: center;
}

.current-estimate h5 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.main-content {
    padding: 20px;
    max-height: 100vh;
    overflow-y: auto;
}
.answer_group.default {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.yd-answer_default {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    font-weight: 500;
    font-size: 1.1rem;
}

.yd-answer_default:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.yd-answer_default.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}
.yd-answer_default.selected input[type="button"] {
color:#2196f3 !important;	
}
.yd-answer_default input[type="button"] {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    width: 100%;
    height: 100%;
    padding: 0;
}

.yd-answer_checkbox {
    display: none !important;
}

.civilite_check {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.civilite_check .yd-answer_text {
    grid-column: 1 / -1;
}
.category {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.category.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.category h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.question {
    margin-bottom: 25px;
}

.question h3 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.question p {
    color: #666;
    line-height: 1.6;
}

.answer_group {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.answer {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.answer:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.answer.selected {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.answer img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    object-fit: contain;
}

.answer_slidebar .answer {
    min-height: auto;
    padding: 15px;
}

.slidebar {
    width: 100%;
    margin: 10px 0;
}

.answer_input {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.answer_input .grid-base {
    display: flex;
    flex-direction: column;
}

.label_input_text {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.answer_input input[type="text"] {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.answer_input input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.yd-answer_checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.yd-answer_checkbox:hover {
    border-color: var(--primary-color);
}

.yd-answer_checkbox.selected {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
}

.checkbox_answer {
    width: 18px;
    height: 18px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-navigation {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-next {
    background: var(--primary-color);
    color: white;
}

.btn-navigation:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-navigation:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.estimate-result {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.total-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

.price-breakdown {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.details {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px;
}

.details h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.details ul {
    list-style: none;
    padding: 0;
}

.details li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-price {
    font-weight: bold;
    color: var(--primary-color);
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-print {
    background: var(--success-color);
    color: white;
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-contact {
    background: var(--secondary-color);
    color: white;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f44336;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}
.contact-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-form h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.acceptance-check {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

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

.form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}
.toast-content {
    display: flex;
    justify-content: between;
    align-items: center;
}

.toast-message {
    flex: 1;
    margin-right: 10px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

.is-invalid {
    border-color: #f44336 !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .progress-steps {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }
    
    .progress-step {
        min-width: 120px;
        text-align: center;
        padding: 12px 5px;
        font-size: 13px;
    }
    
    .answer_group {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-navigation {
        width: 100%;
    }
}

.category-leave {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100px); opacity: 0; }
}

.category-enter {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}