:root {
    --primary-h: 210;
    --primary-s: 100%;
    --primary-l: 50%;

    --bg-color: hsl(var(--primary-h), 20%, 5%);
    --card-bg: hsla(var(--primary-h), 20%, 15%, 0.6);
    --text-main: hsl(0, 0%, 100%);
    --text-muted: hsl(var(--primary-h), 10%, 70%);
    --accent: hsl(var(--primary-h), 100%, 65%);
    --border: hsla(var(--primary-h), 100%, 50%, 0.2);

    --glass-blur: 15px;
    --border-radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, hsla(var(--primary-h), 100%, 30%, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, hsla(var(--primary-h), 100%, 30%, 0.1) 0%, transparent 40%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 800px;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    font-weight: 300;
}

.instruction {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--accent);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.form-section {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out backwards;
}

.form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.border-top {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

input {
    background: hsla(var(--primary-h), 20%, 5%, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--accent);
    background: hsla(var(--primary-h), 20%, 8%, 0.6);
    box-shadow: 0 0 0 4px hsla(var(--primary-h), 100%, 50%, 0.1);
}

.child-entry {
    background: hsla(var(--primary-h), 20%, 5%, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

.remove-child {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ff4d4d;
    border: 2px solid var(--border);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 10;
}

.remove-child:hover {
    background: #ff1a1a;
    transform: scale(1.1);
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 8px;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, hsl(var(--primary-h), 100%, 45%) 100%);
    color: #fff;
    border: none;
    padding: 1rem;
    box-shadow: 0 4px 15px hsla(var(--primary-h), 100%, 50%, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--primary-h), 100%, 50%, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: hsla(var(--primary-h), 100%, 50%, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Landing Page Specifics */
.landing-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.9;
}

.landing-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.9;
}

.cta-container {
    margin: 2.5rem 0;
}

.btn-cta {
    display: inline-block;
    text-decoration: none;
    max-width: 300px;
}

.info-footer {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.info-footer p {
    font-size: 0.85rem;
    font-style: italic;
}