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

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* HomeoShip Header Styles */
.homeoship-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #3498db;
}

.logo-text {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

.logo-link:hover .logo-text {
    color: #3498db;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: default;
    display: inline-block;
    position: relative;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: default;
}

/* Nested Dropdown */
.nested-dropdown {
    position: relative;
}

.nested-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.nested-dropdown:hover .nested-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nested-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: default;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.return-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
    border: none;
    cursor: pointer;
}

.return-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.return-icon {
    font-size: 1rem;
    display: inline-block;
}

.return-text {
    display: inline;
}

.return-text-mobile {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Page Title Section */
.page-title-section {
    background: #f8f9fa;
    padding: 1.5rem 0 0.5rem 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0.5rem;
    width: 100%;
}

.page-title-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: #999;
}

.current {
    color: #666;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 0.25rem auto;
    text-align: center;
}

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

/* Form Mode Toggle Styles */
.form-mode-toggle-container {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem;
    margin: 0.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.form-mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.toggle-label-left,
.toggle-label-right {
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
    transition: color 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.toggle-label-left {
    color: #3498db;
}

.toggle-label-right {
    color: #27ae60;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    margin: 0;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
}

.toggle-switch input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
    pointer-events: auto;
    z-index: 5;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

.toggle-switch input:checked:hover + .toggle-slider {
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.4);
}

.mode-description {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    max-width: 600px;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.mode-description span {
    display: inline-block;
}

/* Optional Field Styles */
.optional-field {
    transition: opacity 0.3s ease, height 0.3s ease;
}

/* Quick Mode Form Styles */
.quick-mode-form {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.quick-form-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.quick-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.quick-form-actions .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.required-star {
    color: #e53e3e;
    font-weight: 600;
    margin-left: 0.25rem;
}

.field-hint {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.detailed-mode-form {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

@media (max-width: 768px) {
    .form-mode-toggle-container {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .toggle-switch-wrapper {
        gap: 0.75rem;
    }
    
    .toggle-label-left,
    .toggle-label-right {
        font-size: 0.85rem;
        min-width: 50px;
    }
    
    .toggle-switch {
        width: 52px;
        height: 28px;
    }
    
    .toggle-slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }
    
    .mode-description {
        font-size: 0.85rem;
    }
}


/* Compact Progress Indicator */
.progress-container-compact {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.progress-steps-compact {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.step-indicator-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
    flex: 1;
    min-width: 0;
}

.step-indicator-compact:hover {
    background: #f8f9fa;
}

.step-indicator-compact.active {
    background: #e3f2fd;
}

.step-indicator-compact.completed {
    background: #e8f5e8;
}

.step-number-compact {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.step-indicator-compact.active .step-number-compact {
    background: #3498db;
    color: #ffffff;
}

.step-indicator-compact.completed .step-number-compact {
    background: #28a745;
    color: #ffffff;
}

.step-label-compact {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.step-indicator-compact.active .step-label-compact {
    color: #3498db;
    font-weight: 600;
}

.step-indicator-compact.completed .step-label-compact {
    color: #28a745;
}

/* Legacy Progress Indicator (keeping for compatibility) */
.progress-container {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.progress-text {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 20%;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    flex: 1;
}

.step-indicator:hover {
    background: #f8f9fa;
}

.step-indicator.active {
    background: #e3f2fd;
}

.step-indicator.completed {
    background: #e8f5e8;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: #3498db;
    color: #ffffff;
}

.step-indicator.completed .step-number {
    background: #28a745;
    color: #ffffff;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.step-indicator.active .step-label {
    color: #3498db;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #28a745;
}

/* Main Content */
.main-content {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

/* Ensure first step is visible by default */
#step1 {
    display: block;
}

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

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.step-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: inline-block;
}

.step-header p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
    color: #2c3e50;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Assessment Grid */
.assessment-grid {
    display: grid;
    gap: 1.5rem;
}

/* Simple Mental Assessment */
.mental-assessment-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mental-options-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.mental-option-simple {
    position: relative;
    flex: 0 0 auto;
}

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

.mental-option-simple label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #475569;
    font-size: 0.85rem;
    white-space: nowrap;
}

.mental-option-simple label svg {
    flex-shrink: 0;
}

.mental-option-simple label:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.mental-option-simple input[type="checkbox"]:checked + label {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Legacy Mental Assessment Container */
.mental-assessment-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mental-category {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mental-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}


.category-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.mental-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mental-option {
    position: relative;
}

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

.mental-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #475569;
    min-height: 60px;
}

.mental-option label:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.mental-option input[type="checkbox"]:checked + label {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.mental-option input[type="checkbox"]:checked + label .option-icon {
    transform: scale(1.1);
}

.option-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.option-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.stress-category {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.stress-category .category-header {
    border-bottom-color: #f59e0b;
}

.stress-category .category-header h3 {
    color: #92400e;
}

.stress-category .category-header p {
    color: #a16207;
}

.stress-selector {
    margin-top: 1rem;
}

.stress-selector select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    color: #92400e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stress-selector select:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.stress-selector select:hover {
    border-color: #d97706;
    transform: translateY(-1px);
}

/* Checkbox Group (Legacy) */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
    background-color: #f7fafc;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Minimal Results Container */
.results-container-minimal {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
}

.results-header-minimal {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.results-header-minimal h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.results-meta-minimal {
    font-size: 0.875rem;
    color: #6b7280;
}

.potency-display-main {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px solid #3b82f6;
}

.potency-value-large {
    margin-bottom: 0.5rem;
}

.potency-main-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    display: inline-block;
    background: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.potency-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.5rem;
}

.treatment-protocol-compact {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.protocol-compact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
}

.protocol-label-compact {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.protocol-value-compact {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.rationale-section-minimal,
.precautions-section-minimal {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.rationale-section-minimal h3,
.precautions-section-minimal h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.rationale-content-minimal {
    color: #374151;
    line-height: 1.7;
    font-size: 0.95rem;
}

.rationale-content-minimal p {
    margin: 0;
}

.precautions-list-minimal {
    margin: 0;
}

.precautions-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.precautions-list-simple li {
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.precautions-list-simple li:before {
    content: "•";
    color: #f59e0b;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.report-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.disclaimer {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
}

.disclaimer p {
    margin: 0;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
}

.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Styles for Minimal Results */
@media (max-width: 768px) {
    .results-container-minimal {
        padding: 1rem;
        margin: 0 0.5rem;
        max-width: 100%;
        width: calc(100% - 1rem);
    }

    .results-header-minimal {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .results-header-minimal h1 {
        font-size: 1.25rem;
        margin: 0 0 0.25rem 0;
    }

    .results-meta-minimal {
        font-size: 0.8rem;
    }

    .potency-display-main {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .potency-main-value {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .potency-subtitle {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .treatment-protocol-compact {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        margin: 1.5rem 0;
    }

    .protocol-compact-item {
        min-width: auto;
        width: 100%;
        padding: 0.5rem 0;
        gap: 0.25rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .protocol-compact-item:last-child {
        border-bottom: none;
    }

    .protocol-label-compact {
        font-size: 0.7rem;
    }

    .protocol-value-compact {
        font-size: 0.85rem;
    }

    .rationale-section-minimal,
    .precautions-section-minimal {
        margin: 0.75rem 0;
        padding: 0.65rem;
        border-radius: 6px;
    }

    .rationale-section-minimal h3,
    .precautions-section-minimal h3 {
        font-size: 0.9rem;
        margin: 0 0 0.5rem 0;
        font-weight: 600;
    }

    .rationale-content-minimal {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .rationale-content-minimal p {
        margin: 0;
        padding: 0;
    }

    .precautions-list-minimal {
        margin: 0;
        padding: 0;
    }

    .precautions-list-simple {
        margin: 0;
        padding: 0;
    }

    .precautions-list-simple li {
        font-size: 0.75rem;
        line-height: 1.4;
        padding: 0.35rem 0;
        padding-left: 1rem;
        margin-bottom: 0.25rem;
    }

    .precautions-list-simple li:before {
        font-size: 1rem;
        left: 0;
    }

    .precautions-list-simple li:last-child {
        margin-bottom: 0;
    }

    .report-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .disclaimer {
        padding: 0.65rem;
        margin-bottom: 0.75rem;
        border-radius: 5px;
    }

    .disclaimer p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .report-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .report-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Medical Report Styles (Legacy - kept for compatibility) */
.medical-report {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Report Header */
.report-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.clinic-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.clinic-info p {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
}

.clinic-details {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.report-meta {
    text-align: right;
    font-size: 0.9rem;
}

.report-id, .report-date {
    margin-bottom: 0.25rem;
}

/* Primary Recommendation Section */
.primary-recommendation-section {
    padding: 2rem;
    border-bottom: 3px solid #3b82f6;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    position: relative;
}

.primary-recommendation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9, #06b6d4);
}

.primary-recommendation-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.primary-recommendation-section .assessment-section {
    border: 2px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.primary-recommendation-section .section-header {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-radius: 10px 10px 0 0;
}

.primary-recommendation-section .section-header h3 {
    color: white;
    font-size: 1.3rem;
}

/* Treatment Protocol Inline within Primary Recommendation */
.treatment-protocol-inline {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.treatment-protocol-inline h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.treatment-protocol-inline .protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.treatment-protocol-inline .protocol-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 3px solid #3b82f6;
}

.treatment-protocol-inline .protocol-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.treatment-protocol-inline .protocol-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.treatment-protocol-inline .protocol-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
}

/* Patient Information Section */
.patient-info-section {
    padding: 2rem;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.patient-info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.patient-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.patient-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.patient-detail-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.patient-detail-value {
    color: #1f2937;
    font-size: 1rem;
}

/* Assessment Summary Section */
.assessment-summary-section {
    padding: 2rem;
    border-bottom: 2px solid #e5e7eb;
    background: #ffffff;
}

.assessment-summary-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

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

.summary-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.summary-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

/* Detailed Assessment */
.detailed-assessment {
    padding: 2rem;
    border-bottom: 2px solid #e5e7eb;
    background: #ffffff;
}

.detailed-assessment h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.assessment-section {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.section-icon {
    font-size: 1.5rem;
}

.section-content {
    padding: 1.5rem;
    background: #ffffff;
}

/* Treatment Protocol */
.treatment-protocol {
    padding: 2rem;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.treatment-protocol h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

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

.protocol-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.protocol-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.protocol-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.protocol-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

/* Report Footer */
.report-footer {
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

.disclaimer {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
}

.disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Legacy Results Section (keeping for compatibility) */
.results-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.result-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    display: inline-block;
}

.result-card div {
    color: #4a5568;
    line-height: 1.6;
}

/* Additional Medical Report Styles */
.constitutional-analysis {
    margin-bottom: 1rem;
}

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

.analysis-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.analysis-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.analysis-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.risk-factors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.risk-factors h4 {
    color: #dc2626;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.risk-factors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.risk-factors li {
    color: #7f1d1d;
    margin-bottom: 0.25rem;
}

.potency-recommendation {
    margin-bottom: 1rem;
}

.recommendation-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
}

.recommendation-header h4 {
    color: #0c4a6e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.potency-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0c4a6e;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #0ea5e9;
}

.recommendation-details {
    margin-top: 1rem;
}

.detail-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.selection-criteria h5 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.rationale-text {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
    line-height: 1.7;
    color: #374151;
}

/* Icon-based Lists */
.criteria-list, .precautions-list {
    margin-top: 1rem;
}

.criteria-item, .precaution-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.criteria-item .icon {
    color: #28a745;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0.125rem;
    flex-shrink: 0;
    display: inline-block;
    width: 1.2rem;
    text-align: center;
}

.precaution-item .icon {
    color: #ffc107;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0.125rem;
    flex-shrink: 0;
    display: inline-block;
    width: 1.2rem;
    text-align: center;
}

.criteria-item:last-child, .precaution-item:last-child {
    margin-bottom: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 0.5rem;
    fill: currentColor;
    vertical-align: middle;
}

.mental-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 0.5rem;
    fill: currentColor;
    vertical-align: middle;
    flex-shrink: 0;
}

.return-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    fill: currentColor;
    vertical-align: middle;
}

.heart-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    fill: #e74c3c;
    vertical-align: middle;
    margin: 0 0.25rem;
}

.social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.scroll-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    fill: currentColor;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #495057;
    border: 1px solid #ced4da;
}

.btn-secondary:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    /* Header Mobile Styles */
    .header-inline {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 0;
        border-top: 1px solid #e5e5e5;
        margin-top: 1rem;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin: 0;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .nested-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin: 0;
        padding-left: 1rem;
        margin-left: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header-actions {
        margin-left: auto;
    }
    
    .return-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .return-text {
        display: none;
    }
    
    .return-text-mobile {
        display: inline;
    }
    
    .page-title-inner {
        padding: 0 0.5rem;
    }
    
    /* Page Title Mobile */
    .page-title {
        font-size: 2rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .page-description {
        font-size: 0.95rem;
        max-width: 95%;
    }
    
    .progress-container {
        padding: 1.5rem;
    }
    
    .progress-container-compact {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .progress-steps-compact {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .step-indicator-compact {
        min-width: 50px;
        padding: 0.25rem;
    }
    
    .step-label-compact {
        font-size: 0.6rem;
    }
    
    .step-indicators {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step-indicator {
        min-width: 60px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .assessment-grid {
        grid-template-columns: 1fr;
    }
    
    .mental-options-simple {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: flex-start;
    }
    
    .mental-option-simple {
        flex: 0 0 auto;
    }
    
    .mental-option-simple label {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .mental-options-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .mental-option label {
        padding: 0.8rem;
        min-height: 50px;
    }
    
    .mental-category {
        padding: 1rem;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
    
    .navigation {
        flex-direction: column-reverse;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    /* Footer Mobile Styles */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .scroll-to-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    /* Icon Lists Mobile */
    .criteria-item, .precaution-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .criteria-item i, .precaution-item i {
        font-size: 0.9rem;
    }
    
    /* Medical Report Mobile Styles */
    .report-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .primary-recommendation-section {
        padding: 1.5rem;
    }
    
    .primary-recommendation-section h2 {
        font-size: 1.5rem;
    }
    
    .primary-recommendation-section .section-header h3 {
        font-size: 1.1rem;
    }
    
    .treatment-protocol-inline {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .treatment-protocol-inline h3 {
        font-size: 1.2rem;
    }
    
    .treatment-protocol-inline .protocol-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .clinic-info h1 {
        font-size: 1.5rem;
    }
    
    .report-meta {
        text-align: center;
        margin-top: 1rem;
    }
    
    .patient-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .protocol-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .potency-display {
        font-size: 1.4rem;
        padding: 0.4rem 0.8rem;
    }
    
    .recommendation-header {
        padding: 0.75rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .section-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .homeoship-header {
        padding: 0.5rem 0;
    }
    
    .header-inline {
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .return-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .return-icon {
        font-size: 0.9rem;
    }
    
    .page-description {
        font-size: 0.7rem;
        max-width: 98%;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .mental-options-simple {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: flex-start;
    }
    
    .mental-option-simple {
        flex: 0 0 auto;
    }
    
    .mental-option-simple label {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .result-card {
        padding: 1rem;
    }

    /* Additional optimizations for result sections on very small screens */
    .results-container-minimal {
        padding: 0.75rem;
        margin: 0 0.25rem;
    }

    .results-header-minimal h1 {
        font-size: 1.1rem;
    }

    .potency-main-value {
        font-size: 1.25rem;
        padding: 0.4rem 0.8rem;
    }

    .rationale-section-minimal,
    .precautions-section-minimal {
        margin: 0.5rem 0;
        padding: 0.5rem;
    }

    .rationale-section-minimal h3,
    .precautions-section-minimal h3 {
        font-size: 0.85rem;
        margin: 0 0 0.4rem 0;
    }

    .rationale-content-minimal {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .precautions-list-simple li {
        font-size: 0.7rem;
        line-height: 1.35;
        padding: 0.3rem 0;
        padding-left: 0.9rem;
    }

    .disclaimer {
        padding: 0.5rem;
    }

    .disclaimer p {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .report-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Print Styles - Single A4 Sheet (Both Sides) */
@media print {
    @page {
        size: A4;
        margin: 0.5in;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        font-size: 8pt;
        line-height: 1.1;
        margin: 0;
        padding: 0;
        color: black !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    /* Hide all unnecessary elements */
    .homeoship-header,
    .page-title-section,
    .progress-container,
    .progress-container-compact,
    .navigation,
    .seo-content-section,
    .site-footer,
    .report-actions,
    .disclaimer {
        display: none !important;
    }
    
    /* Show only the results section */
    .main-content {
        background: white !important;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }
    
    .step {
        display: none !important;
    }
    
    #results {
        display: block !important;
    }
    
    .medical-report {
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        background: white !important;
    }
    
    /* Ultra-compact report header */
    .report-header {
        background: white !important;
        color: black !important;
        border-bottom: 1px solid #000;
        padding: 0.25rem 0;
        margin-bottom: 0.25rem;
        page-break-inside: avoid;
    }
    
    .clinic-info h1 {
        color: black !important;
        font-size: 12pt;
        margin: 0 0 0.1rem 0;
        font-weight: bold;
    }
    
    .clinic-info p {
        color: black !important;
        font-size: 8pt;
        margin: 0 0 0.1rem 0;
    }
    
    .clinic-details {
        color: black !important;
        font-size: 7pt;
    }
    
    .report-meta {
        color: black !important;
        font-size: 7pt;
    }
    
    .report-id, .report-date {
        margin-bottom: 0.05rem;
    }
    
    /* Ultra-compact sections */
    .primary-recommendation-section,
    .patient-info-section,
    .assessment-summary-section,
    .detailed-assessment {
        background: white !important;
        border: 1px solid #ccc;
        margin-bottom: 0.25rem;
        padding: 0.25rem;
        page-break-inside: avoid;
    }
    
    .primary-recommendation-section {
        background: #f8f9fa !important;
        border: 1px solid #000;
    }
    
    .primary-recommendation-section h2 {
        font-size: 10pt;
        margin-bottom: 0.25rem;
        padding-bottom: 0.1rem;
        font-weight: bold;
    }
    
    .assessment-section {
        border: 1px solid #ccc;
        margin-bottom: 0.25rem;
        page-break-inside: avoid;
    }
    
    .section-header {
        background: #f0f0f0 !important;
        color: black !important;
        border-bottom: 1px solid #ccc;
        padding: 0.1rem 0.25rem;
    }
    
    .section-header h3 {
        color: black !important;
        font-size: 8pt;
        margin: 0;
        font-weight: bold;
    }
    
    .section-content {
        padding: 0.25rem;
    }
    
    /* Ultra-compact treatment protocol */
    .treatment-protocol-inline {
        margin-top: 0.25rem;
        padding: 0.25rem;
    }
    
    .treatment-protocol-inline h3 {
        font-size: 8pt;
        margin-bottom: 0.25rem;
        padding-bottom: 0.1rem;
        font-weight: bold;
    }
    
    .protocol-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.1rem;
    }
    
    .protocol-item {
        padding: 0.1rem;
        font-size: 7pt;
    }
    
    .protocol-label {
        font-size: 6pt;
        margin-bottom: 0.05rem;
        font-weight: bold;
    }
    
    .protocol-value {
        font-size: 7pt;
        font-weight: bold;
    }
    
    /* Ultra-compact patient info */
    .patient-info-section h2 {
        font-size: 10pt;
        margin-bottom: 0.25rem;
        padding-bottom: 0.1rem;
        font-weight: bold;
    }
    
    .patient-details {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.1rem;
    }
    
    .patient-detail-item {
        padding: 0.1rem;
        font-size: 7pt;
    }
    
    .patient-detail-label {
        font-size: 6pt;
        margin-bottom: 0.05rem;
        font-weight: bold;
    }
    
    .patient-detail-value {
        font-size: 7pt;
    }
    
    /* Ultra-compact assessment summary */
    .assessment-summary-section h2 {
        font-size: 10pt;
        margin-bottom: 0.25rem;
        padding-bottom: 0.1rem;
        font-weight: bold;
    }
    
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.1rem;
    }
    
    .summary-item {
        padding: 0.1rem;
        font-size: 7pt;
    }
    
    .summary-label {
        font-size: 6pt;
        margin-bottom: 0.05rem;
        font-weight: bold;
    }
    
    .summary-value {
        font-size: 7pt;
        font-weight: bold;
    }
    
    /* Ultra-compact detailed assessment */
    .detailed-assessment h2 {
        font-size: 10pt;
        margin-bottom: 0.25rem;
        padding-bottom: 0.1rem;
        font-weight: bold;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.1rem;
    }
    
    .analysis-item {
        padding: 0.1rem;
        font-size: 7pt;
    }
    
    .analysis-label {
        font-size: 6pt;
        margin-bottom: 0.05rem;
        font-weight: bold;
    }
    
    .analysis-value {
        font-size: 7pt;
        font-weight: bold;
    }
    
    /* Ultra-compact potency recommendation */
    .potency-display {
        font-size: 12pt;
        padding: 0.1rem 0.25rem;
        font-weight: bold;
    }
    
    .recommendation-header h4 {
        font-size: 8pt;
        margin-bottom: 0.1rem;
        font-weight: bold;
    }
    
    .detail-item {
        margin-bottom: 0.1rem;
        padding: 0.1rem;
        font-size: 7pt;
    }
    
    .selection-criteria h5 {
        font-size: 7pt;
        margin-bottom: 0.1rem;
        font-weight: bold;
    }
    
    .rationale-text {
        padding: 0.25rem;
        font-size: 7pt;
    }
    
    /* Ultra-compact lists */
    .criteria-list, .precautions-list {
        margin-top: 0.1rem;
    }
    
    .criteria-item, .precaution-item {
        padding: 0.05rem 0.1rem;
        margin-bottom: 0.05rem;
        font-size: 7pt;
    }
    
    .criteria-item .icon, .precaution-item .icon {
        font-size: 6pt;
        margin-right: 0.1rem;
    }
    
    /* Optimize text for print */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
        margin: 0.1rem 0;
    }
    
    p, div, span {
        color: black !important;
        margin: 0.05rem 0;
    }
    
    /* Remove all page breaks - fit everything on one page */
    .assessment-section,
    .protocol-grid,
    .summary-grid,
    .analysis-grid,
    .primary-recommendation-section {
        page-break-inside: avoid;
    }
    
    /* Force everything to fit on one page */
    .medical-report {
        height: auto;
        overflow: visible;
    }
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-group select:focus,
.form-group textarea:focus,
.checkbox-group input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2.5rem 0;
    margin-top: 4rem;
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-top: 1px solid #34495e;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #3498db;
    transform: translateY(-2px);
    color: #ffffff;
}

.footer-social a:hover .social-icon {
    transform: scale(1.1);
}

/* Platform-specific hover colors */
.footer-social a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a[aria-label="Facebook"]:hover {
    background: #1877f2;
}

.footer-social a[aria-label="YouTube"]:hover {
    background: #ff0000;
}

.footer-text {
    flex: 1;
    text-align: center;
}

.footer-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-text a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #3498db;
    text-decoration: none;
}

.heart {
    color: #e74c3c;
    font-size: 1rem;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    color: #3498db;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    max-width: calc(100vw - 4rem);
}

.scroll-to-top-btn:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SEO Content Section - Minimal */
.seo-content-section-minimal {
    background: #f8f9fa;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.seo-content-minimal {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.seo-text-minimal {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 600px;
}

.seo-text-minimal p {
    margin: 0;
}

.seo-links-minimal {
    width: 100%;
}

.seo-links-minimal h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ref-compact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ref-compact span {
    font-size: 0.85rem;
    color: #374151;
    padding: 0.4rem 0.8rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* Legacy SEO Content Section Styles (kept for compatibility) */
.seo-content-section {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Mobile Responsive for Minimal SEO Content */
@media (max-width: 768px) {
    .seo-content-section-minimal {
        padding: 1rem 0;
    }
    
    .seo-content-minimal {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .seo-text-minimal {
        font-size: 0.85rem;
    }
    
    .ref-compact {
        gap: 0.5rem;
    }
    
    .ref-compact span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Legacy Mobile Responsive for SEO Content */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 1.5rem 0;
    }
    
    .seo-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .seo-main-content h2 {
        font-size: 1.5rem;
        text-align: left;
    }
    
    .seo-content-block {
        padding: 1.5rem;
    }
    
    .seo-cta-section {
        padding: 1.5rem;
    }
    
    .seo-cta-section h3 {
        font-size: 1.2rem;
    }
    
    .post-link {
        font-size: 0.85rem;
        padding: 0.7rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .seo-content-block {
        padding: 1rem;
    }
    
    .seo-cta-section {
        padding: 1rem;
    }
    
    .seo-widget {
        padding: 1rem;
    }
    
    .post-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.7rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border-color: #000;
    }
    
    .seo-content-block {
        border-color: #000;
    }
    
    .seo-widget {
        border-color: #000;
    }
}

