/* Dejolyer Quiz Frontend Styles */


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

.dejolyer-quiz-wrapper {
    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;
    position: relative; /* Create positioning context for screens */
}

/* Legacy header styles - hidden for luxury design */
.dejolyer-quiz-header {
    display: none;
}

.dejolyer-quiz-content {
    overflow: visible;
    position: relative; /* Container for absolute positioned screens */
    min-height: 100vh; /* Initial minimum height */
    /* Height will be dynamically set by JavaScript based on active screen content */
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth height transitions */
}

/* When results screen is active, content needs to expand */
.dejolyer-quiz-content:has(#quiz-results.active) {
    min-height: auto; /* Let results screen set its own height */
    height: auto !important; /* Override JS height for results */
}

.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;
}

/* Legacy title and subtitle styles - hidden for luxury design */
.quiz-title {
    display: none;
}

.quiz-subtitle {
    display: none;
}

/* ==================================================
   EXIT QUIZ BUTTON - PROFESSIONAL ESCAPE OPTION
   ================================================== */

/* Exit button for fixed screens (questions, name-input) */
.btn-exit-quiz {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999999;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Work Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-exit-quiz:hover {
    background: rgba(16, 40, 89, 0.95);
    color: white;
    border-color: #102859;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(16, 40, 89, 0.2);
}

.btn-exit-quiz .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Show exit button only on active fixed screens */
#quiz-questions.active .btn-exit-quiz,
#quiz-name-input.active .btn-exit-quiz {
    display: inline-flex;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .btn-exit-quiz {
        top: 15px;
        left: 15px;
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .btn-exit-quiz .exit-text {
        display: none; /* Hide text on mobile, keep icon only */
    }
    
    .btn-exit-quiz {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

/* ==================================================
   PROFESSIONAL SCREEN TRANSITION SYSTEM
   ================================================== */

/* Quiz Screens - Absolute Positioning System */
.quiz-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    transform: translateZ(0); /* Create new stacking context, enable GPU acceleration */
    /* contain removed - was blocking scroll in fixed positioned screens */
}

/* Active screen - visible */
.quiz-screen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 100;
}

/* Inactive screens - hidden but maintain layout */
.quiz-screen:not(.active) {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Remove old display-based system - ensure screens are always visible for transitions */
.quiz-screen {
    display: block; /* Always visible, controlled by opacity */
}

/* Legacy fadeIn animation - now handled by opacity transition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Screen-specific height handling */
#quiz-loading {
    min-height: 100vh;
}

/* ==================================================
   WELCOME SCREEN - NORMAL FLOW (NO IMMERSIVE)
   Fix for sticky header overlap issue
   ================================================== */
#quiz-welcome {
    /* Override .quiz-screen transform that creates problematic stacking context */
    transform: none !important;
    /* Override will-change to prevent stacking context creation */
    will-change: auto !important;
    /* Note: Child elements (.magical-text) can still use transforms for animations
       Each element has its own transform layer, so this doesn't affect animations */
}

#quiz-welcome.active {
    /* Use low z-index so sticky header (z-index: 999999) stays on top */
    z-index: 1 !important;
}

/* Name Input screen - FIXED positioning for clean transitions */
#quiz-name-input {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto; /* Allow scrolling within name input */
    transition: none !important;
    background: #ffffff !important;
    visibility: hidden;
    opacity: 0;
    z-index: 0;
    padding: 0; /* No padding - content handles spacing */
}

#quiz-name-input.active {
    position: fixed !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
    background: #ffffff !important;
    z-index: 999997 !important; /* DEBAJO del sticky header del sitio */
    pointer-events: auto;
}

/* ==================================================
   RESULTS SCREEN - NORMAL FLOW (NO IMMERSIVE)
   Fix for sticky header menu appearing below quiz content
   ================================================== */
#quiz-results {
    position: relative !important; /* Override absolute - needs natural flow */
    min-height: 100vh; /* Ensure minimum viewport height */
    /* Override .quiz-screen transform that creates problematic stacking context */
    transform: none !important;
    /* Override will-change to prevent stacking context creation */
    will-change: auto !important;
}

#quiz-results.active {
    position: relative !important; /* Override absolute when active */
    /* Use low z-index so sticky header and dropdown menu stay on top */
    z-index: 1 !important;
    /* Ensure transform override persists when active */
    transform: none !important;
}

/* Questions screen - FIXED positioning like loading screen for clean transitions */
#quiz-questions {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto !important; /* Allow scrolling within questions */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    transition: none !important; /* No fade transition */
    background: #ffffff !important; /* Fondo blanco siempre */
    visibility: hidden;
    opacity: 0;
    z-index: 0;
    padding: 0; /* No padding - content handles spacing */
    margin: 0;
}

#quiz-questions.active {
    position: fixed !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important; /* Instant appearance */
    background: #ffffff !important;
    z-index: 999997 !important; /* DEBAJO del sticky header del sitio (típicamente z:999999) */
    pointer-events: auto;
    overflow-y: auto !important;
}

/* Legacy welcome styles removed - using luxury styles below */

/* Legacy welcome features styles removed - using luxury styles below */

/* 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;
}

/* Legacy questions container styles removed - using luxury styles below */

/* Legacy question styles - hidden for luxury design */
/* Legacy question styles removed - using new luxury styles below */

/* Legacy question-header styles removed */

/* Legacy question-text styles removed */

/* Legacy question-context styles removed */

/* Legacy question answers styles removed - using luxury styles below */

/* Legacy answer styles removed - using luxury styles below */

/* Legacy answer image styles removed - using luxury styles below */

/* Legacy navigation styles removed - using luxury styles below */

/* Legacy name input styles removed - using original classes now */

/* Legacy hover styles - hidden for luxury design */

/* 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: 0px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}


/* Loading Container - centered in user's viewport */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Loading Content Screen - centered in user's view */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    width: 100%;
}

/* Ensure loading screen is properly positioned - centered in viewport */
#quiz-loading {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    display: flex !important; /* Siempre flex, no controlado por .quiz-screen */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 999997 !important; /* DEBAJO del sticky header del sitio */
    background: #ffffff !important; /* Fondo blanco SIEMPRE presente */
    visibility: hidden; /* Oculto por defecto sin afectar layout */
    opacity: 0; /* Inicialmente invisible */
    pointer-events: none; /* No interfiere cuando está oculto */
    transition: none !important; /* SIN transición - aparición instantánea */
}

/* Loading screen ACTIVE - aparición INSTANTÁNEA sin fade */
#quiz-loading.active {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    transition: none !important; /* Instantáneo, no gradual */
}

/* Loading screen INACTIVE - desaparición INSTANTÁNEA */
#quiz-loading:not(.active) {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: none !important; /* Desaparición instantánea sin fade */
}

/* Sobrescribir herencia de .quiz-screen para loading */
#quiz-loading.quiz-screen {
    position: fixed !important;
    background: #ffffff !important;
    display: flex !important;
    transition: none !important; /* Override cualquier transición heredada */
}

/* Loading screen uses standard screen transition system */
/* No special rules needed - handled by .quiz-screen styles */

/* ==================================================
   SCROLLING BEHAVIOR - DISABLED FOR QUIZ TRANSITIONS
   ================================================== */

