
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 15px;

    font-family: 'Poppins', sans-serif;

    background:
        linear-gradient(
            135deg,
            #ffc1d6,
            #ffe0e9,
            #ffd1dc,
            #fff0f5
        );

    overflow-x: hidden;
}

/* FLOATING HEARTS */

.hearts-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    animation: floatHeart linear forwards;
    opacity: 0.8;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* MAIN CARD */

.card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(15px);

    width: 100%;
    max-width: 460px;

    padding: 35px 28px;
    border-radius: 30px;

    text-align: center;

    box-shadow:
        0 15px 50px rgba(255, 77, 125, 0.18);

    border: 2px solid rgba(255,255,255,0.8);

    position: relative;
    z-index: 2;

    animation: appear 0.8s ease;
}

.hidden {
    display: none;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* TEXT */

.top-heart {
    font-size: 35px;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}

.small-text {
    color: #ff729c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(38px, 10vw, 53px);
    color: #fa477e;
    line-height: 1.2;
    margin-bottom: 15px;
}

h2 {
    color: #f05b8a;
    font-size: 21px;
    margin: 15px 0;
}

.subtitle {
    color: #888;
    font-size: 13px;
    line-height: 1.8;
}

.big-heart {
    font-size: 75px;
    margin: 20px 0;
    animation: heartbeat 1.2s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    15%, 35% {
        transform: scale(1.18);
    }

    25%, 45% {
        transform: scale(1);
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.2);
    }
}

.question-text {
    color: #f05b8a;
    font-size: 15px;
    font-weight: 600;
}

/* BUTTONS */

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    min-height: 55px;
}

button {
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    border-radius: 30px;
    padding: 13px 28px;
    transition: 0.25s;
}

#yesBtn {
    background: linear-gradient(45deg, #ff4f81, #ff85a8);
    color: white;
    box-shadow: 0 5px 15px #ffb3ca;
}

#yesBtn:hover {
    transform: scale(1.12);
}

#noBtn {
    background: #eee;
    color: #777;
    position: relative;
    z-index: 10;
}

.bottom-text {
    margin-top: 25px;
    color: #bbb;
    font-size: 11px;
}

/* LOVE MESSAGE */

.love-message {
    background: #fff0f5;
    border-radius: 18px;
    padding: 18px;
    margin: 20px 0;

    color: #ec6791;
    font-family: 'Dancing Script', cursive;
    font-size: 23px;
    line-height: 1.5;
}

.divider {
    color: #ff8eae;
    letter-spacing: 10px;
    margin: 20px 0;
}

/* FORM */

form {
    text-align: left;
    margin-top: 20px;
}

label {
    display: block;
    color: #f05b8a;
    font-size: 13px;
    font-weight: 600;
    margin: 15px 0 8px;
}

input, textarea {
    width: 100%;
    padding: 14px;

    border: 2px solid #ffe0e9;
    border-radius: 13px;

    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;

    background: #fffafb;
    color: #777;

    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: #ff78a1;
    box-shadow: 0 0 10px #ffc1d6;
}

textarea {
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #ff4f81, #ff89ac);
    color: white;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    box-shadow: 0 5px 15px #ffc0d3;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

/* FINAL PAGE */

.final-heart {
    font-size: 85px;
    animation: heartbeat 1s infinite;
    margin-bottom: 15px;
}

.date-details {
    background: #fff0f5;
    border-radius: 18px;
    padding: 18px;
    text-align: left;
    color: #e85e8d;
    font-size: 13px;
    line-height: 2.2;
    margin: 20px 0;
    overflow-wrap: anywhere;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 27px;
    color: #f05b8a;
    margin-top: 20px;
}

.final-decoration {
    font-size: 28px;
    margin-top: 20px;
}

/* CONFETTI */

.confetti {
    position: fixed;
    top: -20px;
    z-index: 100;
    pointer-events: none;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }

    h2 {
        font-size: 18px;
    }
}


/* SCREENSHOT REMINDER */

.screenshot-reminder {
    background: linear-gradient(
        135deg,
        #ffb6cc,
        #ffe1eb
    );

    padding: 22px 15px;
    border-radius: 20px;

    margin-top: 20px;

    color: #e84378;
    font-weight: 700;
    font-size: 18px;

    box-shadow: 0 5px 20px rgba(255, 105, 150, 0.2);

    animation: reminderPulse 2s infinite;
}

.screenshot-reminder p {
    color: #a94c70;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.8;
    margin-top: 12px;
}

.screenshot-reminder span {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    margin-top: 10px;
}

@keyframes reminderPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}
