/* ============================================
   Calentine - UC Berkeley Valentine's Edition
   ============================================ */

/* Color Palette */
:root {
    --berkeley-blue: #003262;
    --california-gold: #FDB515;
    --valentine-pink: #FF6B9D;
    --hot-pink: #FF1493;
    --light-pink: #FFE4EC;
    --peachy-white: #FFF5F0;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--peachy-white) 50%, #FFF8F5 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 50, 98, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--hot-pink);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-cta {
    background: var(--berkeley-blue);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--hot-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

/* ============================================
   Scrolling Marquee Banner
   ============================================ */
.marquee-container {
    background: var(--berkeley-blue);
    padding: 0.75rem 0;
    overflow: hidden;
    margin-top: 52px;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-text {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-heart {
    width: 16px;
    height: 16px;
    color: var(--california-gold);
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

.floating-heart {
    position: absolute;
    color: var(--valentine-pink);
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

.heart-1 { left: 5%; top: 15%; width: 24px; height: 24px; animation-delay: 0s; }
.heart-2 { left: 15%; top: 60%; width: 32px; height: 32px; animation-delay: 1s; }
.heart-3 { left: 25%; top: 35%; width: 28px; height: 28px; animation-delay: 2s; }
.heart-4 { left: 75%; top: 20%; width: 26px; height: 26px; animation-delay: 0.5s; }
.heart-5 { left: 85%; top: 55%; width: 22px; height: 22px; animation-delay: 1.5s; }
.heart-6 { left: 90%; top: 80%; width: 30px; height: 30px; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) rotate(3deg);
    }
}

/* ============================================
   Sparkle Decorations
   ============================================ */
.sparkle {
    position: absolute;
    color: var(--california-gold);
    opacity: 0.6;
    animation: twinkle 3s ease-in-out infinite;
}

.sparkle-1 { left: 10%; top: 25%; width: 16px; height: 16px; animation-delay: 0s; }
.sparkle-2 { left: 30%; top: 70%; width: 12px; height: 12px; animation-delay: 0.5s; }
.sparkle-3 { left: 60%; top: 15%; width: 14px; height: 14px; animation-delay: 1s; }
.sparkle-4 { left: 80%; top: 45%; width: 10px; height: 10px; animation-delay: 1.5s; }
.sparkle-5 { left: 95%; top: 70%; width: 18px; height: 18px; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
    }
}

/* ============================================
   Confetti Background
   ============================================ */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.7;
    animation: confetti-fall 10s linear infinite;
}

.confetti-1 { left: 5%; background: var(--valentine-pink); border-radius: 50%; animation-delay: 0s; }
.confetti-2 { left: 15%; background: var(--california-gold); animation-delay: 1s; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.confetti-3 { left: 25%; background: var(--hot-pink); border-radius: 50%; animation-delay: 2s; }
.confetti-4 { left: 35%; background: var(--california-gold); animation-delay: 3s; }
.confetti-5 { left: 45%; background: var(--valentine-pink); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); animation-delay: 4s; }
.confetti-6 { left: 55%; background: var(--hot-pink); border-radius: 50%; animation-delay: 5s; }
.confetti-7 { left: 65%; background: var(--california-gold); animation-delay: 6s; }
.confetti-8 { left: 75%; background: var(--valentine-pink); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); animation-delay: 7s; }
.confetti-9 { left: 85%; background: var(--hot-pink); border-radius: 50%; animation-delay: 8s; }
.confetti-10 { left: 95%; background: var(--california-gold); animation-delay: 9s; }

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

/* ============================================
   Main Container
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--berkeley-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.title-heart {
    width: 40px;
    height: 40px;
    color: var(--valentine-pink);
    animation: pulse 1.5s ease-in-out infinite;
}

.title-text {
    font-family: 'Pacifico', cursive;
    font-size: 4.5rem;
    text-shadow:
        3px 3px 0 var(--california-gold),
        6px 6px 0 rgba(0, 50, 98, 0.1);
    animation: bounce 2s ease-in-out infinite;
}

/* Gradient animated text */
.gradient-text {
    background: linear-gradient(
        90deg,
        var(--hot-pink) 0%,
        var(--valentine-pink) 25%,
        var(--california-gold) 50%,
        var(--valentine-pink) 75%,
        var(--hot-pink) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 2s ease-in-out infinite, gradient-shimmer 3s linear infinite;
}

@keyframes gradient-shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Wiggle hearts on hover */
.wiggle-heart {
    transition: transform 0.3s ease;
}

.wiggle-heart:hover {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.2); }
    50% { transform: rotate(15deg) scale(1.2); }
    75% { transform: rotate(-10deg) scale(1.1); }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--berkeley-blue);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, var(--california-gold), var(--valentine-pink), var(--california-gold));
    border-radius: 2px;
}

