/* Success screen simplified */
.success-screen .success-content {
    background: #FFFFFF;
    border: 1px solid rgba(28, 78, 128, 0.12);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(28, 78, 128, 0.08);
    text-align: center;
}

.success-screen .success-icon {
    font-size: 52px;
    color: #4DAE57;
    margin-bottom: 12px;
}

.success-screen h2 {
    color: #1C4E80;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-screen .success-message {
    color: #4F5B67;
    font-size: 16px;
    margin-bottom: 18px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #4DAE57, #3d8b46);
    color: #FFFFFF;
}

.btn-secondary {
    background: #FFFFFF;
    color: #1C4E80;
    border-color: rgba(28, 78, 128, 0.2);
}
/* Premium Quiz Styles - Dark Gaming Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #F5F7FA;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background overlay to prevent text bleeding */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    animation: none;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium Quiz Header */
.quiz-header {
    background: linear-gradient(135deg, #1C4E80, #2a5c91);
    backdrop-filter: blur(25px);
    box-shadow: 0 4px 30px rgba(28, 78, 128, 0.2);
    border-bottom: 2px solid rgba(77, 174, 87, 0.3);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: hidden;
}

.quiz-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a { text-decoration: none; }

.logo h2 {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #F5F7FA 0%, #4DAE57 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(28, 78, 128, 0.35);
}

.logo h2::before {
    content: '🐾';
    display: inline-block;
    margin-right: 8px;
    filter: drop-shadow(0 0 6px rgba(77, 174, 87, 0.6));
}

/* Shared brand logo for site + quiz */
.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

/* Removed logoGlow animation - using landing page style */

/* Premium Timer - Highlighted */
.quiz-info {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(77, 174, 87, 0.2), rgba(61, 139, 70, 0.15));
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #4DAE57;
    font-weight: 700;
    color: #4DAE57;
    font-size: 14px;
    box-shadow: 
        0 0 25px rgba(77, 174, 87, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quiz-timer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    animation: timerShine 4s linear infinite;
}

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

.hourglass-container {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hourglass-icon {
    font-size: 14px;
    color: #4DAE57;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(77, 174, 87, 0.7));
    z-index: 1;
}

.hourglass-icon.hourglass-flip {
    animation: hourglassFlipPremium 1s ease-in-out;
}

.hourglass-icon.sand-falling {
    animation: sandFallPremium 1s ease-in-out;
}

@keyframes hourglassFlipPremium {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg) scale(1.3); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)); }
    100% { transform: rotate(180deg); }
}

@keyframes sandFallPremium {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(0.9); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)); }
}

.timer-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 14px;
    z-index: 1;
    text-shadow: 0 0 8px rgba(77, 174, 87, 0.6);
    color: #4DAE57;
    min-width: 40px;
    text-align: center;
}

/* Timer warning states */
.quiz-timer.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 193, 7, 0.15));
    border-color: #ff9800;
    color: #ff9800;
    box-shadow: 
        0 0 30px rgba(255, 152, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.3);
    animation: timerPulsePremium 1s ease-in-out infinite;
}

.quiz-timer.warning .hourglass-icon,
.quiz-timer.warning .timer-text {
    color: #ff9800;
    filter: drop-shadow(0 0 15px rgba(255, 152, 0, 0.7));
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.6);
}

.quiz-timer.danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(255, 87, 34, 0.15));
    border-color: #f44336;
    color: #f44336;
    box-shadow: 
        0 0 35px rgba(244, 67, 54, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.3);
    animation: timerPulsePremium 0.5s ease-in-out infinite;
}

.quiz-timer.danger .hourglass-icon,
.quiz-timer.danger .timer-text {
    color: #f44336;
    filter: drop-shadow(0 0 18px rgba(244, 67, 54, 0.8));
    text-shadow: 0 0 18px rgba(244, 67, 54, 0.7);
}

