/*
 * EatOut Wellness Ambassador — premium onboarding funnel.
 * Modeled on assets/css/eatout-restaurant-funnel.css but with a wellness
 * gradient palette (green-mint-sky) instead of corporate restaurant tones.
 */

/* Hide the host theme header/footer chrome so the funnel feels app-like */
body.eatout-ambassador-funnel-page {
    background: #060b14 !important;
}
body.eatout-ambassador-funnel-page header,
body.eatout-ambassador-funnel-page #site-header,
body.eatout-ambassador-funnel-page .site-header,
body.eatout-ambassador-funnel-page #masthead,
body.eatout-ambassador-funnel-page footer,
body.eatout-ambassador-funnel-page #colophon,
body.eatout-ambassador-funnel-page .site-footer { display: none !important; }

body.eatout-ambassador-funnel-page #content,
body.eatout-ambassador-funnel-page #main,
body.eatout-ambassador-funnel-page .site-content,
body.eatout-ambassador-funnel-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.ea-funnel,
.ea-funnel * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.ea-funnel {
    position: relative;
    min-height: 100vh;
    color: #f3f6fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,197,94,0.18), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(14,165,233,0.18), transparent 60%),
        linear-gradient(180deg, #060b14 0%, #0a1422 100%);
    overflow-x: hidden;
}

/* Progress dots */
.ea-progress {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(6,11,20,0.92) 0%, rgba(6,11,20,0.6) 100%);
    backdrop-filter: blur(6px);
}
.ea-progress__dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255,255,255,0.18);
    transition: background 0.3s ease, transform 0.3s ease;
}
.ea-progress__dot.is-on {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 12px rgba(34,197,94,0.6);
    transform: scale(1.08);
}

/* Screens + transitions */
.ea-app {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 20px 140px;
}
.ea-screen {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ea-screen:not(.active) {
    display: none;
}
.ea-screen--enter {
    opacity: 0;
    transform: translateY(14px);
}
.ea-screen--leave {
    opacity: 0;
    transform: translateY(-10px);
}

/* Back button */
.ea-back {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    margin: 4px 0 12px -8px;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #f3f6fb;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ea-back:hover { background: rgba(255,255,255,0.14); transform: scale(1.05); }
.ea-back:active { transform: scale(0.95); }

/* Common step layout */
.ea-step {
    padding-bottom: 24px;
}
.ea-step__title {
    margin: 6px 0 10px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}
.ea-step__sub {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.5;
    color: #cbd5e1;
}

.ea-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34,197,94,0.18), rgba(14,165,233,0.18));
    border: 1px solid rgba(34,197,94,0.4);
    color: #86efac;
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
}

/* Buttons */
.ea-btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    border: 0; border-radius: 18px;
    padding: 16px 22px;
    font-size: 16px; font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.ea-btn--lg { width: 100%; padding: 18px 24px; font-size: 17px; }
.ea-btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 60%, #0ea5e9 130%);
    box-shadow: 0 12px 30px rgba(22,163,74,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.ea-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(22,163,74,0.55); }
.ea-btn--primary:active { transform: translateY(0); }
.ea-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ea-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    color: #93c5fd;
    background: transparent;
    border: 0;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}
.ea-link:hover { color: #bfdbfe; text-decoration: underline; }

/* Sticky CTA dock */
.ea-sticky {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 25;
    padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 14px);
    background: linear-gradient(180deg, rgba(6,11,20,0) 0%, rgba(6,11,20,0.88) 40%, rgba(6,11,20,0.96) 100%);
    backdrop-filter: blur(6px);
    text-align: center;
}
.ea-sticky .ea-btn { max-width: 520px; margin: 0 auto; }
.ea-sticky--hero { position: fixed; }

/* ────────────────────────────────────────────────────────────
   STEP 1 — Hero
   ──────────────────────────────────────────────────────────── */
