﻿@import url('../montserrat');

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-color: #FFD900;
}

/* ===========================
   LOADING SCREEN
=========================== */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #FFE600;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.spinner-loading {
    width: 2.5rem;
    height: 2.5rem;
    border: 0.25rem solid rgba(0, 0, 0, 0.1);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===========================
   PAGE CONTENT
=========================== */
#page-content {
    min-height: 100vh;
    padding-bottom: 5.5rem;
    position: relative;
    z-index: 0;
}

/* ===========================
   DECORAÇÕES SVG DE FUNDO
=========================== */
.bg-decor {
    position: fixed;
    width: clamp(12rem, 35vw, 26rem);
    height: auto;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.bg-decor--tl {
    top: 0;
    left: -20px;
}

.bg-decor--br {
    bottom: 0;
    right: -20px;
}

/* ===========================
   LOGO
=========================== */
.logo-wrapper {
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items:center;
    width: 100%;
}

.logo {
    /* width: clamp(8rem, 35%, 14rem); */
    max-width: 60px;
    height: auto;
}

/* ===========================
   SECTION — empilha: CTA > ROLETA > BOTÃO
=========================== */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.75rem 1rem;
    gap: 0.5rem;
}

/* ===========================
   CTA
=========================== */
.cta {
    width: 100%;
    max-width: 40rem;
    text-align: center;
}

.cta h1 {
    color: black;
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.4;
}

/* ===========================
   ROULETTE
   Sem position absolute de layout.
   As 3 imagens sobrepõem-se via CSS Grid (mesma célula).
=========================== */
.roulette {
    width: clamp(13rem, 92vmin, 22rem);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

/* Todas as 3 filhas ocupam a mesma célula do grid */
.roulette > * {
    grid-column: 1;
    grid-row: 1;
}

#roleta2 {
    width: 100%;
    height: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#roleta2 img {
    width: 100%;
    height: auto;
}

#roleta3 {
    width: 28%;
    height: auto;
    z-index: 2;
}

/* ===========================
   ROULETTE ANIMATIONS
=========================== */
.spinner {
    animation: spinnerIdle 1.5s ease-in-out infinite;
}

@keyframes spinnerIdle {
    0%   { transform: rotate(-123deg); }
    50%  { transform: rotate(-117deg); }
    100% { transform: rotate(-123deg); }
}

@keyframes spinToRetryThenWin {
    0%   { transform: rotate(-80deg); }
    100% { transform: rotate(1250deg); }
}

@keyframes spinToOne {
    0%   { transform: rotate(-80deg); }
    100% { transform: rotate(2490deg); }
}

.wheel__spinner_animated_retry_then_win {
    animation: spinToRetryThenWin 10s cubic-bezier(0.1, 0.1, 0.1, 1) 1 forwards;
}

.wheel__spinner_animated {
    animation: spinToOne 10s cubic-bezier(0.1, 0.1, 0.1, 1) 1 forwards;
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ===========================
   BUTTON
=========================== */
.button-roulette {
    display: flex;
    justify-content: center;
    width: 100%;
}

#button-cta {
    width: clamp(10rem, 50%, 18rem);
    padding: 0.75rem 1rem;
    background-color: #2d3277;
    border: none;
    border-radius: 0.625rem;
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: white;
    box-shadow: 0 0 0.9rem 0.06rem #4e5399;
    animation: pulse 1s linear infinite;
    cursor: pointer;
    z-index: 9999;
}

.hide-me {
    display: none !important;
}

/* ===========================
   PEOPLE — toast social proof
=========================== */
.people {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: fixed;
    left: 50%;
    bottom: 1rem;
    width: min(22.5rem, calc(100vw - 1.5rem));
    padding: 0.65rem 0.85rem;
    color: #1a1a1a;
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    transform: translate(-50%, 140%);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.people img {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.people-copy {
    min-width: 0;
    line-height: 1.25;
}

.people-copy strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #111;
}

.people p {
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
    color: #444;
    text-align: left;
}

.people p b {
    color: #00a650;
}

.people--in {
    transform: translate(-50%, 0);
    opacity: 1;
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 320ms ease;
}

.people--out {
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform 420ms cubic-bezier(0.4, 0, 1, 1),
                opacity 280ms ease;
}

/* ===========================
   OVERLAY & POPUPS
=========================== */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1.25rem;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: min(80%, 28rem);
    border-radius: 0.625rem;
}

.popup-content {
    text-align: center;
}

.popup-content img {
    max-width: 100%;
    height: auto;
}

.popup h2 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.popup p {
    margin: 0.9rem 0;
    font-size: 0.875rem;
}

.popup button {
    background-color: #2d3277;
    border: none;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 0.9rem 0.06rem #4e5399;
    animation: pulse 1s linear infinite;
    margin-top: 0.3rem;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
}

/* ===========================
   PRIVACY / FOOTER
=========================== */
.privacy-terms {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #ffd800;
    padding-block: 2rem;
    font-size: 0.75rem;
    text-align: center;
    padding-inline: 1rem;
    margin-bottom: 3.75rem;
}

