/* Custom styles for NutriQuick - Dark Dream State Theme */

/* Dark theme base */
:root {
    --bg-dark: #0a0a0a;
    --bg-dark-secondary: #121212;
    --bg-dark-tertiary: #1a1a1a;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* Dream state food hero section */
.food-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0f1a 50%, #0a0f1a 100%);
    overflow: hidden;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .food-hero {
        min-height: 70vh;
        padding: 4rem 2rem;
    }
}

/* Ensure hero stays centered on all screen sizes */
@media (min-width: 640px) {
    .food-hero {
        padding: 3rem 2rem;
    }
}

@media (min-width: 1024px) {
    .food-hero {
        padding: 4rem 2rem;
    }
}

.food-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.food-hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: blur(2px);
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.food-hero:hover .food-hero-image {
    transform: scale(1.15);
}

.food-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.food-hero-content h1,
.food-hero-content p {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Force center alignment - override any inherited styles */
.food-hero-content h1.gradient-text,
.food-hero-content p.text-gray-300 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure parent container centers content */
.food-hero {
    text-align: center;
}

.food-hero > * {
    text-align: center;
}

/* Prevent any left/right alignment issues */
.food-hero-content * {
    text-align: inherit;
}

.food-hero-content h1,
.food-hero-content p {
    text-align: center !important;
}

/* Floating decorative icons */
.hero-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatIcon 8s ease-in-out infinite;
    filter: blur(1px);
}

.floating-icon.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    font-size: 2.5rem;
}

.floating-icon.icon-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 2s;
    font-size: 1.8rem;
}

.floating-icon.icon-4 {
    top: 50%;
    right: 10%;
    animation-delay: 3s;
    font-size: 2.2rem;
}

.floating-icon.icon-5 {
    bottom: 20%;
    right: 20%;
    animation-delay: 4s;
    font-size: 1.5rem;
}

.floating-icon.icon-6 {
    top: 30%;
    left: 5%;
    animation-delay: 5s;
    font-size: 2rem;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(10deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) translateX(-15px) rotate(-5deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(8deg);
        opacity: 0.2;
    }
}

/* Feature badges */
.feature-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    min-width: 100px;
}

