:root {
    --primary-blue: #0052cc;
    --dark-blue: #071952;
    --background-color: #0c0c0c;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --container-bg: #1a1a1a;
    --border-color: #333;
    --success-color: #28a745;
    --whatsapp-color: #25D366;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    overflow: hidden; /* Garante que não tenha scroll */
    position: fixed; /* Trava o body para evitar scroll elástico em mobile */
    width: 100%;
    height: 100%;
}

.background-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--dark-blue), var(--background-color) 60%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

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

.container {
    width: 100%;
    max-width: 600px;
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.header {
    margin-bottom: 2rem;
}

.live-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.live-dot.blue {
    background-color: var(--primary-blue);
    animation-name: pulse-blue;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 82, 204, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 82, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 82, 204, 0); }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: width 0.4s ease-in-out;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.form-step h2 {
    font-size: 0.875rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-step p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.3);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.radio-group label {
    display: block;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    padding-left: 3rem;
}

.radio-group label:hover {
    background-color: #333;
}

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

.radio-group input[type="radio"] + *::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

.radio-group input[type="radio"]:checked + *::before {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
}

.radio-group input[type="radio"]:checked + *::after {
    content: '';
    position: absolute;
    left: 1.44rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.radio-group input[type="radio"]:checked + * {
    border-color: var(--primary-blue);
    background-color: rgba(0, 82, 204, 0.1);
}

button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #0065ff;
}

button:active {
    transform: scale(0.98);
}

.error-message {
    color: #ff4d4d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

#bonus-section {
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.bonus-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.bonus-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-btn, .instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1.5rem;
}

.whatsapp-btn {
    background-color: var(--whatsapp-color);
    color: white;
}

.whatsapp-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.instagram-btn {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    color: white;
    position: relative;
    overflow: hidden;
    animation: pulse-instagram 10s infinite ease-in-out;
}

.instagram-btn span {
    position: relative;
    z-index: 2;
}

.instagram-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(0deg);
    transition: transform 0.5s;
    animation: shine 5s infinite linear;
}

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

@keyframes shine {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}

@media (max-width: 640px) {
    body {
        padding: 0;
        align-items: stretch;
    }

    .container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .live-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .form-step h1, .bonus-title {
        font-size: 1.75rem;
    }
}