/* ============================================
   RESET E CONFIGURAÇÕES BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden; /* Remove scroll vertical por padrão */
}

/* Permite scroll apenas em mobile */
@media (max-width: 1023px) {
    html, body {
        overflow-y: auto;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    position: relative;
    background-color: #000000;
}

/* ============================================
   VIDEO CONTAINER (Background Fullscreen)
   ============================================ */

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* Garante que o vídeo seja renderizado */
    display: block;
    /* Previne problemas de renderização */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Fallback visual quando o vídeo não estiver disponível */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 100, 200, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(100, 0, 200, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    z-index: -1;
}

/* ============================================
   OVERLAY (Máscara escura) - REMOVIDO
   Agora o overlay só existe ao redor do conteúdo
   ============================================ */

.overlay {
    display: none; /* Overlay removido - vídeo visível em toda tela */
}

/* ============================================
   MAIN CONTAINER (Conteúdo Centralizado)
   ============================================ */

.main-container {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

/* Desktop: altura fixa para evitar scroll */
@media (min-width: 1024px) {
    .main-container {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding: 2rem;
    }
}

.content-wrapper {
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    /* Box com fundo escuro apenas ao redor do conteúdo */
    background-color: rgba(0, 0, 0, 0.171);
    border-radius: 20px;
    padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Garante que não tenha scroll interno */
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LOGO
   ============================================ */

.logo {
    max-width: clamp(100px, 12vw, 160px);
    width: 100%;
    height: auto;
    margin: 0 auto clamp(0.75rem, 2vh, 2rem);
    display: block;
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes logoGlow {
    0%, 100% {
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.2));
    }
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.3));
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

.headline {
    font-size: clamp(1.5rem, 3.5vh, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #D1A251 !important;
    margin-bottom: clamp(0.5rem, 1.5vh, 1.25rem);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.sub-headline {
    font-size: clamp(0.9rem, 2vh, 1.25rem);
    line-height: 1.4;
    color: rgb(207, 207, 207);
    margin-bottom: clamp(1rem, 2.5vh, 2.5rem);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ============================================
   FORMULÁRIO DE CAPTURA
   ============================================ */

.capture-form {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vh, 1.5rem);
    width: 100%;
}

/* Container para dividir espaço (WhatsApp + Radio buttons) */
.form-row {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    width: 100%;
    align-items: center;
}

/* Inputs do Formulário */
.form-input {
    width: 100%;
    padding: clamp(0.75rem, 2vh, 1rem) clamp(1rem, 2vw, 1.25rem);
    background-color: #000305b4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: clamp(0.9rem, 2vh, 1rem);
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.336);
}

.form-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Input que ocupa metade do espaço */
.form-input-half {
    flex: 1;
    min-width: 0;
}

/* Grupo de Radio Buttons */
.radio-group {
    display: flex;
    gap: clamp(0.5rem, 1vw, 1rem);
    flex: 1;
    justify-content: flex-end;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: clamp(0.5rem, 1vh, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
    background-color: #000305b4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.radio-option:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.radio-input {
    margin: 0;
    margin-right: 0.5rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.radio-label {
    color: #ffffff;
    font-size: clamp(0.85rem, 1.8vh, 0.95rem);
    font-family: inherit;
    cursor: pointer;
    user-select: none;
}

.radio-input:checked {
    accent-color: #667eea;
}

.radio-option.checked {
    border-color: rgba(102, 126, 234, 0.6);
    background-color: rgba(102, 126, 234, 0.15);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Fallback com :has() para navegadores modernos */
.radio-option:has(.radio-input:checked) {
    border-color: rgba(102, 126, 234, 0.6);
    background-color: rgba(102, 126, 234, 0.15);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Botão Submit */
.submit-button {
    width: 100%;
    padding: clamp(1rem, 2.5vh, 1.25rem) clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(0.25rem, 1vh, 0.5rem);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: clamp(0.95rem, 2.2vh, 1.1rem);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #7c8ff0 0%, #8a5fb8 100%);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* ============================================
   SEÇÃO DE CREDIBILIDADE/AUTORIDADE
   ============================================ */

.credibility-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 1vw, 1rem);
    margin-top: clamp(1rem, 2vh, 2rem);
    padding: clamp(0.5rem, 1vh, 1rem) clamp(0.5rem, 1vw, 1rem);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 1.8vh, 1rem);
    font-weight: 500;
    white-space: nowrap;
}

.flag-icon {
    display: inline-block;
    vertical-align: middle;
    width: clamp(1.4rem, 2.8vh, 1.7rem);
    height: auto;
}

.flag-icon .svg-flag {
    width: 100%;
    height: auto;
    display: block;
}

.badge-text {
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: clamp(0.9rem, 1.8vh, 1.1rem);
    font-weight: 300;
    margin: 0 clamp(0.25rem, 0.5vw, 0.5rem);
}

/* ============================================
   RESPONSIVIDADE (Mobile-First)
   ============================================ */

/* Tablets */
@media (min-width: 768px) {
    .main-container {
        padding: clamp(2rem, 3vh, 3rem) clamp(1.5rem, 2vw, 2rem);
    }

    .content-wrapper {
        max-width: 650px;
        padding: clamp(2rem, 3.5vh, 3.5rem) clamp(2rem, 2.5vw, 2.5rem);
    }

    .logo {
        max-width: clamp(140px, 12vw, 180px);
        margin-bottom: clamp(1.25rem, 2.5vh, 2.5rem);
    }

    .sub-headline {
        margin-bottom: clamp(1.5rem, 2.5vh, 2.5rem);
    }

    .capture-form {
        gap: clamp(1rem, 2vh, 1.75rem);
    }

    .form-input {
        padding: clamp(0.95rem, 2vh, 1.15rem) clamp(1.25rem, 2vw, 1.5rem);
        font-size: clamp(0.95rem, 2vh, 1.05rem);
    }

    .submit-button {
        padding: clamp(1.1rem, 2.2vh, 1.35rem) clamp(2rem, 3vw, 2.5rem);
        font-size: clamp(1rem, 2.2vh, 1.15rem);
    }

    .credibility-badges {
        margin-top: clamp(1.25rem, 2.5vh, 2rem);
        padding: clamp(0.5rem, 1vh, 1rem) clamp(0.75rem, 1.5vw, 1.5rem);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .main-container {
        padding: clamp(1rem, 2vh, 2rem);
        height: 100vh;
        max-height: 100vh;
    }

    .content-wrapper {
        max-width: 700px;
        padding: clamp(1.5rem, 3vh, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
        /* Remove scroll interno - ajusta tamanhos automaticamente */
        overflow: visible;
        max-height: none;
    }

    .logo {
        max-width: clamp(150px, 12vw, 220px);
        margin-bottom: clamp(1rem, 2.5vh, 2rem);
    }

    .headline {
        margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
        font-size: clamp(2rem, 4vh, 3.5rem);
    }

    .sub-headline {
        margin-bottom: clamp(1rem, 2.5vh, 2rem);
        font-size: clamp(1rem, 2vh, 1.25rem);
    }

    .capture-form {
        gap: clamp(0.75rem, 1.5vh, 1.25rem);
    }

    .form-input {
        padding: clamp(0.875rem, 1.8vh, 1rem) clamp(1.25rem, 2vw, 1.5rem);
        font-size: clamp(0.95rem, 1.8vh, 1rem);
    }

    .submit-button {
        padding: clamp(1rem, 2.2vh, 1.25rem) clamp(1.75rem, 3vw, 2.5rem);
        font-size: clamp(1rem, 2vh, 1.1rem);
        margin-top: clamp(0.125rem, 0.5vh, 0.25rem);
    }

    .credibility-badges {
        margin-top: clamp(1rem, 2vh, 1.5rem);
        padding: clamp(0.5rem, 1vh, 0.75rem) clamp(0.75rem, 1.5vw, 1.25rem);
    }
}

/* Telas muito grandes */
@media (min-width: 1440px) {
    .content-wrapper {
        max-width: 750px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 375px) {
    .main-container {
        padding: 1.5rem 1rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
    }

    .logo {
        max-width: 150px;
        margin-bottom: 2.5rem;
    }

    .headline {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .sub-headline {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .capture-form {
        gap: 1.25rem;
    }

    .form-input {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .submit-button {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .credibility-badges {
        margin-top: 2rem;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .badge-item {
        font-size: 0.85rem;
    }

    .separator {
        font-size: 0.9rem;
        margin: 0 0.25rem;
    }
}

/* Responsividade para form-row e radio buttons */
@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
        gap: clamp(0.75rem, 2vh, 1rem);
    }

    .form-input-half {
        width: 100%;
    }

    .radio-group {
        width: 100%;
        justify-content: space-between;
    }

    .radio-option {
        flex: 1;
        justify-content: center;
    }
}

