/* Rulon Quiz Styles */
.rulon-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Progress Bar */
.quiz-progress {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 16.67%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Quiz Steps */
.quiz-steps {
    position: relative;
    min-height: 500px;
}

.quiz-step {
    display: none;
    padding: 40px 30px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.quiz-step.slide-left {
    transform: translateX(-50px);
}

.quiz-step.slide-right {
    transform: translateX(50px);
}

.step-content h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Answer Options */
.answer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.answer-option {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.answer-option:hover {
    border-color: #d4af37;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.answer-option.selected {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.answer-option.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #d4af37;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.option-content {
    text-align: center;
}

.option-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.option-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.option-content p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.nav-button {
    background: #fff;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    background: #d4af37;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.next-button {
    background: #d4af37;
    color: white;
}

.next-button:hover {
    background: #c19b2e;
}

/* Results Page */
.results-container {
    text-align: center;
}

.primary-recommendations,
.complementary-recommendations {
    margin-bottom: 40px;
}

.primary-recommendations h3,
.complementary-recommendations h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 0;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card:hover {
    border-color: #d4af37;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.placeholder-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.3;
}

.product-content {
    padding: 20px;
}

.product-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    margin-top: 0;
}

.product-card p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
}

.contact-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.contact-section p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 24px;
}

.contact-button {
    display: inline-block;
    background: #d4af37;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    background: #c19b2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    color: white;
    text-decoration: none;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.back-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
}

.back-button:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.submit-button {
    background: #d4af37;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 2;
}

.submit-button:hover {
    background: #c19b2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

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

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .rulon-quiz-container {
        margin: 0 20px;
        border-radius: 16px;
    }
    
    .quiz-progress {
        padding: 15px 20px;
    }
    
    .quiz-step {
        padding: 30px 20px;
    }
    
    .step-content h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .answer-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .answer-option {
        padding: 20px;
    }
    
    .option-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .option-content h3 {
        font-size: 16px;
    }
    
    .quiz-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 150px;
    }
    
    .contact-form {
        padding: 0 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .back-button,
    .submit-button {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 480px) {
    .rulon-quiz-container {
        margin: 0 10px;
    }
    
    .quiz-step {
        padding: 20px 15px;
    }
    
    .step-content h2 {
        font-size: 20px;
    }
    
    .answer-option {
        padding: 16px;
    }
    
    .option-icon {
        font-size: 32px;
    }
    
    .product-image {
        height: 120px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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