.ea-hero {
    position: relative;
    padding: 20px 4px 30px;
    overflow: visible;
}
.ea-hero__bg { position: absolute; inset: -40px -40px 0 -40px; pointer-events: none; }
.ea-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: ea-float 14s ease-in-out infinite;
}
.ea-hero__blob--1 { width: 280px; height: 280px; left: -60px; top: -20px; background: rgba(34,197,94,0.55); }
.ea-hero__blob--2 { width: 240px; height: 240px; right: -40px; top: 80px; background: rgba(14,165,233,0.5); animation-delay: -4s; }
.ea-hero__blob--3 { width: 200px; height: 200px; left: 30%; bottom: 0; background: rgba(168,85,247,0.4); animation-delay: -8s; }
@keyframes ea-float {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(20px,-12px) scale(1.05); }
}
.ea-hero__content { position: relative; z-index: 1; }
.ea-hero__title {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ea-hero__sub {
    margin: 0 0 22px;
    font-size: 16px; line-height: 1.55;
    color: #cbd5e1;
    max-width: 480px;
}
.ea-hero__avatars {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 24px;
}
.ea-hero__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #0a1422;
    object-fit: cover;
}
.ea-hero__avatar + .ea-hero__avatar { margin-left: -16px; }
.ea-hero__avatars-text {
    margin-left: 12px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.35;
}
.ea-hero__avatars-text strong { color: #22c55e; }

.ea-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}
.ea-stat {
    position: relative;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    overflow: hidden;
}
.ea-stat::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(34,197,94,0.5), rgba(14,165,233,0.4));
    z-index: -1; opacity: 0.25;
}
.ea-stat__icon { font-size: 26px; margin-bottom: 6px; }
.ea-stat__num {
    font-size: 26px; font-weight: 800; color: #ffffff;
    line-height: 1.1;
}
.ea-stat__label { color: #cbd5e1; font-size: 13px; margin-top: 2px; }
.ea-stat--float-1 { animation: ea-floaty 5s ease-in-out infinite; }
.ea-stat--float-2 { animation: ea-floaty 6s ease-in-out infinite; animation-delay: -1.5s; }
.ea-stat--float-3 { animation: ea-floaty 7s ease-in-out infinite; animation-delay: -3s; }
@keyframes ea-floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (min-width: 520px) {
    .ea-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ────────────────────────────────────────────────────────────
   STEP 2 — Why (benefits + testimonials)
   ──────────────────────────────────────────────────────────── */
.ea-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 28px;
}
.ea-benefit {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}
.ea-benefit:hover { transform: translateY(-2px); background: rgba(34,197,94,0.1); }
.ea-benefit__icon {
    flex: 0 0 44px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(14,165,233,0.25));
}
.ea-benefit__text h3 {
    margin: 0 0 4px;
    font-size: 15px; font-weight: 700;
    color: #f1f5f9;
}
.ea-benefit__text p {
    margin: 0; font-size: 13px; line-height: 1.4; color: #94a3b8;
}

.ea-testimonials {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 20px;
}
.ea-testimonial {
    display: flex; gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.ea-testimonial__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 48px;
    border: 2px solid rgba(34,197,94,0.6);
}
.ea-testimonial__quote {
    margin: 0 0 8px;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.45;
}
.ea-testimonial__meta {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
    font-size: 12px; color: #94a3b8;
}
.ea-testimonial__handle { color: #93c5fd; }
.ea-pill { padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.ea-pill--soft {
    background: rgba(34,197,94,0.18);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.3);
}

/* ────────────────────────────────────────────────────────────
   STEPS 3 & 4 — Option grids
   ──────────────────────────────────────────────────────────── */
.ea-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 14px 0 24px;
}
@media (min-width: 480px) {
    .ea-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 640px) {
    .ea-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.ea-card--option {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    color: #e2e8f0;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
    min-height: 110px;
}
.ea-card--option:hover {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.4);
    transform: translateY(-2px);
}
.ea-card--option.is-on {
    background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(14,165,233,0.18));
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.18), 0 10px 24px rgba(34,197,94,0.25);
    transform: translateY(-2px) scale(1.02);
}
.ea-card__emoji { font-size: 32px; line-height: 1; }
.ea-card__label { font-size: 14px; font-weight: 600; line-height: 1.25; }
.ea-card__check {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #22c55e; color: #052e16;
    font-size: 14px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ea-card--option.is-on .ea-card__check {
    opacity: 1; transform: scale(1);
}

.ea-callout {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(14,165,233,0.12);
    border: 1px solid rgba(14,165,233,0.3);
    color: #bae6fd;
    font-size: 14px; line-height: 1.45;
}

/* ────────────────────────────────────────────────────────────
   STEP 5 — Mission
   ──────────────────────────────────────────────────────────── */
.ea-step--mission { text-align: center; }
.ea-mission__hero {
    position: relative;
    width: 160px; height: 160px;
    margin: 8px auto 18px;
    display: flex; align-items: center; justify-content: center;
}
.ea-mission__glow {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.55), transparent 60%);
    filter: blur(20px);
    animation: ea-pulse 3s ease-in-out infinite;
}
@keyframes ea-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}
.ea-mission__earth {
    position: relative; z-index: 1;
    font-size: 100px;
    animation: ea-spin 18s linear infinite;
}
@keyframes ea-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.ea-mission__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 22px;
}
.ea-mission__metric {
    padding: 14px 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.ea-mission__metric-num {
    font-size: 22px; font-weight: 800;
    color: #22c55e;
    line-height: 1.1;
}
.ea-mission__metric-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.3;
}
.ea-mission__pledge {
    margin-top: 8px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(14,165,233,0.1));
    border: 1px solid rgba(34,197,94,0.25);
}
.ea-mission__pledge-quote {
    font-size: 15px; line-height: 1.5;
    color: #e2e8f0;
    font-style: italic;
}
.ea-mission__pledge-by {
    margin-top: 10px;
    font-size: 12px; color: #86efac; font-weight: 700;
}