.feature-badge:hover {
    transform: translateY(-4px);
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .feature-badge {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .feature-text {
        font-size: 0.65rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
        opacity: 0.1;
    }
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Ensure text stays centered at all screen sizes */
@media (min-width: 1024px) {
    .food-hero-content {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .food-hero-content h1,
    .food-hero-content p {
        max-width: 100%;
        text-align: center;
    }
}

@media (min-width: 1536px) {
    .food-hero-content {
        max-width: 1400px;
    }
}

/* Floating animation for dream state */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.dream-state-food {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.dream-state-food img {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 0.5rem;
}

.dream-state-food:hover img {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 25px 50px rgba(139, 92, 246, 0.3));
}

/* Responsive image styling */
@media (max-width: 768px) {
    .dream-state-food img {
        max-width: 200px;
        max-height: 250px;
    }
    
    .food-hero {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .food-hero-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .scroll-indicator {
        margin-top: 1rem;
    }
}

/* Desktop full-screen alignment fixes */
@media (min-width: 1280px) {
    .food-hero-content {
        padding: 3rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .food-hero-content h1 {
        font-size: 4rem;
        line-height: 1.1;
        text-align: center !important;
        margin: 0 auto 1rem auto;
    }
    
    .food-hero-content p {
        font-size: 1.5rem;
        max-width: 800px;
        text-align: center !important;
        margin: 0 auto;
    }
}

@media (min-width: 1920px) {
    .food-hero-content {
        max-width: 1600px;
        padding: 4rem 3rem;
        margin: 0 auto;
    }
    
    .food-hero-content h1 {
        font-size: 5rem;
        text-align: center !important;
        margin: 0 auto 1rem auto;
    }
    
    .food-hero-content p {
        font-size: 1.75rem;
        max-width: 900px;
        text-align: center !important;
        margin: 0 auto;
    }
}

/* Ultra-wide screen support */
@media (min-width: 2560px) {
    .food-hero-content {
        max-width: 1800px;
    }
    
    .food-hero-content h1 {
        font-size: 5.5rem;
    }
    
    .food-hero-content p {
        font-size: 2rem;
        max-width: 1000px;
    }
}

/* Welcome page specific styles */
.welcome-cta {
    position: relative;
    overflow: hidden;
}

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

.welcome-cta:hover::before {
    left: 100%;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Trust badge styling */
.trust-badge {
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
}

/* Welcome page image gallery */
.welcome-gallery img {
    aspect-ratio: 1;
    object-fit: cover;
}

/* Benefit card images */
.benefit-image {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.benefit-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(139, 92, 246, 0.3));
}

/* ============================================
   USABILITY & ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Touch targets - minimum 44x44px for mobile */
a, button, input[type="radio"], input[type="checkbox"], label {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure clickable areas are large enough */
label {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.3);
    tap-highlight-color: rgba(16, 185, 129, 0.3);
}

/* Focus indicators for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-green);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-green);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Prevent text size adjustment on iOS */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Improve readability */
body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Ensure all containers respect boundaries */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent layout breakage during resize */
.container, .max-w-2xl, .max-w-4xl, .max-w-5xl, .max-w-6xl {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .container, .max-w-2xl, .max-w-4xl, .max-w-5xl, .max-w-6xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Ensure forms don't overflow */
form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Grid stability during resize */
.grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Flex container stability */
.flex {
    min-width: 0;
    flex-wrap: wrap;
}

/* Prevent text overflow */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Container max-widths for readability */
.container-readable {
    max-width: 75ch;
}

/* Responsive typography */
@media (max-width: 640px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Welcome page gallery */
    .welcome-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .welcome-gallery img {
        height: 150px;
    }
    
    .benefit-image {
        width: 100px;
        height: 100px;
    }
    
    /* Increase touch target sizes */
    button, a.button, .store-card, .product-card {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    /* Better spacing on mobile */
    section {
        padding: 2rem 1rem;
    }
    
    /* Stack elements vertically on mobile */
    .flex-row-mobile-stack {
        flex-direction: column;
    }
    
    /* Reduce animation on mobile for performance */
    .dream-state-food {
        animation-duration: 8s;
    }
    
    /* Prevent hover effects on touch devices */
    @media (hover: none) {
        .hover\:scale-105:hover {
            transform: none;
        }
        
        button:hover, a:hover {
            transform: none;
        }
    }
}

/* Desktop-specific improvements */
@media (min-width: 1024px) {
    /* Better use of space on desktop */
    .max-w-6xl {
        max-width: 72rem;
    }
    
    /* Hover effects only on desktop */
    @media (hover: hover) {
        .hover-lift:hover {
            transform: translateY(-4px);
        }
    }
    
    /* Better line length for readability */
    p {
        max-width: 65ch;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    section {
        padding: 3rem 2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dark-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    button, a.button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .dream-state-food {
        animation: none;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Loading states */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Error states */
.error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* Success states */
.success {
    border-color: rgba(16, 185, 129, 0.5) !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Smooth transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effects - Dark theme */
.store-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

.store-card.selected {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Button animations */
button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Form inputs focus - Dark theme */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--accent-green);
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--accent-green);
}

input, select, textarea {
    background: rgba(18, 18, 18, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* Perfect alignment for radio buttons and checkboxes */
input[type="radio"],
input[type="checkbox"] {
    /* Remove default browser styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Perfect centering */
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
    
    /* Consistent sizing */
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    min-height: 1.25rem;
    
    /* Perfect vertical alignment */
    vertical-align: middle;
    position: relative;
    top: 0;
    transform: none;
}

/* Radio button styling */
input[type="radio"] {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(18, 18, 18, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="radio"]:checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

input[type="radio"]:hover {
    border-color: var(--accent-green);
}

/* Checkbox styling */
input[type="checkbox"] {
    border-radius: 0.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(18, 18, 18, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

input[type="checkbox"]:checked {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

input[type="checkbox"]:hover {
    border-color: var(--accent-purple);
}

/* Form label container - perfect alignment */
label.flex.items-center {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    align-content: center;
    flex-wrap: nowrap;
}

/* Ensure text is perfectly aligned */
label.flex.items-center span {
    flex: 1;
    align-self: center;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* Prevent layout shift during resize */
.form-container {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive grid that maintains alignment */
.grid.grid-cols-1.md\:grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Prevent text wrapping issues */
label.flex.items-center {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure consistent spacing */
label.flex.items-center input[type="radio"],
label.flex.items-center input[type="checkbox"] {
    margin-right: 0;
    flex-shrink: 0;
}

/* Responsive text */
@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .product-card {
        padding: 1rem;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Glow effect for dream state */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

/* Nutrient badge styling - Dark theme */
.nutrient-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.125rem;
    backdrop-filter: blur(10px);
}

/* Error message styling - Dark theme */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

/* Success message styling - Dark theme */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

/* Dark card styling */
.dark-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Form container stability */
#onboarding-container,
#onboarding-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Ensure space-y works correctly */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-2 {
    width: 100%;
    box-sizing: border-box;
}

/* Text colors for dark theme */
.text-dark-primary {
    color: var(--text-light);
}

.text-dark-muted {
    color: var(--text-muted);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center !important;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.2;
    padding-bottom: 0.1em;
    overflow: visible;
}

/* Ensure gradient text stays centered */
.food-hero-content .gradient-text {
    display: block;
    text-align: center !important;
    margin: 0 auto;
    width: 100%;
    line-height: 1.2;
    padding-bottom: 0.15em;
    overflow: visible;
}

