/* ============================================================
   7 Days to Less Chaos — Opt-in Page
   Font: Europa (Typekit, loaded globally)
   Colors: CTC Blue #0170B9 | Dark #1a1a2e | Warm #f9f6f1
   ============================================================ */

/* ── GLOBAL RESETS ── */
*, *::before, *::after { box-sizing: border-box; }

.ctc-page-wrapper {
    font-family: europa, 'Helvetica Neue', Arial, sans-serif;
    color: #3a3a3a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── SHARED UTILITIES ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow {
    max-width: 760px;
}

.btn-primary {
    display: inline-block;
    background: #0170B9;
    color: #fff;
    font-family: europa, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 18px 40px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(1, 112, 185, 0.35);
    text-align: center;
}
.btn-primary:hover {
    background: #005fa0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 112, 185, 0.45);
}
.btn-primary:active {
    transform: translateY(0);
}

/* ── HERO ── */
.hero-7d {
    background: linear-gradient(145deg, #1a1a2e 0%, #0d2b45 60%, #0170B9 100%);
    color: #fff;
    padding: 80px 24px 88px;
    text-align: center;
}
.hero-7d__inner {
    max-width: 820px;
    margin: 0 auto;
}
.hero-7d__eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin: 0 0 20px;
}
.hero-7d__headline {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 22px;
    color: #fff;
}
.hero-7d__headline em {
    font-style: italic;
    color: #7ec8f5;
}
.hero-7d__subhead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.88);
    margin: 0 0 36px;
    line-height: 1.7;
}
.hero-7d__br { display: none; }
@media (min-width: 640px) { .hero-7d__br { display: inline; } }

.btn-hero-7d {
    font-size: 1.2rem;
    padding: 20px 52px;
    background: #f5a623;
    box-shadow: 0 4px 18px rgba(245, 166, 35, 0.45);
    color: #fff;
}
.btn-hero-7d:hover {
    background: #e09415;
    box-shadow: 0 6px 24px rgba(245, 166, 35, 0.55);
}
.hero-7d__trust {
    margin: 18px 0 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
}

/* ── LOGOS ── */
.logos-7d {
    background: #fff;
    padding: 30px 24px;
    border-bottom: 1px solid #eee;
}
.logos-7d__label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 16px;
}
.logos-7d__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 32px;
}
.logos-7d__row img {
    height: 28px;
    width: auto;
    opacity: 0.55;
    filter: grayscale(100%);
    transition: opacity 0.2s;
}
.logos-7d__row img:hover { opacity: 0.8; }

/* ── HOOK ── */
.hook-7d {
    background: #f9f6f1;
    padding: 72px 24px;
}
.hook-7d__heading {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    text-align: center;
    color: #1a1a2e;
    margin: 0 0 36px;
}
.hook-7d__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.hook-7d__list li {
    background: #fff;
    border-left: 4px solid #0170B9;
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    font-size: 1.05rem;
    line-height: 1.65;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hook-7d__list li strong {
    color: #0170B9;
}
.hook-7d__bridge {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.7;
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    border: 2px solid #0170B9;
    box-shadow: 0 2px 8px rgba(1, 112, 185, 0.1);
}

/* ── DISCOVER ── */
.discover-7d {
    background: #fff;
    padding: 80px 24px;
}
.discover-7d__heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    color: #1a1a2e;
    margin: 0 0 12px;
}
.discover-7d__sub {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    margin: 0 auto 40px;
    max-width: 620px;
}
.discover-7d__bullets {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 820px;
}
.discover-7d__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    line-height: 1.65;
}
.bullet-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #0170B9;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    margin-top: 2px;
}
.discover-7d__cta-wrap {
    text-align: center;
}

/* ── STATS BAR ── */
.stats-7d {
    background: #1a1a2e;
    padding: 48px 24px;
}
.stats-7d__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
@media (min-width: 640px) {
    .stats-7d__grid { grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
}
.stats-7d__number {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #7ec8f5;
    line-height: 1.1;
    margin-bottom: 4px;
}
.stats-7d__label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
}

/* ── GUIDE ── */
.guide-7d {
    background: #f9f6f1;
    padding: 80px 24px;
}
.guide-7d__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 720px) {
    .guide-7d__grid { grid-template-columns: 280px 1fr; gap: 56px; }
}
.guide-7d__image-wrap {
    display: flex;
    justify-content: center;
}
.guide-7d__photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
@media (min-width: 720px) {
    .guide-7d__photo { width: 260px; height: 260px; }
}
.guide-7d__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0170B9;
    margin: 0 0 8px;
}
.guide-7d__name {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 14px;
}
.guide-7d__empathy {
    font-size: 1.08rem;
    font-style: italic;
    color: #555;
    border-left: 3px solid #0170B9;
    padding-left: 16px;
    margin: 0 0 16px;
    line-height: 1.7;
}
.guide-7d__content p {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}
.guide-7d__mission {
    color: #1a1a2e !important;
}

/* ── PLAN ── */
.plan-7d {
    background: #fff;
    padding: 80px 24px;
}
.plan-7d__heading {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    text-align: center;
    color: #1a1a2e;
    margin: 0 0 10px;
}
.plan-7d__sub {
    text-align: center;
    color: #777;
    margin: 0 0 48px;
    font-size: 1rem;
}
.plan-7d__steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
@media (min-width: 680px) {
    .plan-7d__steps { flex-direction: row; align-items: flex-start; justify-content: center; }
}
.plan-7d__step {
    text-align: center;
    max-width: 240px;
    padding: 0 16px;
}
.plan-7d__number {
    width: 52px;
    height: 52px;
    background: #0170B9;
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(1, 112, 185, 0.3);
}
.plan-7d__step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.plan-7d__step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.plan-7d__connector {
    width: 2px;
    height: 40px;
    background: #ddd;
    margin: 4px auto;
}
@media (min-width: 680px) {
    .plan-7d__connector { width: 48px; height: 2px; margin: 26px 0; flex-shrink: 0; }
}