@keyframes timerPulsePremium {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 
            0 0 25px currentColor,
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 
            0 0 35px currentColor,
            0 0 50px rgba(255, 255, 255, 0.1),
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

/* Progress Bar with Animated Dog */
.progress-container {
    background: linear-gradient(135deg, #F5F7FA, rgba(245, 247, 250, 0.95));
    padding: 10px 15px 30px 15px;
    border-bottom: 1px solid rgba(77, 174, 87, 0.3);
    border-top: 1px solid rgba(28, 78, 128, 0.1);
    backdrop-filter: blur(25px);
    position: relative;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(28, 78, 128, 0.1);
}

.progress-track {
    position: relative;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 6px 0 4px 0;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: visible;
    z-index: 9998 !important;
}

.progress-path {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 9998 !important;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4DAE57, #1C4E80, #4DAE57);
    border-radius: 15px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 20px rgba(77, 174, 87, 0.6),
        0 0 40px rgba(77, 174, 87, 0.3);
    position: relative;
    z-index: 9997 !important;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 15px;
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-dog {
    position: absolute;
    top: -12px;
    left: 0%;
    width: 24px;
    height: 24px;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999 !important;
}

/* Dog Animation Styles */
.dog-body {
    width: 15px;
    height: 12px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-radius: 50%;
    position: relative;
    animation: dogWalk 1s ease-in-out infinite;
    z-index: 9999 !important;
}

.dog-head {
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: 5px;
}

.dog-tail {
    width: 5px;
    height: 2px;
    background: #8B4513;
    border-radius: 1px;
    position: absolute;
    top: 3px;
    right: -4px;
    transform-origin: left;
    animation: tailWag 0.5s ease-in-out infinite alternate;
}

.dog-legs {
    position: absolute;
    bottom: -5px;
    left: 2px;
    right: 2px;
}

.dog-leg {
    width: 2px;
    height: 5px;
    background: #654321;
    border-radius: 1px;
    position: absolute;
    animation: legWalk 0.8s ease-in-out infinite;
}

.dog-leg:nth-child(1) { left: 1px; }
.dog-leg:nth-child(2) { left: 5px; animation-delay: 0.4s; }
.dog-leg:nth-child(3) { right: 5px; animation-delay: 0.2s; }
.dog-leg:nth-child(4) { right: 1px; animation-delay: 0.6s; }

@keyframes dogWalk {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes tailWag {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

@keyframes legWalk {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Progress Milestones */
.progress-milestones {
    position: relative !important;
    width: 100% !important;
    height: 28px !important;
    margin: 12px 0 9px 0 !important;
    padding: 0 6px !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.milestone {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)) !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute !important;
    z-index: 99999 !important;
    backdrop-filter: blur(15px);
    flex-shrink: 0 !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.6) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    color: rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Removed milestone::before that was causing overlap */

.milestone.active {
    background: #4DAE57 !important;
    border-color: #ffffff !important;
    border-width: 4px !important;
    box-shadow: 0 0 20px rgba(77, 174, 87, 1) !important;
    transform: scale(1.3) !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8) !important;
}

.milestone.completed {
    background: #1C4E80 !important;
    border-color: #ffffff !important;
    border-width: 3px !important;
    box-shadow: 0 0 15px rgba(28, 78, 128, 1) !important;
    color: #ffffff !important;
    transform: scale(1.2) !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

/* Individual milestone positioning */
.milestone[data-step="1-2"] {
    left: 0% !important;
}

.milestone[data-step="3-4"] {
    left: 33.33% !important;
}

.milestone[data-step="5-6"] {
    left: 66.66% !important;
}

.milestone[data-step="7-8"] {
    left: 100% !important;
    transform: translateX(-100%) !important;
}

.milestone[data-step="7-8"].active {
    transform: translateX(-100%) scale(1.3) !important;
}

.milestone[data-step="7-8"].completed {
    transform: translateX(-100%) scale(1.2) !important;
}

/* Progress Text */
.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 500;
}

.step-info {
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.step-description {
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Mobile Progress Adjustments */
@media (max-width: 768px) {
    .quiz-header {
        padding: 10px 0;
    }
    
    .logo h2 {
        font-size: 18px;
    }
    
    .quiz-timer {
        padding: 4px 8px;
        font-size: 12px;
        gap: 4px;
        border-radius: 15px;
        border-width: 1px;
    }
    
    .hourglass-container {
        width: 12px;
        height: 12px;
    }
    
    .hourglass-icon {
        font-size: 10px;
    }
    
    .timer-text {
        font-size: 12px;
        min-width: 30px;
        letter-spacing: 0.5px;
    }
    
    .progress-container {
        padding: 15px 10px 40px 10px;
    }
    
    .progress-track {
        height: 2px;
        margin: 4px 0 3px 0;
    }
    
    .progress-dog {
        width: 20px;
        height: 20px;
        top: -10px;
    }
    
    .progress-milestones {
        margin: 10px 0 8px 0 !important;
        padding: 0 6px !important;
        height: 24px !important;
    }
    
    .milestone {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
        border-width: 3px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 
            0 3px 12px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    
    .milestone.active {
        transform: scale(1.15);
        border-width: 3px;
    }
    
    .milestone.completed {
        transform: scale(1.1);
    }
    
    .progress-text {
        font-size: 12px;
        margin-top: 4px;
    }
}

/* Quiz Main Content */
.quiz-main {
    padding: 30px 0 140px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    background: transparent;
}

.quiz-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

/* Premium Attention Section (like the image) */
.attention-section {
    background: linear-gradient(135deg, #ff4444, #ff6b35);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(255, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

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

.attention-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.attention-text {
    font-size: 18px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

/* Quiz Steps */
.quiz-step {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(28, 78, 128, 0.08);
    border: 1px solid rgba(28, 78, 128, 0.08);
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
    z-index: 100;
    backdrop-filter: none;
    overflow: hidden;
}

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

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 28px;
    color: #1C4E80;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.step-header p {
    font-size: 16px;
    color: #4F5B67;
    font-weight: 400;
    line-height: 1.5;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-option {
    cursor: pointer;
    display: block;
    transition: all 0.3s ease;
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #FFFFFF;
    border: 2px solid rgba(28, 78, 128, 0.12);
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.quiz-option:hover .option-content::before {
    left: 100%;
}

.quiz-option:hover .option-content {
    border-color: rgba(28, 78, 128, 0.35);
    box-shadow: 0 10px 20px rgba(28, 78, 128, 0.12);
    transform: translateY(-2px);
}

.option-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #4DAE57, #1C4E80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(28, 78, 128, 0.18);
}

.option-text h3 {
    color: #1C4E80;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.option-text p {
    color: #4F5B67;
    font-size: 14px;
    line-height: 1.5;
}

/* Radio button selected state */
.quiz-option input[type="radio"]:checked + .option-content {
    border-color: #4DAE57;
    background: linear-gradient(135deg, rgba(77, 174, 87, 0.08), rgba(77, 174, 87, 0.03));
    box-shadow: 0 8px 22px rgba(77, 174, 87, 0.18);
    transform: scale(1.02);
}

.quiz-option input[type="radio"]:checked + .option-content::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #4DAE57;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    animation: checkmarkAppear 0.3s ease;
    box-shadow: 0 0 15px rgba(77, 174, 87, 0.35);
}

@keyframes checkmarkAppear {
    0% { 
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Checkbox Specific Styles */
.checkbox-options {
    position: relative;
}

.checkbox-option .option-content {
    position: relative;
    padding-right: 80px;
}

.checkbox-indicator {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid rgba(28, 78, 128, 0.25);
    border-radius: 8px;
    background: rgba(28, 78, 128, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-indicator i {
    font-size: 16px;
    color: #FFFFFF;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .option-content .checkbox-indicator {
    background: #4DAE57;
    border-color: #4DAE57;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 12px rgba(77, 174, 87, 0.35);
}

.checkbox-option input[type="checkbox"]:checked + .option-content .checkbox-indicator i {
    opacity: 1;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.checkbox-option:hover .checkbox-indicator {
    border-color: rgba(28, 78, 128, 0.35);
    background: rgba(28, 78, 128, 0.08);
}

.checkbox-option input[type="checkbox"]:checked + .option-content {
    border-color: #4DAE57;
    background: linear-gradient(135deg, rgba(77, 174, 87, 0.08), rgba(77, 174, 87, 0.03));
    transform: scale(1.02);
    box-shadow: 0 8px 22px rgba(77, 174, 87, 0.18);
}

/* Continue Button for Step 4 */
.continue-button-container {
    margin-top: 40px;
    text-align: center;
}

.continue-btn {
    background: linear-gradient(135deg, #00ff88, #00bcd4);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

.continue-btn:active {
    transform: translateY(0);
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact form (Step 8) - dark card for better readability */
.quiz-step[data-step="8"] .contact-form {
    background: linear-gradient(135deg, #1C4E80, #2a5c91);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(28, 78, 128, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.quiz-step[data-step="8"] .form-group label {
    color: #F5F7FA;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.quiz-step[data-step="8"] .form-group label i {
    color: #F5F7FA;
    filter: drop-shadow(0 0 6px rgba(28, 78, 128, 0.6));
}

.quiz-step[data-step="8"] .form-group input {
    background: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #1C2B39;
}

.quiz-step[data-step="8"] .form-group input::placeholder {
    color: #7A8A9A;
}

.quiz-step[data-step="8"] .form-group input:focus {
    border-color: #4DAE57;
    box-shadow: 0 0 0 3px rgba(77, 174, 87, 0.25), 0 0 18px rgba(77, 174, 87, 0.25);
    background: #FFFFFF;
}

.quiz-step[data-step="8"] .form-group.error input {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.25);
}

.quiz-step[data-step="8"] .form-group.success input {
    border-color: #4DAE57;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1C4E80;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(28, 78, 128, 0.4);
}

.form-group label i {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(28, 78, 128, 0.6));
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #4DAE57;
    box-shadow: 
        0 0 0 3px rgba(77, 174, 87, 0.2),
        0 0 20px rgba(77, 174, 87, 0.3);
    background: linear-gradient(135deg, rgba(77, 174, 87, 0.1), rgba(77, 174, 87, 0.05));
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.form-group input:valid {
    border-color: #4DAE57;
    box-shadow: 0 0 10px rgba(77, 174, 87, 0.3);
}

/* Optional Pet Name Field */
.form-group.optional label {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.form-group.optional label i {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

.form-group.optional input:focus {
    border-color: #ffd700;
    box-shadow: 
        0 0 0 3px rgba(255, 215, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

/* Form Submit Area */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #4DAE57, #3d8b46);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 174, 87, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group label i {
        font-size: 16px;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
    
    .quiz-header {
        padding: 10px 0;
    }
    
    .logo h2 {
        font-size: 16px;
    }
    .brand-logo { height: 30px; }
    
    .quiz-timer {
        padding: 4px 8px;
        font-size: 12px;
        gap: 4px;
        border-radius: 15px;
    }
    
    .timer-text {
        font-size: 12px;
        min-width: 30px;
        letter-spacing: 0.5px;
    }
    
    .hourglass-container {
        width: 12px;
        height: 12px;
    }
    
    .hourglass-icon {
        font-size: 10px;
    }
    
    .quiz-step {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .step-header h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .step-header p {
        font-size: 16px;
    }
    
    .option-content {
        padding: 20px;
        gap: 15px;
    }
    
    .option-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .option-text h3 {
        font-size: 18px;
    }
    
    .option-text p {
        font-size: 14px;
    }
    
    .checkbox-option .option-content {
        padding-right: 65px;
    }
    
    .checkbox-indicator {
        width: 25px;
        height: 25px;
        right: 20px;
    }
    
    .checkbox-indicator i {
        font-size: 14px;
    }
    
    .continue-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .attention-section {
        padding: 25px 20px;
        margin: 20px 0;
    }
    
    .attention-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .attention-text {
        font-size: 16px;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Buttons */
.quiz-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 2px solid rgba(28, 78, 128, 0.15);
    box-shadow: 0 -6px 16px rgba(28, 78, 128, 0.08);
    padding: 16px 0;
    z-index: 150;
}

.quiz-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    background: #FFFFFF;
    border: 2px solid rgba(28, 78, 128, 0.15);
    color: #1C4E80;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    min-width: 140px;
    justify-content: center;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(28, 78, 128, 0.12);
    border-color: rgba(28, 78, 128, 0.35);
}

.nav-btn:active {
    transform: translateY(0);
}

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

.prev-btn {
    background: #FFFFFF;
    border-color: rgba(28, 78, 128, 0.15);
    color: #4F5B67;
}

.prev-btn:hover {
    border-color: #666666;
    box-shadow: 0 5px 15px rgba(102, 102, 102, 0.3);
}

.next-btn {
    background: linear-gradient(135deg, rgba(77, 174, 87, 0.12), rgba(77, 174, 87, 0.06));
    border-color: rgba(77, 174, 87, 0.35);
    color: #3d8b46;
}

.next-btn:hover {
    border-color: #4DAE57;
    box-shadow: 0 5px 15px rgba(77, 174, 87, 0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .quiz-navigation {
        padding: 15px 0;
    }
    
    .quiz-navigation .container {
        flex-direction: row;
        gap: 15px;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px;
        flex: 1;
        max-width: 150px;
    }
}

/* Auto advance loading overlay */
.auto-advance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-top: 3px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 15px;
    color: #ffffff;
    font-weight: 600;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: linear-gradient(135deg, #00ff88, #00bcd4);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #ff5722);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.notification.warning {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

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

/* Quiz Footer */
.quiz-footer {
    background: #FFFFFF;
    border-top: 2px solid rgba(28, 78, 128, 0.15);
    padding: 25px 0;
    text-align: center;
    position: relative;
    z-index: 100;
}

.quiz-footer p {
    color: #4F5B67;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.quiz-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .quiz-footer {
        padding: 20px 0;
    }
    
    .quiz-footer p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .quiz-footer .container {
        padding: 0 15px;
    }
}
