/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    color: white;
}

h2 {
    font-size: 1.8rem;
    color: #2d3748;
}

h3 {
    font-size: 1.4rem;
    color: #4a5568;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    color: white;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #ffd700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 1.5rem;
    color: #ffd700;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    flex: 1;
}

/* Step Header */
.step-header {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    margin-bottom: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.step-counter {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-header h1 {
    color: #2d3748;
    font-size: 2rem;
    margin-top: 0.5rem;
}

/* Step Content */
.step-content {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 0 2rem 3rem 2rem;
    flex: 1;
}

/* Questionnaire Preview */
.questionnaire-preview {
    margin-bottom: 3rem;
}

.preview-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.step-content p {
    color: #718096;
    margin: 0;
}

/* Forms */
.questionnaire-form {
    max-width: 100%;
}

.question-group {
    margin-bottom: 3rem;
}

.question-group h2 {
    margin-bottom: 2rem;
    color: #2d3748;
}

/* Radio Options */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.radio-option {
    display: block;
    cursor: pointer;
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked+.radio-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.radio-content i {
    font-size: 1.5rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

.radio-option input[type="radio"]:checked+.radio-content i {
    color: white;
}

.option-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.option-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-top: 0.25rem;

    display: none;
}

/* Checkbox Options */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked+.checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.checkbox-option input[type="checkbox"]:checked+.checkmark::after {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Input Fields */
.input-group {
    margin-bottom: 2rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-help {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
    display: block;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.btn-generate {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 0;
}

.cta-section .btn-primary {
    font-size: 1.2rem;
    padding: 1.5rem 3rem;
    margin-bottom: 1rem;
}

.disclaimer {
    color: #718096;
    font-size: 0.9rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Privacy Notice */
.privacy-notice {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
}

.notice-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-content i {
    color: #0ea5e9;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.notice-content h3 {
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: #075985;
    margin: 0;
}

/* Results Page */
.results-header {
    text-align: center;
    padding: 2rem 0 3rem 0;
    color: white;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.results-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.results-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    flex: 1;
}

/* User Summary */
.summary-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border-left: 5px solid #667eea;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.summary-item {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Diet Plan Preview */
.plan-preview-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.meals-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.meal-preview {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.meal-preview h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.plan-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    color: #4a5568;
}

.highlight-item i {
    color: #667eea;
}

.preview-note {
    background: #fef7cd;
    color: #92400e;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Email Section */
.email-section {
    background: #f0f9ff;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
}

.email-pending h3 {
    color: #0c4a6e;
    margin-bottom: 1rem;
}

.email-success {
    color: #065f46;
}

.email-success i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.email-error {
    color: #7f1d1d;
}

.email-error i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

/* Additional Actions */
.additional-actions {
    margin-bottom: 3rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.action-item {
    text-align: center;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 15px;
}

.action-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.action-item h3 {
    margin-bottom: 0.5rem;
}

.action-item p {
    color: #718096;
    margin-bottom: 1.5rem;
}

/* Tips Section */
.tips-section {
    margin-bottom: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.tip-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.tip-item h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tip-item p {
    color: #718096;
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: white;
    margin-top: auto;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .main-content,
    .step-header,
    .step-content,
    .results-content {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: row;
        gap: 1rem;
        height: 100px;
    }

    .form-navigation .btn-secondary {
        order: 1;
    }

    .form-navigation .btn-primary {
        order: 2;
        width: 100%;
    }

    .summary-details,
    .meals-preview,
    .plan-highlights {
        grid-template-columns: 1fr;
    }

    .action-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-icon {
        font-size: 3rem;
    }

    .step-header h1 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .radio-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .radio-content i {
        margin-bottom: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Download Section Styles */
.download-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.download-card {
    text-align: center;
}

.download-header {
    margin-bottom: 2rem;
}

.download-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    display: block;
}

.download-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.download-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.download-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.download-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .download-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .download-header h3 {
        font-size: 1.5rem;
    }

    .download-header p {
        font-size: 1rem;
    }

    .download-options {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
    }
}


/* Mobile Navigation Fix for Consent Popup Overlap */
@media (max-width: 768px) {

    /* Ensure form navigation has enough space and high z-index */
    .form-navigation {
        position: relative;
        z-index: 999999 !important;
        padding: 20px 15px 100px 15px !important;
        /* Extra bottom padding */
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.95), white);
        margin-top: 30px;
    }

    /* Make buttons more prominent and touchable */
    .form-navigation .btn-primary,
    .form-navigation .btn-secondary {
        min-height: 50px !important;
        font-size: 16px !important;
        padding: 12px 20px !important;
        margin: 8px 4px !important;
        position: relative;
        z-index: 999999 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    /* Add breathing room to the main content */
    .step-content {
        padding-bottom: 120px !important;
        min-height: calc(100vh - 200px);
    }

    /* Ensure the container doesn't get cut off */
    .container {
        padding-bottom: 140px !important;
    }

    /* Style for better visual separation */
    .form-navigation::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 0;
        right: 0;
        height: 30px;
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.8));
        pointer-events: none;
    }
}

/* Additional fix for consent popups */
body {
    padding-bottom: 80px !important;
}

/* Ensure ads don't interfere with form */
.step-content .question-group {
    margin-bottom: 40px !important;
}

<style>

/* General Mobile Optimizations */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header and Progress Bar */
.step-header {
    padding: 15px 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.step-header .progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.step-header .progress-fill {
    height: 100%;
    background-color: #4CAF50;
    /* Green color, adjust if needed */
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
}

.step-header .step-info {
    margin-bottom: 10px;
}

.step-header .step-counter {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.step-header h1 {
    font-size: 22px;
    margin: 0;
    line-height: 1.3;
}

.step-header .step-subtitle {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* Main Content and Form */
.main-content {
    padding: 20px 15px;
    max-width: 768px;
    /* Max width for content on larger screens */
    margin: 0 auto;
    box-sizing: border-box;
}

.questionnaire-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 100px;
    /* Space for fixed navigation */
}

.question-group {
    margin-bottom: 20px;
}

/* Option Styling (Radio/Checkbox) */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Reduced gap */
    justify-content: center;
    /* Center options */
}

.radio-option,
.checkbox-option {
    flex: 1 1 calc(50% - 10px);
    /* Two columns on mobile, adjust as needed */
    max-width: calc(50% - 10px);
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    /* Reduced padding */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    min-height: 70px;
    /* Ensure consistent height */
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-option input[type="radio"]:checked+.radio-content,
.checkbox-option input[type="checkbox"]:checked+.checkmark {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    /* Light green background */
}

.radio-option input[type="radio"]:checked+.radio-content {
    border: 2px solid #4CAF50;
    background-color: #e8f5e9;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.radio-content i {
    font-size: 28px;
    /* Smaller icons */
    margin-bottom: 5px;
    color: #666;
}

.radio-option input[type="radio"]:checked+.radio-content i {
    color: #4CAF50;
}

.option-title {
    font-weight: bold;
    font-size: 15px;
    /* Smaller title */
    margin-bottom: 3px;
}

.option-desc {
    font-size: 12px;
    /* Smaller description */
    color: #777;
}

/* Checkbox specific styling */
.checkbox-option span {
    font-size: 15px;
    margin-left: 10px;
}

.checkbox-option .checkmark {
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.checkbox-option input[type="checkbox"]:checked+.checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-option input[type="checkbox"]:checked+.checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Input Group Styling */
.input-group {
    margin-bottom: 15px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.input-help {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    display: block;
}

/* Fixed Navigation Buttons */
.form-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 1001;
    /* Higher than header and other content */
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    /* Ensure touch target size */
}

.btn-primary {
    background-color: #4CAF50;
    /* Green */
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

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

/* Demographics (Step 14) specific styles */
.demographic-option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.demographic-option {
    flex: 1 1 calc(33% - 10px);
    /* 3 columns for age/gender */
    max-width: calc(33% - 10px);
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 90px;
    /* Ensure consistent height */
    box-sizing: border-box;
}

.demographic-option.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.demographic-option i {
    font-size: 36px;
    /* Larger icons for demographics */
    margin-bottom: 8px;
    color: #666;
}

.demographic-option.selected i {
    color: #4CAF50;
}

.demographic-option span {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
}

/* Adjust for smaller screens if 3 columns are too much */
@media (max-width: 480px) {
    .demographic-option {
        flex: 1 1 calc(50% - 10px);
        /* 2 columns on very small screens */
        max-width: calc(50% - 10px);
    }
}

/* Specific input styling for height/weight */
.demographic-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

.demographic-input-group i {
    font-size: 28px;
    color: #666;
    flex-shrink: 0;
}

.demographic-input-group .form-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 5px;
    font-size: 18px;
    text-align: center;
}

.demographic-input-group .form-input:focus {
    outline: none;
}

/* Home page specific adjustments for compactness */
.hero-section h1 {
    font-size: 28px;
    /* Smaller on mobile */
}

.hero-section .hero-subtitle {
    font-size: 16px;
}

.features-grid .feature-item {
    flex: 1 1 calc(50% - 10px);
    /* 2 columns on mobile */
    max-width: calc(50% - 10px);
    padding: 10px;
}

.features-grid .feature-item i {
    font-size: 28px;
}

.features-grid .feature-item span {
    font-size: 13px;
}

.cta-section .btn-primary {
    font-size: 18px;
    padding: 15px 30px;
}

.questionnaire-preview .preview-steps .preview-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
}

.questionnaire-preview .preview-steps .step-number {
    margin-bottom: 8px;
}

.questionnaire-preview .preview-steps .step-content h3 {
    font-size: 15px;
}

.questionnaire-preview .preview-steps .step-content p {
    font-size: 12px;
}

/* Ensure no horizontal scroll on small screens */
html,
body {
    overflow-x: hidden;
}


.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #e57373;
    /* Softer red */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: none;
    z-index: 9999999;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.toast.show {
    display: block;
    opacity: 1;
}