/* ── TESTIMONIALS ── */
.testimonials-7d {
    background: #f9f6f1;
    padding: 80px 24px;
}
.testimonials-7d__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    color: #1a1a2e;
    margin: 0 0 40px;
}
.testimonials-7d__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (min-width: 680px) {
    .testimonials-7d__grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 26px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.testimonial-card__stars {
    color: #f5a623;
    font-size: 1rem;
    letter-spacing: 2px;
}
.testimonial-card__quote {
    font-size: 0.97rem;
    line-height: 1.65;
    color: #444;
    margin: 0;
    font-style: normal;
    flex: 1;
}
.testimonial-card__author {
    font-size: 0.83rem;
    font-weight: 700;
    color: #888;
    font-style: normal;
}

/* ── FOOTER CTA ── */
.footer-cta-7d {
    background: #0170B9;
    padding: 72px 24px;
    text-align: center;
    color: #fff;
}
.footer-cta-7d h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
}
.footer-cta-7d p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin: 0 0 30px;
}
.btn-footer-7d {
    background: #fff;
    color: #0170B9;
    font-size: 1.1rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.btn-footer-7d:hover {
    background: #f0f8ff;
    color: #005fa0;
}
.footer-cta-7d__trust {
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

/* ── FOOTER ── */
.footer-7d {
    background: #1a1a2e;
    padding: 24px;
    text-align: center;
}
.footer-7d p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ── ACCESSIBILITY ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── MODAL ── */
.ctc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
}

.ctc-modal[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ctc-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.ctc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ctc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    color: #1a1a2e !important;
    z-index: 100;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.ctc-modal-close:hover {
    background: #fff !important;
    transform: scale(1.05);
}

/* ── QUIZ WIDGET OVERRIDES ── */
#ctc-quiz-container {
    padding: 0;
}

#ctc-quiz-container .ctc-quiz-widget {
    box-shadow: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin: 0 !important;
    max-width: none !important;
}

/* Header: Navy CTC branded */
#ctc-quiz-container .ctc-quiz-header {
    padding: 24px 48px 20px 24px !important;
    border-radius: 16px 16px 0 0 !important;
    margin: -24px -24px 24px !important;
    background-color: #1a1a2e !important;
    background: #1a1a2e !important;
}

/* Hide quiz name — question h3 replaces it */
#ctc-quiz-container .ctc-quiz-header h2,
#ctc-quiz-container h2,
.ctc-quiz-header h2,
.ctc-quiz-header .quiz-title {
    display: none !important;
}

/* Progress bar */
#ctc-quiz-container .ctc-quiz-progress {
    height: 4px !important;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 2px !important;
    margin: 16px 0 0 !important;
}

#ctc-quiz-container .ctc-quiz-progress-bar {
    background: #0170B9 !important;
    border-radius: 2px !important;
}

/* Question title: white on navy */
#ctc-quiz-container .ctc-quiz-question h3 {
    text-align: center !important;
    background: #1a1a2e !important;
    color: #ffffff !important;
    margin: -24px -24px 0 !important;
    padding: 20px 24px 8px !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

/* Subtitle */
#ctc-quiz-container .ctc-quiz-question .subtitle {
    text-align: center !important;
    margin: 0 -24px 24px !important;
    padding: 0 !important;
    white-space: normal !important;
}

#ctc-quiz-container .ctc-quiz-question .subtitle .subtitle-header {
    display: block;
    background: #1a1a2e;
    color: rgba(255,255,255,0.85);
    padding: 0 24px 20px;
    font-size: 14px;
}

#ctc-quiz-container .ctc-quiz-question .subtitle .subtitle-body {
    display: block;
    padding: 24px 24px 0;
    color: #1a1a2e;
    font-size: 15px;
}

#ctc-quiz-container .ctc-quiz-question .subtitle .subtitle-body strong {
    font-size: 18px;
    color: #1a1a2e;
}

/* Option buttons */
#ctc-quiz-container .ctc-quiz-option {
    font-weight: 400 !important;
    position: relative;
    padding-left: 44px !important;
    text-align: left !important;
}

/* Radio circle */
#ctc-quiz-container .ctc-quiz-option::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
}

#ctc-quiz-container .ctc-quiz-option.selected::before {
    border-color: #0170B9;
    background: #0170B9;
    box-shadow: inset 0 0 0 3px white;
}

/* Submit button — solid blue, no gradient */
#ctc-quiz-container .ctc-quiz-submit,
#ctc-quiz-container button[type="submit"],
#ctc-quiz-container .ctc-quiz-btn-primary {
    background: #0170B9 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(1, 112, 185, 0.35) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
}

#ctc-quiz-container .ctc-quiz-submit:hover,
#ctc-quiz-container button[type="submit"]:hover,
#ctc-quiz-container .ctc-quiz-btn-primary:hover {
    background: #005fa0 !important;
    background-image: none !important;
}

/* Trust text below email form */
#ctc-quiz-container .ctc-quiz-email-form::after {
    content: "100% free. No credit card required. Unsubscribe anytime.";
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-style: italic;
    color: #718096;
    line-height: 1.5;
    text-align: center;
}

/* Hide prev/next nav (auto-advance handles it) */
#ctc-quiz-container .ctc-quiz-nav {
    display: none !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .ctc-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .ctc-modal-close {
        top: 8px;
        right: 8px;
    }
}