/* Disabled smooth scrolling - prevents unwanted auto-scrolls during transitions */
html {
    scroll-behavior: auto;
}

/* Quiz container - no auto scroll */
#dejolyer-quiz-container {
    scroll-behavior: auto;
}

/* Quiz screens - no auto scroll */
.quiz-screen {
    scroll-behavior: auto;
}

/* ==================================================
   MAGICAL TEXT APPEARANCE EFFECTS
   ================================================== */

/* Base state for magical text elements */
.magical-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* Magical appearance animation */
.magical-text.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Special scroll-triggered animation - Optimized for responsive UX */
.magical-text.scroll-triggered {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Reduced from 1.5s to 0.8s for faster response */
}

.magical-text.scroll-triggered.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation delays for different elements */
.magical-text.delay-1 { transition-delay: 0.2s; }
.magical-text.delay-2 { transition-delay: 0.4s; }
.magical-text.delay-3 { transition-delay: 0.6s; }
.magical-text.delay-4 { transition-delay: 0.8s; }
.magical-text.delay-5 { transition-delay: 1.0s; }
.magical-text.delay-6 { transition-delay: 1.2s; }

/* Optimized delays for scroll-triggered elements (faster response) */
.magical-text.scroll-triggered.delay-1 { transition-delay: 0.1s; }
.magical-text.scroll-triggered.delay-2 { transition-delay: 0.15s; }
.magical-text.scroll-triggered.delay-3 { transition-delay: 0.2s; }
.magical-text.scroll-triggered.delay-4 { transition-delay: 0.25s; }
.magical-text.scroll-triggered.delay-5 { transition-delay: 0.3s; }
.magical-text.scroll-triggered.delay-6 { transition-delay: 0.4s; }

/* Special effect for hero title */
.hero-title.magical-text {
    background: linear-gradient(45deg, #102859, #667eea, #102859);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: magicalShimmer 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Typewriter effect for hero title */
.hero-title.magical-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #102859, #667eea, #102859);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: typewriterReveal 2s ease-in-out forwards;
}

@keyframes typewriterReveal {
    0% { 
        clip-path: inset(0 100% 0 0);
    opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        clip-path: inset(0 0% 0 0);
        opacity: 1;
    }
}

@keyframes magicalShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtle glow effect for personality name */
.personality-name.magical-text {
    text-shadow: 0 0 20px rgba(16, 40, 89, 0.3);
}

/* Fade-in effect for descriptions */
.narrative-description.magical-text,
.product-description.magical-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.narrative-description.magical-text.appear,
.product-description.magical-text.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle glow effect for descriptions */
.narrative-description.magical-text.appear,
.product-description.magical-text.appear {
    text-shadow: 0 0 10px rgba(16, 40, 89, 0.1);
}

/* Special effect for product name */
.product-name.magical-text {
    position: relative;
    overflow: hidden;
}

.product-name.magical-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 40, 89, 0.1), transparent);
    transition: left 1.5s ease-in-out;
}

.product-name.magical-text.appear::before {
    left: 100%;
}

/* Special effects for coupon/gift sections */
.gift-header.magical-text {
    position: relative;
    overflow: hidden;
}

.gift-header.magical-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 40, 89, 0.1), transparent);
    transition: left 2s ease-in-out;
}

.gift-header.magical-text.appear::after {
    left: 100%;
}

/* Special effect for discount numbers */
.discount-number.magical-text {
    position: relative;
    transform: scale(0.8);
    transition: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.discount-number.magical-text.appear {
    transform: scale(1);
    animation: discountPulse 2s ease-in-out infinite;
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Special effect for gift forms */
.gift-form.magical-text {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gift-form.magical-text.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==================================================
   PAGE-SPECIFIC MAGICAL ANIMATIONS
   ================================================== */

/* Welcome Page - More Dramatic Animations */
#quiz-welcome .magical-text {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#quiz-welcome .magical-text.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Special effect for welcome subtitle */
#quiz-welcome .welcome-subtitle.magical-text {
    background: linear-gradient(45deg, #102859, #667eea, #102859);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: magicalShimmer 4s ease-in-out infinite;
}

/* Special effect for process steps */
#quiz-welcome .process-step.magical-text {
    position: relative;
    overflow: hidden;
}

#quiz-welcome .process-step.magical-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 40, 89, 0.1), transparent);
    transition: left 2s ease-in-out;
}

#quiz-welcome .process-step.magical-text.appear::before {
    left: 100%;
}

/* Questions Page - Subtle Animations */
#quiz-questions .magical-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#quiz-questions .magical-text.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Special effect for question text */
#quiz-questions .question-text.magical-text {
    text-shadow: 0 0 15px rgba(16, 40, 89, 0.2);
}

/* Name Input Page - Elegant Animations */
#quiz-name-input .magical-text {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#quiz-name-input .magical-text.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Special effect for name input title */
#quiz-name-input .name-input-title.magical-text {
    position: relative;
    overflow: hidden;
}

#quiz-name-input .name-input-title.magical-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 40, 89, 0.1), transparent);
    transition: left 2.5s ease-in-out;
}

#quiz-name-input .name-input-title.magical-text.appear::after {
    left: 100%;
}

/* Special effect for name input field - removed to eliminate outer border */

/* Loading GIF - Centered in viewport */
#quiz-loading .loading-content .loading-gif {
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.loading-gif {
    width: 280px;
    height: 280px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

/* Hide GIF until it's fully loaded to prevent broken image icon flash */
.loading-gif-hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-message {
    display: block;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 400;
    text-align: center;
    margin: 20px auto 0;
    letter-spacing: 0.5px;
    font-family: 'Work Sans', sans-serif;
}

/* Mobile optimization for loading GIF */
@media (max-width: 768px) {
    .loading-gif {
        width: 240px;
        height: 240px;
    }
    
    #quiz-loading .loading-content .loading-gif {
        width: 240px;
        height: 240px;
    }
    
    .loading-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .loading-gif {
        width: 200px;
        height: 200px;
    }
    
    #quiz-loading .loading-content .loading-gif {
        width: 200px;
        height: 200px;
    }
    
    .loading-message {
        font-size: 1rem;
    }
}

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

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

/* ==================================================
   RESULTS - LUXURY MINIMALIST DESIGN
   NO gradients, NO border-radius, NO icons
   ================================================== */

.results-content {
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* LEGACY CLASS - Still used by quiz container */
.dejolyer-quiz-results {
    max-width: 900px;
    margin: 0 auto;
}

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

/* ==================================================
   LUXURY WELCOME PAGE STYLES
   ================================================== */

/* Welcome Content Luxury */
.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px 60px 40px; /* Top, right, bottom, left */
    text-align: center;
    font-family: 'Work Sans', sans-serif;
    min-height: 100vh; /* Ensure full viewport on desktop */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically for elegant UX */
}

/* Hero Section */
.welcome-hero {
    margin-bottom: 60px;
}

.welcome-title-luxury {
    font-size: 2.8rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 40px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Work Sans', sans-serif;
}

.welcome-divider {
    width: 120px;
    height: 1px;
    background: #102859;
    margin: 0 auto;
}

/* Main Content */
.welcome-main {
    margin-bottom: 80px;
    margin-top: 40px;
}

.welcome-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: #2c3e50;
    margin: 0 0 70px 0;
    line-height: 1.4;
    font-family: 'Work Sans', sans-serif;
}

