@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1a535c;
    --secondary-color: #2b7a86;
    --accent-color: #4ecdc4;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --danger: #ff6b6b;
    --success: #10b981;
    --warning: #f59e0b;
    --border-color: #e2e8f0;

    /* Enhanced shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border radius scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Header & Navigation (Glassmorphic) */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 3px;
}

/* General Sections Spacing */
.prescription-section, .about, .health-tips, .payment-section, .contact, .bmi-section, .faq-section {
    padding: 6rem 5%;
    scroll-margin-top: 100px;
}

/* Shop Status Badge */
.shop-status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
    margin-right: auto;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.shop-status-badge.open {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.shop-status-badge.closed {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* System Status (Header) */
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
}

.system-status.open .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}
.system-status.open .status-text {
    color: #059669;
}

.system-status.closed .status-dot {
    background-color: #94a3b8;
}
.system-status.closed .status-text {
    color: #64748b;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Section (Two-Column Layout) */
.hero {
    background: var(--light-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    scroll-margin-top: 100px;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(20px);
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '+';
    position: absolute;
    top: -10%;
    right: -5%;
    font-size: 45rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.15;
    line-height: 1;
    z-index: 0;
    animation: rotateSlow 60s linear infinite;
    pointer-events: none;
}

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

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(26, 83, 92, 0.15);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: keep-all;
}

@media (max-width: 1100px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.sub-heading {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.sub-text {
    font-size: 1rem !important;
    opacity: 0.8;
    margin-bottom: 2.5rem !important;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 83, 92, 0.2);
    color: var(--white);
}

.submit-btn, .whatsapp-btn, .clear-btn {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prescription Section */
.prescription-section {
    max-width: 900px;
    margin: 0 auto;
}

.prescription-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.section-subtitle-hindi {
    text-align: center;
    color: #444;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.compliance-box.info-card {
    background: rgba(224, 242, 254, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(186, 230, 253, 0.6);
    padding: 0.8rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    color: #0369a1;
    text-align: left;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 168, 255, 0.05);
}

.compliance-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(186, 230, 253, 0.8);
}

.compliance-checkbox-wrapper input[type="checkbox"] {
    margin-top: 4px;
    min-width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.compliance-checkbox-wrapper label {
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--primary-color);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .compliance-box.info-card {
        padding: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .compliance-box.info-card h4 {
        font-size: 0.95rem;
    }
    
    .compliance-box.info-card p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .compliance-checkbox-wrapper {
        margin-top: 10px;
        padding-top: 10px;
        gap: 8px;
    }
    
    .compliance-checkbox-wrapper label {
        font-size: 0.85rem;
    }
    
    .compliance-checkbox-wrapper label span {
        font-size: 0.75rem !important;
        display: block;
        margin-top: 2px;
    }
    
    .form-actions {
        position: sticky;
        bottom: 0;
        z-index: 100;
        background: var(--white);
        padding: 15px 0;
        border-top: 1px solid var(--border-color, #edf2f7);
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.dark-mode .form-actions {
        background: #1e293b;
        border-top-color: #334155;
    }
}

@media (max-width: 600px) {
    .form-actions {
        position: static !important;
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.5rem 0 0 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        border-top: none !important;
        background: transparent !important;
    }
    
    .form-actions .btn {
        width: 100% !important;
        flex: none !important;
        min-width: 100% !important;
        padding: 1rem !important;
        font-size: 1.15rem !important;
    }
    
    #clear-btn {
        order: 3;
    }
    
    #submit-btn {
        order: 1;
    }
    
    .form-actions .whatsapp-btn {
        order: 2;
        background: linear-gradient(135deg, #25D366, #128C7E) !important;
        font-size: 1.2rem !important;
        padding: 1.2rem !important;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
    }
    
    .form-actions .whatsapp-btn:hover {
        background: linear-gradient(135deg, #128C7E, #075E54) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    }
}

.submit-btn:disabled {
    background: rgba(203, 213, 225, 0.3);
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(203, 213, 225, 0.5);
}

#clear-btn {
    background: #f8fafc;
    color: #ef4444;
    border: 1px solid #e5e7eb;
}

#clear-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 5px;
    font-weight: 500;
}

.compliance-box.info-card h4 {
    margin-bottom: 0.5rem;
    color: #0284c7;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compliance-box.info-card p {
    font-size: 0.95rem;
}

.how-it-works {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.how-it-works ol {
    margin-left: 1.5rem;
    color: var(--text-color);
}

.how-it-works ol li {
    margin-bottom: 0.5rem;
}

.prescription-container {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:focus-within label {
    color: var(--accent-color);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea,
.form-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: none;
    background: var(--light-bg);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* Step Indicator - Flexbox Column Approach */
.step-indicator {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    position: relative;
    padding-left: 3rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    opacity: 0.2;
    z-index: 1;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 1.5rem;
    width: 1rem;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.3;
    z-index: 2;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    background: var(--light-bg);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
    z-index: 3;
    position: relative;
    border: 2px solid rgba(78, 205, 196, 0.1);
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: rgba(78, 205, 196, 0.3);
}

.step-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    padding-top: 0.5rem;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.hindi-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.3;
}

.description {
    font-size: 0.85rem;
    font-weight: normal;
    color: #666;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Remove old step-line styles */
.step-line {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step-indicator {
        padding-left: 2.5rem;
        gap: 2rem;
    }
    
    .step {
        gap: 1.25rem;
    }
    
    .step::before {
        left: -2.5rem;
        width: 0.75rem;
    }
    
    .step-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .hindi-text {
        font-size: 0.85rem;
    }
    
    .description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        padding-left: 2rem;
        gap: 1.75rem;
    }
    
    .step {
        gap: 1rem;
    }
    
    .step::before {
        left: -2rem;
        width: 0.5rem;
    }
    
    .step-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }
}

.submit-btn {
    font-size: 1.1rem;
    padding: 1rem;
}

/* WhatsApp Button - Enhanced for mobile */
.whatsapp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    font-weight: 600;
    position: relative;
}

.whatsapp-btn i {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Legal Accordion */
.legal-accordion {
    margin-top: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.legal-accordion summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-accordion summary::-webkit-details-marker {
    display: none;
}

.legal-accordion summary i:first-child {
    margin-right: 10px;
    color: var(--secondary-color);
}

.legal-accordion[open] .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 0.3s ease;
}

.legal-accordion .legal-disclaimers {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.6;
}

.legal-disclaimers p {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.legal-disclaimers p:first-child {
    border-top: none;
}

.legal-disclaimers .small-text {
    color: #718096;
    font-size: 0.8rem;
    display: block;
    margin-top: 3px;
}

/* About Section */
.about {
    background: var(--white);
    text-align: center;
    padding: 5rem 2rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Heritage Icon */
.heritage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.heritage-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(78, 205, 196, 0.4);
    }
}

.about h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Heritage Year Styling */
.heritage-year {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.1em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main English Text */
.about-main-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Hindi Heading */
.hindi-heading {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* Hindi Text */
.about-hindi-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

/* Certificates Heading */
.certificates-heading {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.certificates-heading .small-text {
    font-size: 0.7em;
    color: var(--secondary-color);
    font-weight: 500;
}

.license-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.license-badge {
    background: white;
    border-left: 5px solid var(--accent-color);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.license-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.verified-icon {
    color: var(--accent-color);
    font-size: 2.2rem;
}

.license-badge p {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--primary-color);
    font-weight: 600;
}

.license-badge .small-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

/* Health Tips Section */
.health-tips {
    background: var(--light-bg);
    text-align: center;
}

.health-tips h2 {
    margin-bottom: 3rem;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    border: none;
    opacity: 0;
    transform: translateY(30px);
}

.faq-container details {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tip-card.visible,
.faq-container details.visible {
    opacity: 1;
    transform: translateY(0);
}

.tip-card.visible:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.tip-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.tip-card h3 {
    margin-bottom: 1rem;
}

/* Payment Section */
.payment-section {
    background: var(--white);
    text-align: center;
}

.payment-section h2 {
    margin-bottom: 0.5rem;
}

.payment-card {
    display: flex;
    max-width: 800px;
    margin: 3rem auto;
    background: var(--light-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
    text-align: left;
    border: 1px solid #edf2f7;
}

.qr-col {
    flex: 1;
    padding: 2.5rem;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dynamic-qr-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.qr-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #a0aec0;
}

.instructions-col {
    flex: 1.5;
    padding: 2.5rem;
}

.instructions-col h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.instructions-col ul {
    list-style: none;
}

.instructions-col ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-color);
    font-size: 0.95rem;
}

.instructions-col ul li i {
    color: var(--accent-color);
    margin-top: 4px;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* QR Container and Payment Hint */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
}

.payment-hint {
    background: rgba(78, 205, 196, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-hint i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.payment-hint p {
    margin: 0;
    font-size: 0.85rem;
    color: #4a5568;
}

.payment-hint .small-text {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Contact Section */
.contact {
    background: var(--light-bg);
    max-width: 100%;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 5rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    background: var(--light-bg);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.contact-info {
    padding: 2rem 0;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.map-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s;
}

.map-link:hover {
    color: var(--accent-color);
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 4px;
}

.map-embed {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.floating-map-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 10;
    white-space: nowrap;
}

.map-embed iframe {
    display: block;
    filter: saturate(0.8) contrast(1.05);
    width: 100%;
    height: 250px;
}

.store-hours {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.store-hours h3 {
    margin-bottom: 1rem !important;
}

/* BMI Result Status Classes */
.bmi-status-underweight {
    color: #b45309;
    background-color: #fef3c7;
    border-color: #fde68a;
}
.bmi-status-normal {
    color: #15803d;
    background-color: #dcfce7;
    border-color: #bbf7d0;
}
.bmi-status-overweight {
    color: #b45309;
    background-color: #fef3c7;
    border-color: #fde68a;
}
.bmi-status-obese {
    color: #b91c1c;
    background-color: #fee2e2;
    border-color: #fecaca;
}

/* Modern Footer */
.modern-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 5% 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-fab:hover {
    background-color: #128C7E;
    transform: scale(1.1) translateY(-5px);
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .payment-card {
        flex-direction: column;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
        gap: 2rem;
        position: relative;
    }
    
    .hero-image {
        justify-content: center;
        margin-top: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: 0.5;
    }
    
    .hero-image img {
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }
    
    .hero-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.8));
        z-index: 3;
        pointer-events: none;
    }
    
    .hero-content {
        max-width: 100%;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 3rem 2.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 5;
        margin: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    nav {
        padding: 1rem 5%;
    }

    .floating-map-btn {
        display: flex;
    }

    .logo {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 12px;
    }
    
    .logo span {
        font-size: 1.1rem !important;
        white-space: nowrap;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .system-status {
        margin: 0;
        padding: 4px 8px;
    }

    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease;
    }
    
    .nav-links.active {
        max-height: 400px;
        padding: 1.5rem 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 2.5rem;
        align-items: flex-start;
        padding-left: 1.5rem;
        padding-right: 1rem;
        position: relative;
        margin-bottom: 4rem;
    }
    
    .step-indicator::before {
        content: '';
        position: absolute;
        top: 20px;
        bottom: 20px;
        left: calc(1.5rem + 20px);
        width: 2px;
        background: var(--accent-color);
        opacity: 0.3;
        border-left: 2px dashed var(--accent-color);
        z-index: 0;
    }
    
    .step {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        position: relative;
        z-index: 1;
        padding: 0.5rem 0;
        text-align: left;
    }
    
    .step-icon {
        margin: 0 !important;
        flex-shrink: 0;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background: var(--white);
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1), 0 0 0 2px rgba(78, 205, 196, 0.1);
    }
    
    .step.active .step-icon {
        box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3), 0 0 0 3px rgba(78, 205, 196, 0.2);
    }
    
    .step-text-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }
    
    .step h3 {
        text-align: left;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 0;
        color: var(--primary-color);
    }
    
    .hindi-text {
        font-size: 0.85rem;
        color: #64748b;
        display: block;
        margin-top: 2px;
        font-weight: 500;
    }
    
    .description {
        font-size: 0.85rem;
        color: #718096;
        margin-top: 4px;
        line-height: 1.4;
        font-weight: 400;
    }
    
    .step-line {
        display: none;
    }
    
    .shop-status-badge {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
        width: 100%;
    }

    .prescription-section, .about, .health-tips, .payment-section, .contact, .bmi-section, .faq-section {
        padding: 4rem 5%;
    }
    
    .prescription-container {
        padding: 3rem 2rem !important;
    }
    
    .contact-container {
        gap: 3rem !important;
    }
    
    #contact-form {
        padding: 2.5rem 2rem !important;
    }

    .bmi-container {
        padding: 1.5rem 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .bmi-inputs-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .bmi-inputs-wrapper .form-group {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
    
    #bmi-weight, #bmi-height {
        padding-left: 2.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile Contact Section Layout Improvements */
    .contact-container {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 2.5rem !important;
    }
    
    .contact-info {
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .store-hours {
        background: var(--white);
        padding: 1.5rem !important;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        margin-bottom: 2.5rem !important;
        text-align: left;
    }
    
    .store-hours h3 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
        flex-wrap: wrap;
    }
    
    .store-hours h3 span {
        font-size: 1.15rem;
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: fit-content;
    }
    
    .shop-status-badge {
        margin: 0 !important;
        display: inline-block !important;
        width: auto !important;
        font-size: 0.75rem !important;
        padding: 0.35rem 0.7rem !important;
        flex-shrink: 0;
    }
    
    .store-hours p {
        font-size: 0.9rem;
        color: var(--text-color);
        margin: 0;
        padding-left: 0;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Contact info items styling */
    .contact-info > p {
        background: var(--white);
        padding: 1.25rem !important;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        margin-bottom: 1rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 1rem;
        font-size: 1rem;
    }
    
    .contact-info > p:last-of-type {
        margin-bottom: 2rem !important;
    }
    
    .contact-info > p i {
        font-size: 1.3rem !important;
        color: var(--accent-color) !important;
        margin: 0 !important;
        flex-shrink: 0;
        width: 24px;
        text-align: center;
    }
    
    .contact-info > p a,
    .contact-info > p span {
        flex: 1;
        word-break: break-word;
        line-height: 1.5;
    }
    
    .map-embed {
        margin-top: 0 !important;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    
    /* Mobile QR Code Scaling */
    #dynamic-qr-img {
        max-width: 90%;
        height: auto;
        width: 200px; /* Fixed width for clear scanning */
    }
    
    .qr-placeholder {
        padding: 0.8rem;
    }
    
    .qr-col {
        padding: 2rem 1rem !important; /* Give content room to breathe */
    }
    
    /* Force payment card to column layout on mobile */
    .payment-card {
        flex-direction: column !important;
    }
    
    /* Ensure QR container works well on mobile */
    .qr-container {
        gap: 1.5rem;
    }
    
    /* Adjust payment hint for mobile */
    .payment-hint {
        max-width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px !important;
    }
    
    .logo span {
        font-size: 1.1rem !important;
    }
    
    .logo i {
        font-size: 1.6rem !important;
    }
}

/* Dark Mode Variables and Overrides */
body.dark-mode {
    --primary-color: #4ecdc4;
    --secondary-color: #6edfd7;
    --text-color: #e2e8f0;
    --light-bg: #0f172a;
    --white: #1e293b;
    --accent-color: #2dd4bf;
    --border-color: #334155;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.dark-mode header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-links li a {
    color: #e2e8f0;
}

body.dark-mode .nav-links li a:hover {
    color: var(--primary-color);
}

body.dark-mode .hero-content {
    background: rgba(30, 41, 59, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

body.dark-mode .hero-content p {
    color: #e2e8f0;
}


body.dark-mode .how-it-works,
body.dark-mode .prescription-container,
body.dark-mode .tip-card,
body.dark-mode .payment-card,
body.dark-mode #contact-form,
body.dark-mode .about,
body.dark-mode .payment-section,
body.dark-mode .bmi-container {
    background: #1e293b;
    box-shadow: var(--card-shadow);
}

body.dark-mode .bmi-status-underweight,
body.dark-mode .bmi-status-overweight {
    color: #fde68a !important;
    background-color: rgba(180, 83, 9, 0.3) !important;
    border-color: rgba(180, 83, 9, 0.5) !important;
}
body.dark-mode .bmi-status-normal {
    color: #86efac !important;
    background-color: rgba(21, 128, 61, 0.3) !important;
    border-color: rgba(21, 128, 61, 0.5) !important;
}
body.dark-mode .bmi-status-obese {
    color: #fca5a5 !important;
    background-color: rgba(185, 28, 28, 0.3) !important;
    border-color: rgba(185, 28, 28, 0.5) !important;
}

/* BMI result fade-in transition */
#bmi-result {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#bmi-result.show {
    opacity: 1;
    transform: translateY(0);
}

.small-text {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 5px;
}

/* ========================================
   PHASE 1 MOBILE IMPROVEMENTS
   ======================================== */

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
    /* Ensure hamburger menu is visible and properly sized */
    .menu-toggle {
        display: flex !important;
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better mobile navigation menu */
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
        max-height: none;
    }
    
    .nav-links.active {
        display: flex !important;
        max-height: none;
    }
    
    .nav-links li {
        margin: 0;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links li a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Enhanced Button Sizes for Mobile */
    .btn {
        min-height: 56px !important;
        padding: 1rem 1.5rem !important;
        font-size: 1.05rem !important;
        font-weight: 600;
        border-radius: 14px;
        gap: 12px;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
        line-height: 1.4;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .btn i {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    /* Hero button - make it prominent */
    .hero-buttons .btn {
        width: 100%;
        min-height: 64px !important;
        font-size: 1.1rem !important;
        padding: 1rem 1.5rem !important;
        box-shadow: 0 8px 20px rgba(26, 83, 92, 0.25);
        white-space: normal !important;
        line-height: 1.4;
    }
    
    /* Form action buttons */
    .submit-btn,
    .whatsapp-btn {
        min-height: 56px !important;
        font-size: 1.2rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    #clear-btn {
        min-height: 56px !important;
        font-size: 1.1rem !important;
    }
    
    /* Enhanced Form Inputs */
    .form-group label {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: var(--primary-color);
    }
    
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 1.1rem !important;
        padding: 1.25rem !important;
        border-radius: 12px;
        min-height: 56px;
        border: 2px solid #e2e8f0;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    /* Character counter visibility */
    .char-counter {
        font-size: 1rem;
        font-weight: 600;
        margin-top: 0.75rem;
    }
    
    /* Contact form inputs */
    #contact-form input,
    #contact-form textarea {
        font-size: 1.1rem !important;
        padding: 1.25rem !important;
        min-height: 56px;
    }
    
    #contact-form textarea {
        min-height: 120px;
    }
    
    /* WhatsApp FAB - Larger and More Accessible */
    .whatsapp-fab {
        width: 64px !important;
        height: 64px !important;
        font-size: 2rem !important;
        bottom: 24px !important;
        right: 24px !important;
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
    
    .whatsapp-fab:hover {
        transform: scale(1.15) translateY(-5px);
    }
    
    /* Theme toggle button */
    #theme-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    /* Better Typography for Mobile */
    body {
        font-size: 16px;
        line-height: 1.7;
    }
    
    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.875rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.375rem;
        line-height: 1.4;
    }
    
    p, .section-subtitle {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .hindi-text, .section-subtitle-hindi {
        font-size: 1.1rem;
        font-weight: 500;
        line-height: 1.6;
    }
    
    .small-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Compliance checkbox - larger touch target */
    .compliance-checkbox-wrapper input[type="checkbox"] {
        min-width: 24px;
        height: 24px;
        margin-top: 2px;
    }
    
    .compliance-checkbox-wrapper label {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* BMI Calculator inputs */
    #bmi-weight,
    #bmi-height {
        font-size: 1.1rem !important;
        padding: 1.25rem !important;
        padding-left: 3.5rem !important;
        min-height: 56px !important;
    }
    
    /* Better section spacing */
    .prescription-section,
    .about,
    .health-tips,
    .payment-section,
    .contact,
    .bmi-section,
    .faq-section {
        padding: 4rem 1rem !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .prescription-container {
        padding: 2rem 1rem !important;
        border-radius: 20px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix container overflow issues */
    .container {
        max-width: 100%;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Fix hero buttons container */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix contact section overflow */
    .contact-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .contact-info,
    .contact-form-wrapper {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix store hours card */
    .info-card,
    .store-hours {
        max-width: 100%;
        box-sizing: border-box;
        padding: 1.5rem 1rem !important;
        margin: 0 !important;
    }
    
    .store-hours h3,
    .info-card h3 {
        font-size: 1.25rem;
        word-wrap: break-word;
    }
    
    .hours-list {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix all cards and content boxes */
    .card,
    .service-card,
    .tip-card,
    .payment-card {
        max-width: 100%;
        box-sizing: border-box;
        padding: 1.5rem 1rem !important;
    }
    
    /* Ensure all text content wraps properly */
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Legal accordion - better touch targets */
    .legal-accordion summary {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    /* FAQ accordion */
    .faq-container .legal-accordion summary {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
    }
}

/* Dark mode adjustments for new mobile styles */
body.dark-mode .nav-links {
    background: rgba(15, 23, 42, 0.98);
}

body.dark-mode .nav-links li {
    border-bottom-color: #334155;
}

/* ========================================
   PHASE 2 HIGH PRIORITY IMPROVEMENTS
   ======================================== */

/* ----------------------------------------
   4.1 Enhanced Color Palette - Dark Mode
   ---------------------------------------- */
body.dark-mode {
    --text-light: #cbd5e0;
    --success: #34d399;
    --warning: #fbbf24;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.4);
}

/* ----------------------------------------
   4.2 Button Contrast Enhancement
   ---------------------------------------- */
.btn {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(26, 83, 92, 0.25);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 83, 92, 0.35);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 83, 92, 0.25);
}

/* WhatsApp button enhanced contrast */
.whatsapp-btn {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45) !important;
}

/* Button text legibility on mobile */
@media (max-width: 768px) {
    .btn {
        font-size: 1.15rem;
        letter-spacing: 0.5px;
    }

    .submit-btn span,
    .whatsapp-btn {
        font-size: 1.2rem;
    }
}

/* ----------------------------------------
   3.1 Visual Spacing & Card Improvements
   ---------------------------------------- */

/* CSS containment for better performance */
.tip-card, .license-badge, .step {
    contain: layout style paint;
}

/* Tip card enhanced styling */
.tip-card {
    box-shadow: var(--shadow-md);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.tip-card.visible:hover {
    box-shadow: var(--shadow-xl);
}

/* License badge enhanced shadow */
.license-badge {
    box-shadow: var(--shadow-md);
}

.license-badge:hover {
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    /* Better section spacing */
    .prescription-section,
    .about,
    .health-tips,
    .payment-section,
    .contact,
    .bmi-section,
    .faq-section {
        padding: 4rem 1.5rem !important;
    }

    /* Prescription container card */
    .prescription-container {
        padding: 2rem 1.5rem !important;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-md);
    }

    /* Tip card mobile improvements */
    .tip-card {
        padding: 2rem 1.5rem !important;
        border-radius: var(--radius-lg);
        margin-bottom: 1.5rem;
        box-shadow: var(--shadow-md);
    }

    /* Hero section mobile optimization */
    .hero {
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 2rem;
        min-height: auto;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    /* Hero image comes first on mobile */
    .hero-image {
        order: -1;
        width: 100%;
    }
}

/* ----------------------------------------
   3.2 Step Indicator Mobile Optimization
   ---------------------------------------- */
@media (max-width: 768px) {
    /* Card-style steps on mobile */
    .step-indicator {
        padding-left: 0 !important;
        gap: 1.25rem !important;
        margin-bottom: 2.5rem !important;
    }

    /* Hide the vertical connector line */
    .step-indicator::before {
        display: none !important;
    }

    /* Each step becomes a card */
    .step {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        background: var(--white);
        padding: 2rem 1.5rem !important;
        border-radius: var(--radius-lg) !important;
        box-shadow: var(--shadow-md) !important;
        gap: 0.75rem !important;
        border: 1px solid var(--border-color);
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .step:hover {
        box-shadow: var(--shadow-lg) !important;
        transform: translateY(-2px);
    }

    /* Hide the horizontal connector tick */
    .step::before {
        display: none !important;
    }

    /* Larger step icon on mobile */
    .step-icon {
        width: 4rem !important;
        height: 4rem !important;
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
        background: linear-gradient(135deg, rgba(78, 205, 196, 0.12), rgba(43, 122, 134, 0.08)) !important;
        border: 2px solid rgba(78, 205, 196, 0.25) !important;
        box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15) !important;
    }

    /* Step text centered */
    .step-text-content {
        align-items: center !important;
        text-align: center !important;
        gap: 0.4rem !important;
        padding-top: 0 !important;
    }

    .step h3 {
        text-align: center !important;
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .hindi-text {
        font-size: 1rem !important;
        text-align: center !important;
        margin-bottom: 0.25rem !important;
        color: var(--secondary-color) !important;
    }

    .description {
        font-size: 0.95rem !important;
        text-align: center !important;
        color: var(--text-light) !important;
        line-height: 1.5 !important;
    }
}

/* ----------------------------------------
   WhatsApp FAB Prominence Enhancement
   ---------------------------------------- */
.whatsapp-fab {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
    background: linear-gradient(135deg, #128C7E, #075E54) !important;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55) !important;
    transform: scale(1.12) translateY(-4px) !important;
}

@media (max-width: 768px) {
    .whatsapp-fab {
        width: 64px !important;
        height: 64px !important;
        font-size: 2rem !important;
        bottom: 24px !important;
        right: 24px !important;
        box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5) !important;
    }
}

/* ----------------------------------------
   Dark Mode Step Card Adjustments
   ---------------------------------------- */
@media (max-width: 768px) {
    body.dark-mode .step {
        background: #1e293b;
        border-color: #334155;
    }

    body.dark-mode .step-icon {
        background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(43, 122, 134, 0.1)) !important;
        border-color: rgba(78, 205, 196, 0.3) !important;
    }
}

/* ----------------------------------------
   8.2 Viewport Height Fix for Mobile
   ---------------------------------------- */
:root {
    --vh: 1vh;
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(var(--vh, 1vh) * 80);
    }
}

/* ----------------------------------------
   Reduced Motion Accessibility
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PHASE 3 IMPROVEMENTS
   ======================================== */

/* ----------------------------------------
   6.2 Focus Indicators & Skip Link
   ---------------------------------------- */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0 0 8px 0;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Enhanced focus indicators for all interactive elements */
*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(78, 205, 196, 0.2);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.35);
    border-color: var(--accent-color);
}

.nav-links li a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ----------------------------------------
   5.2 Feedback Animations & Loading States
   ---------------------------------------- */

/* Success feedback animation */
@keyframes successPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.success-feedback {
    animation: successPulse 0.5s ease;
    background: #d1fae5 !important;
    border: 2px solid #10b981 !important;
    color: #065f46 !important;
}

/* Spinner for loading states */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.spinner {
    animation: spin 0.9s linear infinite;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Button loading state */
.btn.loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

/* ----------------------------------------
   9.2 Scroll Progress Indicator
   ---------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    z-index: 10001;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* Dark mode scroll progress */
body.dark-mode .scroll-progress {
    background: linear-gradient(90deg, var(--accent-color), #4ecdc4);
}

/* ========================================
   PHASE 4 IMPROVEMENTS (Nice to Have)
   ======================================== */

/* ----------------------------------------
   7.2 CSS Optimization & Performance
   ---------------------------------------- */

/* CSS Containment for better performance */
.tip-card,
.license-badge,
.step,
.payment-card,
.legal-accordion {
    contain: layout style paint;
}

/* Optimize animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------
   Advanced Animations
   ---------------------------------------- */

/* Smooth fade-in animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for cards */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bounce animation for interactive elements */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow animation for important elements */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(78, 205, 196, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
    }
}

/* Shimmer loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Apply fade-in animation to main sections */
main > section {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animations for tip cards */
.tip-card {
    animation: slideInLeft 0.5s ease-out;
}

.tip-card:nth-child(2) {
    animation-delay: 0.1s;
}

.tip-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Bounce animation for WhatsApp FAB */
.whatsapp-fab {
    animation: bounce 2s infinite;
}

/* Glow effect on hover for buttons */
.btn:hover {
    animation: glow 1.5s ease-in-out infinite;
}

/* Smooth transitions for interactive elements */
.btn,
.nav-links li a,
.tip-card,
.step,
.legal-accordion summary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------
   Image Optimization Styles
   ---------------------------------------- */

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Picture element optimization */
picture {
    display: block;
}

/* ----------------------------------------
   Performance Optimizations
   ---------------------------------------- */

/* Use will-change sparingly for animations */
.whatsapp-fab {
    will-change: transform;
}

/* Optimize scrolling performance */
.scroll-progress {
    will-change: width;
}

/* GPU acceleration for smooth animations */
.btn,
.tip-card,
.step {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ----------------------------------------
   Interactive Prescription Steps
   ---------------------------------------- */

/* Style for interactive step links */
.step-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

/* Hover effect for interactive steps */
.step-link:hover {
    background-color: rgba(78, 205, 196, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.15);
}

/* Active/focus state for accessibility */
.step-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Mobile-friendly touch target */
@media (max-width: 768px) {
    .step-link {
        padding: 0.75rem;
    }
    
    .step-link:active {
        background-color: rgba(78, 205, 196, 0.15);
        transform: translateY(-2px);
    }
}

/* Contact form phone input validation styling */
#contact-phone {
    transition: all 0.3s ease;
}

#contact-phone:valid {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.05);
}

#contact-phone:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
    background-color: rgba(255, 107, 107, 0.05);
}
