/* Dejolyer Quiz Frontend Styles */
html, body {
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto; /* Allow natural vertical scroll */
}

.dejolyer-quiz-wrapper {
    border: 1px solid #efefef;
    background: #f7f7f7;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 0px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Header Styles */
.dejolyer-quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.dejolyer-quiz-content {
    overflow: visible;
}
.quiz-subtitle {
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
}

.quiz-subtitle.hidden {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

.quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    background: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Progress Bar */
.quiz-progress {
    margin-top: 20px;
    display: none;
}

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

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9e8068 0%, #D0B7A3 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Quiz Screens */
.quiz-screen {
    padding: 25px;
    display: none;
    min-height: 400px;
    overflow: visible;
}

.quiz-screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Welcome Screen */
.welcome-content {
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.welcome-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.welcome-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #e9e9e9;
    border-radius: 0px;
    font-weight: 500;
    color: #495057;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Buttons */
.btn-newsletter{
    background: #00000000 !important;
    color: #000000 !important;
}
.btn-newsletter:hover{
    background: #00000000 !important;
    color: #102859 !important;
    border: 0px solid #000 !important;
}
.btn {
    border: 1px solid #102859;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 12px 24px;
    border: none;
    border-radius: 0px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #102859 0%, #102859 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(0px);
    color: #102859;
    background: #ffffff00;
    border: 1px solid #102859
}

.btn-secondary {
    color: #102859;
    background: #ffffff00;
    border: 1px solid #102859
}

.btn-secondary:hover {
    background: #102859;
    color: #ffffff
}

.btn-outline {
    background: transparent;
    color: #102859;
    border: 1px solid #102859;
}

.btn-outline:hover {
    background: #102859;
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
}

.btn-start-quiz {
    font-size: 1.2rem;
    padding: 15px 90px;
    margin-top: 20px;
}

.btn-start-quiz:hover {
    color: #000 !important;
    background: #ffffff00 !important;
}

/* Questions */
.questions-container {
    margin-bottom: 30px;
}

.question-item {
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.question-item.active {
    display: block;
}

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

.question-header {
    margin-bottom: 25px;
}

.question-text {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.question-context {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Answers Grid - Desktop: Horizontal Layout (Mínimo 4 columnas) */
.question-answers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Desktop Large - 4+ columnas */
@media (min-width: 1200px) {
    .question-answers {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Desktop Medium - 4 columnas */
@media (min-width: 769px) and (max-width: 1199px) {
    .question-answers {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

.answer-option {
    position: relative;
}

.answer-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Tarjetas CON imagen: más grandes */
.answer-label:has(.answer-image) {
    min-height: 220px;
    padding: 25px 20px;
}

/* Tarjetas SIN imagen: compactas */
.answer-label:not(:has(.answer-image)) {
    min-height: auto;
    padding: 18px 15px;
    justify-content: center;
}

.answer-label:hover {
    background: #e9ecef;
    border-color: #D0B7A3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.answer-input:checked + .answer-label {
    color: rgb(0, 0, 0);
    border-color: #D0B7A3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.answer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    width: 100%;
}

.answer-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    order: 1;
}

/* Texto más grande en tarjetas con imagen */
.answer-label:has(.answer-image) .answer-text {
    font-size: 1.1rem;
    line-height: 1.4;
}

.answer-image {
    width: 100px;
    height: 100px;
    border-radius: 0px;
    overflow: hidden;
    order: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

.answer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop Large - Imágenes más grandes */
@media (min-width: 1200px) {
    .answer-image {
        width: 160px;
        height: 160px;
    }
}

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

/* Loading Screen */
.loading-content {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Loading Container with GIF */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Loading Content Screen (used in both transitions) */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
    text-align: center;
}

#quiz-loading .loading-content .loading-gif {
    width: 190px;
    height: 190px;
    margin-bottom: 20px;
}

.loading-gif {
    width: 190px;
    height: 190px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    animation: none;
    will-change: auto;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

.loading-message {
    display: block;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.loading-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.loading-content p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Results */
.results-content {
    padding: 20px 0;
}

.dejolyer-quiz-results {
    max-width: 900px;
    margin: 0 auto;
}

.dejolyer-quiz-results .quiz-title {
    display: none;
}

/* Match Score Badge */
.match-score-badge {
    display: inline-block;
    background: #161514;
    color: white;
    padding: 8px 16px;
    border-radius: 0px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0 20px 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
}

/* Personality Score Badge */
.personality-score-badge {
    display:none !important;
    display: inline-block;
    background: linear-gradient(135deg, #D0B7A3 0%, #8B6F47 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0 20px 0;
    box-shadow: 0 2px 8px rgba(208, 183, 163, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #00000000;
    color: #898989;
    border-radius: 0px;
}

.results-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.results-header h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.results-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

/* Personality Section */
.personality-section {
    margin-bottom: 80px;
}

.personality-section h3 {
    font-size: 1.5rem;
    color: #102859;
    margin: 0 0 20px 0;
    text-align: center;
}

.personality-card {
    background: #FAF5F2;
    color: #898989;
    padding: 30px;
    border-radius: 0px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.personality-name {
    font-size: 1.5em;
    margin: 0;
}

.personality-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Recommendation Section */
.recommendation-section {
    margin-bottom: 80px;
}

.recommendation-section h3 {
    font-size: 1.5rem;
    color: #102859;
    margin: 0 0 20px 0;
    text-align: center;
}

.product-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: #FAF5F2;
    border-radius: 0px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.product-image {
    background: #FAF5F2;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.product-info {
    padding: 25px;
}

.product-img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-info h4 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.product-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-name {
    color: #6a0505;
    font-size: 1.6em;
    margin: 0 0 15px 0;
}

.product-short-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.product-reasons {
    margin: 20px 0;
}

.product-reasons h5 {
    color: #102859;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.reasons-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.reasons-list li {
    padding: 8px 0;
    color: #495057;
    position: relative;
    padding-left: 20px;
}

.reasons-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #102859;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    unicode-bidi: normal;
    direction: ltr;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Newsletter Section */
.newsletter-section {
    margin-bottom: 40px;
}

.newsletter-card {
    background: #FAF5F2;
    color: #767676;
    padding: 30px;
    border-radius: 0px;
    text-align: center;
}

.newsletter-card h4 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.newsletter-card p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.newsletter-form {
    margin-bottom: 15px;
}

.newsletter-message {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 20px 0;
}

.results-actions-left,
.results-actions-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.results-actions .btn {
    min-width: 200px;
}

/* Footer */
.dejolyer-quiz-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide footer during questions */
.dejolyer-quiz-footer.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.quiz-disclaimer {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.footer-link {
    display:flex;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.75rem;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #102859;
    text-decoration: underline;
}

.footer-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.footer-separator {
    color: #ddd;
    font-size: 1.2rem;
}

/* Modal Styles */
.dejolyer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 0px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #2c3e50;
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px 40px 20px;
    border-bottom: 2px solid #f0f0f0;
    background: #f7f7f7;
    color: white;
    border-radius: 0px 0px 0 0;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-subtitle {
    color: rgb(58, 58, 58);
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.modal-body {
    padding: 30px 40px;
}

.modal-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.modal-section .section-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.modal-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.modal-section p {
    color: #555;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.modal-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.modal-section li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.modal-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.highlight-text {
    background: #102859;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1.05rem;
}

.disclaimer-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.disclaimer-section h3 {
    color: #f5576c;
}

.modal-footer {
    padding: 20px 40px 30px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.modal-footer .btn {
    display:none;
    min-width: 200px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .product-meta {
        justify-content: center;
    }

    .modal-header {
        padding: 25px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-section .section-icon {
        font-size: 2rem;
    }
    
    .modal-section h3 {
        font-size: 1.1rem;
    }
    
    .modal-footer {
        padding: 15px 20px 20px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-separator {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dejolyer-quiz-wrapper {
        position: relative !important;
        left: 54% !important;
        transform: translateX(-54%) !important;
        width: 95vw !important;
        margin: 0 auto !important;
        padding: 25px 10px !important;
        box-shadow: none;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    body .dejolyer-quiz-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .quiz-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .quiz-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .dejolyer-quiz-content {
        overflow: visible !important;
    }
    
    .quiz-screen {
        overflow: visible !important;
        padding: 20px 8px !important;
    }
    
    .quiz-description {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 25px;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
    }
    
    .feature-item p {
        font-size: 0.95rem;
    }
    
    .product-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 12px;
    }
    
    .product-img {
        max-width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .product-info {
        text-align: center;
    }
    
    .product-name {
        font-size: 1.5rem;
    }
    
    .personality-name {
        font-size: 1.8rem;
    }
    
    .personality-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .results-actions-left,
    .results-actions-right {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile: Vertical Layout */
@media (max-width: 768px) {
    .question-card {
        padding: 20px 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .question-number {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .question-text {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .personality-card {
        padding: 20px 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .question-answers {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .answer-label {
        padding: 18px 15px;
    }
    
    .answer-label:has(.answer-image) {
        min-height: auto;
        padding: 20px 15px;
    }
    
    .answer-label:not(:has(.answer-image)) {
        min-height: auto;
        padding: 16px 15px;
    }
    
    .answer-text {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .answer-image {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
    }
    
    /* Progress bar mobile */
    .quiz-progress {
        margin-top: 15px;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    /* Footer mobile */
    .dejolyer-quiz-footer {
        padding: 25px 15px;
        font-size: 0.85rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Results sections mobile - ya manejado arriba */
}

@media (max-width: 480px) {
    .dejolyer-quiz-wrapper {
        margin: 0 auto !important;
        padding: 20px 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body .dejolyer-quiz-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .quiz-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .quiz-subtitle {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .quiz-description {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .question-card {
        padding: 25px 15px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .question-answers {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .answer-label {
        padding: 16px 12px;
    }
    
    .answer-label:has(.answer-image) {
        padding: 18px 12px;
        min-height: auto;
    }
    
    .answer-label:not(:has(.answer-image)) {
        padding: 14px 12px;
        min-height: auto;
    }
    
    .answer-content {
        gap: 10px;
    }
    
    .answer-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .answer-label:has(.answer-image) .answer-text {
        font-size: 1rem;
    }
    
    .answer-image {
        width: 80px;
        height: 80px;
    }
    
    .product-card {
        padding: 20px 15px;
    }
    
    .product-name {
        font-size: 1.3rem;
    }
    
    .personality-name {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    
    .answer-image {
        width: 90px;
        height: 90px;
    }
    
    .personality-card,
    .newsletter-card {
        padding: 20px;
    }
    
    .product-card {
        padding: 20px;
    }
}

/* Accessibility */
.answer-input:focus + .answer-label {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Keyword Badges */
.keywords-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.keyword-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 0px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: capitalize;
    transition: transform 0.2s;
}

.keyword-badge:hover {
    transform: scale(1.05);
}

.keyword-aromatic {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #6a0505;
}

.keyword-emotional {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #2c5aa0;
}

/* Product Meta Information */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-label {
    font-weight: 600;
    color: #666;
}

.price-amount {
    font-size: 1.3em;
    font-weight: bold;
    color: #102859;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 0px;
    font-size: 0.85em;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars-rating {
    display: flex;
    gap: 2px;
    color: #ffc107;
}

.stars-rating .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.rating-text {
    font-size: 0.9em;
    color: #666;
}

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

.personality-badge {
    background: rgba(255, 255, 255, 0.719);
    padding: 5px 15px;
    border-radius: 0px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.personality-content {
    text-align: left;
}

.personality-keywords {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.personality-keywords h5 {
    margin: 0 0 10px 0;
    font-size: 1em;
    opacity: 0.9;
}

/* Print Styles */
@media print {
    .dejolyer-quiz-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .quiz-navigation,
    .results-actions,
    .newsletter-section {
        display: none;
    }
}
