/* Multi-Step Journey Styles for Mobile */

.journey-screen {
    padding-top: 0; /* Use natural flow like landing page */
}

.journey-screen .content-wrapper {
    padding: 1.5rem 0; /* Match landing page padding */
    max-width: 100%;
    margin: 0 auto;
}

/* Step Header with Progress */
.step-header {
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid rgba(232, 180, 184, 0.2);
    position: sticky;
    top: 4rem; /* Align with actual top bar height */
    z-index: 50;
}

.step-indicator {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.progress-bar {
    height: 4px;
    background: rgba(232, 180, 184, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose-gold) 0%, var(--dusty-blue) 100%);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Title */
.step-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin: 20px 20px 16px;
}

/* Educational Video Hero */
.video-placeholder.educational-main {
    margin: 0 20px 20px;
    height: 16rem; /* Match landing hero height for visual consistency */
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.1) 0%, rgba(184, 197, 214, 0.1) 100%);
    border: 2px solid rgba(232, 180, 184, 0.3);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 0; /* Align overlay anchors to true edges */
}

/* Center the video visual element */
.video-placeholder.educational-main .video-visual {
    position: absolute;
    inset: 0; /* Fill container like landing hero */
}

/* Align overlays consistently with landing hero edge insets */
.video-placeholder.educational-main .sound-toggle { right: 1.25rem; top: 1rem; }
.video-placeholder.educational-main .video-label { left: 1.25rem; top: 1rem; }

.video-placeholder.educational-main .video-captions {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(232, 180, 184, 0.2);
}

.video-placeholder.educational-main .caption-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    text-align: center;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Education Content */
.education-content {
    padding: 0 20px 20px;
}

.lead-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 24px;
}

.highlight-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    padding: 16px;
    background: rgba(255, 251, 247, 0.8);
    border: 1px solid rgba(232, 180, 184, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Journey Preview (Intro Screen) */
.journey-preview {
    margin: 24px 0;
}

.preview-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 180, 184, 0.2);
}

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

.preview-number {
    width: 32px;
    height: 32px;
    background: var(--rose-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ink);
    margin-right: 16px;
    flex-shrink: 0;
}

.preview-text {
    font-size: 15px;
    color: var(--ink);
}

/* Science Points (Chemistry Screen) */
.science-points {
    margin: 20px 0;
}

.science-point {
    display: flex;
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border: 1px solid rgba(232, 180, 184, 0.2);
    border-radius: 12px;
}

.point-icon {
    font-size: 24px;
    margin-right: 16px;
    flex-shrink: 0;
}

.point-content strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 4px;
}

.point-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-light);
    margin: 0;
}

/* Key Takeaway */
.key-takeaway {
    padding: 16px;
    background: linear-gradient(135deg, rgba(168, 192, 154, 0.1) 0%, rgba(232, 180, 184, 0.1) 100%);
    border-left: 3px solid var(--sage);
    border-radius: 8px;
    margin-top: 24px;
}

.key-takeaway strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 8px;
}

/* Essential/Complete Toggle - Full Width Pill */
.tier-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    width: calc(100% - 40px);
    margin: 12px 20px;
    padding: 4px;
    border-radius: 9999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.tier-toggle-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 0;
    flex: 1;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.tier-toggle-btn:hover {
    background: rgba(0,0,0,0.04);
}

.tier-toggle-btn.active {
    background: linear-gradient(135deg, var(--ink) 0%, #1f2937 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tier-toggle-btn.active:hover {
    background: linear-gradient(135deg, #1f2937 0%, var(--ink) 100%);
}

.tier-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}

/* Timeline Visual (Critical Window) */
.timeline-visual {
    margin: 20px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid transparent;
}

.timeline-item.danger {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.3);
}

.timeline-item.warning {
    background: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.3);
}

.timeline-item.safe {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.3);
}

.timeline-marker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    min-width: 70px;
    margin-right: 16px;
}

.timeline-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-light);
    margin: 0;
}

/* Risk Factors */
.risk-factors {
    margin: 24px 0;
    padding: 16px;
    background: rgba(255, 59, 48, 0.05);
    border-radius: 12px;
}

.risk-factors h3 {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 12px;
}

