/* =============================================
   Event Planner Quiz — David Peace Magic
   ============================================= */

/* Page wrapper — dark theatrical background */
.planner-page {
    background: #18102a;
    min-height: calc(100vh - 72px);
    padding: 3.5rem 1.25rem 6rem;
}

.planner-wrap {
    max-width: 660px;
    margin: 0 auto;
}

/* Intro header */
.planner-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.planner-intro__eyebrow {
    color: var(--brand-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.planner-intro__heading {
    color: #fff;
    font-family: 'Instrument Serif', 'Playfair Display', serif;
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 0.85rem;
}

.planner-intro__sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Progress bar ── */
.planner-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 0;
    margin-bottom: 1.75rem;
    transition: opacity 0.3s;
}

.planner-progress__dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.planner-progress__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.planner-progress__dot.done {
    background: var(--brand-light);
    transform: scale(1.1);
}

.planner-progress__dot.active {
    background: #fff;
    transform: scale(1.45);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.planner-progress__label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    margin-left: 0.6rem;
    white-space: nowrap;
}

/* ── Step card ── */
.planner-step {
    animation: stepSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.planner-step.leaving {
    animation: stepSlideOut 0.25s cubic-bezier(0.55, 0, 1, 0.45) forwards;
    pointer-events: none;
}

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

@keyframes stepSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-38px); }
}

.planner-step__eyebrow {
    color: var(--brand-light);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}

.planner-step__q {
    color: #fff;
    font-family: 'Instrument Serif', 'Playfair Display', serif;
    font-size: 1.7rem;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.planner-step__sub {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    margin: 0 0 1.75rem;
    line-height: 1.55;
}

/* ── Option buttons — base ── */
.planner-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* 5-option grid for step 1 */
.planner-options--grid5 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

/* Last odd child spans full width but stays half-sized and centred */
.planner-options--grid5 > .planner-option:last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.325rem);
    margin: 0 auto;
}

.planner-option {
    background: rgba(123, 45, 158, 0.18);
    border: 1.5px solid rgba(123, 45, 158, 0.42);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    width: 100%;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

/* Gradient overlay on hover */
.planner-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}

.planner-option:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(123, 45, 158, 0.3);
}

.planner-option:hover::before { opacity: 0.18; }

.planner-option:focus-visible {
    outline: 3px solid var(--brand-light);
    outline-offset: 2px;
}

.planner-option__icon {
    font-size: 1.45rem;
    flex-shrink: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.planner-option__text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.planner-option__arrow {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
    position: relative;
    z-index: 1;
}

.planner-option:hover .planner-option__arrow {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(4px);
}

/* Chosen flash — plays before transition */
.planner-option.chosen {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%) !important;
    border-color: var(--brand-light) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 0 28px rgba(191, 63, 160, 0.4) !important;
}

.planner-option.chosen::before { opacity: 0; }

/* ── Binary Yes / No ── */
.planner-options--binary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.planner-option--yes,
.planner-option--no {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.6rem 1rem;
    gap: 0.4rem;
    justify-content: center;
    min-height: 130px;
}

.planner-option--no {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.planner-option--no:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.planner-option--no:hover::before { opacity: 0; }

.planner-option__bigicon {
    font-size: 2.2rem;
    line-height: 1;
    display: block;
    position: relative;
    z-index: 1;
}

.planner-option__label {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.planner-option__sublabel {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.planner-option--yes:hover .planner-option__sublabel,
.planner-option--no:hover .planner-option__sublabel {
    color: rgba(255, 255, 255, 0.65);
}

/* ── Back button ── */
.planner-back {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.87rem;
    cursor: pointer;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    transition: color 0.2s;
    font-family: inherit;
}

.planner-back:hover { color: rgba(255, 255, 255, 0.7); }
.planner-back:focus-visible { outline: 2px solid var(--brand-light); border-radius: 4px; }

/* ── Thinking animation ── */
.planner-thinking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 5rem 0;
}

.planner-thinking__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-light);
    animation: thinkBounce 0.9s ease infinite;
}

.planner-thinking__dot:nth-child(2) { animation-delay: 0.15s; }
.planner-thinking__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes thinkBounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40%            { transform: scale(1.3); opacity: 1; }
}

/* ── Result ── */
.planner-result {
    animation: resultReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes resultReveal {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.planner-sparkles {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.25em;
    animation: sparkleFloat 2.5s ease-in-out infinite;
    display: block;
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

.planner-result__eyebrow {
    color: var(--brand-light);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}

.planner-result__heading {
    color: #fff;
    font-family: 'Instrument Serif', 'Playfair Display', serif;
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.planner-result__why {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0 0 2rem;
}

.planner-services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.planner-service-card {
    background: rgba(123, 45, 158, 0.18);
    border: 1.5px solid rgba(191, 63, 160, 0.3);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: serviceCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.planner-service-card:nth-child(2) { animation-delay: 0.1s; }
.planner-service-card:nth-child(3) { animation-delay: 0.2s; }

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

.planner-service-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 0.1rem;
}

.planner-service-card__name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.planner-service-card__desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.55;
}

/* Result CTAs */
.planner-result__ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.planner-result__ctas .btn {
    display: block;
    text-align: center;
}

.planner-restart {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.87rem;
    cursor: pointer;
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.25rem;
    width: 100%;
    transition: color 0.2s;
    font-family: inherit;
}

.planner-restart:hover { color: rgba(255, 255, 255, 0.65); }
.planner-restart:focus-visible { outline: 2px solid var(--brand-light); border-radius: 4px; }

.planner-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

/* ── FAQ page teaser CTA ── */
.faq-planner-teaser {
    background: linear-gradient(135deg, #261040 0%, #3a1858 100%);
    border: 1.5px solid rgba(123, 45, 158, 0.4);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.faq-planner-teaser__icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    line-height: 1;
    background: rgba(191, 63, 160, 0.18);
    border: 1.5px solid rgba(191, 63, 160, 0.4);
    border-radius: 50%;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(191, 63, 160, 0.35);
}

.faq-planner-teaser__content {
    flex: 1;
    min-width: 200px;
}

.faq-planner-teaser__heading {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.faq-planner-teaser__text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

.faq-planner-teaser__btn {
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .faq-planner-teaser { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .faq-planner-teaser__btn { width: 100%; text-align: center; }
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .planner-page { padding: 2.5rem 1rem 4rem; }
    .planner-intro__heading { font-size: 1.9rem; }
    .planner-step__q { font-size: 1.4rem; }
    .planner-options--grid5 { grid-template-columns: 1fr; }
    .planner-options--grid5 > .planner-option:last-child:nth-child(2n+1) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
    .planner-option--yes,
    .planner-option--no { padding: 1.25rem 0.75rem; min-height: 110px; }
    .planner-option__bigicon { font-size: 1.75rem; }
    .planner-option__label { font-size: 1rem; }
    .planner-result__heading { font-size: 1.45rem; }
    .planner-service-card { padding: 1rem 1.1rem; }
    .planner-service-card__icon { font-size: 1.6rem; }
}
