/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    --blush: #FFF5F7;
    --gold: #D4AF37;
    --gold-hover: #b5942f;
    --deep-red: #8B0000;
    --charcoal: #222222;
    --card-bg: rgba(255, 255, 255, 0.90);
}

/* ===========================
   RESET & GLOBAL
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--blush);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    color: var(--charcoal);
}

/* ===========================
   BACKGROUND PARTICLES
   =========================== */
#particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Floating red SVG hearts */
.float-heart {
    position: absolute;
    bottom: -12%;
    fill: var(--deep-red);
    opacity: 0.55;
    filter: drop-shadow(0 0 4px rgba(139,0,0,0.30));
    animation: riseUp var(--dur) linear infinite;
}

/* Falling white tulip petals */
.fall-petal {
    position: absolute;
    top: -10%;
    font-size: 1rem;
    opacity: 0.5;
    animation: fallDown var(--dur) linear infinite;
}

@keyframes riseUp {
    0%   { transform: translateY(0) scale(0.7) rotate(0deg); opacity: 0; }
    15%  { opacity: 0.55; }
    85%  { opacity: 0.35; }
    100% { transform: translateY(-115vh) scale(1.3) rotate(50deg); opacity: 0; }
}

@keyframes fallDown {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    15%  { opacity: 0.5; }
    85%  { opacity: 0.3; }
    100% { transform: translateY(115vh) rotate(120deg); opacity: 0; }
}

/* ===========================
   GLASS CARD
   =========================== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 4px solid var(--gold);
    border-radius: 18px;
    padding: 2.5rem 1.8rem;
    width: 92%;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    z-index: 10;
    position: relative;
    overflow: hidden;      /* keeps NO btn inside */
}

.proposal-card {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-card.hidden { display: none; }
.hidden { display: none !important; }

/* ===========================
   CORNER DECORATIONS
   =========================== */
.corner-decor {
    position: absolute;
    font-size: 1.6rem;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}
.top-left     { top: 12px; left: 14px; }
.top-right    { top: 12px; right: 14px; }
.bottom-left  { bottom: 12px; left: 14px; }
.bottom-right { bottom: 12px; right: 14px; }

/* ===========================
   TRANSITIONS
   =========================== */
.fade-in  { animation: fadeIn 0.45s ease forwards; }
.fade-out { animation: fadeOut 0.35s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); pointer-events: none; }
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.heading {
    font-family: 'Playfair Display', serif;
    color: var(--deep-red);
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 0.4rem;
}
.heading-sm { font-size: 2.2rem; }

.body-text {
    font-size: 1.05rem;
    color: var(--charcoal);
}

.subtitle-text {
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.8;
}

/* ===========================
   PROMISES LIST
   =========================== */
.promises-list {
    max-height: 240px;
    overflow-y: auto;
    text-align: left;
    padding: 12px 14px;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: 10px;
    background: rgba(255, 245, 247, 0.6);
}

.promises-list::-webkit-scrollbar { width: 5px; }
.promises-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.promise-item {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--charcoal);
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(212,175,55,0.45);
    animation: slideUp 0.4s ease forwards;
}
.promise-item:last-child { border-bottom: none; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   QUESTIONS
   =========================== */
.q-counter {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.q-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep-red);
    line-height: 1.45;
    margin-bottom: 1.2rem;
}

.options-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
    text-align: left;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: #fff;
    border: 2px solid rgba(212,175,55,0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
    font-size: 0.93rem;
    font-weight: 500;
}
.option-label:hover,
.option-label.picked {
    border-color: var(--gold);
    background: #fdfaf3;
}

.option-label input[type="radio"] { display: none; }

.radio-dot {
    width: 17px; height: 17px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.option-label input:checked + .radio-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--deep-red);
    border-radius: 50%;
}

textarea {
    width: 100%;
    border: 2px solid rgba(212,175,55,0.35);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--charcoal);
    background: #fff;
    outline: none;
    resize: none;
    transition: 0.25s;
}
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 6px rgba(212,175,55,0.2);
}

/* ===========================
   BUTTONS
   =========================== */
.btn-container { margin-top: 1.4rem; }

.btn {
    padding: 0.75rem 2.4rem;
    font-size: 1.05rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: 0.3s;
}

.gold-btn {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 4px 14px rgba(212,175,55,0.35);
}
.gold-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.5);
}

.hidden-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) !important;
    transition: opacity 0.3s, transform 0.3s;
}

/* Proposal buttons */
.proposal-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    min-height: 55px;
}

.yes-btn {
    background: #06d6a0;
    color: #fff;
    box-shadow: 0 4px 14px rgba(6,214,160,0.3);
    z-index: 2;
    transition: 0.3s;
}
.yes-btn:hover { background: #05c491; transform: scale(1.04); }

.no-btn {
    background: #ef476f;
    color: #fff;
    box-shadow: 0 4px 14px rgba(239,71,111,0.3);
    z-index: 5;
    transition: top 0.22s ease, left 0.22s ease;
}

.oops-msg {
    font-size: 1.15rem;
    color: var(--deep-red);
    font-weight: 600;
    margin-top: 1.2rem;
    animation: fadeIn 0.5s ease;
}

/* YES pulsing center state */
.yes-btn.center-pulse {
    animation: growPulse 1.4s infinite;
}

@keyframes growPulse {
    0%   { transform: scale(1.2); box-shadow: 0 0 0 0 rgba(6,214,160,0.6); }
    70%  { transform: scale(1.35); box-shadow: 0 0 0 22px rgba(6,214,160,0); }
    100% { transform: scale(1.2); box-shadow: 0 0 0 0 rgba(6,214,160,0); }
}

/* Success */
.success-sub {
    font-size: 1.1rem;
    color: var(--deep-red);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 480px) {
    .glass-card { padding: 1.6rem 1.1rem; width: 94%; }
    .heading { font-size: 2.2rem; }
    .heading-sm { font-size: 1.8rem; }
    .q-text { font-size: 1.05rem; }
    .corner-decor { font-size: 1.2rem; }
}
