/* =====================================================
   Teresa & Sebastian – Baby-Tipp Website
   Stylesheet: Pastel, smooth, animated
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&display=swap');

/* ── Custom Properties ── */
:root {
    --pink:            #FFB7C5;
    --pink-light:      #FFE8EF;
    --pink-mid:        #FF8FAB;
    --lavender:        #C9B8FF;
    --lavender-light:  #EDE8FF;
    --lavender-mid:    #A78BFA;
    --mint:            #A8E6CF;
    --mint-light:      #D9F5EC;
    --mint-mid:        #34D399;
    --peach:           #FFD4A8;
    --peach-light:     #FFF0E0;
    --peach-mid:       #FB923C;
    --blue:            #A8D8F0;
    --blue-light:      #E0F2FF;
    --blue-mid:        #60A5FA;
    --yellow:          #FFE8A8;
    --yellow-light:    #FFF8E0;
    --yellow-mid:      #FBBF24;

    --bg:              #FEF7F9;
    --text:            #4A3F5C;
    --text-light:      #9B8BAE;
    --text-xlight:     #C4B5D6;
    --white:           #FFFFFF;

    --shadow-sm:   0 4px 16px rgba(160, 100, 140, 0.10);
    --shadow-md:   0 8px 32px rgba(160, 100, 140, 0.14);
    --shadow-lg:   0 16px 48px rgba(160, 100, 140, 0.20);
    --shadow-xl:   0 24px 64px rgba(160, 100, 140, 0.26);

    --radius-xs:   10px;
    --radius-sm:   16px;
    --radius-md:   24px;
    --radius-lg:   32px;
    --radius-full: 9999px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Animated Background Blobs ── */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
}

.blob-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--pink), var(--lavender));
    top: -120px; left: -100px;
    animation: blobFloat 9s ease-in-out infinite;
}
.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--mint), var(--blue));
    top: 25%; right: -100px;
    animation: blobFloat 11s ease-in-out infinite reverse;
}
.blob-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, var(--peach), var(--yellow));
    bottom: -60px; left: 20%;
    animation: blobFloat 8s ease-in-out infinite 2s;
}
.blob-4 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, var(--lavender), var(--pink));
    bottom: 15%; left: -70px;
    animation: blobFloat 7s ease-in-out infinite 1s reverse;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(25px, -35px) scale(1.05); }
    66%       { transform: translate(-18px, 22px) scale(0.96); }
}

/* ── Floating Sparkles ── */
.sparkles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.sparkle {
    position: absolute;
    border-radius: 50%;
    animation: sparklePulse ease-in-out infinite;
}

@keyframes sparklePulse {
    0%, 100% { opacity: 0.2; transform: scale(1) rotate(0deg); }
    50%       { opacity: 0.8; transform: scale(1.6) rotate(180deg); }
}

/* ── Layout Container ── */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Glass Card ── */
.card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.88);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 44px;
    border-radius: var(--radius-full);
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.28s cubic-bezier(.34,1.56,.64,1),
                box-shadow 0.28s ease,
                opacity 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s ease;
    border-radius: inherit;
}

.btn:hover::after  { background: rgba(255,255,255,0.15); }
.btn:active::after { background: rgba(0,0,0,0.06); }

.btn-primary {
    background: linear-gradient(135deg, #FF8FAB 0%, #C084FC 60%, #818CF8 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(192,132,252,0.45);
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(192,132,252,0.55);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
    background: rgba(255,255,255,0.75);
    color: var(--text-light);
    border: 2px solid rgba(200,180,230,0.4);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    background: white;
    border-color: var(--lavender);
    color: var(--text);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-icon { font-size: 1.1em; }

/* ── Hero / Landing Page ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
}

.hero-card {
    padding: 60px 56px;
    max-width: 620px;
    animation: fadeSlideUp 0.9s cubic-bezier(.22,1,.36,1);
}

.hero-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-light), var(--lavender-light));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heartbeat 2.4s ease-in-out infinite;
    box-shadow: 0 8px 28px rgba(255, 143, 171, 0.3);
}

.hero-icon-circle svg {
    width: 46px;
    height: 46px;
    color: var(--pink-mid);
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink-mid), var(--lavender-mid));
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #FF8FAB, #C084FC, #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-names {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.hero-names span {
    color: var(--lavender-mid);
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 48px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-hint {
    font-size: 0.82rem;
    color: var(--text-xlight);
    font-weight: 600;
}

/* Floating pills decoration */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.75);
    border: 1.5px solid rgba(200,180,230,0.35);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    animation: floatPill ease-in-out infinite;
}

.hero-pill svg { width: 14px; height: 14px; }
.hero-pill:nth-child(1) { animation-duration: 4.5s; }
.hero-pill:nth-child(2) { animation-duration: 5.2s; animation-delay: 0.6s; }
.hero-pill:nth-child(3) { animation-duration: 3.9s; animation-delay: 1.1s; }
.hero-pill:nth-child(4) { animation-duration: 5.7s; animation-delay: 0.3s; }

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

/* ── Form Page ── */
.form-page {
    padding: 56px 24px 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeSlideUp 0.7s cubic-bezier(.22,1,.36,1);
}

.page-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.2;
}