/* Narrative */
.welcome-narrative {
    margin-bottom: 80px;
}

.narrative-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 35px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.narrative-text:last-child {
    margin-bottom: 0;
}

.narrative-text strong {
    color: #102859;
    font-weight: 500;
}

/* Process Steps */
.welcome-process {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin: 80px 0;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 1080px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 380px;
}

.step-number {
    font-size: 1.2rem;
    font-weight: 300;
    color: #102859;
    margin-bottom: 15px;
    font-family: 'Work Sans', sans-serif;
    letter-spacing: 1px;
}

.step-content {
    background: #f8f9fa;
    padding: 30px 25px;
    border: 1px solid #e9ecef;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    min-width: 300px;
    box-sizing: border-box;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-family: 'Work Sans', sans-serif;
    line-height: 1.2;
}

.step-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    line-height: 1.3;
}

.process-divider {
    width: 1px;
    height: 80px;
    background: #ddd;
    margin: 0 15px;
    align-self: center;
    flex-shrink: 0;
}

/* Actions */
.welcome-actions {
    margin-top: 80px;
}

.btn {
    background: transparent;
    border: 1px solid #102859;
    color: #102859;
    padding: 18px 50px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    min-width: 280px;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    background: #102859;
    color: white;
}

.btn.btn-primary {
    background: #102859;
    color: white;
}

.btn.btn-primary:hover {
    background: transparent;
    color: #102859;
}

/* GDPR Checkbox Luxury */
.gdpr-checkbox-container {
    margin-top: 30px;
}

.gdpr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.gdpr-consent-checkbox {
    margin: 0;
    transform: scale(1.1);
    margin-top: 2px;
}

.gdpr-checkbox-text {
    flex: 1;
}

.privacy-policy-link {
    color: #102859;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.privacy-policy-link:hover {
    border-bottom: 1px solid #102859;
}

/* Footer Luxury */
.dejolyer-quiz-footer {
    padding: 40px 0;
    text-align: center;
    font-family: 'Work Sans', sans-serif;
}

.footer-divider {
    width: 200px;
    height: 1px;
    background: #ddd;
    margin: 0 auto 30px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.footer-contact {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.contact-link {
    color: #102859;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.contact-link:hover {
    border-bottom: 1px solid #102859;
}

/* Responsive Design - Welcome Page & Footer */
@media (max-width: 768px) {
    .welcome-content {
        padding: 60px 25px 40px 25px; /* Top, right, bottom, left - más padding lateral */
        min-height: 100vh; /* Keep min-height for proper spacing */
        justify-content: flex-start; /* Start from top on mobile */
    }
    
    /* No lateral padding - content containers handle spacing */
    
    .loading-content {
        padding: 60px 0;
        min-height: 100vh;
    }
    
    #quiz-loading.active {
        min-height: 100vh !important;
    }
    
    .step-content {
        width: 100% !important;
    }
    
    .welcome-title-luxury {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .welcome-subtitle {
        font-size: 1.5rem;
    }
    
    .welcome-process {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .process-divider {
        width: 60px;
        height: 1px;
        margin: 0;
    }
    
    .process-step {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        flex: none;
    }
    
    .step-content {
        padding: 25px 20px;
        height: auto; /* Allow natural height on mobile */
        min-height: 130px;
    }
    
    .btn {
        min-width: 250px;
        padding: 16px 40px;
        font-size: 0.95rem;
    }
    
    .gdpr-checkbox-label {
        max-width: 100%;
        text-align: center;
    }
    
    /* Footer now outside quiz-content - proper spacing */
    .dejolyer-quiz-footer {
        padding: 40px 20px;
        margin-top: 0; /* No extra margin needed */
    }
}

@media (max-width: 480px) {
    .welcome-content {
        padding: 40px 20px 30px 20px; /* Top, right, bottom, left - más padding lateral */
        min-height: 100vh; /* Keep min-height for proper spacing */
        justify-content: flex-start; /* Start from top on small mobile */
    }
    
    /* No lateral padding - content containers handle spacing */
    
    .loading-content {
        padding: 40px 0;
        min-height: 100vh;
    }
    
    #quiz-loading.active {
        min-height: 100vh !important;
    }
    
    .welcome-title-luxury {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1.3rem;
    }
    
    .narrative-text {
        font-size: 1rem;
    }
    
    .btn {
        min-width: 220px;
        padding: 14px 30px;
        font-size: 0.9rem;
    }
    
    /* Footer now outside quiz-content - proper spacing */
    .dejolyer-quiz-footer {
        padding: 30px 15px;
        margin-top: 0; /* No extra margin needed */
    }
}

/* ==================================================
   LUXURY PROGRESS BAR STYLES
   ================================================== */

/* Progress Bar Luxury */
.quiz-progress {
    margin: 0 0 40px;
    padding: 0 40px;
    text-align: center;
    font-family: 'Work Sans', sans-serif;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    margin-bottom: 0px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #102859;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #102859;
    transform: translateX(2px);
}

.progress-text {
    font-size: 1rem;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Work Sans', sans-serif;
    margin-bottom: 15px;
}

.progress-text .current-question {
    color: #102859;
    font-weight: 500;
}

.progress-text .total-questions {
    color: #102859;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-progress {
        padding: 0 20px;
        margin-bottom: 0px;
    }
    
    .progress-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .quiz-progress {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
}

/* ==================================================
   LUXURY QUESTIONS STYLES
   ================================================== */

/* Question Item Luxury */
.question-item {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
    font-family: 'Work Sans', sans-serif;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
}

.question-item.active {
    display: flex;
    animation: questionFadeIn 0.6s ease-out;
}

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

/* Question Hero */
.question-hero {
    text-align: center;
    margin-bottom: 60px;
}

.question-progress {
    margin-bottom: 40px;
}

.progress-indicator {
    display: inline-block;
    background: #f0f0f0;
    height: 2px;
    width: 200px;
    position: relative;
    margin-bottom: 20px;
}

.progress-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #102859;
    transition: width 0.3s ease;
}

.question-text {
    font-size: 2.2rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 30px 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-family: 'Work Sans', sans-serif;
    opacity: 1 !important;
    transform: none !important;
}

.question-divider {
    width: 100px;
    height: 1px;
    background: #102859;
    margin: 0 auto;
}

/* Question Gallery */
.question-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Answer Option Luxury */
.answer-option {
    position: relative;
}

.answer-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.answer-label {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: white;
}

.answer-label:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 40, 89, 0.1);
}

.answer-input:checked + .answer-label {
    border-color: #102859;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 40, 89, 0.15);
}

/* Image Container */
.answer-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.answer-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.answer-label:hover .answer-image {
    transform: scale(1.05);
}

/* Overlay */
.answer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 40, 89, 0);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-input:checked + .answer-label .answer-overlay {
    background: rgba(16, 40, 89, 0.1);
}