.risk-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.risk-item:last-child {
    margin-bottom: 0;
}

.risk-icon {
    font-size: 20px;
    margin-right: 12px;
}

.risk-text {
    font-size: 14px;
    line-height: 1.4;
}

/* Stat Highlight */
.stat-highlight {
    text-align: center;
    padding: 24px;
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(232, 180, 184, 0.3);
    border-radius: 16px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--rose-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.4;
}

/* Comparison Table (Professional Difference) */
.comparison-table {
    margin: 20px 0;
    border: 2px solid rgba(232, 180, 184, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-header {
    background: rgba(255, 248, 242, 1);
    padding: 12px;
    text-align: center;
}

.comparison-header h3 {
    font-size: 16px;
    color: var(--ink);
    margin: 0;
}

.comparison-row {
    display: flex;
}

.comparison-item {
    flex: 1;
    padding: 16px;
    text-align: center;
}

.comparison-item.drugstore {
    background: rgba(255, 59, 48, 0.05);
    border-right: 1px solid rgba(232, 180, 184, 0.2);
}

.comparison-item.professional {
    background: rgba(52, 199, 89, 0.05);
}

.comparison-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
}

.molecule-size {
    font-size: 24px;
    margin: 12px 0;
}

.molecule-size.large {
    color: rgba(255, 59, 48, 0.8);
}

.molecule-size.small {
    color: rgba(52, 199, 89, 0.8);
}

.comparison-item p {
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0;
}

.comparison-item .negative {
    color: rgba(255, 59, 48, 0.8);
    font-weight: 600;
}

.comparison-item .positive {
    color: rgba(52, 199, 89, 0.8);
    font-weight: 600;
}

/* Protection Plan Selection */
.protection-categories {
    margin: 20px 0;
}

.category-section {
    margin-bottom: 32px;
}

.category-section h3 {
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 4px;
}

.category-description {
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 12px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.protection-option {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer; /* Whole card is clickable */
}

.protection-option:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Selected state color/background handled in index.html inline CSS */

/* Content area - not clickable */
.protection-option-content {
    padding: 16px;
    padding-bottom: 12px;
}

/* Action button area */
.protection-option-action {
    border-top: 1px solid #f3f4f6;
    padding: 0;
    margin: 0;
    background: #fafafa;
}

.protection-option.selected .protection-option-action {
    background: #fee7e9; /* Slightly pink tint for selected */
}

.protection-add-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: transparent;
    color: var(--rose-gold);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.protection-add-btn:hover {
    background: var(--rose-gold);
    color: white;
}

.protection-add-btn:active {
    transform: scale(0.98);
}

/* Selected state button */
.protection-option.selected .protection-add-btn {
    background: var(--rose-gold);
    color: white;
}

.protection-option.selected .protection-add-btn:hover {
    background: #d4969a;
}

/* Add icon to button */
.protection-add-btn::before {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.protection-option.selected .protection-add-btn::before {
    content: '✓';
    font-size: 16px;
}

/* Helper instruction for clarity */
.selection-helper {
    text-align: center;
    color: #4b5563;
    font-size: 14px;
    margin: 12px 20px 8px;
    padding: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border: 1px solid #fbbf24;
}

.selection-helper::before {
    content: '👆 ';
    font-size: 16px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.option-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.option-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    background: var(--rose-gold-light);
    color: var(--ink);
    border-radius: 6px;
}

.option-description {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-light);
}

/* Selection Summary */
.selection-summary {
    padding: 12px;
    background: rgba(255, 251, 247, 0.9);
    border: 1px solid rgba(232, 180, 184, 0.2);
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.summary-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* Step Actions */
.step-actions {
    padding: 20px;
    background: white;
    border-top: 1px solid rgba(232, 180, 184, 0.1);
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    z-index: 40;
}

.step-actions .primary-button {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, var(--rose-gold) 0%, var(--dusty-blue) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    overflow: visible;
}

/* Animated border tracer - simplified approach */
.step-actions .primary-button::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 15px;
    background: linear-gradient(45deg, 
        var(--rose-gold),
        var(--dusty-blue),
        var(--rose-gold),
        var(--dusty-blue)
    );
    background-size: 400% 400%;
    animation: borderGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Ensure button content is above the border */
.step-actions .primary-button {
    z-index: 1;
}

/* Arrow icon animation */
.step-actions .primary-button .arrow-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 1.1em;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(6px);
    }
}

.step-actions .secondary-button {
    padding: 16px 24px;
    background: white;
    color: var(--ink);
    border: 2px solid rgba(232, 180, 184, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-actions button:active {
    transform: scale(0.98);
}

/* Learning Achievements */
.learning-achievements {
    margin: 16px 0;
}

.achievement {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(52, 199, 89, 0.05);
    border-radius: 8px;
}

.achievement-check {
    color: rgba(52, 199, 89, 0.8);
    font-size: 18px;
    margin-right: 12px;
}

.achievement-text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
}

/* Caption animations */
.caption-text {
    transition: opacity 0.3s ease;
}

/* Screen transitions */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Brand Science Styles */
.brand-science {
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 251, 247, 0.9);
    border: 1px solid rgba(232, 180, 184, 0.2);
    border-radius: 12px;
}

.brand-science h3 {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 16px;
}

.brand-point {
    margin-bottom: 16px;
}

.brand-point:last-child {
    margin-bottom: 0;
}

.brand-point strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 4px;
}