/* ============================================
   Hero Banner Image
   ============================================ */
.hero-banner {
    margin: 1.5rem 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.25),
                0 0 0 4px var(--california-gold);
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 20, 147, 0.1) 0%,
        transparent 50%,
        rgba(253, 181, 21, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-banner:hover .banner-image {
    transform: scale(1.02);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--hot-pink) 0%, var(--valentine-pink) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Glowing CTA Button */
.glow-button {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4),
                    0 0 20px rgba(255, 20, 147, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 20, 147, 0.6),
                    0 0 40px rgba(255, 20, 147, 0.5),
                    0 0 60px rgba(255, 20, 147, 0.3);
    }
}

/* Shimmer effect on button */
.button-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6),
                0 0 50px rgba(255, 20, 147, 0.4);
}

.cta-button:hover .button-shimmer {
    animation: shimmer-fast 0.6s ease-out;
}

@keyframes shimmer-fast {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.cta-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

/* ============================================
   Countdown Timer Section
   ============================================ */
.countdown-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 50, 98, 0.1);
    border: 3px solid var(--california-gold);
}

.countdown-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--berkeley-blue);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--berkeley-blue);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 80px;
    transition: transform 0.3s ease;
}

.countdown-unit:hover {
    transform: scale(1.05);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--california-gold);
    line-height: 1;
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(253, 181, 21, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(253, 181, 21, 0.6),
                     0 0 30px rgba(253, 181, 21, 0.4);
    }
}

/* Seconds tick glow */
#seconds {
    animation: countdown-pulse 1s ease-in-out infinite, seconds-tick 1s steps(1) infinite;
}

@keyframes seconds-tick {
    0%, 50% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.05);
    }
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 800;
    color: var(--berkeley-blue);
    margin: 0 0.25rem;
}

.countdown-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--valentine-pink);
    font-weight: 600;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--berkeley-blue);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 45px rgba(255, 107, 157, 0.3);
}

/* Step icons bounce on hover */
.step:hover .step-icon {
    animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
    75% { transform: translateY(-6px); }
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    color: var(--hot-pink);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    background: var(--california-gold);
    color: var(--berkeley-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(253, 181, 21, 0.4);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--berkeley-blue);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.step-arrow {
    align-self: center;
    padding-top: 1rem;
    color: var(--valentine-pink);
}

.step-arrow svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    box-shadow: 0 6px 25px rgba(0, 50, 98, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 50, 98, 0.15);
}

.stat-card:hover .stat-number {
    animation: number-pop 0.4s ease;
}

@keyframes number-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--berkeley-blue);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--hot-pink);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--berkeley-blue);
    font-weight: 600;
}

/* ============================================
   Blurb Section
   ============================================ */
.blurb {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow:
        0 10px 40px rgba(255, 107, 157, 0.15),
        0 0 0 3px var(--valentine-pink);
    text-align: center;
}

.blurb p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
}

/* ============================================
   Form Section
   ============================================ */
.form-section {
    margin-bottom: 2rem;
    scroll-margin-top: 80px;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow:
        0 15px 50px rgba(0, 50, 98, 0.1),
        0 0 0 4px var(--california-gold);
    overflow: hidden;
}

.form-container iframe {
    border-radius: 12px;
    width: 100%;
    min-height: 600px;
}

.form-fallback {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px dashed rgba(0, 50, 98, 0.1);
}

.form-fallback p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.form-fallback-btn {
    display: inline-block;
    background: var(--berkeley-blue);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-fallback-btn:hover {
    background: var(--hot-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.instagram-toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--berkeley-blue);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 50, 98, 0.4);
    z-index: 9999;
    transition: bottom 0.4s ease;
    text-align: center;
    max-width: 90vw;
}

.instagram-toast.show {
    bottom: 2rem;
}

/* ============================================
   Wavy Dividers
   ============================================ */
.wavy-divider {
    width: 100%;
    height: 40px;
    color: rgba(255, 107, 157, 0.15);
    margin: 1rem 0;
    overflow: hidden;
}

.wavy-divider svg {
    width: 100%;
    height: 100%;
}

.wavy-divider-alt {
    color: rgba(253, 181, 21, 0.2);
    transform: scaleY(-1);
}

/* ============================================
   Fade In Animation on Scroll
   ============================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-section:nth-child(odd) {
    animation-delay: 0.1s;
}

.fade-in-section:nth-child(even) {
    animation-delay: 0.2s;
}

/* ============================================
   Decorative Corner Flourishes
   ============================================ */
