/* ============================================================
   Sensory Starter Kit opt-in  (/free/sensory-starter-kit/)
   Look follows the Sensory Processing 101 book page: sweet-sans-pro
   headings, europa body, delft blue, CTA pink, cream. The seven
   solid shapes use the seven sense colors from the book.
   Class selectors only: the theme CSS loads after this file and
   resets plain h1-h6, body color, button and a.
   ============================================================ */
:root {
    --ssk-heading: 'sweet-sans-pro', sans-serif;
    --ssk-body: europa, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ssk-blue: #223759;
    --ssk-pink: #B80077;
    --ssk-pink-dark: #9a0064;
    --ssk-cream: #FDFBF7;
    --ssk-sand: #F3EEE4;
    --ssk-text: #3a3a3a;
    --ssk-soft: #5d6673;
    --ssk-line: #d9d2c5;
    --white: #ffffff;
    --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 72px; --s8: 104px;
}

.ssk, .ssk *, .ssk *::before, .ssk *::after { box-sizing: border-box; }
.ssk { font-family: var(--ssk-body); color: var(--ssk-text); background: var(--ssk-cream); -webkit-font-smoothing: antialiased; }
.ssk p, .ssk ul, .ssk ol, .ssk blockquote, .ssk h1, .ssk h2, .ssk h3 { margin: 0; padding: 0; }
.ssk ul, .ssk ol { list-style: none; }

.ssk-wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--s4); }
.ssk-narrow { max-width: 820px; }
.ssk-center { text-align: center; }

/* Type */
.ssk .ssk-h1, .ssk .ssk-h2, .ssk .ssk-h3 { font-family: var(--ssk-heading); font-weight: 700; color: var(--ssk-blue); text-transform: none; letter-spacing: -0.005em; }
.ssk .ssk-h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.05rem); line-height: 1.12; margin-bottom: var(--s4); text-wrap: balance; }
.ssk .ssk-h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.15rem); line-height: 1.2; margin-bottom: var(--s6); }
.ssk .ssk-h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: var(--s1); }
.ssk .ssk-p { font-size: 1.15rem; line-height: 1.6; color: var(--ssk-text); max-width: 62ch; }
.ssk .ssk-kicker { display: inline-block; font-family: var(--ssk-heading); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ssk-blue); padding-bottom: 6px; border-bottom: 2px solid var(--ssk-blue); margin-bottom: var(--s4); }
.ssk .ssk-kicker-center { display: table; margin-left: auto; margin-right: auto; }

/* Button */
.ssk .ssk-btn { display: inline-block; font-family: var(--ssk-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--ssk-pink); border: 0; border-radius: 5px; padding: 18px 44px; cursor: pointer; line-height: 1.2; transition: background-color .2s ease, transform .2s ease; }
.ssk .ssk-btn:hover, .ssk .ssk-btn:focus-visible { background: var(--ssk-pink-dark); color: #fff; transform: translateY(-2px); }
.ssk .ssk-btn:focus-visible { outline: 3px solid var(--ssk-blue); outline-offset: 3px; }

/* Hero */
.ssk-hero { padding: var(--s7) 0 var(--s7); }
.ssk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.ssk .ssk-question { font-family: var(--ssk-body); font-size: 1.4rem; line-height: 1.4; font-weight: 700; color: var(--ssk-blue); margin-bottom: var(--s2); }
.ssk .ssk-lead { font-size: 1.22rem; line-height: 1.55; max-width: 34em; margin-bottom: var(--s5); }
.ssk .ssk-note { font-size: 0.98rem; color: var(--ssk-soft); margin-top: var(--s3); }
.ssk .ssk-img { display: block; width: 100%; height: auto; border-radius: 0; }

/* Seven senses */
.ssk-senses { background: #fff; padding: var(--s6) 0 var(--s6); border-top: 1px solid var(--ssk-line); border-bottom: 1px solid var(--ssk-line); }
.ssk .ssk-sense-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s4); margin-top: var(--s2); }
.ssk .ssk-sense { position: relative; width: 116px; height: 116px; }
.ssk .ssk-sense svg { width: 100%; height: 100%; display: block; }
.ssk .ssk-sense span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--ssk-heading); font-weight: 700; font-size: 0.98rem; line-height: 1.1; padding: 0 14px; }

/* What is inside */
.ssk-inside { padding: var(--s8) 0 var(--s7); }
.ssk .ssk-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--ssk-line); }
.ssk .ssk-item:last-of-type { border-bottom: 1px solid var(--ssk-line); margin-bottom: var(--s6); }
.ssk .ssk-thumb { display: block; width: 150px; height: auto; border: 1px solid var(--ssk-line); border-radius: 0; background: #fff; box-shadow: 0 10px 22px -14px rgba(34, 55, 89, .45); }

/* What it is not */
.ssk-not { background: var(--ssk-blue); padding: var(--s7) 0; }
.ssk .ssk-not-text { font-family: var(--ssk-heading); font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem); line-height: 1.45; color: #fff; }

/* Who wrote it */
.ssk-guide { padding: var(--s8) 0 var(--s7); }
.ssk .ssk-quote { margin-bottom: var(--s5); }
.ssk .ssk-quote-text { font-family: var(--ssk-heading); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); line-height: 1.4; color: var(--ssk-blue); margin-bottom: var(--s3); }
.ssk .ssk-cite { font-family: var(--ssk-heading); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ssk-soft); }
.ssk .ssk-quote-small { margin-top: var(--s6); margin-bottom: 0; padding-top: var(--s5); border-top: 1px solid var(--ssk-line); }
.ssk .ssk-quote-small .ssk-quote-text { font-size: 1.3rem; }