/* Selection Indicator */
.answer-selection-indicator {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.answer-input:checked + .answer-label .answer-selection-indicator {
    opacity: 1;
    transform: scale(1);
    border-color: #102859;
}

.answer-selection-indicator::after {
    content: '✓';
    color: #102859;
    font-size: 18px;
    font-weight: bold;
}

/* Text Container */
.answer-text-container {
    padding: 25px 20px;
    text-align: center;
    background: white;
}

.answer-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    font-family: 'Work Sans', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .question-item {
        padding: 40px 0;
    }
    
    .question-text {
        font-size: 1.8rem;
    }
    
    .question-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0px 10px 0px 10px;
    }
    
    .answer-image-container {
        height: 250px;
    }
    
    .answer-text-container {
        padding: 20px 15px;
    }
    
    .answer-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .question-item {
        padding: 30px 0;
    }
    
    .question-text {
        font-size: 1.5rem;
    }
    
    .answer-image-container {
        height: 200px;
    }
}

/* ==================================================
   LUXURY NAME INPUT STYLES
   ================================================== */

/* Name Input Content Luxury - with entrance animation like questions */
.name-input-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
    font-family: 'Work Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

/* Name input active - same animation as questions */
#quiz-name-input.active .name-input-content {
    animation: questionFadeIn 0.6s ease-out forwards;
}

/* Name Input Hero */
.name-input-hero {
    margin-bottom: 60px;
}

.name-input-title {
    font-size: 2rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 30px 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-family: 'Work Sans', sans-serif;
}

.name-input-divider {
    width: 100px;
    height: 1px;
    background: #102859;
    margin: 0 auto;
}

/* Name Input Main */
.name-input-main {
    margin-bottom: 40px;
}

.name-input-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 50px 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

/* Name Input Form */
.name-input-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: transparent;
}

