:root {
    --rose: #C2185B;
    --rose-light: #F48FB1;
    --rose-deep: #880E4F;
    --rose-blush: #FCE4EC;
    --rose-pale: #FFF0F5;
    --gold: #D4AF37;
    --cream: #FFF8F0;
    --dark: #1A0A12;
    --neu-bg: #FFF0F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--rose-pale);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--dark);
}

.bg-canvas {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(244, 143, 177, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(194, 24, 91, 0.20) 0%, transparent 60%),
        linear-gradient(135deg, #FFF0F5 0%, #FCE4EC 40%, #FFF8F0 100%);
    z-index: 0;
}

.petal {
    position: fixed;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 1;
    opacity: 0;
}

@keyframes fall {
    0% {
        transform: translateY(-60px) rotate(0deg);
        opacity: 0.7;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* MUSIC BAR */
#music-bar {
    position: fixed;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 240, 245, 0.82);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(194, 24, 91, 0.22);
    border-radius: 50px;
    padding: 0.4rem 0.9rem 0.4rem 0.55rem;
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.15);
}

#music-bar button {
    background: none;
    border: none;
    color: var(--rose);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    line-height: 1;
}

#music-bar .music-label {
    font-size: 0.68rem;
    color: #7B2D4A;
    font-weight: 500;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    margin-left: 3px;
}

.music-eq span {
    display: block;
    width: 3px;
    background: var(--rose);
    border-radius: 2px;
    animation: eq 0.65s ease-in-out infinite alternate;
}

.music-eq span:nth-child(1) {
    height: 5px;
    animation-delay: 0s;
}

.music-eq span:nth-child(2) {
    height: 11px;
    animation-delay: 0.15s;
}

.music-eq span:nth-child(3) {
    height: 7px;
    animation-delay: 0.3s;
}

.music-eq span:nth-child(4) {
    height: 13px;
    animation-delay: 0.1s;
}

.music-eq.paused span {
    animation: none;
    height: 3px;
}

@keyframes eq {
    from {
        transform: scaleY(0.4);
    }

    to {
        transform: scaleY(1);
    }
}

/* SCREENS */
.screen {
    display: none;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 2rem 1rem;
    animation: screenFade 0.7s ease forwards;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes screenFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GLASS CARD */
.glass-card {
    background: rgba(255, 240, 245, 0.58);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1.5px solid rgba(194, 24, 91, 0.18);
    border-radius: 28px;
    padding: 2.5rem 2.2rem;
    box-shadow: 0 8px 40px rgba(194, 24, 91, 0.12), 0 2px 8px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    max-width: 640px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* NEU BUTTONS */
.neu-btn {
    background: var(--neu-bg);
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2.2rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 6px 6px 14px rgba(194, 24, 91, 0.18), -4px -4px 10px rgba(255, 255, 255, 0.92);
    color: var(--rose-deep);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.neu-btn:hover {
    box-shadow: 8px 8px 20px rgba(194, 24, 91, 0.24), -4px -4px 12px rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    color: var(--rose);
}

.neu-btn:active {
    box-shadow: inset 4px 4px 10px rgba(194, 24, 91, 0.15), inset -3px -3px 8px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

.neu-btn.primary {
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    color: white;
    box-shadow: 6px 6px 16px rgba(136, 14, 79, 0.35), -3px -3px 8px rgba(255, 200, 220, 0.4);
}

.neu-btn.primary:hover {
    box-shadow: 8px 8px 22px rgba(136, 14, 79, 0.45), -3px -3px 10px rgba(255, 200, 220, 0.5);
    transform: translateY(-3px);
}

.neu-btn.gold {
    background: linear-gradient(135deg, var(--gold), #B8960C);
    color: white;
    box-shadow: 6px 6px 16px rgba(180, 140, 20, 0.35), -3px -3px 8px rgba(255, 240, 180, 0.5);
}

.neu-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 6px 6px 16px rgba(18, 140, 126, 0.35), -3px -3px 8px rgba(150, 255, 200, 0.4);
}

.neu-btn.whatsapp:hover {
    box-shadow: 8px 8px 22px rgba(18, 140, 126, 0.45), -3px -3px 10px rgba(150, 255, 200, 0.5);
    transform: translateY(-3px);
}

/* TYPOGRAPHY */
.script-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.6rem;
    color: var(--rose-deep);
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(194, 24, 91, 0.18);
    margin-bottom: 0.5rem;
}

.serif-heading {
    font-family: 'Playfair Display', serif;
    color: var(--rose-deep);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.body-text {
    color: #5D2A3E;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 300;
}

.gold-accent {
    color: var(--gold);
    font-weight: 500;
}

.gold-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0.9rem auto;
    border-radius: 2px;
}

.floating-heart {
    display: inline-block;
    animation: heartPulse 1.4s ease-in-out infinite;
    color: var(--rose);
    font-size: 1.6rem;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== SCREEN 2: YES/NO ARENA ===== */
/* The arena is the container for the no-button to escape within */
#ask-arena {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 1.2rem;
}

/* YES stays absolutely centered at the top of the arena */
#yes-btn {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    white-space: nowrap;
}

/* NO starts bottom-right and moves around — pointer-events still on so hover triggers */
#no-btn {
    position: absolute;
    bottom: 20px;
    right: 10px;
    z-index: 4;
    transition: top 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), left 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), right 0.25s ease, bottom 0.25s ease;
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 0.7rem 1.5rem;
}