/* Three steps */
.ssk-steps { background: var(--ssk-sand); padding: var(--s7) 0 var(--s7); }
.ssk .ssk-step-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin-bottom: var(--s6); }
.ssk .ssk-step .ssk-p { font-size: 1.08rem; }
.ssk .ssk-num { position: relative; display: block; width: 58px; height: 58px; margin-bottom: var(--s3); }
.ssk .ssk-num svg { width: 100%; height: 100%; display: block; }
.ssk .ssk-num b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ssk-heading); font-weight: 700; font-size: 1.35rem; color: #fff; }

/* Footer */
.ssk-footer { background: var(--ssk-blue); padding: var(--s5) 0; text-align: center; }
.ssk .ssk-footer-text { font-size: 0.9rem; line-height: 1.5; color: #dfe5ee; }
.ssk .ssk-footer-text + .ssk-footer-text { margin-top: 6px; }

/* Small screens */
@media (max-width: 860px) {
    .ssk-hero { padding: var(--s6) 0 var(--s6); }
    .ssk-hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
    .ssk-hero-art { max-width: 520px; margin: 0 auto; }
    .ssk .ssk-step-row { grid-template-columns: 1fr; gap: var(--s5); }
    .ssk-inside, .ssk-guide { padding: var(--s7) 0 var(--s6); }
}
@media (max-width: 520px) {
    .ssk-wrap { padding: 0 20px; }
    .ssk .ssk-btn { display: block; width: 100%; padding: 18px 20px; }
    .ssk .ssk-item { grid-template-columns: 92px minmax(0, 1fr); gap: var(--s3); align-items: start; }
    .ssk .ssk-thumb { width: 92px; }
    .ssk .ssk-sense-row { gap: 10px 8px; }
    .ssk .ssk-sense { width: 80px; height: 80px; }
    .ssk .ssk-sense span { font-size: 0.74rem; padding: 0 8px; }
    .ssk .ssk-p { font-size: 1.08rem; }
    .ssk .ssk-lead { font-size: 1.12rem; }
    .ssk .ssk-question { font-size: 1.22rem; }
}
@media (prefers-reduced-motion: reduce) { .ssk .ssk-btn { transition: none; } .ssk .ssk-btn:hover { transform: none; } }

/* The form pop-up below is copied from /free/competing-sensory-needs/ (same widget), with the trust line reworded. */
/* ─────────────────────────────────────
   QUIZ MODAL
   ───────────────────────────────────── */
.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;
}

.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: var(--white);
    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: #223759 !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);
}

#ctc-quiz-container {
    padding: 0;
}

/* Override quiz widget styles for modal */
#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-modal #ctc-quiz-container .ctc-quiz-header,
.ctc-modal-content #ctc-quiz-container .ctc-quiz-header,
#ctc-quiz-container .ctc-quiz-header,
.ctc-quiz-header {
    padding: 24px 48px 20px 24px !important;
    border-radius: 16px 16px 0 0 !important;
    margin: -24px -24px 24px !important;
    background-color: #223759 !important;
    background: #223759 !important;
}

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

[style*="background"] .ctc-quiz-header {
    background: #223759 !important;
}

/* Progress bar — teal, inside navy header */
#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: #5BA4A4 !important;
    border-radius: 2px !important;
}

/* ── Question title: white, inside navy header visually ── */
#ctc-quiz-container .ctc-quiz-question h3 {
    text-align: center !important;
    background: #223759 !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 container spans navy + white */
#ctc-quiz-container .ctc-quiz-question .subtitle {
    text-align: center !important;
    margin: 0 -24px 24px !important;
    padding: 0 !important;
    white-space: normal !important;
}

/* First line: in the navy header */
#ctc-quiz-container .ctc-quiz-question .subtitle .subtitle-header {
    display: block;
    background: #223759;
    color: rgba(255,255,255,0.85);
    padding: 0 24px 20px;
    font-size: 14px;
}

/* Second part: in the white section */
#ctc-quiz-container .ctc-quiz-question .subtitle .subtitle-body {
    display: block;
    padding: 24px 24px 0;
    color: #1a202c;
    font-size: 15px;
}

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

/* ── Option buttons ── */

/* Normal weight on body text, bold only on <strong> prefix */
#ctc-quiz-container .ctc-quiz-option {
    font-weight: 400 !important;
    position: relative;
    padding-left: 44px !important;
    text-align: left !important;
}

/* Radio circle indicator */
#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;
}

/* Selected radio — filled circle */
#ctc-quiz-container .ctc-quiz-option.selected::before {
    border-color: #5BA4A4;
    background: #5BA4A4;
    box-shadow: inset 0 0 0 3px white;
}

/* ── Email capture step styling ── */

/* Trust text below submit button */
#ctc-quiz-container .ctc-quiz-email-form::after {
    content: "No credit card required. We will also send you a few helpful emails about sensory needs. 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 buttons (auto-advance handles navigation) */
#ctc-quiz-container .ctc-quiz-nav {
    display: none !important;
}

@media (max-width: 480px) {
    .hero-content-box {
        padding: 24px 16px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 16px;
    }

    .feature-card h3,
    .step-content h3 {
        font-size: 1.1rem;
    }

    .transform-list li {
        font-size: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

/* Solid brand pink on the form's send button (the widget default is a two-color blend). */
#ctc-quiz-container .ctc-quiz-submit { background: #B80077 !important; background-image: none !important; }
#ctc-quiz-container .ctc-quiz-submit:hover { background: #9a0064 !important; }