.input-container {
    margin-bottom: 30px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.name-input-field {
    width: 100%;
    padding: 18px 20px;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    color: #2c3e50;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    box-shadow: none;
}

.name-input-field:focus {
    outline: none;
    border-color: #102859;
    background: white;
    box-shadow: none;
}

.name-input-field::placeholder {
    color: #999;
    font-weight: 300;
}

/* Name Input Actions */
.name-input-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.name-input-actions .btn {
    min-width: 300px;
    max-width: 300px;
    padding: 16px 40px;
    font-size: 0.95rem;
}

.name-input-skip {
    margin: 0;
}

.skip-name-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.skip-name-link:hover {
    color: #102859;
    border-bottom: 1px solid #102859;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name-input-content {
        padding: 60px 0;
    }
    
    .name-input-title {
        font-size: 1.7rem;
    }
    
    .name-input-description {
        font-size: 1rem;
    }
    
    .name-input-form {
        max-width: 100%;
    }
    
    .input-container {
        max-width: 280px;
    }
    
    .name-input-field {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    
    .name-input-actions .btn {
        min-width: 280px;
        max-width: 280px;
        padding: 14px 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .name-input-content {
        padding: 40px 0;
    }
    
    .name-input-title {
    font-size: 1.5rem;
    }
    
    .input-container {
        max-width: 260px;
    }
    
    .name-input-field {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .name-input-actions .btn {
        min-width: 260px;
        max-width: 260px;
        padding: 12px 30px;
        font-size: 0.85rem;
    }
}

/* Quiz Navigation Luxury - with entrance animation */
.quiz-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    padding-top:10px !important;
    padding: 40px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.quiz-navigation.visible {
    opacity: 1;
    transform: translateY(0);
}

.quiz-navigation .btn {
    min-width: 180px;
    padding: 16px 40px;
    font-size: 0.95rem;
}

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

.quiz-navigation .btn.btn-secondary:hover {
    background: #102859;
    color: white;
}

/* Navigation Message - Removed, using tooltips instead */

/* Disabled Button State */
.btn:disabled,
.btn.disabled {
    background: #f5f5f5 !important;
    color: #ccc !important;
    border-color: #e0e0e0 !important;
    cursor: default !important;
    opacity: 0.6;
    position: relative;
    pointer-events: none;
}

.btn:disabled:hover,
.btn.disabled:hover {
    background: #f5f5f5 !important;
    color: #ccc !important;
    border-color: #e0e0e0 !important;
    transform: none !important;
    cursor: default !important;
}

/* Tooltip styles removed - no longer needed */

@media (max-width: 768px) {
    .quiz-navigation {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .quiz-navigation .btn {
        min-width: 200px;
    }
}

/* ==================================================
   LUXURY RESULTS STYLES
   ================================================== */

/* MAIN CONTAINER */
.dejolyer-results-luxury {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Work Sans', sans-serif;
    color: #2C2C2C;
    background: #fff;
}

/* HERO SECTION - The Reveal */
.results-hero {
    text-align: center;
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero-content {
    margin-bottom: 40px;
}

.hero-greeting {
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 20px 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.hero-intro {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 30px 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.hero-title {
    font-size: 68px;
    font-weight: 300;
    letter-spacing: 8px;
    line-height: 1.2;
    margin: 0;
    color: #000;
}

.hero-match {
    font-size: 14px;
    letter-spacing: 2px;
    color: #999;
    margin: 20px 0 0 0;
    font-family: 'Work Sans', sans-serif;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: #102859;
    margin: 0 auto;
}

/* NARRATIVE SECTION - The Story */
.results-narrative {
    padding: 60px 40px;
    margin-bottom: 80px;
    border-top: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
}

.narrative-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.narrative-backend,
.narrative-description {
    font-size: 22px;
    line-height: 1.8;
    font-style: italic;
    color: #555;
    margin: 0 0 20px 0;
}

.narrative-backend:last-child,
.narrative-description:last-child {
    margin-bottom: 0;
}

/* VALIDATION SECTION - Why This Is Yours */
.results-validation {
    padding: 60px 40px;
    margin-bottom: 80px;
}

.section-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 60px 0;
    color: #000;
    font-family: 'Work Sans', sans-serif;
}

.validation-content {
    max-width: 700px;
    margin: 0 auto;
}

.validation-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 30px 0;
    padding-left: 30px;
    border-left: 1px solid #102859;
}

.validation-text.primary {
    font-size: 20px;
    color: #000;
    border-left: 1px solid #102859;
}

/* Keywords Luxury */
.keywords-luxury {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.keyword-item {
    font-size: 14px;
    letter-spacing: 1px;
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #E8E8E8;
    font-family: 'Work Sans', sans-serif;
}

/* PRODUCT SECTION - The Recommendation */
.results-product {
    padding: 80px 0;
    margin-bottom: 80px;
    border-top: 1px solid #E8E8E8;
}

.product-label {
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 60px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.product-presentation {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.product-image-container {
    text-align: center;
}

.product-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
}

.product-details {
    padding: 40px 0;
}

.product-name {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 4px;
    margin: 0 0 30px 0;
    color: #000;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0 0 30px 0;
    font-style: italic;
}

.product-price-display {
    font-size: 24px;
    color: #000;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
}

.product-gift-link {
    margin-bottom: 30px;
}

.gift-link-luxury {
    font-size: 14px;
    letter-spacing: 1px;
    color: #666;
    text-decoration: underline;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.gift-link-luxury:hover {
    color: #000;
}

.product-benefits {
    margin-bottom: 50px;
}

.benefits-title {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 20px 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    font-size: 16px;
    line-height: 2;
    color: #444;
    padding-left: 20px;
    position: relative;
}

.benefits-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #102859;
}

.product-actions {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    justify-content: flex-start;
}

/* GIFT SECTION - The Offer */
.results-gift {
    padding: 80px 40px;
    background: #FAFAFA;
    margin-bottom: 80px;
}

.gift-content {
    padding:15px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.gift-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.ornament-line {
    width: 40px;
    height: 1px;
    background: #102859;
}

.gift-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    color: #000;
    font-family: 'Work Sans', sans-serif;
}

.gift-message {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0 0 40px 0;
}

.gift-discount {
    margin-bottom: 20px;
}

.discount-number {
    display: block;
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 4px;
    color: #000;
    margin-bottom: 10px;
}

.discount-text {
    display: block;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.gift-product {
    font-size: 18px;
    color: #444;
    margin: 0 0 50px 0;
}

.gift-form {
    margin-top: 40px;
}

.gift-form-fallback {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.gift-form-fallback input[type="email"] {
    padding: 18px 20px;
    border: 1px solid #102859;
    background: transparent;
    font-size: 14px;
    letter-spacing: 1px;
    font-family: 'Work Sans', sans-serif;
    color: #2C2C2C;
}

.gift-form-fallback input[type="email"]:focus {
    outline: none;
    border-color: #102859;
}

.gift-form-fallback input[type="email"]::placeholder {
    color: #999;
}

.gift-disclaimer,
.gift-success-message,
.gift-error-message {
    font-size: 12px;
    color: #999;
    margin-top: 30px;
    font-style: italic;
}

.gift-error-message {
    color: #d63638;
}

/* Newsletter Embed Styling */
.newsletter-embed,
#newsletter-shortcode-container {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-embed form,
#newsletter-shortcode-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsletter-embed input[type="email"],
#newsletter-shortcode-container input[type="email"] {
    padding: 18px 20px;
    border: 1px solid #102859;
    background: transparent;
    font-size: 14px;
    letter-spacing: 1px;
    font-family: 'Work Sans', sans-serif;
    color: #2C2C2C;
}

.newsletter-embed input[type="email"]:focus,
#newsletter-shortcode-container input[type="email"]:focus {
    outline: none;
    border-color: #102859;
}

.newsletter-embed input[type="submit"],
.newsletter-embed button[type="submit"],
#newsletter-shortcode-container input[type="submit"],
#newsletter-shortcode-container button[type="submit"] {
    padding: 18px 50px;
    border: 1px solid #102859;
    background: transparent;
    color: #102859;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
}

.newsletter-embed input[type="submit"]:hover,
.newsletter-embed button[type="submit"]:hover,
#newsletter-shortcode-container input[type="submit"]:hover,
#newsletter-shortcode-container button[type="submit"]:hover {
    background: #102859;
    color: #FFFFFF;
}

.newsletter-loading {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 0;
}

.newsletter-error {
    text-align: center;
    color: #999;
    font-style: italic;
}

.newsletter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
}

.newsletter-checkbox {
    margin: 0;
}

.checkbox-text {
    flex: 1;
}

/* COUPON STYLES */
.coupon-content {
    padding: 40px 0;
}

.coupon-loading {
    text-align: center;
    padding: 40px 0;
}

.coupon-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.coupon-code {
    font-size: 32px;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    color: #102859;
    padding: 20px 40px;
    border: 1px solid #102859;
}

.coupon-copy-btn {
    padding: 15px 30px;
    border: 1px solid #102859;
    background: transparent;
    color: #102859;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
}

.coupon-copy-btn:hover {
    background: #102859;
    color: #FFFFFF;
}

.coupon-info {
    margin-bottom: 40px;
}

.coupon-discount {
    margin-bottom: 20px;
}

.coupon-expiry {
    font-size: 14px;
    color: #999;
    font-family: 'Work Sans', sans-serif;
}

.coupon-error {
    text-align: center;
    padding: 40px 0;
}

.coupon-actions {
    margin-top: 40px;
}

/* BUTTONS LUXURY */
.btn {
    padding: 18px 50px;
    border: 1px solid #102859;
    background: transparent;
    color: #102859;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    min-width: 220px;
    text-align: center;
}

.btn:hover {
    background: #102859;
    color: #FFFFFF;
}

.btn.btn-primary {
    border: 1px solid #102859;
}

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

.btn.btn-text {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    min-width: auto;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn.btn-text:hover {
    background: transparent;
    color: #102859;
    text-decoration: none;
}

/* Footer Actions Buttons */
.btn-luxury.btn-text {
    border: none;
    background: transparent;
    color: #666;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: auto;
}

.btn-luxury.btn-text:hover {
    background: transparent;
    color: #102859;
    text-decoration: none;
    transform: none;
}

/* Product Actions Buttons */
.btn-luxury.btn-primary {
    text-align: center;
    background: #102859;
    color: white;
    border: 1px solid #102859;
    padding: 18px 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-luxury.btn-primary:hover {
    background: transparent;
    color: #102859;
    transform: translateY(-2px);
}

.btn-luxury.btn-secondary {
    background: transparent;
    color: #102859;
    border: 1px solid #102859;
    padding: 18px 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-luxury.btn-secondary:hover {
    background: #102859;
    color: white;
    transform: translateY(-2px);
}

/* FOOTER ACTIONS */
.results-footer {
    padding: 60px 0 40px 0;
    text-align: center;
    border-top: 1px solid #E8E8E8;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.action-divider {
    color: #CCC;
    font-size: 14px;
}

/* LEGACY STYLES FOR OLD COMPONENTS */
.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;
}

/* ==================================================
   FLOWER RECOMMENDATION SECTION STYLES
   ================================================== */

.flower-recommendation-section {
    padding: 100px 0;
}

.flower-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.flower-header {
    margin-bottom: 40px;
}

.flower-title {
    display: none; /* Hidden by design */
}

.flower-subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto 40px;
    max-width: 700px;
}

.flower-icon {
    width: auto;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.flower-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    text-align: left;
    flex: 1;
}

.flower-recommendation {
    display:flex;
    align-items: center;
    flex-direction: row-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.flower-recommendation-text {
    font-size: 17px;
    color: #000;
    line-height: 1.8;
    text-align: left;
    margin: 0;
}

/* RESPONSIVE DESIGN - LUXURY */
@media (max-width: 768px) {
    .dejolyer-results-luxury {
        padding: 40px 0;
    }
    
    /* Flower section responsive */
    .flower-recommendation-section {
        padding: 60px 0;
    }
    
    .flower-subtitle-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .flower-icon {
        height: 100px;
    }
    
    .flower-subtitle {
        text-align: center;
    }
    
    .flower-recommendation-text {
        text-align: center;
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 42px;
        letter-spacing: 4px;
    }
    
    .results-hero {
        padding: 60px 0;
    }
    
    .results-narrative {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .results-validation,
    .results-product {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .product-presentation {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-actions .btn {
        width: 100%;
    text-align: center;
    }
    
    .results-gift {
        padding: 60px 0;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-divider {
        display: none;
    }
    
    .gift-header {
        gap: 15px;
    }
    
    .ornament-line {
        width: 20px;
    }
    
    .gift-title {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .discount-number {
        font-size: 52px;
    }
}

/* Legacy footer styles removed - using luxury styles below */

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

.privacy-policy-link {
    color: #102859;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.privacy-policy-link:hover {
    color: #1a365d;
    text-decoration: none;
}

/* Newsletter privacy link styles */
.newsletter-privacy .privacy-policy-link {
    color: #102859;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.newsletter-privacy .privacy-policy-link:hover {
    color: #1a365d;
    text-decoration: none;
}

/* GDPR Checkbox Styles */
.gdpr-checkbox-container {
    margin: 15px 0 0 0;
    padding: 0;
    text-align: center;
}

.gdpr-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
    text-align: left;
    margin: 0 auto;
}

.gdpr-consent-checkbox {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.gdpr-checkbox-text {
    flex: 1;
}

/* GDPR Checkbox Error State */
.gdpr-checkbox-container.error .gdpr-checkbox-label {
    color: #dc3545;
}

.gdpr-checkbox-container.error .gdpr-consent-checkbox {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* GDPR Checkbox Required Indicator */
.gdpr-checkbox-text::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* GDPR Checkbox Hover Effect */
.gdpr-checkbox-label:hover {
    color: #333;
}

.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;
}

.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: 0px;
    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: 0px;
    }

    .product-meta {
        justify-content: center;
    }
    
    .personality-match-percentage {
        font-size: 0.85em;
        padding: 6px 12px;
        flex-wrap: wrap;
    }
    
    .personality-match-percentage strong {
        font-size: 1em;
    }

    .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 - General Quiz Wrapper */
@media (max-width: 768px) {
    .dejolyer-quiz-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 20px 0;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .newsletter-card, .coupon-card {
        padding: 30px 15px;
    }
    
    .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 {
        padding: 20px 0 !important;
    }
    
    /* Mantener scroll en questions y name-input que son fixed */
    #quiz-questions.active,
    #quiz-name-input.active {
        overflow-y: auto !important;
        overflow-x: hidden !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: 0px;
        padding: 30px 12px;
    }
    
    .product-img {
        margin-top: 55px !important;
        max-width: 200px;
        height: 230px;
        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;
    }
    
    .coupon-display {
        padding: 15px;
    }

    .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-container {
        height: 300px;
        margin-bottom: 12px;
    }
    
    .answer-image {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* 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;
    }
    
    /* GDPR Checkbox mobile */
    .gdpr-checkbox-container {
        margin: 12px 0 0 0;
    }
    
    .gdpr-checkbox-label {
        font-size: 0.8rem;
        gap: 6px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .gdpr-consent-checkbox {
        width: 14px;
        height: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Results sections mobile - ya manejado arriba */
}

@media (max-width: 480px) {
    .results-header {
        padding: 5px !important;
    }
    .results-header h2{
            font-size: 1.8rem;
    }
    .dejolyer-quiz-wrapper {
        margin: 0 auto !important;
        padding: 20px 0 !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;
        margin-top: 40px !important
    }
    
    .product-info {
        padding: 25px 15px 25px 15px;
    }

    .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-container {
        height: 300px;
    }
    
    .answer-image {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .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-container {
        height: 300px;
    }
    
    .answer-image {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .personality-card,
    .newsletter-card {
        padding: 20px;
    }
    
    .product-card {
        padding: 5px 5px 5px 0px;
    }
}

/* Hide header on results page */
.quiz-results-active .dejolyer-quiz-header {
    display: none;
}

/* ==================================================
   TEMPORARY STICKY HEADER DISABLE - QODE FRAMEWORK
   Disable Qode sticky headers (desktop + mobile) during results reveal scroll
   ================================================== */
body.dejolyer-disable-sticky-header .qodef-header-sticky,
body.dejolyer-disable-sticky-header .qodef-header-sticky.qodef-appearance--up,
body.dejolyer-disable-sticky-header .qodef-header-sticky.qodef-appearance--down,
body.dejolyer-disable-sticky-header #qodef-page-mobile-header,
body.dejolyer-disable-sticky-header #qodef-page-mobile-header.qodef-appearance--up,
body.dejolyer-disable-sticky-header #qodef-page-mobile-header.qodef-appearance--down {
    /* Force hide with high specificity to override theme styles */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    /* Prevent any height calculation issues */
    transform: translateY(-100%) !important;
    /* Remove transitions during hide to make it instant */
    transition: none !important;
}

/* Accessibility - Removed outline on focus to avoid double selector */
.answer-input:focus + .answer-label {
    outline: none;
}

.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:none !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 15px 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.product-price-container {
    display:none !important;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.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;
    word-break: keep-all;
    hyphens: none;
}

.gift-link {
    display: inline-block;
    color: #102859;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    width: fit-content;
}

.gift-link:hover {
    color: #0d1f47;
    border-bottom: 1px solid #102859;
    transform: translateY(-2px);
}

.gift-link::after {
    content: " ↓";
    display: inline-block;
    transition: transform 0.3s ease;
}

.gift-link:hover::after {
    transform: translateY(3px);
}

.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 {
    margin-top: 45px;
    margin-bottom: 15px;
}

.personality-match-percentage {
    display:none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    border-radius: 0px;
    font-size: 0.95em;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.personality-match-percentage:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.personality-match-percentage .percentage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #102859;
    color: white;
    border-radius: 0px;
    font-size: 0.8em;
    font-weight: bold;
}

.personality-match-percentage strong {
    color: #102859;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.personality-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    padding: 5px 15px;
    border-radius: 0px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

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

.personality-keywords {
    display:none !important;
    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;
    }
}

/* ==================================================
   FULLSCREEN SUPPORT FOR MOBILE AND TABLET
   ================================================== */

/* Mobile/Tablet Device Detection - styles applied via media queries below */

/* Fullscreen Button */
.btn-fullscreen {
    background: #102859;
    color: white;
    border: 1px solid #102859;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.btn-fullscreen:hover {
    background: #0a1f3f;
    border-color: #0a1f3f;
    transform: translateY(-1px);
}

.btn-fullscreen .fullscreen-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.btn-fullscreen .fullscreen-text {
    font-size: 0.9rem;
    font-weight: 400;
}

/* CSS Fullscreen Fallback */
.quiz-css-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: white !important;
    overflow: hidden !important;
}

.quiz-css-fullscreen .dejolyer-quiz-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Fullscreen Active State - styles applied via specific selectors below */

/* Mobile/Tablet Fullscreen Optimizations */
@media (max-width: 1024px) {
    .quiz-mobile-device .dejolyer-quiz-wrapper {
        /* Enhanced mobile styles */
        padding: 15px 0 !important;
    }
    
    .quiz-mobile-device .quiz-screen {
        /* Enhanced screen styles */
        padding: 15px 0 !important;
        min-height: 100vh !important;
    }
    
    .quiz-mobile-device .welcome-content {
        /* Enhanced welcome content */
        padding: 40px 0 !important;
    }
    
    .quiz-mobile-device .question-item {
        /* Enhanced question styles */
        padding: 30px 0 !important;
    }
    
    .quiz-mobile-device .name-input-content {
        /* Enhanced name input styles */
        padding: 40px 0 !important;
    }
    
    .quiz-mobile-device .results-content {
        /* Enhanced results styles */
        padding: 30px 0 !important;
    }
    
    .quiz-mobile-device .loading-content {
        /* Enhanced loading styles */
        padding: 40px 0 !important;
        min-height: 100vh !important;
    }
    
    .quiz-mobile-device #quiz-loading.active {
        /* Enhanced loading screen styles */
        min-height: 100vh !important;
    }
    
    /* Fullscreen Button Responsive */
    .quiz-mobile-device .btn-fullscreen {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
        margin-top: 20px;
    }
    
    /* Enhanced Button Sizes for Touch */
    .quiz-mobile-device .btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .quiz-mobile-device .answer-label {
        min-height: 60px;
        padding: 15px;
    }
    
    /* Enhanced Typography for Mobile */
    .quiz-mobile-device .welcome-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .quiz-mobile-device .question-text {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .quiz-mobile-device .name-input-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    /* Enhanced Spacing for Touch */
    .quiz-mobile-device .welcome-process {
        gap: 25px !important;
    }
    
    .quiz-mobile-device .process-step {
        margin-bottom: 20px !important;
    }
    
    .quiz-mobile-device .question-gallery {
        gap: 15px !important;
    }
    
    .quiz-mobile-device .answer-option {
        margin-bottom: 15px !important;
    }
}

/* Tablet Specific Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .quiz-mobile-device .dejolyer-quiz-wrapper {
        padding: 25px 0 !important;
    }
    
    .quiz-mobile-device .quiz-screen {
        padding: 25px 0 !important;
    }
    
    .quiz-mobile-device .welcome-content {
        padding: 60px 0 !important;
    }
    
    .quiz-mobile-device .question-item {
        padding: 40px 0 !important;
    }
    
    .quiz-mobile-device .name-input-content {
        padding: 60px 0 !important;
    }
    
    .quiz-mobile-device .results-content {
        padding: 40px 0 !important;
    }
    
    .quiz-mobile-device .loading-content {
        /* Enhanced loading styles */
        padding: 60px 0 !important;
        min-height: 100vh !important;
    }
    
    .quiz-mobile-device #quiz-loading.active {
        /* Enhanced loading screen styles */
        min-height: 100vh !important;
    }
    
    /* Tablet Button Sizes */
    .quiz-mobile-device .btn {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 0.95rem;
    }
    
    .quiz-mobile-device .answer-label {
        min-height: 55px;
        padding: 12px;
    }
    
    /* Tablet Typography */
    .quiz-mobile-device .welcome-title {
        font-size: 2.4rem !important;
    }
    
    .quiz-mobile-device .question-text {
        font-size: 2rem !important;
    }
    
    .quiz-mobile-device .name-input-title {
        font-size: 2rem !important;
    }
}

/* Mobile Specific Optimizations */
@media (max-width: 768px) {
    .quiz-mobile-device .dejolyer-quiz-wrapper {
        padding: 15px 0 !important;
    }
    
    .quiz-mobile-device .quiz-screen {
        padding: 15px 0 !important;
    }
    
    .quiz-mobile-device .welcome-content {
        padding: 30px 0 !important;
    }
    
    .quiz-mobile-device .question-item {
        padding: 25px 0 !important;
    }
    
    .quiz-mobile-device .name-input-content {
        padding: 30px 0 !important;
    }
    
    .quiz-mobile-device .results-content {
        padding: 25px 0 !important;
    }
    
    .quiz-mobile-device .loading-content {
        /* Enhanced loading styles */
        padding: 30px 0 !important;
        min-height: 100vh !important;
    }
    
    .quiz-mobile-device #quiz-loading.active {
        /* Enhanced loading screen styles */
        min-height: 100vh !important;
    }
    
    /* Mobile Button Sizes */
    .quiz-mobile-device .btn {
        min-height: 50px;
        padding: 14px 20px;
        font-size: 1.05rem;
    }
    
    .quiz-mobile-device .answer-label {
        min-height: 65px;
        padding: 18px;
    }
    
    /* Mobile Typography */
    .quiz-mobile-device .welcome-title {
        font-size: 2rem !important;
    }
    
    .quiz-mobile-device .question-text {
        font-size: 1.6rem !important;
    }
    
    .quiz-mobile-device .name-input-title {
        font-size: 1.6rem !important;
    }
    
    /* Mobile Spacing */
    .quiz-mobile-device .welcome-process {
        gap: 20px !important;
    }
    
    .quiz-mobile-device .process-step {
        margin-bottom: 15px !important;
    }
    
    .quiz-mobile-device .question-gallery {
        gap: 12px !important;
    }
    
    .quiz-mobile-device .answer-option {
        margin-bottom: 12px !important;
    }
}

/* Small Mobile Optimizations */
@media (max-width: 480px) {
    .quiz-mobile-device .dejolyer-quiz-wrapper {
        padding: 10px !important;
    }
    
    .quiz-mobile-device .quiz-screen {
        padding: 10px !important;
    }
    
    .quiz-mobile-device .welcome-content {
        padding: 25px 10px !important;
    }
    
    .quiz-mobile-device .question-item {
        padding: 20px 10px !important;
    }
    
    .quiz-mobile-device .name-input-content {
        padding: 25px 10px !important;
    }
    
    .quiz-mobile-device .results-content {
        padding: 20px 10px !important;
    }
    
    /* Small Mobile Button Sizes */
    .quiz-mobile-device .btn {
        min-height: 52px;
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    .quiz-mobile-device .answer-label {
        min-height: 70px;
        padding: 20px;
    }
    
    /* Small Mobile Typography */
    .quiz-mobile-device .welcome-title {
        font-size: 1.8rem !important;
    }
    
    .quiz-mobile-device .question-text {
        font-size: 1.4rem !important;
    }
    
    .quiz-mobile-device .name-input-title {
        font-size: 1.4rem !important;
    }
    
    /* Small Mobile Spacing */
    .quiz-mobile-device .welcome-process {
        gap: 15px !important;
    }
    
    .quiz-mobile-device .process-step {
        margin-bottom: 12px !important;
    }
    
    .quiz-mobile-device .question-gallery {
        gap: 10px !important;
    }
    
    .quiz-mobile-device .answer-option {
        margin-bottom: 10px !important;
    }
}

/* Fullscreen Exit Button */
.quiz-fullscreen-active .btn-fullscreen {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(16, 40, 89, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quiz-fullscreen-active .btn-fullscreen:hover {
    background: rgba(16, 40, 89, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hide fullscreen button in welcome actions when in fullscreen */
.quiz-fullscreen-active .welcome-actions .btn-fullscreen {
    display: none;
}

/* Fullscreen Loading Screen */
.quiz-fullscreen-active #quiz-loading.active {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.quiz-fullscreen-active .loading-content {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fullscreen Results */
.quiz-fullscreen-active .dejolyer-quiz-results {
    max-width: none !important;
    width: 100% !important;
}

/* Fullscreen Footer */
.quiz-fullscreen-active .dejolyer-quiz-footer {
    position: relative !important;
    margin-top: 40px !important;
}

/* Coupon Section Styles */
.newsletter-section,
.coupon-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-card,
.coupon-card {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    width:100%;
    background: #FAF5F2;
        padding: 50px;
    border-radius: 0px;
    text-align: center;
}

.newsletter-header h4,
.coupon-header h4 {
    padding-top:20px;
    color: #102859;
    font-size: 1.5em;
    margin: 0 0 10px 0;
}

.newsletter-header p,
.coupon-header p,
.coupon-message {
    padding: 0px 10px 0px 10px;
    color: #555;
    margin-bottom: 20px;
}

.newsletter-content,
.coupon-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.coupon-loading {
    text-align: center;
    padding: 20px;
}

.coupon-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D0B7A3;
    border-radius: 0px;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.coupon-display {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #D0B7A3;
    position: relative;
    overflow: hidden;
}

.coupon-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #D0B7A3;
}

.coupon-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
    background: white;
    border-radius: 0px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #d0b7a3;
}

.coupon-code {
    background: #102859;
    color: white;
    padding: 15px 20px;
    border-radius: 0px;
    font-family: 'Courier New', monospace;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 2px;
    min-width: 220px;
    text-align: center;
    margin-right: 8px;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.coupon-code::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.coupon-copy-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.copy-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.coupon-copy-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.coupon-copy-btn.copied {
    background: linear-gradient(135deg, #17a2b8, #138496);
    transform: scale(1.05);
}

.coupon-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.coupon-discount {
    text-align: center;
}

.discount-amount {
    font-size: 3em;
    font-weight: 900;
    color: #d0b7a3;
    display: block;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    background: #d0b7a3;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.discount-type {
    font-size: 0.9em;
    color: #666;
}

.coupon-expiry {
    text-align: center;
}

.expiry-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.expiry-time {
    font-size: 1.1em;
    font-weight: 600;
    color: #AB9985;
}

.coupon-actions {
    text-align: center;
}

.coupon-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.coupon-error p {
    margin: 0 0 15px 0;
}

/* Coupon Responsive Styles */
@media (max-width: 768px) {
    .coupon-code-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .coupon-code {
        min-width: auto;
        width: 100%;
        margin-right: 0;
    }
    
    .coupon-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* Email Coupon Section Styles */
.email-coupon-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0px;
    border: 1px solid #dee2e6;
}

.email-coupon-header {
    text-align: center;
    margin-bottom: 30px;
}

.email-coupon-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.email-coupon-form-text {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.email-coupon-form-container {
    max-width: 500px;
    margin: 0 auto;
}

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

.email-coupon-form .email-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #dee2e6;
    border-radius: 0px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.email-coupon-form .email-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.newsletter-checkbox-group {
    text-align: left;
}

.newsletter-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.newsletter-checkbox {
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-text {
    flex: 1;
}

.email-coupon-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-coupon-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.email-coupon-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 0px;
    animation: spin 1s linear infinite;
}


.email-coupon-success {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 0px;
    border: 1px solid #c3e6cb;
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}

.email-coupon-success h4 {
    font-size: 24px;
    color: #155724;
    margin-bottom: 10px;
}

.email-coupon-success p {
    color: #155724;
    font-size: 16px;
    margin: 0;
}

.email-coupon-error {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-radius: 0px;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
}

.error-icon {
    font-size: 24px;
    color: #721c24;
    margin-bottom: 10px;
}

.email-coupon-error h4 {
    font-size: 18px;
    color: #721c24;
    margin-bottom: 8px;
}

.email-coupon-error .error-message {
    color: #721c24;
    font-size: 14px;
    margin: 0;
}

/* Responsive adjustments for email coupon section */
@media (max-width: 768px) {
    .email-coupon-section {
        margin-top: 30px;
        padding: 20px;
    }
    
    .email-coupon-header h3 {
        font-size: 24px;
    }
    
    .email-coupon-form-text {
        font-size: 14px;
    }
    
    .email-coupon-form .email-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .email-coupon-submit-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ==========================================
   PROFESSIONAL OVERLAY SYSTEM STYLES
   ========================================== */

/* Base overlay container - ensures consistent height */
#newsletter-shortcode-container {
    position: relative;
    min-height: 200px;
    transition: min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Professional overlay base styles */
.dejolyer-overlay-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    overflow: hidden;
}

/* Overlay content containers */
.dejolyer-spinner-container,
.dejolyer-success-container,
.dejolyer-timeout-container,
.dejolyer-validation-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 40px 30px;
    animation: dejolyer-content-enter 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Professional spinner styles */
.dejolyer-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e3f2fd;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: dejolyer-spin 1s linear infinite;
}

/* Icon styles for different states */
.dejolyer-success-icon,
.dejolyer-timeout-icon,
.dejolyer-validation-error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dejolyer-success-icon {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    animation: dejolyer-success-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dejolyer-timeout-icon {
    background: linear-gradient(135deg, #ff5722 0%, #d32f2f 100%);
    animation: dejolyer-timeout-shake 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dejolyer-validation-error-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    animation: dejolyer-validation-pulse 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Text styling for different states */
.dejolyer-spinner-text,
.dejolyer-success-text,
.dejolyer-timeout-text,
.dejolyer-validation-error-text {
    font-weight: 500;
    line-height: 1.4;
}

.dejolyer-spinner-text {
    color: #1976d2;
}

.dejolyer-success-text {
    color: #2e7d32;
}

.dejolyer-timeout-text {
    color: #d32f2f;
}

.dejolyer-validation-error-text {
    color: #e65100;
}

/* Professional animations */
@keyframes dejolyer-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dejolyer-success-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes dejolyer-timeout-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes dejolyer-validation-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes dejolyer-content-enter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced form hiding transitions */
.klaviyo-form, [class*="klaviyo-form"], [class*="klaviyo"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.klaviyo-form.hiding, [class*="klaviyo-form"].hiding, [class*="klaviyo"].hiding {
    filter: blur(2px);
    opacity: 0.3;
    transform: scale(0.98);
}

/* Professional hover effects for interactive elements */
.dejolyer-overlay-message:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Accessibility improvements */
.dejolyer-overlay-message:focus-within {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dejolyer-overlay-message {
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid #000;
    }
}

/* Newsletter message styles with professional padding */
.dejolyer-success-message,
.dejolyer-error-message,
.dejolyer-spinner-message {
    padding: 40px 30px !important;
    margin: 20px 0 !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

/* Newsletter footer message styles */
.newsletter-footer-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.newsletter-footer-message .newsletter-custom-message {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
    position: relative;
}

.newsletter-footer-message .newsletter-custom-message::before {
    margin-right: 8px;
    font-style: normal;
}

.dejolyer-success-message h4,
.dejolyer-error-message h4 {
    margin-bottom: 15px !important;
}

.dejolyer-success-message p,
.dejolyer-error-message p {
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dejolyer-overlay-message,
    .dejolyer-spinner,
    .dejolyer-success-icon,
    .dejolyer-timeout-icon,
    .dejolyer-validation-error-icon {
        animation: none;
        transition: opacity 0.3s ease;
    }
    
    .dejolyer-overlay-message {
        transform: none;
    }
}

/* Mobile optimizations for overlay system */
@media (max-width: 768px) {
    .dejolyer-overlay-message {
        border-radius: 0px;
        padding: 20px;
    }
    
    .dejolyer-spinner-container,
    .dejolyer-success-container,
    .dejolyer-timeout-container,
    .dejolyer-validation-error-container {
        padding: 30px 20px;
        gap: 15px;
    }
    
    .dejolyer-success-message,
    .dejolyer-error-message,
    .dejolyer-spinner-message {
        padding: 30px 20px !important;
    }
    
    .newsletter-footer-message {
        margin-top: 15px;
        padding: 12px 15px;
    }
    
    .newsletter-footer-message .newsletter-custom-message {
        font-size: 13px;
    }
    
    .dejolyer-success-icon,
    .dejolyer-timeout-icon,
    .dejolyer-validation-error-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .dejolyer-spinner {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
}