.countdown-section,
.blurb {
    position: relative;
}

.countdown-section::before,
.countdown-section::after,
.blurb::before,
.blurb::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--california-gold);
    opacity: 0.5;
}

.countdown-section::before,
.blurb::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
    border-radius: 10px 0 0 0;
}

.countdown-section::after,
.blurb::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 10px 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    font-size: 1.1rem;
    color: var(--berkeley-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-heart {
    width: 20px;
    height: 20px;
    color: var(--hot-pink);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .marquee-container {
        margin-top: 48px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .title-text {
        font-size: 3rem;
    }

    .title-heart {
        width: 32px;
        height: 32px;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }

    .countdown-unit {
        min-width: 65px;
        padding: 0.75rem 1rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .step-arrow {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 300px;
    }

    .blurb {
        padding: 1.5rem;
    }

    .blurb p {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 1rem;
    }

    .form-container iframe {
        display: none;
    }

    .form-fallback {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .form-fallback p {
        font-size: 1rem;
        color: var(--berkeley-blue);
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .form-fallback-btn {
        display: inline-block;
        background: linear-gradient(135deg, var(--hot-pink) 0%, var(--valentine-pink) 100%);
        color: white;
        padding: 1.1rem 2.5rem;
        border-radius: 50px;
        font-size: 1.15rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
        animation: glow-pulse 2s ease-in-out infinite;
        transition: all 0.3s ease;
    }

    .form-fallback-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6),
                    0 0 50px rgba(255, 20, 147, 0.4);
    }

    /* Reduce hearts and sparkles on tablet */
    .heart-2, .heart-5 {
        display: none;
    }

    .sparkle-2, .sparkle-4 {
        display: none;
    }

    .confetti-3, .confetti-5, .confetti-7, .confetti-9 {
        display: none;
    }

    .wavy-divider {
        height: 30px;
    }

    .hero-banner {
        border-radius: 20px;
        margin: 1rem 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .nav-content {
        padding: 0.5rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-cta {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .marquee-container {
        margin-top: 44px;
    }

    .marquee-text {
        font-size: 0.85rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }

    .title-text {
        font-size: 2.5rem;
    }

    .title-heart {
        width: 24px;
        height: 24px;
    }

    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }

    .countdown-section {
        padding: 1.5rem 1rem;
    }

    .countdown-title {
        font-size: 1.1rem;
    }

    .countdown-timer {
        gap: 0.35rem;
    }

    .countdown-unit {
        min-width: 55px;
        padding: 0.6rem 0.75rem;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
        margin: 0 0.1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .stat-card {
        min-width: 130px;
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .blurb {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .blurb p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .form-container {
        padding: 0.75rem;
        border-radius: 15px;
    }

    .form-container iframe {
        display: none;
    }

    .form-fallback {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .form-fallback p {
        font-size: 1rem;
        color: var(--berkeley-blue);
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .form-fallback-btn {
        display: block;
        background: linear-gradient(135deg, var(--hot-pink) 0%, var(--valentine-pink) 100%);
        color: white;
        padding: 1.25rem 2rem;
        border-radius: 50px;
        font-size: 1.2rem;
        font-weight: 700;
        text-decoration: none;
        text-align: center;
        box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
        animation: glow-pulse 2s ease-in-out infinite;
        transition: all 0.3s ease;
    }

    .form-fallback-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6),
                    0 0 50px rgba(255, 20, 147, 0.4);
    }

    /* Further reduce decorative elements on mobile */
    .heart-3, .heart-4, .heart-6 {
        display: none;
    }

    .sparkle {
        display: none;
    }

    .confetti {
        display: none;
    }

    .wavy-divider {
        height: 25px;
        margin: 0.5rem 0;
    }

    .countdown-section::before,
    .countdown-section::after,
    .blurb::before,
    .blurb::after {
        width: 20px;
        height: 20px;
    }

    .hero-banner {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(255, 107, 157, 0.2),
                    0 0 0 3px var(--california-gold);
    }
}

/* ============================================
   Prefer reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .floating-heart,
    .title-text,
    .title-heart,
    .sparkle,
    .confetti,
    .countdown-number,
    #seconds,
    .glow-button,
    .button-shimmer,
    .gradient-text {
        animation: none;
    }

    .gradient-text {
        background: var(--hot-pink);
        -webkit-text-fill-color: var(--hot-pink);
    }

    .marquee-content {
        animation: none;
    }

    .cta-button,
    .nav-cta,
    .nav-logo,
    .step,
    .stat-card,
    .countdown-unit,
    .wiggle-heart,
    .banner-image {
        transition: none;
    }

    .fade-in-section {
        opacity: 1;
        transform: none;
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
