/* ==========================================================================
   Big City MINI — Home / Coming Soon Styles
   ========================================================================== */

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

body.sunny-family-screen,
body.sunny-body,
.sunny-family-screen {
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(circle at 50% 0%, #FFFDF5 0%, #FFF7ED 25%, #FDF4FF 55%, #F0FDF4 80%, #EFF6FF 100%);
    color: #1E1B4B;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px 18px;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Background Atmosphere (Fixed Viewport for True Full-Screen Flight) */
.sky-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sun-ambient-halo {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(254, 240, 138, 0.6) 0%, rgba(253, 186, 116, 0.28) 45%, rgba(244, 114, 182, 0.14) 70%, transparent 85%);
    filter: blur(60px);
}

.cloud-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.fluffy-cloud {
    position: absolute;
    color: #FFFFFF;
    filter: drop-shadow(0 10px 20px rgba(148, 163, 184, 0.18));
}

.c-1 {
    top: 6%;
    font-size: 6rem;
    opacity: 0.75;
    animation: driftCloudRight 42s linear infinite;
}

.c-2 {
    top: 24%;
    font-size: 5rem;
    opacity: 0.6;
    animation: driftCloudLeft 55s linear infinite;
    animation-delay: -12s;
}

.c-3 {
    top: 55%;
    font-size: 7rem;
    opacity: 0.8;
    animation: driftCloudRight 48s linear infinite;
    animation-delay: -24s;
}

.c-4 {
    top: 80%;
    font-size: 4.5rem;
    opacity: 0.5;
    animation: driftCloudLeft 62s linear infinite;
    animation-delay: -38s;
}

@keyframes driftCloudRight {
    0% { transform: translateX(-20vw) translateY(0px); }
    50% { transform: translateX(50vw) translateY(-12px); }
    100% { transform: translateX(120vw) translateY(0px); }
}

@keyframes driftCloudLeft {
    0% { transform: translateX(120vw) translateY(0px); }
    50% { transform: translateX(50vw) translateY(12px); }
    100% { transform: translateX(-20vw) translateY(0px); }
}

/* Rising Balloons Stream (Foreground Layer: Always in Front & Clickable Anywhere) */
.rising-balloons-stream {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 30; /* Floats in front of cards, hero titles & logo so balloons can ALWAYS be clicked */
    overflow: hidden;
}

.single-rising-balloon {
    position: absolute;
    top: 100vh;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    will-change: transform;
    opacity: 1 !important;
    pointer-events: auto; /* Clickable balloons anywhere on screen */
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    z-index: 30;
    border-radius: 50%;
}

.single-rising-balloon:hover .balloon-glyph {
    transform: scale(1.22);
    filter: drop-shadow(0 14px 24px rgba(236, 72, 153, 0.45));
}

.single-rising-balloon:active .balloon-glyph {
    transform: scale(0.9);
}

.single-rising-balloon.popping {
    pointer-events: none;
}

.single-rising-balloon.popping .balloon-glyph {
    animation: balloonPopExplosion 0.18s ease-out forwards;
}

.single-rising-balloon.respawning {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

@keyframes balloonPopExplosion {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Confetti Burst Particles */
.balloon-pop-burst {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.pop-particle {
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
    will-change: transform, opacity;
    animation: particleFly 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

.pop-text {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Fredoka', 'Chewy', cursive, sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: #F59E0B;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 0 12px rgba(254, 240, 138, 0.9);
    white-space: nowrap;
    animation: popTextFloat 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes popTextFloat {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.6);
    }
    30% {
        opacity: 1;
        transform: translateX(-50%) translateY(-15px) scale(1.25);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px) scale(1);
    }
}

.pop-plus-one {
    position: absolute;
    top: -24px;
    left: 20px;
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #F59E0B;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 10px rgba(254, 240, 138, 0.9);
    pointer-events: none;
    white-space: nowrap;
    animation: popPlusOneFloat 0.75s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes popPlusOneFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.6);
    }
    25% {
        opacity: 1;
        transform: translateY(-12px) scale(1.25);
    }
    100% {
        opacity: 0;
        transform: translateY(-38px) scale(1);
    }
}

.balloon-glyph {
    display: inline-block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
    animation: balloonSway 3.5s ease-in-out infinite alternate;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

@keyframes balloonSway {
    0% { transform: rotate(-8deg); }
    100% { transform: rotate(8deg); }
}

.balloon-1 { left: 6%; font-size: 3rem; animation: flyUpwardsLoop 16s linear infinite; animation-delay: 0s; }
.balloon-2 { left: 20%; font-size: 2.3rem; filter: hue-rotate(240deg) saturate(1.3); animation: flyUpwardsLoop 22s linear infinite; animation-delay: -5s; }
.balloon-3 { left: 35%; font-size: 3.3rem; filter: hue-rotate(60deg) saturate(1.5) brightness(1.1); animation: flyUpwardsLoop 18s linear infinite; animation-delay: -11s; }
.balloon-4 { left: 66%; font-size: 2.6rem; filter: hue-rotate(180deg) saturate(1.4); animation: flyUpwardsLoop 20s linear infinite; animation-delay: -3s; }
.balloon-5 { left: 86%; font-size: 3.1rem; filter: hue-rotate(320deg) saturate(1.2); animation: flyUpwardsLoop 15s linear infinite; animation-delay: -8s; }
.balloon-6 { left: 14%; font-size: 2.1rem; filter: hue-rotate(110deg) saturate(1.4); animation: flyUpwardsLoop 25s linear infinite; animation-delay: -15s; }
.balloon-7 { left: 77%; font-size: 3.4rem; filter: hue-rotate(270deg) saturate(1.5); animation: flyUpwardsLoop 19s linear infinite; animation-delay: -7s; }
.balloon-8 { left: 50%; font-size: 2.2rem; filter: hue-rotate(30deg) saturate(1.4); animation: flyUpwardsLoop 23s linear infinite; animation-delay: -13s; }
.balloon-9 { left: 2%; font-size: 2.4rem; filter: hue-rotate(200deg) saturate(1.2); animation: flyUpwardsLoop 21s linear infinite; animation-delay: -4s; }

/* 100% Continuous Full Flight (Never vanishes early on screen) */
@keyframes flyUpwardsLoop {
    0% {
        transform: translateY(60px) translateX(0px);
    }
    25% {
        transform: translateY(-30vh) translateX(25px);
    }
    50% {
        transform: translateY(-60vh) translateX(-20px);
    }
    75% {
        transform: translateY(-90vh) translateX(20px);
    }
    100% {
        transform: translateY(calc(-100vh - 120px)) translateX(-5px);
    }
}

/* Header (Clean Left & Right Distribution) */
.family-top-nav {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 35;
    margin-bottom: 7px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 18px;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.pulse-sun {
    font-size: 1.3rem;
    animation: sunSpin 20s linear infinite;
}

@keyframes sunSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.brand-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #9333EA, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill-badge {
    background: rgba(255, 255, 255, 0.85);
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Pop Counter Pill */
.pop-counter-pill {
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.12);
    font-weight: 700;
    color: #92400E;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.pop-counter-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.6);
}

.pop-counter-pill .pop-balloon-icon {
    font-size: 1.15rem;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pop-counter-pill .pop-count-number {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #D97706;
    min-width: 14px;
    text-align: center;
}

.pop-counter-pill .pop-counter-label {
    font-size: 0.82rem;
    color: #B45309;
    font-weight: 600;
}

.pop-counter-pill.bump {
    transform: scale(1.18);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    border-color: #F59E0B;
}

.pop-counter-pill.bump .pop-balloon-icon {
    transform: rotate(-18deg) scale(1.35);
}

.pop-counter-pill.bump .pop-count-number {
    color: #EC4899;
}

.studio-pill {
    background: linear-gradient(135deg, #F3E8FF, #FCE7F3);
    color: #7E22CE;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
    transition: all 0.25s;
}

.studio-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, #E9D5FF, #FBCFE8);
}

.text-pink { color: #EC4899; }

/* Main Hero */
.family-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 880px;
    z-index: 1;
    margin: 7px 0 22px;
}

.logo-hero-container {
    position: relative;
    width: 245px;
    height: 245px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.logo-sunburst-aura {
    position: absolute;
    inset: -22px;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.6) 0%, rgba(244, 114, 182, 0.35) 45%, rgba(192, 132, 252, 0.18) 70%, transparent 100%);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.85;
    animation: haloBreathe 5s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
    0% { transform: scale(0.94); opacity: 0.7; }
    100% { transform: scale(1.08); opacity: 1; }
}

.logo-float-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    animation: gentleFloat 6s ease-in-out infinite alternate;
}

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

.main-child-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(100, 116, 139, 0.25)) drop-shadow(0 4px 8px rgba(245, 158, 11, 0.15));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-hero-container:hover .main-child-logo {
    transform: scale(1.06) rotate(2deg);
}

