.quiz-container {
    width: 100%;
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-sizing: border-box;
}
.renovation-quiz{
    box-sizing: border-box;
}
.quiz-page-wrapper{
    box-sizing: border-box;
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: #e9ecef;
    margin: -30px -30px 30px -30px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-sizing: border-box;
}
#quiz-main-container{
    width: 100%;
}
.sec_4.akcii{
    background: none!important;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7b9f6e 0%, #2c7514 100%);
    transition: width 0.4s ease;
}

/* Quiz Steps */
.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-btn{
	background: linear-gradient(45deg, #7b9f6e 0, #469729 51.07%, #1c6900 100%)!important;
}

.quiz-step.active {
    display: block;
}

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

/* Questions */
.question-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #2C3E50;
    font-weight: 600;
}

.question-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #6C757D;
    margin-bottom: 30px;
}

/* Answers Container */
.answers-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 40px;
    gap: 20px;
    margin-bottom: 30px;
}

/* Image Choice */
[data-type*="image"] .answers-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.image-choice {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    
    display: flex;
    max-width: 200px;
    width: 100%;
    height: auto;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-choice:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.image-choice input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.image-choice img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.image-choice input:checked + img {
    box-shadow: inset 0 0 0 4px #7b9f6e;
}

.image-choice input:checked ~ .choice-label {
    background: #2c7514;
    color: white;
}

.choice-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Text Choice */
.text-choice {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.main_button.w-button.quiz{
    margin: 0 auto;
}

.text-choice:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.text-choice input {
    margin-right: 12px;
}

.text-choice .choice-label {
    position: static;
    background: none;
    padding: 0;
    color: #2C3E50;
}

/* Range Input */
.range-container {
    padding: 20px 10px;
}

.range-input {
    width: 100%;
    margin: 20px 0;
    -webkit-appearance: none;
    background: transparent;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #7b9f6e;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.range-input::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    color: #6C757D;
    font-size: 14px;
    margin-top: 10px;
}

.current-value {
    color: #7b9f6e;
    font-weight: 600;
    font-size: 16px;
}

/* Number Input */
.number-input-container {
    text-align: center;
    padding: 20px;
}

.number-input {
    width: 200px;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.number-input:focus {
    border-color: #7b9f6e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Grid */
.grid-container {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.quiz-grid {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.quiz-grid th,
.quiz-grid td {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: center;
    font-size: 14px;
}

.quiz-grid th {
    background: #f8f9fa;
    font-weight: 600;
}

.quiz-grid th:first-child,
.quiz-grid td:first-child {
    text-align: left;
    font-weight: 500;
    min-width: 150px;
}

/* Navigation */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

button {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.next-step,
.submit-quiz,
.show-contact-form {
    background: #2c7514;
    color: white;
}

.next-step:hover,
.submit-quiz:hover,
.show-contact-form:hover {
    background: #7b9f6e;
    transform: translateY(-2px);
}

.prev-step {
    background: #6C757D;
    color: white;
}

.prev-step:hover {
    background: #5A6268;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-step {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #7b9f6e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    animation: fadeIn 0.4s ease;
}

/* Error States */
.form-group.has-error input {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

/* Loading State */
.quiz-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7b9f6e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-form.loading .loading-spinner {
    display: block;
}

.image-choice input[type="checkbox"],
.image-choice input[type="radio"]{
    position: absolute;
}
/* Custom Checkboxes & Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    vertical-align: middle;
}

input[type="checkbox"] {
    border-radius: 4px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    border-color: #7b9f6e;
    background: #7b9f6e;
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

div[data-type="single_text"]{
    grid-template-columns: 1fr;
}

/* Media Queries */
@media (max-width: 768px) {
    .answers-container{
        grid-template-columns: repeat(2, 1fr);
    }
    

    .progress-bar {
        margin: -20px -20px 20px -20px;
    }

    .question-title {
        font-size: 22px;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    [data-type*="image"] .answers-container {
        grid-template-columns: 1fr;
    }

    .image-choice img {
        height: 160px;
    }

    .number-input {
        width: 100%;
    }

    .quiz-grid th,
    .quiz-grid td {
        padding: 8px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .quiz-container {
        box-shadow: none;
    }

    .navigation-buttons,
    .progress-bar {
        display: none;
    }

    .quiz-step {
        display: block !important;
        page-break-inside: avoid;
    }
}