* {
    box-sizing: border-box; /* Ensures padding doesn't push fields outside the card */
}

body {
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh; /* Changed from height: 100vh to allow scrolling */
    margin: 0;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* overflow: hidden;  <-- Removed this so users can scroll the form on phones */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Space around the card on small screens */
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 500px; /* Prevents the card from being too wide on desktop */
}

/* --- Added Form Fixes --- */
fieldset {
    border: 3px solid red; /* Your requested thick red border */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
}

legend {
    color: #ff69b4;
    font-weight: bold;
    padding: 0 10px;
}

input, textarea {
    width: 100%; 
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: white;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 16px !important; /* Stops iOS/Android from zooming in when clicked */
}

::placeholder {
    color: rgba(255, 255, 255, 0.8) !important; /* Makes placeholders visible */
}

/* --- Your Heart Animations --- */
.heart {
    position: absolute;
    color: rgba(255, 105, 180, 0.4);
    font-size: 20px;
    user-select: none;
    animation: move 4s linear infinite;
    z-index: -1; /* Keeps hearts behind the form content */
}

@keyframes move {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* --- Mobile Specific Tweaks --- */
@media (max-width: 600px) {
    .glass-card {
        padding: 25px 15px; /* Less padding on phone to give form more room */
    }
    
    body {
        align-items: flex-start; /* Better for long forms on mobile */
    }
}