.opening-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FEF08A, #FDE047);
    color: #854D0E;
    font-weight: 800;
    font-size: 0.96rem;
    padding: 7px 20px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    margin-bottom: 13px;
    letter-spacing: 0.2px;
}

.family-title {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: clamp(2.75rem, 4.7vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: #1E1B4B;
    margin: 0 0 14px;
    max-width: 820px;
}

.highlight-text {
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 50%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0 4px;
}

.family-subtext {
    font-size: 1.30rem;
    line-height: 1.6;
    color: #475569;
    max-width: 680px;
    margin: 0 auto 14px;
}

.family-subtext strong {
    color: #9333EA;
    font-weight: 700;
}

/* Newsletter Section */
.form-section-wrap {
    width: 100%;
    max-width: 580px;
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 10;
}

.form-intro {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.45;
}

.gift-badge {
    background: linear-gradient(135deg, #EC4899, #F43F5E);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-right: 6px;
    display: inline-block;
}

.cheerful-capsule-form {
    position: relative;
    z-index: 35;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 9999px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 14px 34px -8px rgba(148, 163, 184, 0.2), 0 4px 14px rgba(245, 158, 11, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s ease;
}

.cheerful-capsule-form:hover {
    box-shadow: 0 20px 42px -6px rgba(148, 163, 184, 0.26), 0 6px 18px rgba(236, 72, 153, 0.12);
    border-color: rgba(254, 240, 138, 0.9);
}

.cheerful-capsule-form:focus-within {
    background: #FFFFFF;
    border-color: #EC4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15), 0 20px 42px -6px rgba(236, 72, 153, 0.22);
}

.input-icon-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    color: #94A3B8;
}

.cheerful-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.98rem;
    color: #1E293B;
    outline: none;
}

.cheerful-input::placeholder {
    color: #94A3B8;
}

.cheerful-submit-btn {
    background: linear-gradient(135deg, #EC4899 0%, #A855F7 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.cheerful-submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.5);
}

.cheerful-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-box-cheerful {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    border-radius: 16px;
    padding: 10px 16px;
    margin-top: 12px;
    color: #991B1B;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    animation: bounceIn 0.3s ease-out;
}

.success-box-cheerful {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ECFDF5;
    border: 2px solid #A7F3D0;
    border-radius: 24px;
    padding: 16px 20px;
    text-align: left;
}

.success-icon-big {
    font-size: 2.4rem;
}

.success-msg h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #065F46;
}

.success-msg p {
    margin: 0;
    font-size: 0.88rem;
    color: #047857;
}

.animate-bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

/* Footer */
.family-footer {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: #64748B;
    z-index: 10;
    padding-top: 13px;
    padding-bottom: 9px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links .sep {
    color: #CBD5E1;
}

.footer-links a {
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #EC4899;
}

/* Concept Story Card */
.concept-story-card {
    max-width: 760px;
    width: 100%;
    margin: 9px auto 20px auto;
    padding: 11px 32px 20px 32px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(254, 240, 138, 0.85);
    border-radius: 26px;
    box-shadow: 0 14px 34px -8px rgba(245, 158, 11, 0.14), 0 4px 16px rgba(236, 72, 153, 0.07);
    text-align: center;
    position: relative;
    z-index: 5;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.concept-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -8px rgba(245, 158, 11, 0.22), 0 6px 20px rgba(236, 72, 153, 0.1);
}

.concept-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FCE7F3 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 9999px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.01rem;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 11px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.concept-badge-tag .badge-emoji {
    font-size: 1.15rem;
}

.concept-story-text {
    font-size: 1.11rem;
    line-height: 1.68;
    color: #334155;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* Responsive Tablet Layout (iPads) */
@media (max-width: 820px) {
    .family-title { font-size: 2.85rem; letter-spacing: -0.5px; }
    .family-subtext { font-size: 1.21rem; }
    .logo-hero-container { width: 210px; height: 210px; margin: 0 auto 11px; }
    .concept-story-card {
        padding: 11px 24px 18px 24px;
        margin: 9px auto 16px auto;
        border-radius: 22px;
    }
    .concept-story-text {
        font-size: 1.05rem;
        line-height: 1.62;
        text-align: center;
    }
}

/* Responsive Mobile Layout (Smartphones) */
@media (max-width: 560px) {
    .family-top-nav { flex-direction: column; gap: 8px; }
    .family-title { font-size: 2.3rem; }
    .cheerful-capsule-form { flex-direction: column; border-radius: 20px; padding: 12px; }
    .cheerful-submit-btn { width: 100%; justify-content: center; }
    .family-footer { flex-direction: column; gap: 8px; text-align: center; }
    .logo-hero-container { width: 175px; height: 175px; }
    .concept-story-text { text-align: left; }
    .pop-counter-label { display: none; }
}

/* Landscape & Short Viewports (e.g. iPad Landscape, Small Laptops) */
@media (max-height: 800px) {
    body.sunny-family-screen,
    .sunny-family-screen {
        padding: 15px 22px 11px;
    }
    .family-top-nav {
        margin-bottom: 7px;
    }
    .logo-hero-container {
        width: 190px;
        height: 190px;
        margin: 0 auto 9px;
    }
    .opening-pill {
        padding: 6px 18px;
        font-size: 0.92rem;
        margin-bottom: 9px;
    }
    .family-title {
        font-size: 2.75rem;
        margin: 0 0 9px;
    }
    .family-subtext {
        font-size: 1.15rem;
        margin: 0 auto 9px;
    }
    .concept-story-card {
        padding: 9px 26px 15px 26px;
        margin: 7px auto 13px auto;
        border-radius: 20px;
    }
    .concept-story-text {
        font-size: 1.05rem;
        line-height: 1.55;
    }
    .form-section-wrap {
        margin: 0 auto 13px auto;
    }
    .family-footer {
        padding-top: 9px;
        padding-bottom: 7px;
    }
}

/* Legal Modals (Impressum & Datenschutz) */
.legal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeInModal 0.22s ease-out;
}

.legal-modal-card {
    position: relative;
    background: #FFFFFF;
    width: 100%;
    max-width: 680px;
    max-height: 84vh;
    border-radius: 26px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
    border: 2px solid rgba(254, 240, 138, 0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popInModal 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1.5px solid #F1F5F9;
    background: linear-gradient(135deg, #FFFBEB 0%, #FFF1F2 100%);
}

.legal-modal-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
}

.legal-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.legal-modal-close:hover {
    background: #FFE4E6;
    border-color: #FDA4AF;
    color: #E11D48;
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.93rem;
    line-height: 1.65;
    color: #334155;
    max-height: calc(84vh - 80px);
}

.legal-modal-body .legal-section {
    margin-bottom: 20px;
}

.legal-modal-body h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 6px 0;
}

.legal-modal-body p {
    margin: 0 0 10px 0;
}

.legal-modal-body ul {
    margin: 0 0 12px 18px;
    padding: 0;
}

.legal-modal-body li {
    margin-bottom: 6px;
}

.legal-modal-body a {
    color: #DB2777;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-modal-body a:hover {
    color: #9D174D;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popInModal {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 640px) {
    .legal-modal-card {
        max-height: 90vh;
        border-radius: 20px;
    }
    .legal-modal-body {
        padding: 18px;
    }
}