.page-title .gradient-text {
    background: linear-gradient(135deg, #FF8FAB, #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Progress Bar */
.progress-bar-wrap {
    background: rgba(200,180,230,0.2);
    border-radius: var(--radius-full);
    height: 6px;
    margin-top: 28px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #FF8FAB, #C084FC, #818CF8);
    transition: width 0.5s cubic-bezier(.22,1,.36,1);
    width: 0%;
}

/* ── Form Sections ── */
.form-section {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.88);
    padding: 36px;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease,
                box-shadow 0.3s ease;
}

.form-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-section:hover {
    box-shadow: var(--shadow-lg);
}

/* Stagger delay for sections */
.form-section:nth-child(1)  { transition-delay: 0.05s; }
.form-section:nth-child(2)  { transition-delay: 0.10s; }
.form-section:nth-child(3)  { transition-delay: 0.15s; }
.form-section:nth-child(4)  { transition-delay: 0.20s; }
.form-section:nth-child(5)  { transition-delay: 0.25s; }
.form-section:nth-child(6)  { transition-delay: 0.30s; }
.form-section:nth-child(7)  { transition-delay: 0.35s; }
.form-section:nth-child(8)  { transition-delay: 0.40s; }

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.form-section:hover .section-icon { transform: scale(1.08) rotate(-4deg); }

.section-icon svg {
    width: 22px;
    height: 22px;
}

.icon-pink     { background: var(--pink-light);     color: var(--pink-mid); }
.icon-lavender { background: var(--lavender-light);  color: var(--lavender-mid); }
.icon-mint     { background: var(--mint-light);      color: var(--mint-mid); }
.icon-peach    { background: var(--peach-light);     color: var(--peach-mid); }
.icon-blue     { background: var(--blue-light);      color: var(--blue-mid); }
.icon-yellow   { background: var(--yellow-light);    color: var(--yellow-mid); }

.section-label { line-height: 1.3; }

.section-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
}

.section-description {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ── Radio Cards ── */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}

.radio-card input[type="radio"] { display: none; }

.radio-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px 20px;
    border-radius: var(--radius-sm);
    border: 2.5px solid transparent;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
    font-weight: 800;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
    user-select: none;
}

.radio-card label:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.rc-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(200,180,230,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.rc-icon svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.radio-card label:hover .rc-icon svg { transform: scale(1.15); }

/* Checked states */
.rc-boy  input:checked + label { border-color: #60A5FA; color: var(--text); background: white; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(96,165,250,0.25); }
.rc-boy  input:checked + label .rc-icon { background: var(--blue-light); }

.rc-girl input:checked + label { border-color: #FF8FAB; color: var(--text); background: white; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(255,143,171,0.25); }
.rc-girl input:checked + label .rc-icon { background: var(--pink-light); }

.rc-natural  input:checked + label { border-color: #34D399; color: var(--text); background: white; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(52,211,153,0.25); }
.rc-natural  input:checked + label .rc-icon { background: var(--mint-light); }

.rc-csection input:checked + label { border-color: #A78BFA; color: var(--text); background: white; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(167,139,250,0.25); }
.rc-csection input:checked + label .rc-icon { background: var(--lavender-light); }

/* ── Text / Number / Date Inputs ── */
.form-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--radius-xs);
    border: 2px solid rgba(200,180,230,0.3);
    background: rgba(255,255,255,0.65);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder { color: var(--text-xlight); font-weight: 500; }

.form-input:hover {
    border-color: rgba(200,180,230,0.6);
    background: rgba(255,255,255,0.8);
}

.form-input:focus {
    border-color: #C084FC;
    background: white;
    box-shadow: 0 0 0 4px rgba(192,132,252,0.14);
}

/* Input with unit badge */
.input-unit-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-unit-wrap .form-input { padding-right: 72px; }

.input-unit {
    position: absolute;
    right: 18px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-xlight);
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* ── Error states ── */
.form-input.error {
    border-color: #FCA5A5;
    box-shadow: 0 0 0 4px rgba(252,165,165,0.18);
}

.radio-cards.error-group .rc-icon {
    animation: shakeGroup 0.4s ease;
}

@keyframes shakeGroup {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-4px); }
    75%       { transform: translateX(4px); }
}

.field-error {
    display: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: #F87171;
    margin-top: 8px;
}

.field-error.visible { display: block; }

/* ── Divider ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,180,230,0.3), transparent);
    margin: 0 -36px 26px;
}

/* ── Submit Section ── */
.submit-section {
    text-align: center;
    padding: 44px 40px;
    margin-top: 8px;
}

.submit-section .btn { font-size: 1.12rem; padding: 18px 60px; }

.submit-note {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-xlight);
    font-weight: 600;
}

/* ── Thank You Page ── */
.thankyou-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.thankyou-card {
    padding: 72px 60px;
    text-align: center;
    max-width: 560px;
    animation: popIn 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}

.thankyou-icon-wrap {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-light), var(--lavender-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 36px;
    animation: heartbeat 2s ease-in-out infinite;
    box-shadow: 0 12px 36px rgba(255,143,171,0.3);
}

.thankyou-icon-wrap svg {
    width: 52px;
    height: 52px;
    color: #FF8FAB;
}

.thankyou-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.thankyou-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 48px;
}

.thankyou-name {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink-light), var(--lavender-light));
    border-radius: var(--radius-full);
    padding: 5px 18px;
    font-weight: 800;
    color: var(--lavender-mid);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* ── Confetti ── */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    border-radius: 3px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg);    opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(110vh) rotate(780deg); opacity: 0; }
}

/* ── Shared Animations ── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.78); }
    to   { opacity: 1; transform: scale(1); }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero-card     { padding: 44px 28px; }
    .hero-title    { font-size: 2.2rem; }
    .page-title    { font-size: 1.9rem; }
    .form-section  { padding: 28px 22px; }
    .thankyou-card { padding: 52px 32px; }
    .thankyou-title { font-size: 2rem; }
    .submit-section .btn { padding: 16px 40px; font-size: 1rem; }
    .radio-cards   { grid-template-columns: 1fr 1fr; }
}