#no-count-msg {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #9E6475;
    white-space: nowrap;
    pointer-events: none;
    font-style: italic;
}

/* STEP DOTS */
.planner-step-indicator {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(194, 24, 91, 0.18);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--rose);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(194, 24, 91, 0.5);
}

.step-dot.done {
    background: var(--gold);
}

.progress-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(194, 24, 91, 0.1);
    border-radius: 2px;
    margin-bottom: 1.3rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose-light), var(--rose));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* OPTION GRIDS */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
    width: 100%;
}

.option-card {
    border: 2px solid rgba(194, 24, 91, 0.12);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.22s ease;
    backdrop-filter: blur(12px);
    box-shadow: 3px 3px 10px rgba(194, 24, 91, 0.08), -2px -2px 6px rgba(255, 255, 255, 0.8);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 240, 245, 0.5);
}

.option-card:hover {
    border-color: rgba(194, 24, 91, 0.4);
    transform: translateY(-3px);
    box-shadow: 5px 5px 18px rgba(194, 24, 91, 0.2), -2px -2px 8px rgba(255, 255, 255, 0.9);
}

.option-card.selected {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.18), 5px 5px 18px rgba(194, 24, 91, 0.15);
}

/* tick badge for selected */
.option-card.selected .tick-badge {
    display: flex !important;
    content: "✓";
}

.tick-badge {
    display: none;
    position: absolute;
    top: 7px;
    right: 7px;
    background: var(--rose);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    /* ← was 0.85rem, slightly smaller */
    z-index: 5;
    line-height: 1;
    font-weight: 700;
    /* ← add this */
    text-align: center;
    /* ← add this */
}

/* PIC CARDS */
.pic-card {
    padding: 0;
}

.card-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.card-img-placeholder {
    width: 100%;
    height: 90px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.1), rgba(212, 175, 55, 0.07));
    border-radius: 16px 16px 0 0;
}

.card-img-placeholder i {
    font-size: 2rem;
    color: var(--rose);
    opacity: 0.5;
}

.card-body {
    padding: 0.65rem 0.6rem 0.75rem;
}

.card-body .card-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2D0A1A;
    display: block;
    line-height: 1.3;
}

.card-body .card-sub {
    font-size: 0.66rem;
    color: #9E6475;
    font-weight: 300;
    margin-top: 0.18rem;
    display: block;
}

.venue-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: linear-gradient(135deg, var(--gold), #B8960C);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 2px 7px;
    border-radius: 7px;
    text-transform: uppercase;
    z-index: 3;
}

/* ICON CARDS */
.icon-card {
    padding: 0.9rem 0.7rem;
}

.icon-card i {
    font-size: 1.8rem;
    color: var(--rose);
    display: block;
    margin-bottom: 0.35rem;
}

.icon-card .card-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2D0A1A;
    display: block;
    line-height: 1.3;
}

.icon-card .card-sub {
    font-size: 0.66rem;
    color: #9E6475;
    font-weight: 300;
    margin-top: 0.18rem;
    display: block;
}

/* TIME CHIPS */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin: 0.9rem 0;
}

.time-chip {
    background: rgba(255, 240, 245, 0.6);
    border: 1.5px solid rgba(194, 24, 91, 0.12);
    border-radius: 12px;
    padding: 0.6rem 0.4rem;
    cursor: pointer;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: #5D2A3E;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 8px rgba(194, 24, 91, 0.08), -1px -1px 4px rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.time-chip:hover {
    border-color: rgba(194, 24, 91, 0.35);
    transform: scale(1.03);
}

