/* Survey-specific styles */

/* Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(92, 121, 236, 0.6);
    border-radius: 50%;
    opacity: 0.4;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 70%;
    animation-delay: 3s;
}

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

.particle {
    animation: float 3s ease-in-out infinite;
}

.survey-body {
    background: linear-gradient(135deg, #1a1d3a 0%, #2a2942 50%, #1f1b2e 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height */
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Mobile - ensure scrollable body */
@media (max-width: 768px) {
    .survey-body {
        overflow-y: auto;
        height: auto;
    }
}


/* Survey Progress */
.survey-progress {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 29, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Desktop only - make progress fixed */
@media (min-width: 769px) {
    .survey-progress {
        position: fixed;
        top: env(safe-area-inset-top);
    }
}

.survey-progress .progress-container {
    margin: 0 auto;
    max-width: 400px;
    padding: 0 20px;
}

.survey-progress .progress-text {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Container - Scoped to survey pages only */
.survey-body .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Consistent container padding on mobile */
@media (max-width: 768px) {
    .survey-body .container {
        padding: 0 20px; /* Consistent with other sections */
    }
}

/* Desktop only - center content */
@media (min-width: 769px) {
    .survey-body .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Survey Sections - Mobile First */
.survey-section {
    display: none; /* Hidden by default on mobile */
    padding: 10px 0 40px; /* Reduced top padding from 20px to 10px on mobile */
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    min-height: calc(100vh - 60px); /* Account for progress bar */
    min-height: calc(100dvh - 60px);
}

/* Active section on mobile */
.survey-section:not(.hidden) {
    display: block;
}

/* Desktop behavior */
@media (min-width: 769px) {
    .survey-section {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        padding: 80px 0 40px;
        padding-top: calc(80px + env(safe-area-inset-top));
        display: flex !important; /* Override mobile display */
        align-items: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    .survey-section.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(20px);
        display: flex !important; /* Keep flex on desktop even when hidden */
    }
}

.survey-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Apply backdrop-filter only on desktop to avoid iOS issues */
@media (min-width: 769px) {
    .survey-card {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        min-height: 400px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    /* Custom scrollbar for survey card */
    .survey-card::-webkit-scrollbar {
        width: 8px;
    }
    
    .survey-card::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }
    
    .survey-card::-webkit-scrollbar-thumb {
        background: rgba(92, 121, 236, 0.3);
        border-radius: 4px;
        transition: background 0.3s ease;
    }
    
    .survey-card::-webkit-scrollbar-thumb:hover {
        background: rgba(92, 121, 236, 0.5);
    }
}

/* Welcome Card */
.welcome-card {
    text-align: center;
    max-width: 600px;
}

.ai-avatar {
    margin-bottom: 30px;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c79ec 0%, #667eea 50%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto;
    position: relative;
    animation: pulse-avatar 3s ease-in-out infinite;
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c79ec 0%, #667eea 50%, #764ba2 100%);
    opacity: 0.3;
    animation: glow-pulse 2s ease-in-out infinite alternate;
    z-index: -1;
}

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

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

.welcome-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.welcome-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

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

.feature-item span:last-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* AI Response - Hybrid Approach with Persistent Coach */
.ai-response {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(92, 121, 236, 0.1);
    border: 1px solid rgba(92, 121, 236, 0.2);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Desktop: Persistent coach with elegant transitions */
@media (min-width: 769px) {
    .ai-response {
        min-height: 60px;
        height: auto;
        opacity: 1;
        transform: none;
    }
    
    /* Skeleton loader state when not active */
    .ai-response:not(.show) {
        background: linear-gradient(90deg, 
            rgba(92, 121, 236, 0.05) 25%, 
            rgba(92, 121, 236, 0.1) 50%, 
            rgba(92, 121, 236, 0.05) 75%
        );
        background-size: 200% 100%;
        animation: shimmer 2s infinite;
        border-color: transparent;
    }
    
    .ai-response:not(.show) .ai-avatar-small {
        opacity: 0.3;
    }
    
    .ai-response:not(.show) .ai-message {
        opacity: 0;
        transform: translateY(10px);
    }
    
    /* Add skeleton placeholder lines */
    .ai-response:not(.show)::after {
        content: '';
        position: absolute;
        top: 28px;
        left: 75px;
        right: 20px;
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    
    .ai-response:not(.show)::before {
        content: '';
        position: absolute;
        top: 44px;
        left: 75px;
        right: 60px;
        height: 8px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
    }
    
    /* Active state */
    .ai-response.show {
        background: rgba(92, 121, 236, 0.1);
        border-color: rgba(92, 121, 236, 0.2);
        animation: none;
    }
    
    .ai-response.show .ai-avatar-small {
        opacity: 1;
        animation: coachAppear 0.4s ease-out;
    }
    
    .ai-response.show .ai-message {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease 0.2s;
    }
}

/* Mobile: Keep original behavior */
@media (max-width: 768px) {
    .ai-response {
        opacity: 0;
        transform: translateY(10px);
        min-height: auto;
        position: relative !important; /* Ensure it's not absolute/fixed */
        z-index: 1; /* Lower z-index to prevent overlay effect */
    }
    
    .ai-response.show {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Ensure validation feedback doesn't become modal-like on mobile */
    .ai-response.validation-feedback {
        position: relative !important;
        margin-bottom: 20px;
        z-index: 1;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent any absolute positioning that might cause overlay */
    .survey-card {
        position: relative;
        z-index: 1;
    }
    
    /* Ensure proper stacking context */
    .question-area {
        position: relative;
        z-index: 2;
    }
    
    .answer-area {
        position: relative;
        z-index: 2;
    }
}

/* Shimmer animation for skeleton loader */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Coach appear animation */
@keyframes coachAppear {
    0% {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.ai-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c79ec 0%, #667eea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-message {
    flex: 1;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

/* Validation Feedback Styles */
.validation-feedback .feedback-content {
    display: block;
}

.validation-feedback .feedback-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: typing-bounce 1.4s ease-in-out infinite both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Question Area */
.question-area {
    margin-bottom: 30px;
}

.question-area h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.3;
}

.question-context {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Answer Area */
.answer-area {
    margin-bottom: 20px;
}

.answer-input-container {
    position: relative;
    margin-bottom: 20px;
}

/* Make textarea exactly like survey-input */
.survey-body textarea.survey-input,
.answer-input-container textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Fix textarea expansion on desktop */
@media (min-width: 769px) {
    /* Simply limit the maximum height to prevent header overlap */
    .survey-body textarea.survey-input,
    .answer-input-container textarea {
        /* Hard limit that prevents going under header */
        max-height: 60vh;
    }
    
    /* Ensure survey section scrolls properly when content expands */
    .survey-section {
        overflow-y: auto !important;
        /* Add padding at bottom for expanded textarea */
        padding-bottom: 100px;
    }
}

/* Ensure font size 16px on mobile to prevent zoom */
@media (max-width: 768px) {
    .answer-input-container textarea {
        font-size: 16px;
    }
}

.answer-input-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.survey-body textarea.survey-input:focus,
.answer-input-container textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #5c79ec;
    box-shadow: 0 0 20px rgba(92, 121, 236, 0.3);
}

.input-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}

.voice-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(92, 121, 236, 0.2);
    border: 1px solid rgba(92, 121, 236, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Enhanced voice button */
.voice-button.enhanced {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(92, 121, 236, 0.3), rgba(118, 75, 162, 0.3));
    border: 1px solid rgba(92, 121, 236, 0.5);
    font-weight: 500;
}

.voice-button:hover {
    background: rgba(92, 121, 236, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(92, 121, 236, 0.3);
}

.voice-button.enhanced:hover {
    background: linear-gradient(135deg, rgba(92, 121, 236, 0.4), rgba(118, 75, 162, 0.4));
}

/* Large voice button for main actions */
.voice-button.large {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 160px;
}

.voice-button.large .voice-icon {
    font-size: 1.2rem;
}

/* Preparing state */
.voice-button.preparing {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
    cursor: wait;
}

.voice-button.preparing .voice-icon {
    animation: spin 1s linear infinite;
}

/* Recording state */
.voice-button.recording {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    animation: pulse-recording 2s ease-in-out infinite;
}

.voice-button.recording .voice-icon {
    animation: none;
}

.voice-button.recording .voice-text {
    font-weight: 600;
}

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

/* Status dot for recording */
.voice-status-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-button.recording .voice-status-dot {
    opacity: 1;
    animation: blink-dot 1s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Pulse animation for voice encouragement */
.voice-button.pulse {
    animation: pulse-encourage 2s ease-in-out infinite;
}

@keyframes pulse-encourage {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(92, 121, 236, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(92, 121, 236, 0.5);
    }
}

.voice-icon {
    font-size: 1.1rem;
}

.character-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Multiple Choice */
.multiple-choice-container {
    margin-bottom: 20px;
}

.choices {
    display: grid;
    gap: 12px;
}

.choice-item {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px; /* Prevents iOS zoom */
    color: rgba(255, 255, 255, 0.9);
    -webkit-tap-highlight-color: transparent;
}

.choice-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(92, 121, 236, 0.5);
    transform: translateY(-2px);
}

.choice-item.selected {
    background: rgba(92, 121, 236, 0.2);
    border-color: #5c79ec;
    color: #ffffff;
}

/* Survey Actions */
.survey-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.survey-body .secondary-button {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.survey-body .secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Completion Screen */
.completion-card {
    text-align: center;
    max-width: 700px;
}

.completion-animation {
    margin-bottom: 30px;
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-burst {
    position: absolute;
    width: 100px;
    height: 100px;
}

.burst-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #5c79ec;
    border-radius: 50%;
    animation: burst-out 1.5s ease-out forwards;
}

.burst-particle:nth-child(1) {
    top: 50%;
    left: 50%;
    animation-delay: 0s;
    --angle: 0deg;
}

.burst-particle:nth-child(2) {
    top: 50%;
    left: 50%;
    animation-delay: 0.1s;
    --angle: 72deg;
}

.burst-particle:nth-child(3) {
    top: 50%;
    left: 50%;
    animation-delay: 0.2s;
    --angle: 144deg;
}

.burst-particle:nth-child(4) {
    top: 50%;
    left: 50%;
    animation-delay: 0.3s;
    --angle: 216deg;
}

.burst-particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 0.4s;
    --angle: 288deg;
}

@keyframes burst-out {
    0% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-40px) scale(0);
        opacity: 0;
    }
}

.completion-icon {
    font-size: 4rem;
    animation: completion-bounce 1s ease-out 0.5s both;
}

@keyframes completion-bounce {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.completion-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.completion-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Processing Status */
.processing-status {
    display: grid;
    gap: 15px;
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.processing-step.active {
    background: rgba(92, 121, 236, 0.2);
    border: 1px solid rgba(92, 121, 236, 0.3);
    opacity: 1;
}

.processing-step.completed {
    opacity: 1;
}

.step-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.processing-step span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.completion-message {
    margin-top: 30px;
}

.completion-message p {
    margin-bottom: 10px;
}

.email-note {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Voice Status Modal */
.voice-status {
    position: fixed;
    bottom: 80px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(26, 29, 58, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(92, 121, 236, 0.4);
    border-radius: 20px;
    padding: 20px 30px;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
    opacity: 0;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Add hover/active states for better feedback */
.voice-status:not(.hidden):active {
    transform: translateX(-50%) translateY(0) scale(0.98);
    background: rgba(26, 29, 58, 1);
}

.voice-status:not(.hidden) {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.voice-status.hidden {
    display: flex !important; /* Keep flex for animation */
}

.voice-status-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.voice-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voice-status-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.voice-status-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.voice-animation {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px;
    background: rgba(92, 121, 236, 0.2);
    border-radius: 12px;
}

.voice-wave {
    width: 4px;
    height: 24px;
    background: linear-gradient(to top, #5c79ec, #764ba2);
    border-radius: 4px;
    animation: voice-wave 0.8s ease-in-out infinite;
}

.voice-wave:nth-child(1) { animation-delay: 0s; }
.voice-wave:nth-child(2) { animation-delay: 0.1s; }
.voice-wave:nth-child(3) { animation-delay: 0.2s; }
.voice-wave:nth-child(4) { animation-delay: 0.3s; }
.voice-wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes voice-wave {
    0%, 100% {
        height: 8px;
        opacity: 0.5;
    }
    50% {
        height: 24px;
        opacity: 1;
    }
}

/* Logo Section - Use student-theme.css styles */
/* Force logo to display properly on survey page */
.survey-body .logo-section {
    padding: 12px 0 8px 0 !important;  /* Match index.html sizing */
    text-align: center !important;
    position: relative !important;
    z-index: 100 !important;
    display: block !important;
    width: 100% !important;
    transform: none !important;
}

.survey-body .logo-img {
    width: 40px !important;  /* Match index.html - width not height */
    height: auto !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Override hero-right background ONLY for student direct page */
.survey-body #student-direct-landing .hero-right {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Student Direct Page Layout Fix */
.survey-body #student-direct-landing.survey-section {
    position: static !important;
    padding: 40px 0 !important;
    min-height: auto !important;
    display: block !important;
    align-items: initial !important;
}

/* Ensure student page always shows */
#student-direct-landing.survey-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Submit Button Loading States */
.cta-button.futuristic-button {
    position: relative;
    overflow: hidden;
    min-width: 160px;
    transition: all 0.3s ease;
}

/* Active press state */
.cta-button.futuristic-button:active:not(:disabled) {
    transform: scale(0.98);
}

/* Loading state container */
.cta-button.futuristic-button .button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hide loader by default */
.cta-button.futuristic-button:not(.loading) .button-loader {
    display: none;
}

/* Loading state active */
.cta-button.futuristic-button.loading {
    cursor: wait;
    pointer-events: none;
    animation: subtle-glow 2s ease-in-out infinite;
}

.cta-button.futuristic-button.loading .button-text {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cta-button.futuristic-button.loading .button-loader {
    opacity: 1;
}

/* Subtle glow animation */
@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(92, 121, 236, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(92, 121, 236, 0.6);
    }
}

/* Status text for loader */
.status-text {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* Animated dots */
.status-dots {
    display: inline-flex;
    gap: 3px;
}

.status-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.status-dot:nth-child(1) { animation-delay: 0s; }
.status-dot:nth-child(2) { animation-delay: 0.2s; }
.status-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Retry mode - subtle visual hint */
.cta-button.futuristic-button.retry-mode {
    /* Just slightly dimmed version of normal state */
    opacity: 0.9;
}

.cta-button.futuristic-button.retry-mode:disabled {
    /* More dimmed when disabled */
    opacity: 0.6;
    cursor: not-allowed;
}

.cta-button.futuristic-button.retry-mode:hover:not(:disabled) {
    /* Keep the same hover behavior as normal state */
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(92, 121, 236, 0.4);
}


/* Keyboard and Touch Optimizations */
@supports (padding: env(safe-area-inset-bottom)) {
    .survey-section {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* Prevent double-tap zoom on buttons */
.survey-body .cta-button, .survey-body .secondary-button, .survey-body .voice-button, .survey-body .choice-item {
    touch-action: manipulation;
}

/* Mobile-specific fixes for survey display */
@media (max-width: 768px) {
    /* Voice status positioning for mobile */
    .voice-status {
        bottom: 140px; /* Move higher to avoid button overlap */
        bottom: calc(140px + env(safe-area-inset-bottom));
        padding: 16px 24px; /* Slightly smaller on mobile */
        min-width: 260px;
        max-width: 90vw; /* Prevent overflow on small screens */
    }
    
    .voice-status-title {
        font-size: 1rem;
    }
    
    .voice-status-subtitle {
        font-size: 0.8rem;
    }
    
    /* Add pulsing border to indicate it's tappable */
    .voice-status:not(.hidden) {
        animation: pulse-border 2s infinite;
    }
    
    @keyframes pulse-border {
        0%, 100% {
            border-color: rgba(92, 121, 236, 0.4);
        }
        50% {
            border-color: rgba(92, 121, 236, 0.8);
        }
    }
    
    /* Ensure sections work with display toggle */
    .survey-section {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    /* Hidden sections take no space */
    .survey-section.hidden {
        display: none !important;
    }
    
    /* Ensure proper spacing */
    #welcome-screen:not(.hidden) ~ #survey-container:not(.hidden),
    #survey-container:not(.hidden) ~ #completion-screen:not(.hidden) {
        margin-top: 20px;
    }
}

/* Improve focus states for accessibility */
.survey-body .answer-input-container textarea:focus,
.survey-body .form-input:focus,
.survey-body .form-select:focus {
    outline: 2px solid #5c79ec;
    outline-offset: 2px;
}

/* Handle keyboard visibility on mobile */
@media (max-height: 600px) and (max-width: 768px) {
    .survey-section {
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .survey-progress {
        padding: 10px 0;
    }
    
    .ai-response {
        display: none; /* Hide AI response when keyboard is open */
    }
}

.survey-body .how-it-works {
    position: static !important;
    z-index: auto !important;
    padding: 80px 0 !important;
    background: transparent !important;
}

/* Logo section styles removed - now handled above */

/* How It Works Section Styling for Dark Theme */
.survey-body .how-it-works .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.survey-body .how-it-works .eyebrow-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5c79ec;
    margin-bottom: 20px;
}

.survey-body .how-it-works .hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.survey-body .how-it-works .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Process Steps Container for Dark Theme - No lines */
.survey-body .process-steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 40px 0;
}

/* Remove any inherited lines */
.survey-body .process-steps-container::before,
.survey-body .process-steps-container::after {
    display: none !important;
}


.survey-body .roadmap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 3; /* Ensure circles are above the lines */
}

.survey-body .roadmap-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.6s ease;
    animation: circle-appear 0.8s ease-out forwards;
}

.survey-body .roadmap-item:nth-child(1) .roadmap-circle { animation-delay: 0.2s; }
.survey-body .roadmap-item:nth-child(2) .roadmap-circle { animation-delay: 0.6s; }
.survey-body .roadmap-item:nth-child(3) .roadmap-circle { animation-delay: 1s; }

@keyframes circle-appear {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.survey-body .roadmap-circle-inner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c79ec 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(92, 121, 236, 0.3);
}

.survey-body .roadmap-content {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: content-appear 0.8s ease-out forwards;
}

.survey-body .roadmap-item:nth-child(1) .roadmap-content { animation-delay: 0.4s; }
.survey-body .roadmap-item:nth-child(2) .roadmap-content { animation-delay: 0.8s; }
.survey-body .roadmap-item:nth-child(3) .roadmap-content { animation-delay: 1.2s; }

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

.survey-body .roadmap-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.survey-body .roadmap-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .survey-body .process-steps-container {
        flex-direction: column;
        gap: 50px;
        padding: 40px 0;
        align-items: center;
        max-width: none;
    }
    
    .survey-body .process-steps-container::before,
    .survey-body .process-steps-container::after {
        display: none;
    }
    
    .survey-body .roadmap-item {
        width: 100%;
        max-width: 300px;
    }
    
    .survey-body .roadmap-circle {
        width: 100px;
        height: 100px;
    }
    
    .survey-body .roadmap-circle-inner {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .survey-body .roadmap-description {
        max-width: 280px;
    }
    
    .survey-body .how-it-works .hero-title {
        font-size: 2rem;
    }
    
    .survey-body .how-it-works .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Sticky CTA Button - Mobile Only */
.sticky-cta-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.sticky-cta-button.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.sticky-cta-content {
    background: rgba(92, 121, 236, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(92, 121, 236, 0.5);
    border-radius: 50px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(92, 121, 236, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sticky-cta-content:hover {
    background: rgba(92, 121, 236, 1);
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(92, 121, 236, 0.6);
}

.sticky-cta-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.sticky-cta-arrow {
    font-size: 1.1rem;
    color: #ffffff;
    animation: bounce-up 2s ease-in-out infinite;
}

@keyframes bounce-up {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Show sticky button only on mobile */
@media (max-width: 768px) {
    .sticky-cta-button {
        display: block;
    }
}

/* Enhanced Form Styling for Student Direct Page */
.survey-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.survey-body .form-group {
    position: relative;
}

.survey-body .survey-form .form-group {
    position: relative;
}

/* High specificity selectors to override base styles */
.survey-body .survey-form .form-group .survey-input,
.survey-body .survey-form .form-group .survey-select {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.survey-body .survey-form .form-group .survey-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.survey-body .survey-form .form-group .survey-select option {
    background: rgba(26, 29, 58, 0.95) !important;
    color: #ffffff !important;
    padding: 10px !important;
}

.survey-body .survey-form .form-group .survey-input:focus,
.survey-body .survey-form .form-group .survey-select:focus {
    outline: none !important;
    border-color: #5c79ec !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 25px rgba(92, 121, 236, 0.3) !important;
}

.survey-body .survey-form .form-group .survey-select {
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

/* Removed duplicate - already defined above with higher specificity */

.start-survey-btn {
    background: linear-gradient(135deg, #5c79ec 0%, #667eea 50%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 32px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(92, 121, 236, 0.3);
    margin-top: 1rem;
}

.start-survey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(92, 121, 236, 0.4);
    background: linear-gradient(135deg, #667eea 0%, #5c79ec 50%, #764ba2 100%);
}

.start-survey-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(92, 121, 236, 0.3);
}

/* Form validation states */
.survey-body .form-group .input-status {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease; /* Only transition opacity, not all */
    z-index: 10;
    pointer-events: none; /* Prevent interaction */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Only show status for text and email inputs, not selects */
.survey-body .form-group:has(select) .input-status {
    display: none !important;
}

/* Fallback for browsers without :has() support */
.survey-body .survey-select ~ .input-status {
    display: none !important;
}

.survey-body .form-group.valid .input-status {
    opacity: 1;
}

.survey-body .form-group.valid .input-status::after {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.survey-body .form-group.invalid .input-status {
    opacity: 1;
}

.survey-body .form-group.invalid .input-status::after {
    content: '✕';
    color: #ef4444;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.start-survey-btn.ready {
    box-shadow: 0 0 30px rgba(92, 121, 236, 0.6) !important;
    animation: pulse-ready 2s ease-in-out infinite;
}

@keyframes pulse-ready {
    0%, 100% {
        box-shadow: 0 0 30px rgba(92, 121, 236, 0.6) !important;
    }
    50% {
        box-shadow: 0 0 40px rgba(92, 121, 236, 0.8) !important;
    }
}

.start-survey-btn.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    animation: shake 0.5s ease-in-out;
}

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

.survey-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.4rem;
    width: 24px;
    text-align: center;
}

/* Futuristic Button */
.futuristic-button {
    background: linear-gradient(135deg, #5c79ec 0%, #667eea 50%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.futuristic-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 121, 236, 0.4);
}

.futuristic-button .button-text {
    position: relative;
    z-index: 2;
}

.futuristic-button .button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.futuristic-button.loading .button-text {
    opacity: 0;
}

.futuristic-button.loading .button-loader {
    opacity: 1;
}

.loader-ring {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* CTA Button Alias - Scoped to survey pages */
.survey-body .cta-button {
    background: linear-gradient(135deg, #5c79ec 0%, #667eea 50%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.survey-body .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 121, 236, 0.4);
}

/* Student Direct Landing Page Styles */
.survey-body .hero-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

/* Enhanced Form Design */
.survey-body .form-card {
    position: relative;
    overflow: hidden;
}

.survey-body .form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.free-badge {
    display: inline-block;
    background: linear-gradient(90deg, #10b981, #059669);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

/* Content Enhancement */
.problem-highlight {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.solution-highlight {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.bad-topics {
    margin: 1rem 0;
}

.bad-topics li {
    padding: 0.5rem 0;
    border-left: 3px solid #ef4444;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.survey-body .hero-left {
    padding-right: 1rem;
}

.survey-body .hero-right {
    position: sticky;
    top: 2rem;
}

.survey-body .eyebrow-text {
    color: #a855f7;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.survey-body .hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.survey-body .hero-subtitle {
    font-size: 1.3rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.survey-body .content-section {
    margin-top: 2rem;
}

.survey-body .content-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.survey-body .topic-list {
    margin: 1.5rem 0 2rem 1.2rem;
    list-style-type: disc;
    color: #cbd5e1;
}

.survey-body .topic-list li {
    margin-bottom: 0.5rem;
}

.survey-body .bad-topic {
    color: #f87171;
}

.survey-body .warning-text {
    color: #fbbf24;
}

.survey-body .success-text {
    color: #10b981;
}

.student-stats-card {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.stats-title {
    color: #a855f7;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    color: #10b981;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.form-card {
    max-width: 500px;
    margin: 0;
}

.form-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.form-subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.student-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.survey-body .form-input, .survey-body .form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px; /* Prevents iOS zoom */
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-appearance: none;
}

.survey-body .form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.survey-body .form-select option {
    background: #1a1d3a;
    color: #ffffff;
}

.survey-body .form-input:focus, .survey-body .form-select:focus {
    outline: none;
    border-color: #5c79ec;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 25px rgba(92, 121, 236, 0.3);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.survey-body .footer-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.trust-indicators {
    background: rgba(15, 23, 42, 0.3);
    padding: 4rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: 3rem;
}

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

.trust-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.trust-stat {
    padding: 1.5rem;
}

.trust-stat-number {
    color: #10b981;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.trust-stat-label {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.4;
}

.testimonial-quote {
    color: #94a3b8;
    font-style: italic;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .survey-section {
        padding: 80px 20px 30px;
        padding-top: calc(40px + env(safe-area-inset-top));
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
        min-height: 100vh;
        min-height: 100dvh;
    }

    .survey-card {
        padding: 15px; /* Further reduced padding on mobile */
        margin: 0 auto;
        max-width: 100%;
        border-radius: 16px; /* Slightly smaller radius on mobile */
        width: 100%;
    }

    .welcome-card {
        max-width: none;
    }

    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .welcome-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .welcome-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .question-area h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .answer-input-container textarea {
        padding: 16px;
        min-height: 140px;
        font-size: 16px; /* Critical for iOS */
    }

    .survey-actions {
        flex-direction: column-reverse;
        gap: 12px;
        margin-top: 20px;
    }
    
    .survey-actions .voice-button.large,
    .survey-actions .cta-button {
        width: 100%;
    }

    .secondary-button {
        flex: 1;
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .futuristic-button {
        flex: 2;
        justify-content: center;
        padding: 14px 20px;
    }

    .completion-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .processing-status {
        padding: 20px;
    }

    .floating-particles {
        display: none; /* Hide particles on mobile to prevent overflow */
    }
    
    /* Ensure no horizontal scroll */
    .survey-body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Fix any elements that might cause overflow */
    .survey-card,
    .welcome-card,
    .completion-card {
        max-width: calc(100vw - 40px); /* Account for padding */
    }

    /* Student Direct Mobile Styles */
    .hero-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-left {
        padding-right: 0;
        order: 2;
    }

    .hero-right {
        position: static;
        order: 1;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .content-text {
        font-size: 1rem;
    }

    /* Enhanced mobile form styles */
    .form-card {
        padding: 25px 20px;
        margin: 0 10px;
    }

    .enhanced-input, .enhanced-select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Fix survey form inputs on mobile */
    .survey-body .survey-input,
    .survey-body .survey-select {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        -webkit-appearance: none !important;
    }
    
    .survey-body .survey-select option {
        background: #1a1d3a !important;
        color: #ffffff !important;
    }
    
    .survey-body .survey-input::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }

    .input-group {
        margin-bottom: 1.2rem;
    }

    .enhanced-submit {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .free-badge {
        display: block;
        margin: 8px auto 0;
        text-align: center;
    }

    .problem-highlight, .solution-highlight {
        padding: 1rem;
        margin: 1rem 0;
    }

    .welcome-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Disable hover effects on mobile */
    .input-group:focus-within {
        transform: none;
    }

    .enhanced-submit:hover {
        transform: none;
    }

    .student-stats-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }

    .trust-indicators {
        padding: 3rem 0;
    }

    .trust-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    .trust-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .trust-stat-number {
        font-size: 2.5rem;
    }

    .trust-stat-label {
        font-size: 1rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .survey-card {
        padding: 25px 20px;
        margin: 0 auto;
        border-radius: 16px;
    }

    .welcome-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .welcome-content p {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .question-area h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .question-context {
        font-size: 0.95rem;
    }

    .input-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
    }

    .voice-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .character-count {
        font-size: 0.8rem;
    }

    /* Student Direct Small Mobile Styles */
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .student-stats-card {
        padding: 1rem;
    }

    .stats-title {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .form-subtitle {
        font-size: 0.95rem;
    }

    .survey-body .form-input, .survey-body .form-select {
        padding: 14px 16px;
        font-size: 16px; /* Critical for iOS */
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .trust-title {
        font-size: 1.5rem;
    }

    .trust-stat-number {
        font-size: 2rem;
    }

    .testimonial-quote {
        font-size: 0.95rem;
    }
}

/* How It Works Section - Scoped to survey pages */
.survey-body .how-it-works {
    background: rgba(15, 23, 42, 0.5);
    padding: 6rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.survey-body .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.survey-body .section-header .eyebrow-text {
    margin-bottom: 1rem;
}

.survey-body .section-header .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.survey-body .section-header .hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.survey-body .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.survey-body .process-step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.survey-body .process-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(92, 121, 236, 0.2);
}

.survey-body .step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c79ec 0%, #667eea 50%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: pulse-step 3s ease-in-out infinite;
}

.survey-body .step-number {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

@keyframes pulse-step {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(92, 121, 236, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(92, 121, 236, 0);
    }
}

.survey-body .step-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.survey-body .step-description {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

.survey-body .trust-indicator {
    text-align: center;
    padding: 2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.survey-body .trust-text {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Student Footer */
.student-footer {
    background: rgba(10, 15, 30, 0.9);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
}

.survey-body .footer-content {
    text-align: center;
}

.survey-body .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 2rem;
    background: none !important;
    border: none !important;
}

.survey-body .footer-mission {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.survey-body .footer-legal {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.survey-body .footer-links {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.survey-body .footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.survey-body .footer-links a:hover {
    color: #5c79ec;
}

/* Mobile Responsive for New Sections */
@media (max-width: 768px) {
    .survey-body .how-it-works {
        padding: 4rem 0;
    }
    
    .survey-body .section-header .hero-title {
        font-size: 1.8rem;
    }
    
    .survey-body .section-header .hero-subtitle {
        font-size: 1rem;
    }
    
    .survey-body .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .survey-body .process-step {
        padding: 1.5rem;
    }
    
    .survey-body .step-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .survey-body .step-number {
        font-size: 1.5rem;
    }
    
    .survey-body .step-title {
        font-size: 1.2rem;
    }
    
    .survey-body .step-description {
        font-size: 0.95rem;
    }
    
    .survey-body .trust-text {
        font-size: 1rem;
    }
    
    .student-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-mission {
        font-size: 0.95rem;
    }
}

/* CRITICAL FIX: Webkit autofill styles that cause white backgrounds on mobile */
.survey-body input:-webkit-autofill,
.survey-body input:-webkit-autofill:hover,
.survey-body input:-webkit-autofill:focus,
.survey-body input:-webkit-autofill:active,
.survey-body select:-webkit-autofill,
.survey-body select:-webkit-autofill:hover,
.survey-body select:-webkit-autofill:focus,
.survey-body select:-webkit-autofill:active,
.survey-body textarea:-webkit-autofill,
.survey-body textarea:-webkit-autofill:hover,
.survey-body textarea:-webkit-autofill:focus,
.survey-body textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff !important;
}

/* iOS Safari specific fixes for white background issue */
@supports (-webkit-touch-callout: none) {
    .survey-body input,
    .survey-body textarea,
    .survey-body select,
    .survey-body .survey-input,
    .survey-body .survey-select,
    .survey-body .answer-input-container textarea {
        background-color: rgba(255, 255, 255, 0.08) !important;
        -webkit-appearance: none !important;
        -webkit-text-fill-color: #ffffff !important;
        color: #ffffff !important;
    }
}

/* Force dark background on ALL form inputs to prevent white backgrounds */
.survey-body input[type="text"],
.survey-body input[type="email"],
.survey-body input[type="tel"],
.survey-body input[type="number"],
.survey-body input[type="password"],
.survey-body select,
.survey-body textarea.survey-input,
.survey-body .survey-input,
.survey-body .survey-select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Specific mobile overrides with maximum specificity */
@media screen and (max-width: 768px) {
    body.survey-body input[type="text"],
    body.survey-body input[type="email"],
    body.survey-body input[type="tel"],
    body.survey-body input[type="number"],
    body.survey-body input[type="password"],
    body.survey-body select,
    body.survey-body textarea,
    body.survey-body .survey-input,
    body.survey-body .survey-select {
        background-color: rgba(255, 255, 255, 0.08) !important;
        background-image: none !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Double-ensure on focus state */
    body.survey-body input[type="text"]:focus,
    body.survey-body input[type="email"]:focus,
    body.survey-body input[type="tel"]:focus,
    body.survey-body input[type="number"]:focus,
    body.survey-body input[type="password"]:focus,
    body.survey-body select:focus,
    body.survey-body textarea:focus,
    body.survey-body .survey-input:focus,
    body.survey-body .survey-select:focus {
        background-color: rgba(255, 255, 255, 0.12) !important;
        background-image: none !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border-color: #5c79ec !important;
    }
    
    /* Fix for iOS specifically */
    body.survey-body input,
    body.survey-body select,
    body.survey-body textarea {
        -webkit-user-select: text !important;
        user-select: text !important;
    }
    
    /* SPECIFIC iOS fix for the survey textarea - match input styling */
    .survey-body .answer-input-container textarea#answer-text {
        background-color: rgba(255, 255, 255, 0.1) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        outline: none !important;
    }
    
}

/* One more attempt - iOS 15+ specific hack using supports */
@supports (-webkit-touch-callout: none) {
    /* iOS only */
    .survey-body textarea#answer-text,
    .survey-body .answer-input-container textarea {
        background: rgba(255, 255, 255, 0.1) !important;
        -webkit-text-fill-color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
}

/* Enhanced Validation Feedback Styles */
/* Validation feedback state */
.ai-response.validation-feedback {
    background: rgba(92, 121, 236, 0.15);
    border: 2px solid rgba(92, 121, 236, 0.4);
    animation: none;
}

/* Desktop validation feedback - smooth expansion */
@media (min-width: 769px) {
    .ai-response.validation-feedback {
        min-height: 80px;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .ai-response.validation-feedback .ai-avatar-small {
        animation: coachConcern 0.6s ease-out;
    }
    
    .ai-response.validation-feedback .ai-message {
        animation: messageFadeIn 0.4s ease-out 0.2s both;
    }
}

/* Mobile validation feedback - keep inline with content */
@media (max-width: 768px) {
    .ai-response.validation-feedback {
        /* Keep the default relative positioning */
        position: relative;
        margin-bottom: 20px;
        /* Subtle visual emphasis without modal effect */
        box-shadow: 0 4px 15px rgba(92, 121, 236, 0.2);
    }
}

/* Coach concern animation */
@keyframes coachConcern {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(0.9) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Message fade in */
@keyframes messageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile slide up bounce */
@keyframes slideUpBounce {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Feedback pulse - removed old animation */
@keyframes feedbackPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(92, 121, 236, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(92, 121, 236, 0.4);
    }
}

.feedback-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-message {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}

.feedback-action-btn {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feedback-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Answer Field Validation States */
.answer-input-container.needs-improvement {
    position: relative;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.survey-input.validation-highlight {
    border-color: rgba(92, 121, 236, 0.5) !important;
    background: rgba(92, 121, 236, 0.05);
    box-shadow: 0 0 0 3px rgba(92, 121, 236, 0.1);
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        border-color: rgba(92, 121, 236, 0.5);
    }
    50% {
        border-color: rgba(92, 121, 236, 0.8);
    }
}

/* Next Button Retry Mode */
.cta-button.retry-mode {
    /* Keep the purple gradient but add a warning border */
    background: linear-gradient(135deg, #5c79ec 0%, #764ba2 100%);
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    animation: retryPulse 2s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

.cta-button.retry-mode::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    animation: warningGlow 2s ease-in-out infinite;
}

.cta-button.retry-mode:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    border-color: rgba(239, 68, 68, 0.7);
}

@keyframes retryPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 20px 2px rgba(239, 68, 68, 0.3);
    }
}

@keyframes warningGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Mobile Responsiveness for Feedback */
@media (max-width: 768px) {
    .ai-response.validation-feedback {
        margin-bottom: 20px;
    }
    
    .feedback-action-btn {
        align-self: stretch;
        text-align: center;
    }
}

/* Additional Mobile Fixes for Student Page */
@media (max-width: 768px) {
    /* Fix white input backgrounds on mobile */
    .survey-body input[type="text"],
    .survey-body input[type="email"],
    .survey-body input[type="tel"],
    .survey-body select,
    .survey-body .survey-input,
    .survey-body .survey-select {
        background: rgba(255, 255, 255, 0.08) !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        background-image: none !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Fix alignment issues */
    .survey-body .hero-section {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
    
    .survey-body .hero-left,
    .survey-body .hero-right {
        width: 100%;
        max-width: none;
    }
    
    .survey-body .hero-left {
        margin-bottom: 30px;
    }
    
    .survey-body .survey-card {
        margin: 0;
        width: 100%;
    }
    
    /* Fix form group spacing */
    .survey-body .form-group {
        margin-bottom: 16px;
    }
    
    /* Ensure proper padding on mobile */
    .survey-body .container {
        padding: 0 15px;
    }
}

/* iOS Safari Specific Aggressive Fix */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .survey-body input:not([type="checkbox"]):not([type="radio"]),
        .survey-body select,
        .survey-body textarea {
            background: rgba(255, 255, 255, 0.08) !important;
            -webkit-appearance: none !important;
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }
        
        /* Force on focus too */
        .survey-body input:not([type="checkbox"]):not([type="radio"]):focus,
        .survey-body select:focus,
        .survey-body textarea:focus {
            background: rgba(255, 255, 255, 0.12) !important;
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }
    }
}

