* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}

/* Floating hearts background */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: float-up linear infinite;
    opacity: 0.6;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Main container */
.container {
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* Card styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    animation: card-appear 0.8s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes card-appear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.card.hidden {
    display: none;
}

/* Image styles */
.image-wrapper {
    margin-bottom: 20px;
}

.character-image {
    width: 250px;
    height: auto;
    border-radius: 20px;
    animation: gentle-bounce 3s ease-in-out infinite;
}

.couple-image {
    width: 300px;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Typography */
.title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.title.celebration {
    color: #e74c3c;
    animation: pulse-text 0.5s ease-in-out infinite alternate;
}

.title.rejection {
    color: #c0392b;
}

.title.sad {
    color: #7f8c8d;
}

.valentine-title {
    font-size: 2.8rem;
}

@keyframes pulse-text {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 300;
}

.love-message {
    color: #e74c3c;
    font-weight: 400;
}

.footer-text {
    margin-top: 20px;
    font-size: 1.3rem;
    color: #e74c3c;
    font-weight: 600;
    font-family: 'Dancing Script', cursive;
}

/* Input styles */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 10px;
}

.text-input {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #ffb6c1;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

.text-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.2);
}

.text-input::placeholder {
    color: #ccc;
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #fff5f5;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #555;
    border: 2px solid transparent;
}

.checkbox-label:hover {
    background: #ffe0e0;
    border-color: #ffb6c1;
}

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

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #e74c3c;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #e74c3c;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:checked ~ span:last-child {
    color: #e74c3c;
    font-weight: 500;
}

/* Error message */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 10px;
    background: #fff0f0;
    border-radius: 10px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Buttons */
.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

.btn-secondary:hover {
    transform: scale(1.05);
}

.btn-yes {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.5);
}

.btn-no {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    color: white;
    box-shadow: 0 8px 25px rgba(189, 195, 199, 0.4);
    transition: all 0.3s ease;
}

.btn-no:hover {
    transform: scale(0.9);
}

.btn-shrink {
    font-size: 0.9rem;
    padding: 10px 25px;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Hearts burst animation for yes response */
.hearts-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.burst-heart {
    position: absolute;
    font-size: 30px;
    animation: burst 1s ease-out forwards;
}

@keyframes burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }

    .character-image {
        width: 200px;
    }

    .couple-image {
        width: 250px;
    }

    .title {
        font-size: 2rem;
    }

    .valentine-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .checkbox-label {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

/* Confetti styles */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall linear forwards;
    z-index: 1000;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