.time-chip.selected {
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(194, 24, 91, 0.35);
}

/* DATE INPUT */
.date-input-wrap input {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid rgba(194, 24, 91, 0.2);
    border-radius: 14px;
    background: rgba(255, 240, 245, 0.5);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.93rem;
    color: var(--dark);
    outline: none;
    backdrop-filter: blur(8px);
    box-shadow: inset 2px 2px 6px rgba(194, 24, 91, 0.06), inset -1px -1px 4px rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s;
}

.date-input-wrap input:focus {
    border-color: var(--rose);
}

/* NO SCREEN */
.no-resp {
    background: rgba(252, 228, 236, 0.6);
    border: 1px solid rgba(194, 24, 91, 0.15);
    border-radius: 14px;
    padding: 0.75rem 1.1rem;
    font-size: 0.86rem;
    color: #7B2D4A;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* SUMMARY */
.summary-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(252, 228, 236, 0.4);
    border: 1px solid rgba(194, 24, 91, 0.1);
    margin-bottom: 0.55rem;
    text-align: left;
}

.summary-line i {
    color: var(--rose);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.summary-label {
    font-size: 0.68rem;
    color: #9E6475;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
}

.summary-val {
    font-size: 0.86rem;
    color: var(--dark);
    font-weight: 500;
    display: block;
}

/* PHONE INPUT */
.phone-wrap {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin: 0.8rem 0;
}

.phone-wrap input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(37, 211, 102, 0.3);
    border-radius: 14px;
    background: rgba(240, 255, 248, 0.5);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
}

.phone-wrap input:focus {
    border-color: #25D366;
}

/* CONFETTI */
.confetti-piece {
    position: fixed;
    top: -10px;
    animation: confettiFall 3s ease-in forwards;
    z-index: 999;
    border-radius: 2px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(900deg);
        opacity: 0;
    }
}

.back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    color: var(--rose);
    font-size: 1.45rem;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s;
    z-index: 20;
}

.back-btn:hover {
    opacity: 1;
}

/* ===== CAROUSEL ===== */
.carousel-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.carousel-track {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-inner {
    display: flex;
    gap: 0;
    /* no gap needed — full width snaps cleanly */
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    margin-right: 0;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 240, 245, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(194, 24, 91, 0.13);
    box-shadow: 4px 4px 18px rgba(194, 24, 91, 0.1), -2px -2px 8px rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: border-color 0.22s, box-shadow 0.22s;
    position: relative;
}

.carousel-slide:last-child {
    margin-right: 0;
}

.carousel-slide.selected {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.2), 6px 6px 22px rgba(194, 24, 91, 0.18);
}

.carousel-slide .tick-badge {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--rose);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(194, 24, 91, 0.4);
}

.carousel-slide.selected .tick-badge {
    display: flex;
}

.carousel-slide-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.carousel-slide-placeholder {
    width: 100%;
    height: 180px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.1), rgba(212, 175, 55, 0.07));
}

.carousel-slide-placeholder i {
    font-size: 2.5rem;
    color: var(--rose);
    opacity: 0.4;
}

.carousel-slide-body {
    padding: 0.9rem 1rem 1rem;
    text-align: left;
}

.carousel-slide-body .card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rose-deep);
    display: block;
    margin-bottom: 0.25rem;
}

.carousel-slide-body .card-sub {
    font-size: 0.78rem;
    color: #9E6475;
    font-weight: 300;
    display: block;
}

.carousel-arrow {
    background: rgba(255, 240, 245, 0.75);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(194, 24, 91, 0.18);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rose);
    font-size: 1.2rem;
    box-shadow: 3px 3px 10px rgba(194, 24, 91, 0.15), -2px -2px 6px rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: var(--rose);
    color: white;
    box-shadow: 4px 4px 14px rgba(194, 24, 91, 0.35);
    transform: scale(1.08);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(194, 24, 91, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--rose);
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(194, 24, 91, 0.4);
}

@media(max-width:480px) {
    .script-title {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 1.8rem 1.2rem;
    }

    .option-grid {
        gap: 0.55rem;
    }

    .card-img,
    .card-img-placeholder {
        height: 75px;
    }

    #ask-arena {
        height: 180px;
    }
}