/* Basic reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #ff758c, #ff7eb3, #ffc3a0, #ffafbd);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    padding: 20px;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card */
.card {
    background: rgba(255,255,255,0.28);
    backdrop-filter: blur(20px);
    border-radius: 26px;
    padding: 35px 25px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
}

.ring { font-size: 48px; animation: ringPulse 2s infinite; }
@keyframes ringPulse {
    0%,100%{transform:scale(1);}
    50%{transform:scale(1.2);}
}

h1 { margin-top: 14px; font-size: 22px; color: #2a2a2a; }
p { margin: 18px 0; font-size: 14px; color: #333; line-height: 1.6; }
.question { font-size: 22px; font-weight: 600; color: #c9184a; margin-top: 22px; }

.buttons { position: relative; height: 70px; margin-top: 28px; }
.btn {
    padding: 16px;
    border-radius: 40px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: absolute;
    width: 45%;
}
.btn-yes {
    left: 0;
    background: linear-gradient(135deg,#ff4d6d,#c9184a);
    color: #fff;
    box-shadow: 0 10px 30px rgba(201,24,74,0.6);
}
.btn-no {
    right: 0;
    background: rgba(255,255,255,0.7);
    color: #555;
    transition: transform 0.25s ease;
}

/* Modal */
.modal {
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 10;
    width: 35vw;
    max-width: 400px;
    min-width: 280px;
    border-radius: 20px;
    padding: 10px;
}
.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.modal-content img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 12px;
}
.modal-content textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 10px;
    border:1px solid #ddd;
    margin:10px 0;
    resize: vertical;
}
.modal-content button {
    margin-top:10px;
    padding:12px 28px;
    border-radius:25px;
    border:none;
    background:#c9184a;
    color:white;
    font-size:14px;
    cursor:pointer;
}
#consentSaved { display:none; margin-top:12px; font-size:13px; color:#155724; }

/* Celebration hearts */
.celebrate {
    position: fixed;
    inset:0;
    pointer-events: none;
    display: none;
}
.celebrate span {
    position: absolute;
    font-size: 22px;
    animation: rise 3s linear infinite;
}
@keyframes rise {
    from { transform: translateY(100vh); opacity:1; }
    to { transform: translateY(-10vh); opacity:0; }
}

/* Love message */
#loveMessage {
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    font-size:3rem;
    color:green;
    font-weight:700;
    text-align:center;
    pointer-events:none;
    z-index:20;
    opacity:0;
}
@keyframes popInOut {
    0% { transform:translate(-50%, -50%) scale(0); opacity:0; }
    50% { transform:translate(-50%, -50%) scale(1.2); opacity:1; }
    70% { transform:translate(-50%, -50%) scale(1); }
    100% { transform:translate(-50%, -100%) scale(1); opacity:0; }
}
.showLove { animation: popInOut 2s ease forwards; }
