* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffe4ec, #fce7f3, #fff0f5);
    font-family: Arial, sans-serif;
    color: #713047;
    overflow-x: hidden;
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(190, 70, 120, 0.15);
    text-align: center;
}

[hidden] {
    display: none !important;
}

.emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

h1 {
    color: #d63384;
    font-size: 28px;
    margin: 10px 0 18px;
}

p {
    line-height: 1.6;
    font-size: 16px;
}

.question {
    font-weight: bold;
    margin: 24px 0;
}

input,
textarea {
    display: block;
    width: 100%;
    margin: 10px 0 20px;
    padding: 13px;
    border: 1px solid #f0b6cd;
    border-radius: 12px;
    background: #fffafd;
    font: inherit;
    color: #713047;
}

input:focus,
textarea:focus {
    outline: 2px solid #e879ad;
    border-color: transparent;
}

label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 15px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: #e75499;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

button:hover {
    background: #d63384;
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.hearts {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.heart {
    position: absolute;
    bottom: -40px;
    animation: floatUp linear forwards;
    opacity: 0.7;
}

@keyframes floatUp {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    to {
        transform: translateY(-110vh) rotate(25deg);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 28px 20px;
    }

    h1 {
        font-size: 25px;
    }
}


/* Gentle floating motion for the invitation card */
.card {
    animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* Smooth entrance for each new section */
.step-enter {
    animation: enterScene 0.8s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes enterScene {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Buttons feel responsive */
button {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 7px 18px rgba(214, 51, 132, 0.2);
}

button:active {
    transform: scale(0.97);
}

/* Hearts float gently across the page */
.heart {
    will-change: transform, opacity;
    animation-name: floatUp;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card {
        animation: none;
    }

    .step-enter {
        animation-duration: 0.10ms;
    }
}