.brand-point p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-light);
    margin: 0;
}

/* Cost Analysis */
.cost-analysis {
    margin: 24px 0;
    padding: 20px;
    background: white;
    border: 2px solid var(--dusty-blue-light);
    border-radius: 12px;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(232, 180, 184, 0.2);
}

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

.cost-item.highlight {
    padding: 12px;
    margin: 8px -12px -12px;
    background: linear-gradient(135deg, rgba(168, 192, 154, 0.1) 0%, rgba(232, 180, 184, 0.1) 100%);
    border-radius: 8px;
    border-bottom: none;
}

.cost-label {
    font-size: 14px;
    color: var(--ink-light);
}

.cost-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.cost-item.highlight .cost-value {
    color: var(--sage);
}

/* Education Recap */
.education-recap {
    padding: 16px 20px;
    background: rgba(252, 250, 248, 0.8);
    border-top: 1px solid rgba(232, 180, 184, 0.15);
    border-bottom: 1px solid rgba(232, 180, 184, 0.15);
    margin: 0 -20px 20px;
}

.education-recap p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
}

/* Education Summary */
.education-summary {
    padding: 20px;
    background: rgba(255, 251, 247, 0.95);
    border: 1px solid rgba(232, 180, 184, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.education-summary h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

/* Recommendation Summary */
.recommendation-summary {
    padding: 20px;
    background: white;
    border: 1px solid var(--dusty-blue-light);
    border-radius: 12px;
    margin-bottom: 20px;
}

.recommendation-summary h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

/* Review List */
.review-list.educational {
    margin-bottom: 20px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 180, 184, 0.2);
}

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

.review-item-title {
    font-size: 14px;
    color: var(--ink);
}

.review-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--rose-gold);
}

.no-selections {
    text-align: center;
    color: var(--ink-light);
    font-style: italic;
    padding: 20px;
}

/* Investment Summary */
.investment-summary {
    padding: 16px;
    background: rgba(232, 180, 184, 0.08);
    border-radius: 8px;
    margin-top: 16px;
}

.investment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.investment-row.highlight {
    padding-top: 12px;
    border-top: 1px solid rgba(232, 180, 184, 0.3);
    margin-top: 8px;
}

.investment-label {
    font-size: 13px;
    color: var(--ink-light);
}

.investment-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.investment-row.highlight .investment-value {
    color: var(--sage);
    font-size: 16px;
}

/* Send Preview */
.send-preview {
    padding: 16px;
    background: rgba(184, 197, 214, 0.08);
    border-radius: 8px;
    margin: 20px 0;
}

.send-preview p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
    text-align: center;
}

/* Mobile Optimizations */
@media (max-width: 380px) {
    .step-title {
        font-size: 20px;
    }
    
    .protection-option-content {
        padding: 12px;
        padding-bottom: 8px;
    }
    
    .protection-add-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .option-title {
        font-size: 14px;
    }
    
    .step-actions {
        padding: 16px;
    }
}
