:root {
    --qs-card-radius: 1rem;
}

/* Sticky footer: keep the footer pinned to the bottom of the viewport even
   when the page content is short (admin / general layout). */
html {
    height: 100%;
}

body.bg-light {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.bg-light > main {
    flex: 1 0 auto;
}

body.bg-light > footer {
    flex-shrink: 0;
}

.btn-link.nav-link {
    text-decoration: none;
}

/* ----- Public question pages (the lovely ones 💕) ----- */
.public-body {
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    font-family: 'Quicksand', system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Floating hearts drifting up behind the card */
.floating-hearts {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-hearts .heart {
    position: absolute;
    bottom: -40px;
    font-size: 1.4rem;
    opacity: 0;
    animation: floatHeart linear infinite;
    will-change: transform, opacity;
}

.floating-hearts .heart:nth-child(1)  { left: 4%;  font-size: 1.1rem; animation-duration: 11s; animation-delay: 0s; }
.floating-hearts .heart:nth-child(2)  { left: 12%; font-size: 1.8rem; animation-duration: 9s;  animation-delay: 2s; }
.floating-hearts .heart:nth-child(3)  { left: 20%; font-size: 1.3rem; animation-duration: 13s; animation-delay: 1s; }
.floating-hearts .heart:nth-child(4)  { left: 28%; font-size: 2.1rem; animation-duration: 10s; animation-delay: 4s; }
.floating-hearts .heart:nth-child(5)  { left: 36%; font-size: 1.2rem; animation-duration: 14s; animation-delay: 3s; }
.floating-hearts .heart:nth-child(6)  { left: 44%; font-size: 1.7rem; animation-duration: 8s;  animation-delay: 6s; }
.floating-hearts .heart:nth-child(7)  { left: 52%; font-size: 1.4rem; animation-duration: 12s; animation-delay: 1.5s; }
.floating-hearts .heart:nth-child(8)  { left: 60%; font-size: 2rem;   animation-duration: 9.5s; animation-delay: 5s; }
.floating-hearts .heart:nth-child(9)  { left: 68%; font-size: 1.1rem; animation-duration: 13.5s; animation-delay: 2.5s; }
.floating-hearts .heart:nth-child(10) { left: 76%; font-size: 1.6rem; animation-duration: 10.5s; animation-delay: 7s; }
.floating-hearts .heart:nth-child(11) { left: 84%; font-size: 1.3rem; animation-duration: 11.5s; animation-delay: 0.5s; }
.floating-hearts .heart:nth-child(12) { left: 92%; font-size: 1.9rem; animation-duration: 8.5s;  animation-delay: 3.5s; }
.floating-hearts .heart:nth-child(13) { left: 16%; font-size: 1.5rem; animation-duration: 12.5s; animation-delay: 6.5s; }
.floating-hearts .heart:nth-child(14) { left: 48%; font-size: 1.2rem; animation-duration: 9s;    animation-delay: 8s; }
.floating-hearts .heart:nth-child(15) { left: 72%; font-size: 1.8rem; animation-duration: 14.5s; animation-delay: 4.5s; }
.floating-hearts .heart:nth-child(16) { left: 88%; font-size: 1.4rem; animation-duration: 10s;   animation-delay: 9s; }

@keyframes floatHeart {
    0%   { transform: translateY(0) scale(0.8) rotate(0deg);   opacity: 0; }
    10%  { opacity: 0.85; }
    90%  { opacity: 0.85; }
    100% { transform: translateY(-115vh) scale(1.1) rotate(20deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-hearts { display: none; }
}

.public-overlay {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.question-card {
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 60px rgba(214, 51, 132, 0.18);
    backdrop-filter: blur(2px);
}

/* Romantic script heading on the question + thanks cards */
.question-card h1 {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: #d6336c;
    font-size: clamp(2rem, 6vw, 2.8rem);
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.answer-option {
    cursor: pointer;
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid #ffd6e7;
    border-radius: 0.85rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.answer-option:hover {
    background-color: #fff0f6;
    border-color: #ffa8cc;
    transform: translateY(-1px);
}

.answer-option:has(input:checked) {
    background-color: #ffe3ef;
    border-color: #d6336c;
}

.answer-option .form-check-input:checked {
    background-color: #d6336c;
    border-color: #d6336c;
}

/* Lovely submit button */
.btn-love {
    background: linear-gradient(135deg, #ff6fb5, #d6336c);
    border: none;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-love:hover, .btn-love:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(214, 51, 132, 0.45);
}

.love-note {
    font-family: 'Quicksand', sans-serif;
    color: #c2255c;
}