/* ===========================
   FORM
=========================== */
form {
    width: 90%;
    max-width: 30rem;
    border: 1px solid #f0c22d;
    border-radius: 0.625rem;
    padding: 0.625rem;
    margin: 1rem auto;
}

._form-title {
    color: white;
    text-align: center;
    font-size: 1.1875rem;
    font-weight: 600;
    padding-top: 0.9375rem;
}

._form-title p {
    font-weight: 400;
    padding-block: 0.25rem;
    font-size: 0.875rem;
}

._form-label {
    color: white;
    text-align: center;
    font-size: 1rem;
}

._field-wrapper {
    margin-bottom: 0.3rem;
}

input {
    width: 100%;
    height: 2.5rem;
    background-color: #fff;
    border: 1px solid rgba(204, 204, 204, 0.27);
    padding: 0 0.9375rem;
    margin-block: 0.3rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    color: #333;
}

._error-inner {
    color: rgb(141, 5, 5);
    font-size: 0.75rem;
    font-weight: 600;
    padding-left: 0.2rem;
}

._submit {
    width: 100%;
    height: 2.5rem;
    background-color: #f0c22d;
    border: none;
    border-radius: 0.625rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: black;
    box-shadow: 0 0 0.9rem 0.06rem #f0c22d;
    margin-block: 0.625rem 0.9375rem;
    cursor: pointer;
}

/* ===========================
   LOADING BAR / STEPS
=========================== */
.loading-bar {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    height: 0.9375rem;
    width: 80%;
    align-items: center;
    margin: 0 auto;
    border-radius: 6.25rem;
}

.load-ball {
    width: 3.125rem;
    height: 3.125rem;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-bar-texts {
    display: flex;
    justify-content: space-between;
    width: 80%;
    align-items: center;
    margin: 2.5rem auto 0;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.check {
    width: 35%;
}

.steps {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-top: 0.75rem;
}

.step {
    background-color: #fff;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.step p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 0;
    font-family: sans-serif;
}

.step-loaded {
    background-color: #f0c22d;
    height: 100%;
    width: 0;
}

.bar {
    width: 2.1875rem;
    height: 0.5rem;
    background-color: #fff;
    margin-block: auto;
    margin-inline: -0.0625rem;
}

.bar-loaded {
    height: 100%;
    width: 0;
    background-color: #f0c22d;
}

@keyframes loading {
    0%   { width: 0; }
    100% { width: 100%; }
}

.loaded {
    animation: loading 0.7s linear;
    width: 100%;
}

.steps-h {
    display: flex;
    justify-content: center;
    gap: 1.5625rem;
    margin-top: 0.25rem;
}

.steps-h span {
    font-size: 0.6875rem;
    color: #fff;
    font-weight: 600;
    width: 3.75rem;
    text-align: center;
}

/* ===========================
   FORM OVERRIDES (_form_36)
=========================== */
#_form_36 {
    margin-inline: 0.75rem;
}

#_form_36 ._form {
    background-color: transparent !important;
    width: 90vw !important;
    max-width: 30rem !important;
    border: 1px solid #f0c22d !important;
    border-radius: 0.625rem !important;
    padding: 1rem !important;
    margin: 1rem auto !important;
    backdrop-filter: blur(10px) !important;
}

#_form_36 ._form-label,
#_form_36 ._form_element ._form-label {
    display: inline !important;
}

.btn {
    display: block;
    padding: 0.9375rem;
    border: 1px solid #f0c22d;
    border-radius: 1.75rem;
    text-decoration: none;
    animation: pulse 1s infinite;
    box-shadow: 0 0 0.2rem #f0c22d;
    background-color: #f0c22d;
    width: min(28.125rem, 80%);
    margin: 1.5625rem auto;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

button {
    background-color: #f0c22d;
    font-size: 1rem;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.gift {
    width: clamp(8rem, 40%, 12.5rem);
    margin: 2.1875rem auto;
    animation: pulse 1s infinite;
}



.bonus {
    border: 1px solid #f0c22d;
    padding: 0.625rem 1.5625rem;
    margin: 0 auto 1.5625rem;
    border-radius: 0.9375rem;
    color: white;
    font-family: "Exo", sans-serif;
    max-width: 90%;
}

.bottom-headline {
    margin: 1.5625rem 0.625rem;
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: white;
    font-family: "Exo", sans-serif;
}

/* ===========================
   BREAKPOINTS
=========================== */

/* Tablet */
@media (max-width: 48rem) {
    .privacy-terms {
        padding-block: 1.25rem;
        padding-inline: 0.625rem;
    }
}

/* Mobile */
@media (max-width: 30rem) {
    #button-cta {
        width: clamp(10rem, 70%, 18rem);
    }

    .btn {
        max-width: 80%;
    }

    .gift {
        width: 9.375rem;
    }

    .bottom-headline {
        font-size: 1rem;
    }
}
