:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff758f;
    --accent-color: #ffb3c1;
    --bg-gradient-start: #ffb3c1;
    --bg-gradient-end: #ffccd5;
    --text-color: #590d22;
    --card-bg: rgba(255, 255, 255, 0.85);
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Animated Background */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
    animation: pulseBg 10s infinite alternate ease-in-out;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    bottom: -10vh;
    font-size: 24px;
    animation: floatUp linear forwards;
    opacity: 0.8;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* Main Card Styling */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(255, 77, 109, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    z-index: 10;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

.card::-webkit-scrollbar {
    width: 6px;
}
.card::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.gif-container {
    margin: 20px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gif-container:hover {
    transform: scale(1.02);
}

.cute-gif {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.question {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    min-height: 60px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-yes {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform-origin: center;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.btn-yes:hover {
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.4);
    transform: scale(1.05) !important;
}

.btn-no {
    background: #f8f9fa;
    color: #6c757d;
}

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

.step {
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

input[type="time"], input[type="text"], textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

input[type="time"]:focus, input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.2);
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px 15px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.radio-label:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(5px);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.radio-label input:checked ~ * {
    color: var(--primary-color);
    font-weight: bold;
}

.btn-next, .btn-submit {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 109, 0.3);
}

.success-message {
    text-align: center;
}

.success-message p {
    font-size: 1.3rem;
    margin: 20px 0;
    font-weight: 600;
}

.heart-pulse {
    font-size: 5rem;
    animation: heartbeat 1s infinite;
    margin: 30px auto;
}

@media (max-width: 480px) {
    .header h1 { font-size: 2.8rem; }
    .card { padding: 30px 20px; }
}
