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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

/* Global hyperlink color */
a {
    color: #007aff;
    text-decoration: none;
}

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

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #007AFF;
}

.nav-cta {
    padding: 10px 20px;
    font-size: 14px;
}

/* Buttons */
.cta-button {
    background: #007AFF;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}



/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
    background: white;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-bullets {
    list-style: none;
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: left;
}

.benefit-bullets li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.benefit-icon {
    color: #007AFF;
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
}

.primary-cta {
    font-size: 18px;
    padding: 18px 40px;
}

/* Quiz Modal */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.quiz-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.quiz-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 95%;
    height: 95vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.quiz-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 15px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.quiz-modal-header h3 {
    font-size: 1.8rem;
    color: #007AFF;
    margin: 0;
}

.quiz-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quiz-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.quiz-modal .progress-container {
    padding: 15px 30px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.quiz-modal .quiz-content {
    padding: 15px 25px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.quiz-modal .quiz-navigation {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: white;
}

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

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

/* Quiz Container */
.quiz-container {
    background: white;
    padding: 60px 0;
    margin-top: 80px; /* Account for fixed header height */
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h3 {
    font-size: 3rem;
    color: #007AFF;
    margin-bottom: 20px;
}

.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

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

.progress-fill {
    height: 100%;
    background: #007AFF;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    display: block;
    text-align: center;
}

.quiz-content {
    max-width: 700px;
    margin: 0 auto 40px;
}

.question {
    display: none;
    animation: slideIn 0.3s ease;
}

.question.active {
    display: block;
}

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

.quiz-modal .question h4 {
    font-size: 1.2rem !important;
    color: #1a1a1a !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

.question h4 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: center;
}

.question-subtext {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.4;
}

.quiz-modal .options-grid:not(.two-rows) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
    max-width: 100% !important;
    justify-content: center !important;
}

/* Force explicit grid for two-rows with responsive layout */
.quiz-modal .options-grid.two-rows {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    max-width: 1000px !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Mobile responsive: 2 columns for feature question */
@media (max-width: 768px) {
    .quiz-modal .options-grid.two-rows {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: repeat(5, auto) !important;
        max-width: 100% !important;
        gap: 10px !important;
    }
    
    .quiz-modal .quiz-content .options-grid.two-rows .option {
        height: 140px !important;
        padding: 15px !important;
        min-width: 140px !important;
        font-size: 11px !important;
    }
    
    .quiz-modal .quiz-content .options-grid.two-rows .option h4,
    .quiz-modal .quiz-content .options-grid.two-rows .option p {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
}

/* Center single options in quiz modal */
.quiz-modal .options-grid .option:only-child {
    justify-self: center !important;
    max-width: 180px !important;
}

/* Two-row layout for features question - MAXIMUM specificity override */
.quiz-modal-content .quiz-modal .quiz-content .options-grid.two-rows {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 6px !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    grid-auto-flow: row !important;
    min-width: 0 !important;
    width: 100% !important;
    /* Override auto-fit completely */
    grid-auto-columns: unset !important;
    grid-auto-rows: unset !important;
}

/* Alternative fallback with different approach */
.quiz-modal .options-grid.two-rows {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
    grid-template-rows: auto auto !important;
}

/* Make two-rows options much taller to show all text */
.quiz-modal .quiz-content .options-grid.two-rows .option {
    min-height: 180px !important;
    height: 180px !important;
    padding: 20px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
    min-width: 180px !important;
}

/* Ensure text elements within two-rows options are fully visible with lighter color */
.quiz-modal .quiz-content .options-grid.two-rows .option h4,
.quiz-modal .quiz-content .options-grid.two-rows .option p {
    margin: 3px 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    color: #666 !important;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}



.quiz-modal .option {
    background: white !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 8px 4px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    min-height: 80px !important;
    max-height: 80px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option:hover {
    border-color: #007AFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.option.selected {
    border-color: #007AFF;
    background: #f8f9ff;
}

.quiz-modal .option-icon {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
    color: #666 !important;
    transition: color 0.3s ease !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #666;
    transition: color 0.3s ease;
}

.option.selected .option-icon {
    color: #007AFF;
}

.quiz-modal .option-text {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 2px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

.quiz-modal .option-subtext {
    font-size: 0.65rem !important;
    color: #666 !important;
    line-height: 1 !important;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    max-height: 30px !important;
    overflow: hidden !important;
}

.option-text {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.option-subtext {
    font-size: 0.9rem;
    color: #666;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto;
    gap: 20px;
}

/* Mobile responsive navigation layout */
@media (max-width: 768px) {
    .quiz-navigation {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Primary actions (Next/See Results) at top on mobile */
    .quiz-navigation .quiz-btn.primary {
        order: 1;
        width: 100%;
        max-width: 300px;
    }
    
    /* Previous button at bottom on mobile */
    .quiz-navigation .quiz-btn.ghost {
        order: 2;
        width: 100%;
        max-width: 300px;
    }
}

.quiz-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-btn.primary {
    background: #007AFF;
    color: white;
}

.quiz-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.quiz-btn.secondary {
    background: #007AFF;
    color: white;
    border: 2px solid #007AFF;
}

.quiz-btn.secondary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* Ghost button for less prominent Previous button */
.quiz-btn.ghost {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

.quiz-btn.ghost:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
    transform: translateY(-1px);
}

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

.quiz-btn:disabled:hover {
    transform: none;
}

/* Results Container */
.results-container {
    background: #f9f9f9;
    padding: 100px 0 60px 0;
    min-height: 600px;
}

.results-header {
    text-align: center;
    margin-bottom: 50px;
}

.results-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.results-header p {
    font-size: 1.2rem;
    color: #666;
}

.results-content {
    max-width: 1000px;
    margin: 0 auto;
}

.result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

.result-badge-container {
    padding: 20px 20px 0 20px;
}

.result-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-badge.runner-up,
.result-badge[class*="option-"] {
    background: #007AFF;
}

.result-header {
    padding: 0 30px 30px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.result-product {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    align-items: center;
}

.product-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 10px;
}

.product-info h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.product-manufacturer {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007AFF;
}

.annual-filter-cost {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

.buy-now-btn {
    background: #007AFF;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.buy-now-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
}

/* Quiz Answer Matching Section */
.quiz-matching {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.quiz-matching h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.quiz-matching ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quiz-matching li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.quiz-matching .match-icon {
    margin-right: 8px;
    font-weight: bold;
}

.quiz-matching .match-icon.match {
    color: #27ae60;
}

.quiz-matching .match-icon.miss {
    color: #e74c3c;
}

.why-picked {
    background: #f8faff;
    border: 2px solid rgba(0, 122, 255, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.why-picked h4 {
    font-size: 1.3rem;
    color: #007aff;
    margin-bottom: 15px;
}

.why-picked ul {
    list-style: none;
    padding: 0;
}

.why-picked li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
}

.why-picked li i {
    color: #27ae60;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.why-picked .reason-content {
    flex: 1;
}

.why-picked .reason-content strong {
    font-weight: 600;
    color: #333;
    display: inline;
}

.why-picked .reason-description {
    display: inline;
    margin-left: 4px;
    color: #555;
    line-height: 1.4;
}

/* AI Summary Styles */
.ai-summary-container {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-style: italic;
}

.ai-summary-placeholder {
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-summary {
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Drawbacks section styles */
.drawbacks-section {
    background: #fff5f5;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

.drawbacks-section h4 {
    font-size: 1.3rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.drawbacks-section ul {
    list-style: none;
    padding: 0;
}

.drawbacks-section li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
}

.drawbacks-section li i {
    color: #ff6b6b;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.drawbacks-section .reason-content {
    flex: 1;
}

.drawbacks-section .reason-content strong {
    font-weight: 600;
    color: #333;
    display: inline;
}

.drawbacks-section .reason-description {
    display: inline;
    margin-left: 4px;
    color: #555;
    line-height: 1.4;
}

.reddit-testimonial {
    background: #fff5f5;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #ff6b6b;
}

.reddit-testimonial h4 {
    font-size: 1.3rem;
    color: #ff6b6b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reddit-quote {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.reddit-author {
    font-size: 0.9rem;
    color: #999;
}

.drawbacks-section {
    background: #fff8f0;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.drawbacks-section h4 {
    color: #e17055;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawbacks-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawbacks-section li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #8b4513;
}

.drawbacks-section li i {
    color: #e17055;
    margin-right: 10px;
    margin-top: 2px;
}

.retake-quiz {
    text-align: center;
    margin-top: 40px;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1a1a1a;
}

/* Pain Section */
.pain-section {
    background: #f9f9f9;
}

.pain-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.pain-block {
    background: white;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #e74c3c;
}

.pain-icon {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.pain-block h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.pain-block p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.belief-deconstruction {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #007AFF;
}

.belief-deconstruction p {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
}

/* Outcome Section */
.outcome-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.outcome-block {
    background: white;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #27ae60;
}

.outcome-icon {
    font-size: 2rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.outcome-block h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.outcome-block p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.bridge-copy {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid #007AFF;
}

.bridge-copy p {
    font-size: 1.3rem;
    color: #333;
    font-weight: 500;
}

/* Solution Section */
.solution-section {
    background: #f9f9f9;
    text-align: center;
}

.product-name {
    font-size: 2rem;
    font-weight: 800;
    color: #007AFF;
    margin-bottom: 20px;
}

.product-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-steps {
    list-style: none;
    counter-reset: step-counter;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: left;
}

.process-steps li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 70px;
}

.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #007AFF;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.process-steps li strong {
    color: #007AFF;
    font-size: 1.2rem;
}

.final-cta {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.cta-prompt {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.final-cta-btn {
    font-size: 20px;
    padding: 20px 50px;
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .pain-blocks,
    .outcome-blocks {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .pain-blocks .pain-block:nth-child(3),
    .outcome-blocks .outcome-block:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 0 30px;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subheadline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-name {
        font-size: 2rem;
    }
    
    .benefit-bullets {
        text-align: center;
    }
    
    .benefit-bullets li {
        justify-content: center;
        text-align: left;
    }
    
    .pain-blocks,
    .outcome-blocks {
        grid-template-columns: 1fr;
    }
    
    .process-steps li {
        padding-left: 30px;
        text-align: center;
    }
    
    .process-steps li::before {
        position: static;
        transform: none;
        margin: 0 auto 15px;
    }
    

    
    .nav {
        padding: 10px 15px;
    }
    
    .logo-placeholder {
        font-size: 20px;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Quiz Mobile Styles */
    .options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .option {
        padding: 15px 10px;
    }
    
    .option-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .quiz-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
    
    /* Quiz Modal Mobile Styles */
    .quiz-modal-content {
        width: 95%;
        height: 92vh;
        margin: 10px;
    }
    
    .quiz-modal .options-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .quiz-modal .option {
        padding: 8px 4px !important;
        min-height: 90px !important;
        max-height: 90px !important;
    }
    
    .quiz-modal .option-icon {
        font-size: 1.3rem !important;
        margin-bottom: 3px !important;
    }
    
    .quiz-modal .option-text {
        font-size: 0.7rem !important;
        margin-bottom: 2px !important;
    }
    
    .quiz-modal .option-subtext {
        font-size: 0.6rem !important;
        max-height: 25px !important;
    }

    /* Footer Mobile Styles */
    .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        justify-content: center;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input[type="email"] {
        margin-bottom: 10px;
    }
    
    .quiz-modal-header {
        padding: 20px 20px 15px;
    }
    
    .quiz-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .quiz-modal .progress-container {
        padding: 15px 20px;
    }
    
    .quiz-modal .quiz-content {
        padding: 20px;
    }
    
    .quiz-modal .quiz-navigation {
        padding: 15px 20px 20px;
    }
    
    /* Email Form Mobile Styles */
    .email-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .email-form input[type="email"] {
        width: 100%;
    }
    
    .email-form .quiz-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Results Mobile Styles */
    .result-product {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .product-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .result-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-headline {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .pain-block,
    .outcome-block {
        padding: 30px 20px;
    }
    
    .belief-deconstruction,
    .bridge-copy {
        padding: 30px 20px;
    }
    
    .final-cta {
        padding: 30px 20px;
    }
    

    
    /* Small Screen Quiz Styles */
    .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .option {
        padding: 12px 15px;
    }
    
    .option-icon {
        font-size: 1.8rem;
    }
    
    .quiz-header h3 {
        font-size: 1.5rem;
    }
    
    .question h4 {
        font-size: 1.2rem;
    }
    
    .results-header h2 {
        font-size: 2rem;
    }
    
    .product-info h3 {
        font-size: 1.5rem;
    }
    
    .product-image {
        width: 120px;
        height: 120px;
    }
    
    /* Mobile styles for new features */
    .match-circle {
        width: 50px;
        height: 50px;
    }
    
    .match-number {
        font-size: 14px;
    }
    
    .match-label {
        font-size: 9px;
    }
    
    .product-summary {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .product-summary h4 {
        font-size: 1.2rem;
    }
    
    .additional-cta .quiz-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .show-more-section {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .show-more-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Match Percentage Styles */
.result-badge-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.match-percentage {
    display: flex;
    align-items: center;
}

.match-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.match-number {
    font-size: 16px;
    line-height: 1;
}

.match-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Summary Styles */
.product-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.product-summary h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Additional CTA Button */
.additional-cta {
    text-align: center;
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.additional-cta .quiz-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Footer Styles */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #d5dbdb;
}

/* Newsletter Section */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #34495e;
    border-radius: 6px;
    background: #34495e;
    color: #ecf0f1;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #007AFF;
    background: #3c5167;
}

.newsletter-form input[type="email"]::placeholder {
    color: #95a5a6;
}

.newsletter-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background: #0056b3;
}

.newsletter-disclaimer {
    font-size: 0.9rem;
    color: #95a5a6;
    margin: 0;
}

.newsletter-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Links Section */
.footer-section.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section.links li {
    margin-bottom: 10px;
}

.footer-section.links a {
    color: #d5dbdb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.links a:hover {
    color: #007AFF;
}

/* Footer Bottom Section */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    border-top: 1px solid #34495e;
    padding-top: 30px;
    margin-bottom: 20px;
}

.footer-bottom-left,
.footer-bottom-right {
    display: flex;
    align-items: center;
}

.footer-bottom-left {
    justify-content: flex-start;
}

.footer-bottom-right {
    justify-content: flex-end;
    text-align: left;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #b2babb;
    line-height: 1.6;
    margin: 0;
}

/* About Section */
.about-text a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
}

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

/* Footer Copyright */
.footer-copyright {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

/* Email Results Section */
.email-results-section {
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
    border: 2px solid #007AFF;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.email-form-container h3 {
    color: #007AFF;
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.email-form-container p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.email-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 20px;
    align-items: stretch;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.email-form .quiz-btn {
    white-space: nowrap;
    padding: 15px 25px;
}

.email-disclaimer {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

.email-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.email-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.email-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Show More Options Button */
.show-more-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.show-more-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    background: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.cta-button:focus {
    outline: 3px solid rgba(0, 122, 255, 0.3);
    outline-offset: 2px;
}

/* Retake Quiz Message */
.retake-quiz-message {
    text-align: center;
    margin: 40px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.retake-content h3 {
    color: #495057;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.retake-content p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.retake-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.retake-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

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

/* Hide any fixed positioned retake buttons when no matches are displayed */
.no-matches-displayed .retake-btn-fixed,
.no-matches-displayed .bottom-left-retake,
.no-matches-displayed [class*="retake"][style*="position: fixed"],
.no-matches-displayed [class*="retake"][style*="bottom"],
.no-matches-displayed button[onclick*="retakeQuiz"],
.no-matches-displayed .quiz-btn.secondary[onclick*="retakeQuiz"],
.no-matches-displayed .show-more-section {
    display: none !important;
}

/* Mobile styles for retake message */
@media (max-width: 768px) {
    .retake-quiz-message {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .retake-content h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .retake-content p {
        font-size: 1rem;
    }
    
    .retake-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
