:root {
    --primary: #e05675;
    --primary-hover: #c93d5f;
    --primary-light: #fff0f3;
    --primary-glow: rgba(224, 86, 117, 0.35);
    --accent: #f7a072;
    --bg-gradient: linear-gradient(135deg, #fff5f5 0%, #ffe3e8 40%, #ffdde5 70%, #fbeaf0 100%);
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-border: rgba(255, 215, 225, 0.85);
    --text-main: #3d2b33;
    --text-muted: #7d656f;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-handwriting: 'Caveat', cursive;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px 14px;
}

/* Background floating ambient hearts */
.ambient-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-heart {
    position: absolute;
    color: rgba(235, 115, 145, 0.15);
    font-size: 24px;
    user-select: none;
    animation: floatHeart 12s infinite linear;
}

@keyframes floatHeart {
    0% {
        transform: translateY(105vh) scale(0.7) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) scale(1.2) rotate(45deg);
        opacity: 0;
    }
}

/* Music Control Floating Pill */
.music-bar {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1000;
}

.music-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--card-border);
    padding: 9px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(224, 86, 117, 0.15);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 86, 117, 0.25);
    background: #ffffff;
}

.music-btn.playing {
    border-color: var(--primary);
    background: var(--primary-light);
}

.music-wave {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
    height: 14px;
}

.music-wave span {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    height: 4px;
}

.music-btn.playing .music-wave span:nth-child(1) { animation: wave 0.9s infinite ease-in-out; }
.music-btn.playing .music-wave span:nth-child(2) { animation: wave 0.7s infinite ease-in-out 0.2s; }
.music-btn.playing .music-wave span:nth-child(3) { animation: wave 0.8s infinite ease-in-out 0.4s; }

@keyframes wave {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

/* Main Container & Card */
.main-stage {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
}

.date-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    box-shadow: 0 20px 50px rgba(200, 70, 100, 0.14);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 580px) {
    .date-card {
        padding: 26px 18px;
        border-radius: 20px;
    }
}

/* Progress Stepper */
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(224, 86, 117, 0.22);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 99px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.step-dot.completed {
    background: var(--primary);
}

/* Typography */
.badge-crush {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(224, 86, 117, 0.25);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.title-romantic {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 12px;
    font-weight: 700;
}

@media (max-width: 580px) {
    .title-romantic {
        font-size: 1.75rem;
    }
}

.subtitle-romantic {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 28px;
}

.script-text {
    font-family: var(--font-handwriting);
    font-size: 1.75rem;
    color: var(--primary);
    display: block;
    margin-top: 4px;
}

/* Action Buttons */
.btn-primary-date {
    background: linear-gradient(135deg, #e05675 0%, #ec6b89 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(224, 86, 117, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-date:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(224, 86, 117, 0.45);
    background: linear-gradient(135deg, #c93d5f 0%, #e05675 100%);
}

.btn-primary-date:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary-date {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-muted);
    border: 1px solid rgba(224, 86, 117, 0.2);
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-date:hover {
    background: #ffffff;
    color: var(--text-main);
    border-color: var(--primary);
}

.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Step 1: Runaway Question Area */
.question-hero {
    text-align: center;
    padding: 10px 0;
}

.avatar-heart {
    width: 86px;
    height: 86px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #ffe0e6, #ffd0d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(224, 86, 117, 0.2);
    animation: gentlePulse 2.8s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.question-buttons-area {
    position: relative;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.btn-yes {
    font-size: 1.25rem;
    padding: 16px 36px;
    animation: pulseGlow 2s infinite ease-in-out;
    z-index: 5;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(224, 86, 117, 0.35); }
    50% { box-shadow: 0 12px 36px rgba(224, 86, 117, 0.65); transform: scale(1.03); }
}

.btn-no-runaway {
    background: rgba(255, 255, 255, 0.85);
    color: #9c858e;
    border: 1px solid #e0cbd3;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    z-index: 10;
    transition: transform 0.2s ease-out, background-color 0.2s ease;
}

.btn-no-runaway:hover {
    background: #fbf5f7;
}

/* Step 2: Calendar Day Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.calendar-day-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 215, 225, 0.6);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    user-select: none;
}

.calendar-day-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(224, 86, 117, 0.18);
}

.calendar-day-card.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--primary-glow);
    transform: translateY(-4px) scale(1.02);
}

.day-weekday {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.calendar-day-card.selected .day-weekday {
    color: var(--primary);
}

.day-number {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.day-month {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.day-heart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step 3: Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 215, 225, 0.6);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    user-select: none;
}

.activity-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(224, 86, 117, 0.16);
}

.activity-card.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--primary-glow);
    transform: translateY(-3px) scale(1.01);
}

.activity-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.activity-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.activity-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.custom-activity-input {
    margin-top: 10px;
    width: 100%;
}

/* Step 4: Food & Form Inputs */
.form-group-romantic {
    margin-bottom: 22px;
    text-align: left;
}

.form-label-romantic {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control-romantic {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 215, 225, 0.7);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
    resize: vertical;
}

.form-control-romantic:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: #ffffff;
}

.form-control-romantic::placeholder {
    color: #ad949f;
    font-size: 0.92rem;
}

/* Food suggestion badges */
.food-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* Countdown Timer Widget */
.countdown-container {
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 248, 250, 0.9));
    border: 2px dashed rgba(224, 86, 117, 0.35);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    margin: 18px auto 22px;
    max-width: 480px;
    text-align: center;
}

.countdown-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-unit {
    background: #ffffff;
    border: 1px solid rgba(224, 86, 117, 0.25);
    box-shadow: 0 4px 12px rgba(224, 86, 117, 0.12);
    border-radius: var(--radius-sm);
    min-width: 68px;
    padding: 10px 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.countdown-unit:hover {
    transform: translateY(-2px);
}

.countdown-number {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    font-family: var(--font-body);
}

.countdown-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.food-chip {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(224, 86, 117, 0.2);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.food-chip:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.food-chip.vegan {
    background: rgba(240, 249, 241, 0.95);
    border-color: rgba(46, 125, 50, 0.35);
    color: #2e7d32;
    font-weight: 500;
}

.food-chip.vegan:hover {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #1b5e20;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

/* Step 5: Confirmed Date Ticket */
.ticket-wrapper {
    position: relative;
    margin: 10px 0 20px;
    perspective: 1000px;
}

.date-ticket {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(224, 86, 117, 0.22);
    border: 2px dashed rgba(224, 86, 117, 0.35);
    overflow: hidden;
    position: relative;
    padding: 28px 24px;
    animation: ticketEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ticketEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px dashed #fcd5de;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ticket-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.ticket-stamp {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #27ae60;
    border: 2px solid #27ae60;
    padding: 4px 8px;
    border-radius: 6px;
    transform: rotate(-6deg);
    display: inline-block;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .ticket-grid {
        grid-template-columns: 1fr;
    }
}

.ticket-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.ticket-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.ticket-footer-note {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    font-family: var(--font-handwriting);
    font-size: 1.55rem;
    color: var(--primary);
    margin-top: 14px;
    line-height: 1.2;
}

/* WhatsApp CTA Button */
.btn-whatsapp {
    background: #25D366;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
    margin-top: 16px;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    color: white;
}

/* Footer note */
.page-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
