@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --blue: #2489d8;
    --blue-dark: #1769aa;
    --blue-light: #eaf7ff;
    --purple: #825dd4;
    --yellow: #ffd649;
    --green: #43c986;
    --red: #ff6f7d;
    --text: #30475a;
    --muted: #748593;
    --border: #dcebf5;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 6%, rgba(255, 214, 73, .18), transparent 22%),
        radial-gradient(circle at 95% 15%, rgba(130, 93, 212, .12), transparent 20%),
        linear-gradient(180deg, #eefaff 0%, #ffffff 50%, #f6fbff 100%);
}

button,
input,
select {
    font: inherit;
}

.hidden {
    display: none !important;
}

.kids-register {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding-bottom: 80px;
}

.register-cloud {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    filter: blur(10px);
}

.cloud-one {
    top: 120px;
    left: -180px;
}

.cloud-two {
    right: -180px;
    top: 520px;
}

.register-header {
    width: min(1180px, calc(100% - 30px));
    height: 90px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.register-logo {
    width: 160px;
}

.back-home {
    padding: 11px 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 15px;
    color: var(--blue-dark);
    background: #fff;
    box-shadow: 0 8px 25px rgba(32, 102, 151, .1);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.register-hero {
    width: min(1180px, calc(100% - 30px));
    min-height: 340px;
    margin: 20px auto;
    padding: 40px 45px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    overflow: hidden;
    border-radius: 38px;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 219, 78, .5), transparent 32%),
        linear-gradient(135deg, #4fa6df, #2a83c8);
    box-shadow: 0 30px 70px rgba(32, 103, 153, .19);
}

.hero-copy {
    align-self: center;
    padding-bottom: 35px;
}

.hero-tag {
    padding: 8px 14px;
    display: inline-flex;
    border-radius: 30px;
    color: #276f9f;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 600px;
    margin: 16px 0 10px;
    color: #fff;
    font-family: 'Baloo 2', cursive;
    font-size: 50px;
    line-height: .98;
}

.hero-copy h1 strong {
    color: var(--yellow);
}

.hero-copy p {
    max-width: 520px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    line-height: 1.7;
}

.hero-characters {
    height: 330px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.hero-characters img {
    max-width: 100%;
    max-height: 330px;
    object-fit: contain;
}

.privacy-banner {
    width: min(1050px, calc(100% - 30px));
    margin: 25px auto;
    padding: 17px 21px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #dceef8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(35, 100, 145, .08);
}

.privacy-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #45ca8b, #26a96b);
    font-size: 21px;
}

.privacy-banner strong {
    display: block;
    color: #2e536c;
    font-family: 'Baloo 2', cursive;
    font-size: 17px;
}

.privacy-banner p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.register-card {
    width: min(1050px, calc(100% - 30px));
    margin: 25px auto;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(32, 93, 135, .12);
}

.steps {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.step {
    padding: 10px;
    border: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #9aa7b0;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
}

.step span {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #8ca0ae;
    background: #edf4f7;
}

.step.active {
    color: var(--blue);
}

.step.active span {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 7px 18px rgba(36, 137, 216, .25);
}

.step.completed span {
    color: #fff;
    background: var(--green);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepEnter .3s ease;
}

@keyframes stepEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.step-title>span {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #eef8ff;
    font-size: 27px;
}

.step-title h2 {
    margin: 0;
    color: #2c516a;
    font-family: 'Baloo 2', cursive;
    font-size: 27px;
}

.step-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.photo-area {
    margin-bottom: 25px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px dashed #bcddec;
    border-radius: 22px;
    background: #f5fbff;
}

.photo-preview {
    position: relative;
    width: 115px;
    height: 115px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(38, 105, 150, .15);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview span {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yellow);
}

.photo-actions strong {
    display: block;
    font-family: 'Baloo 2', cursive;
    font-size: 17px;
}

.photo-actions p {
    margin: 3px 0 10px;
    color: var(--muted);
    font-size: 9px;
}

.photo-button {
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    color: #fff;
    background: var(--purple);
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.photo-button input {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-full {
    grid-column: 1 / -1;
}

.field span {
    color: #526777;
    font-size: 10px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    outline: 0;
    border: 1px solid #d9e8f1;
    border-radius: 14px;
    color: #344d60;
    background: #fbfdff;
    transition: .2s;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 137, 216, .08);
}

.age-card {
    margin-top: 20px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 18px;
    color: #33637f;
    background: #edf9ff;
    text-align: center;
}

.age-card strong {
    font-family: 'Baloo 2', cursive;
    font-size: 23px;
}

.age-card span {
    font-size: 10px;
}

.age-card.birthday {
    color: #724e00;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .5), transparent 55%),
        linear-gradient(135deg, #fff5b7, #ffe466);
    animation: birthdayPulse 1s infinite alternate;
}

@keyframes birthdayPulse {
    to {
        transform: scale(1.015);
    }
}

.age-card.warning {
    color: #a84c4c;
    background: #fff0f0;
}

.social-box {
    margin-top: 25px;
    padding: 20px;
    border-radius: 20px;
    background: #faf7ff;
}

.social-box h3 {
    margin: 0;
    color: #6445ad;
    font-family: 'Baloo 2', cursive;
}

.social-box>p {
    margin: 2px 0 15px;
    color: var(--muted);
    font-size: 9px;
}

.cep-message {
    align-self: end;
    padding-bottom: 14px;
    color: var(--blue-dark);
    font-size: 9px;
}

.consent-box {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #cdebdc;
    border-radius: 20px;
    background: #f4fff9;
}

.consent-heading {
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.consent-heading>i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: var(--green);
}

.consent-heading strong,
.consent-heading span {
    display: block;
}

.consent-heading strong {
    font-family: 'Baloo 2', cursive;
    font-size: 17px;
}

.consent-heading span {
    color: var(--muted);
    font-size: 8px;
}

.consent-box p {
    color: #607568;
    font-size: 9px;
    line-height: 1.7;
}

.check-card {
    margin-bottom: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid #e1ebf1;
    border-radius: 16px;
    cursor: pointer;
}

.check-card.required {
    border-color: #c9e4f5;
    background: #f6fbff;
}

.check-card input {
    margin-top: 3px;
}

.check-card>span:last-child {
    color: #607281;
    font-size: 9px;
    line-height: 1.6;
}

.recaptcha-box {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.form-navigation {
    margin-top: 35px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e7eff4;
}

.nav-button {
    min-height: 47px;
    padding: 0 19px;
    border: 0;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.nav-button.secondary {
    color: #60788a;
    background: #edf4f7;
}

.nav-button.primary {
    margin-left: auto;
    color: #fff;
    background: linear-gradient(135deg, #4aa2de, #257fc2);
    box-shadow: 0 8px 20px rgba(36, 128, 194, .2);
}

.nav-button.finish {
    margin-left: auto;
    color: #fff;
    background: linear-gradient(135deg, #4bcf8d, #28ab6c);
    box-shadow: 0 8px 20px rgba(42, 173, 109, .22);
}

.form-message {
    margin-top: 22px;
    padding: 14px;
    border-radius: 13px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.form-message.error {
    color: #a94747;
    background: #fff0f0;
}

.form-message.warning {
    color: #8a6400;
    background: #fff7d8;
}

.success-screen {
    width: min(760px, calc(100% - 30px));
    margin: 50px auto;
    padding: 45px;
    border-radius: 35px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(31, 96, 140, .14);
    text-align: center;
}

.success-screen .confetti {
    font-size: 25px;
    letter-spacing: 10px;
}

.success-screen img {
    width: min(430px, 100%);
    margin: 20px auto;
}

.success-screen>span {
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.success-screen h2 {
    margin: 10px auto;
    color: var(--blue-dark);
    font-family: 'Baloo 2', cursive;
    font-size: 35px;
}

.success-screen p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.success-screen a {
    margin-top: 15px;
    padding: 12px 20px;
    display: inline-flex;
    border-radius: 14px;
    color: #fff;
    background: var(--blue);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    .register-header {
        height: 75px;
    }

    .register-logo {
        width: 125px;
    }

    .register-hero {
        padding: 30px 22px 0;
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 39px;
    }

    .hero-characters {
        height: 230px;
    }

    .hero-characters img {
        max-height: 230px;
    }

    .register-card {
        padding: 20px 16px;
        border-radius: 25px;
    }

    .steps {
        gap: 4px;
    }

    .step {
        padding: 4px;
        flex-direction: column;
        font-size: 7px;
    }

    .step span {
        width: 30px;
        height: 30px;
    }

    .photo-area {
        flex-direction: column;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .nav-button {
        width: 100%;
    }

    .recaptcha-box {
        transform-origin: center;
    }
}