/* ────────────────────────────────────────────────────────────
   STEP 6 — Account
   ──────────────────────────────────────────────────────────── */
.ea-form { display: grid; gap: 12px; margin: 8px 0 12px; }
.ea-field { display: block; }
.ea-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px; font-weight: 600; color: #cbd5e1;
}
.ea-field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: #f3f6fb;
    font-size: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ea-field input:focus {
    outline: none;
    border-color: #22c55e;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}
.ea-account-loggedin {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    margin-bottom: 12px;
}
.ea-account-loggedin__icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #22c55e; color: #052e16;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px;
}
.ea-account-loggedin__email { font-size: 13px; color: #cbd5e1; }
.ea-agree {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 4px;
    color: #cbd5e1; font-size: 14px;
    cursor: pointer;
}
.ea-agree input { width: 18px; height: 18px; accent-color: #22c55e; }
.ea-msg {
    margin-top: 8px;
    font-size: 14px; min-height: 20px;
}
.ea-msg.is-error { color: #fca5a5; }
.ea-msg.is-ok    { color: #86efac; }

/* ────────────────────────────────────────────────────────────
   STEP 7 — Success + confetti
   ──────────────────────────────────────────────────────────── */
.ea-success { text-align: center; padding: 20px 4px 40px; }
.ea-success__badge {
    position: relative;
    width: 160px; height: 160px;
    margin: 12px auto 22px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 60%, #b45309 100%);
    box-shadow: 0 0 0 6px rgba(245,158,11,0.18), 0 30px 60px rgba(245,158,11,0.45);
    animation: ea-badge-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes ea-badge-in {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.ea-success__badge-glow {
    position: absolute; inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253,224,71,0.7), transparent 70%);
    filter: blur(14px);
    animation: ea-pulse 2.6s ease-in-out infinite;
}
.ea-success__badge-emoji { font-size: 60px; line-height: 1; position: relative; z-index: 1; }
.ea-success__badge-label {
    position: relative; z-index: 1;
    margin-top: 6px;
    font-size: 9px; font-weight: 900; letter-spacing: 0.18em;
    color: #422006;
}
.ea-success__title {
    margin: 0 0 8px;
    font-size: 26px; font-weight: 800;
    color: #f8fafc;
}
.ea-success__sub {
    margin: 0 0 22px;
    color: #cbd5e1;
    line-height: 1.5;
}

.ea-share {
    margin: 18px 0 0;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}
.ea-share__label {
    font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    color: #86efac; font-weight: 800;
    margin-bottom: 8px;
}
.ea-share__input {
    display: flex; gap: 8px;
    margin-bottom: 12px;
}
.ea-share__input input {
    flex: 1; min-width: 0;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f3f6fb;
    font-size: 14px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ea-share__copy {
    padding: 12px 16px;
    border: 0; border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff; font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.ea-share__copy:hover { transform: translateY(-1px); }
.ea-share__buttons {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.ea-share__btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none;
    font-size: 12px; font-weight: 700;
    transition: transform 0.15s ease;
}
.ea-share__btn:hover { transform: translateY(-1px); }
.ea-share__btn--wa { background: #25D366; }
.ea-share__btn--x  { background: #000; }
.ea-share__btn--fb { background: #1877F2; }
.ea-share__btn span { font-size: 16px; }

/* Confetti */
.ea-confetti {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}
.ea-confetti__piece {
    position: absolute;
    top: -16px;
    width: 8px; height: 14px;
    border-radius: 2px;
    animation: ea-confetti-fall linear forwards;
    opacity: 0.9;
}
@keyframes ea-confetti-fall {
    0%   { transform: translateY(-20vh) rotate(0deg);   opacity: 1; }
    100% { transform: translateY(110vh) rotate(900deg); opacity: 0; }
}

/* ────────────────────────────────────────────────────────────
   Already-an-ambassador shell card
   ──────────────────────────────────────────────────────────── */
.ea-funnel--already {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 40px 20px;
}
.ea-funnel__card {
    max-width: 460px; width: 100%;
    padding: 30px 26px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
}
.ea-funnel__card h1 { color: #f8fafc; font-size: 24px; font-weight: 800; margin: 12px 0 8px; }
.ea-funnel__card p  { color: #cbd5e1; font-size: 15px; line-height: 1.5; }
.ea-funnel__success-emoji { font-size: 56px; line-height: 1; margin-bottom: 8px; }

/* ────────────────────────────────────────────────────────────
   Mobile-first tightening
   ──────────────────────────────────────────────────────────── */
@media (max-width: 379px) {
    .ea-hero__title { font-size: 30px; }
    .ea-step__title { font-size: 24px; }
    .ea-card__emoji { font-size: 28px; }
    .ea-share__buttons { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
    .ea-app { padding-top: 28px; }
    .ea-hero__title { font-size: 46px; }
    .ea-step__title { font-size: 34px; }
}
