/* FAQ Page Styles - V2 with Journey-Based Design */

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

.skip-link:focus {
    top: 0;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Search Box */
.faq-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.faq-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* FAQ Content */
.faq-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Journey Stage Sections */
.faq-journey-stage {
    margin-bottom: 4rem;
}

.faq-journey-stage.hidden {
    display: none;
}

.stage-header {
    margin-bottom: 2.5rem;
}

.stage-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

.stage-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-left: 4rem;
}

/* FAQ Items */
.faq-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.hidden {
    display: none;
}

.faq-item:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(15, 31, 51, 0.08);
}

/* Auto-open items get special styling */
.faq-item.auto-open {
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
    min-height: 48px; /* Accessibility - minimum tap target */
}

.faq-question:hover {
    color: var(--blue);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    padding: 0 1.5rem;
}

/* Auto-open items start expanded */
.faq-item.auto-open .faq-answer {
    height: auto;
    padding: 0 1.5rem 1.5rem;
}

.faq-item[aria-expanded="true"] .faq-answer {
    height: auto;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.7;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.faq-answer strong {
    color: var(--navy);
    font-weight: 600;
}

/* Comparison Table */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.comparison-column {
    padding: 1.5rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.comparison-column.highlight {
    background: #f0f7ff;
    border-color: var(--blue);
}

.comparison-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.comparison-column ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.comparison-column li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* Pricing Context */
.pricing-context {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pricing-option {
    padding: 1rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.pricing-option.highlight {
    background: #f0f7ff;
    border-left-color: var(--blue);
}

.pricing-option strong:first-of-type {
    display: block;
    color: var(--navy);
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.pricing-note {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* See More Section */
.see-more-section {
    text-align: center;
    margin: 3rem 0 2rem;
}

.see-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--navy);
    border-radius: 8px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.see-more-toggle:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-2px);
}

.see-more-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.see-more-toggle[aria-expanded="true"] .see-more-icon {
    transform: rotate(180deg);
}

.additional-questions {
    transition: all 0.3s ease;
}

.additional-questions.hidden {
    display: none;
}

/* Future Regret CTA */
.future-regret-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5a 100%);
    color: white;
    border-radius: 16px;
    margin-top: 4rem;
}

.future-regret-cta h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    line-height: 1.3;
}

.timeline-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: left;
}

.timeline-option {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-option.good {
    background: rgba(56, 161, 105, 0.2);
    border-color: var(--green);
}

.timeline-option.bad {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.timeline-label {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.timeline-option ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.timeline-option li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-option li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: white;
}

.timeline-arrow {
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.regret-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

.cta-primary {
    background: white;
    color: var(--navy);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: var(--navy);
    transform: translateY(-2px);
}

.cta-footer {
    font-size: 1rem;
    opacity: 0.95;
}

.cta-footer a {
    color: white;
    text-decoration: underline;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stage-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stage-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .stage-subtitle {
        margin-left: 0;
        font-size: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
    
    .faq-item.auto-open .faq-answer,
    .faq-item[aria-expanded="true"] .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
    }
    
    .timeline-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
    
    .future-regret-cta {
        padding: 2rem 1.5rem;
    }
    
    .future-regret-cta h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .stage-title {
        font-size: 1.25rem;
    }
    
    .faq-question {
        font-size: 0.9375rem;
    }
}

/* Print Styles */
@media print {
    .faq-search,
    .see-more-section,
    .future-regret-cta,
    #site-header,
    #site-footer,
    #sticky-cta {
        display: none;
    }
    
    .faq-item {
        page-break-inside: avoid;
    }
    
    .faq-answer {
        height: auto !important;
        padding: 0 1.5rem 1.5rem !important;
    }
    
    .additional-questions {
        display: block !important;
    }
}

/* Performance: Below-fold content visibility */
@supports (content-visibility: auto) {
    .faq-item:not(.auto-open) {
        content-visibility: auto;
        contain-intrinsic-size: 0 100px;
    }
}