/* ============================================================
   v3-popup.css  —  $100 off Botox popup
   2026-06-06 final: quiz-card sized, "$100" INLINE (single line),
   logo at top, soft cream/blush gradient bg (no photo overlay).
   A/B variants share the shell, only the copy below differs.
   ============================================================ */
.bb-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(34, 28, 25, 0.50);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 320ms ease;
    pointer-events: none;
}
.bb-popup-backdrop.is-open { opacity: 1; pointer-events: auto; }

.bb-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 14px)) scale(0.97);
    z-index: 9999;
    /* Match the quiz card footprint — never full-screen */
    width: min(420px, calc(100vw - 36px));
    max-width: 420px;
    max-height: calc(100vh - 36px);
    background: linear-gradient(165deg, #fdf6f1 0%, #f8e9e2 100%);
    border-radius: 22px;
    box-shadow:
      0 26px 70px rgba(34, 28, 25, 0.38),
      0 8px 18px rgba(34, 28, 25, 0.14),
      inset 0 0 0 1px rgba(232, 180, 168, 0.32);
    opacity: 0;
    transition: opacity 320ms ease, transform 320ms cubic-bezier(.22,.7,.3,1);
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--font-body, 'Jost', sans-serif);
    padding: 30px 26px 22px;
    text-align: center;
}
.bb-popup.is-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Decorative soft glow corners */
.bb-popup::before {
    content: '';
    position: absolute;
    top: -90px; left: -90px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,180,168,0.36) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.bb-popup::after {
    content: '';
    position: absolute;
    bottom: -110px; right: -100px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,165,165,0.28) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.bb-popup > * { position: relative; z-index: 1; }

.bb-popup .bb-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(34, 28, 25, 0.08);
    color: var(--bb-ink);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease;
    z-index: 5;
    line-height: 1;
}
.bb-popup .bb-close:hover { background: rgba(34, 28, 25, 0.18); }

/* Logo badge */
.bb-popup .bb-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.bb-popup .bb-logo {
    width: 96px;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(34,28,25,0.12));
}

.bb-popup .bb-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--bb-pink-deep);
    font-weight: 600;
    margin-bottom: 6px;
}

/* === Intro line above the dollar amount === */
.bb-popup .bb-intro {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 0.84rem;
    color: var(--bb-taupe);
    line-height: 1.45;
    margin: 0 0 12px;
    padding: 0 6px;
    font-weight: 400;
}

/* === Amount block — "$100 OFF" all on one inline row === */
.bb-popup .bb-amount {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    line-height: 1;
    margin: 0 0 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.bb-popup .bb-amount .bb-amt-inline {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 4.2rem;
    color: var(--bb-pink-deep);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-block;
}
.bb-popup .bb-amount .bb-amt-inline::before,
.bb-popup .bb-amount .bb-amt-inline::after { content: none; }
.bb-popup .bb-amount .bb-off {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 0.84rem;
    color: var(--bb-ink);
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    display: inline-block;
    margin: 0;
    align-self: center;
}

.bb-popup .bb-headline-sub {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.12rem;
    color: var(--bb-ink);
    margin: 0 0 4px;
    font-style: italic;
    line-height: 1.25;
}
.bb-popup .bb-sub {
    font-size: 0.78rem;
    color: var(--bb-taupe);
    margin: 0 0 14px;
    line-height: 1.4;
    padding: 0 4px;
}

/* === Form (compact) === */
.bb-popup .bb-form { text-align: left; }
.bb-form .bb-row { display: grid; gap: 8px; margin-bottom: 8px; }
.bb-form label {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    color: var(--bb-taupe);
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    font-weight: 600;
}
.bb-form input[type="text"],
.bb-form input[type="tel"],
.bb-form select,
.bb-form textarea {
    width: 100%;
    padding: 9px 11px;
    font: inherit;
    font-size: 0.88rem;
    border: 1px solid rgba(34,28,25,0.14);
    border-radius: 9px;
    background: var(--bb-white);
    color: var(--bb-ink);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    box-sizing: border-box;
}
.bb-form textarea { min-height: 46px; resize: vertical; }
.bb-form input:focus, .bb-form select:focus, .bb-form textarea:focus {
    outline: none;
    border-color: var(--bb-pink-deep);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.22);
}
.bb-form .bb-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 10px 0 12px;
    font-size: 0.66rem;
    color: var(--bb-taupe);
    line-height: 1.42;
}
.bb-form .bb-consent input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--bb-pink-deep);
    width: 14px;
    height: 14px;
}
.bb-form .bb-submit {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--bb-pink) 0%, var(--bb-pink-deep) 100%);
    color: var(--bb-white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(212, 165, 165, 0.42), 0 3px 8px rgba(34,28,25,0.08);
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.bb-form .bb-submit:hover { transform: translateY(-2px); filter: brightness(1.04); }
.bb-form .bb-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.bb-fineprint {
    font-size: 0.6rem;
    color: var(--bb-taupe);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* === Success === */
.bb-popup .bb-success { text-align: center; padding: 12px 4px 6px; }
.bb-popup .bb-success .bb-success-mark {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-pink-deep));
    color: var(--bb-white);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.4rem;
    box-shadow: 0 12px 28px rgba(212, 165, 165, 0.42);
}
.bb-popup .bb-success h3 {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    color: var(--bb-ink);
    margin: 0 0 8px;
    line-height: 1.2;
}
.bb-popup .bb-success p {
    font-size: 0.86rem;
    color: var(--bb-taupe);
    line-height: 1.5;
    margin: 0 0 18px;
}
.bb-popup .bb-success .bb-cta-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bb-popup .bb-success .bb-cta-row a {
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.bb-popup .bb-success .bb-cta-row .primary {
    background: linear-gradient(135deg, var(--bb-pink), var(--bb-pink-deep));
    color: var(--bb-white);
    box-shadow: 0 10px 24px rgba(212, 165, 165, 0.42);
}
.bb-popup .bb-success .bb-cta-row .ghost {
    background: transparent;
    color: var(--bb-ink);
    border: 1.5px solid rgba(34,28,25,0.18);
}

/* === Small screens — keep quiz-sized, never full-screen === */
@media (max-width: 480px) {
    .bb-popup {
        width: calc(100vw - 28px);
        max-width: 360px;
        padding: 26px 22px 20px;
        max-height: 88vh;
        border-radius: 18px;
    }
    .bb-popup .bb-logo { width: 82px; }
    .bb-popup .bb-intro { font-size: 0.78rem; padding: 0 2px; margin-bottom: 10px; }
    .bb-popup .bb-amount .bb-amt-inline { font-size: 3.6rem; }
    .bb-popup .bb-amount .bb-off { font-size: 0.66rem; }
    .bb-popup .bb-headline-sub { font-size: 1rem; }
}
