* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rose: #d96b86;
    --rose-dark: #b9516b;
    --soft-rose: #f8e8ec;
    --cream: #fffaf9;
    --text: #403538;
    --muted: #88777c;
    --white: #ffffff;
}

body {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at top,
            #fff5f7,
            #f8edef 55%,
            #f3e5e9
        );

    min-height: 100vh;
}

.app {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;
}

.card {
    width: min(620px, 100%);

    min-height: 520px;

    background: var(--white);

    border-radius: 28px;

    padding: 55px 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    box-shadow:
        0 25px 70px
        rgba(80, 40, 50, 0.14);

    position: relative;

    overflow: hidden;

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

/* -------------------------------- */
/* General typography */
/* -------------------------------- */

h1 {
    font-size: clamp(28px, 6vw, 42px);

    letter-spacing: 5px;

    margin-bottom: 18px;
}

h2 {
    font-size: 28px;

    margin-bottom: 15px;
}

.subtitle {
    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;
}

.heart {
    color: var(--rose);

    font-size: 58px;

    margin-bottom: 18px;

    animation:
        heartbeat 1.5s infinite;
}

/* -------------------------------- */
/* Opening */
/* -------------------------------- */

.scene {
    width: 100%;

    animation:
        sceneIn 0.8s ease;
}

.loading-text {
    margin-top: 12px;

    color: var(--muted);

    font-size: 14px;
}

.progress-container {
    width: 100%;

    max-width: 420px;

    height: 7px;

    background: #f0e2e5;

    border-radius: 20px;

    overflow: hidden;

    margin: 35px auto 0;
}

.progress {
    width: 0%;

    height: 100%;

    background: var(--rose);

    border-radius: inherit;

    transition:
        width 0.2s ease;
}

/* -------------------------------- */
/* Buttons */
/* -------------------------------- */

.buttons {
    display: flex;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;

    margin-top: 32px;
}

button {
    border: none;

    cursor: pointer;

    font-family: inherit;

    font-size: 16px;

    padding: 14px 28px;

    border-radius: 999px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

button:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 12px 25px
        rgba(80, 40, 50, 0.14);
}

.primary {
    color: white;

    background: var(--rose);
}

.primary:hover {
    background: var(--rose-dark);
}

.secondary {
    color: #705e63;

    background: var(--soft-rose);
}

/* -------------------------------- */
/* Question */
/* -------------------------------- */

.question {
    font-size: clamp(24px, 5vw, 32px);

    line-height: 1.5;

    margin: 25px auto;

    max-width: 500px;
}

/* -------------------------------- */
/* Form */
/* -------------------------------- */

.form {
    display: flex;

    flex-direction: column;

    gap: 18px;

    text-align: left;

    margin: 30px 0;
}

.form label {
    display: flex;

    flex-direction: column;

    gap: 8px;

    color: #6e5c61;

    font-size: 15px;
}

input,
select {
    width: 100%;

    padding: 14px;

    border-radius: 12px;

    border: 1px solid #eadcdf;

    background: #fffafa;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--rose);

    box-shadow:
        0 0 0 4px
        rgba(217, 107, 134, 0.1);
}

/* -------------------------------- */
/* Final date card */
/* -------------------------------- */

.date-card {
    background: #fff7f8;

    border:
        1px solid #f0dfe3;

    border-radius: 20px;

    padding: 25px;

    margin: 28px 0;

    line-height: 2;

    font-size: 17px;
}

.date-title {
    font-size: 21px;

    font-weight: bold;

    margin-bottom: 8px;
}

.final-message {
    color: var(--muted);

    font-style: italic;

    line-height: 1.7;
}

/* -------------------------------- */
/* Floating hearts */
/* -------------------------------- */

.floating-heart {
    position: absolute;

    pointer-events: none;

    color: var(--rose);

    opacity: 0;

    animation:
        floatHeart 4s ease-in forwards;
}

/* -------------------------------- */
/* Animations */
/* -------------------------------- */

@keyframes heartbeat {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.14);
    }

    100% {
        transform: scale(1);
    }

}

@keyframes sceneIn {

    from {
        opacity: 0;

        transform:
            translateY(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}

@keyframes floatHeart {

    0% {
        opacity: 0;

        transform:
            translateY(30px)
            scale(0.8);
    }

    20% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;

        transform:
            translateY(-400px)
            scale(1.3);
    }

}

/* -------------------------------- */
/* Mobile */
/* -------------------------------- */

@media (max-width: 600px) {

    .app {
        padding: 14px;
    }

    .card {
        min-height: 580px;

        padding: 40px 24px;

        border-radius: 22px;
    }

    h1 {
        letter-spacing: 3px;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

}