/* ── Reset ─────────────────────────────────────── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}

html{overflow-x:hidden;scroll-behavior:smooth;font-size:17px}

body{
    font-family:'Outfit',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    background:#F0F2F5;          /* fundo exato do Meta */
    color:#1C1E21;
    -webkit-font-smoothing:antialiased;
    padding-bottom:env(safe-area-inset-bottom,20px);
}

/* ── Variáveis Meta ────────────────────────────── */
:root{
    --meta-blue   : #1877F2;
    --meta-border : #CED0D4;
    --meta-bg     : #F0F2F5;
    --surface     : #FFFFFF;
    --text-primary: #1C1E21;
    --text-label  : #606770;
    --placeholder : #8A8D91;
    --green       : #25D366;
    --green-dark  : #1EBE58;
    --hero-height : 440px;
}

/* ── Hero ──────────────────────────────────────── */
.hero-wrapper{
    position:relative;
    width:100%;
    height:var(--hero-height);
    background:#0F172A;
    overflow:hidden;
}

.profile-img{
    width:100%;height:100%;
    object-fit:cover;
    object-position:center 5%;   /* mostra rosto inteiro */
    display:block;
}

.profile-overlay{
    position:absolute;inset:0;
    display:flex;flex-direction:column;justify-content:flex-end;
    padding:0 22px 32px;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.55) 35%,
        rgba(0,0,0,.10) 65%,
        transparent 100%
    );
}

.badge{
    display:inline-block;align-self:flex-start;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.32);
    color:#FFFFFF;
    font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;
    padding:6px 14px;border-radius:4px;margin-bottom:14px;
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
}

h1{font-size:36px;font-weight:700;color:#fff;letter-spacing:-.8px;line-height:1.05;margin-bottom:8px}

.subtitle{font-size:15px;color:rgba(255,255,255,.70);font-weight:400;line-height:1.4}

/* ── Container ─────────────────────────────────── */
.container{
    width:100%;max-width:520px;
    margin:0 auto;
    padding:16px 12px 48px;
    padding-left:max(12px,env(safe-area-inset-left));
    padding-right:max(12px,env(safe-area-inset-right));
    display:flex;flex-direction:column;gap:10px;
}

/* ── Hook — estilo cartão Meta ─────────────────── */
.value-hook{
    background:var(--surface);
    border-radius:8px;
    padding:16px;
    box-shadow:0 1px 2px rgba(0,0,0,.1);
}

.hook-title{
    font-size:20px;font-weight:700;
    color:var(--text-primary);line-height:1.35;margin-bottom:8px;
}

.hook-body{
    font-size:16px;line-height:1.65;color:#606770;
}

/* ── Formulário estilo Meta Ads ────────────────── */
.form-section{
    background:var(--surface);
    border-radius:8px;
    box-shadow:0 1px 2px rgba(0,0,0,.1);
    overflow:hidden;
}

/* Título do form — igual ao header do Meta Lead Ad */
.form-header{
    padding:16px 16px 0;
}

h2{
    font-size:22px;font-weight:700;
    color:var(--text-primary);
    line-height:1.2;margin-bottom:6px;
}

.form-sub{
    font-size:15px;color:var(--text-label);
    margin-bottom:16px;line-height:1.4;
}

/* Linha divisória estilo Meta */
.form-divider{height:1px;background:#E4E6EB;margin:0}

.form-body{padding:16px}

form{display:flex;flex-direction:column;gap:12px}

/* ── Campo estilo Meta ──────────────────────────── */
.input-group{display:flex;flex-direction:column;gap:0}

label{
    font-size:16px;font-weight:600;
    color:var(--text-label);
    display:block;
    margin-bottom:5px;
}

input,select{
    width:100%;
    min-height:44px;
    padding:0 12px;
    border:1px solid var(--meta-border);
    border-radius:6px;
    font-size:16px;          /* evita zoom iOS */
    font-family:inherit;
    font-weight:400;
    color:var(--text-primary);
    background:#FFFFFF;
    transition:border-color .15s ease, box-shadow .15s ease;
    outline:none;
    -webkit-appearance:none;
    appearance:none;
}

input:focus,select:focus{
    border-color:var(--meta-blue);
    box-shadow:0 0 0 2px rgba(24,119,242,.2);
}

input::placeholder{color:var(--placeholder);font-weight:400}

.select-wrapper{position:relative}

.select-wrapper::after{
    content:'';
    position:absolute;right:12px;top:50%;transform:translateY(-50%);
    width:10px;height:6px;
    background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3e%3cpath d='M1 1l4 4 4-4' stroke='%23606770' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat:no-repeat;background-size:contain;pointer-events:none;
}

select{padding-right:32px;cursor:pointer}
select option{font-size:16px;color:var(--text-primary);background:#fff}

/* Nota de agenda — Caixa de aviso estilo Meta */
.warning-note{
    font-size:14px;
    color:var(--text-primary);
    background:#F0F2F5;
    border-radius:6px;
    line-height:1.45;
    padding:10px 12px;
    margin-bottom:8px;
    border-left:3px solid #8A8D91;
}

/* Separador antes do botão */
.cta-wrapper{
    padding-top:16px;
    border-top:1px solid #E4E6EB;
    margin-top:8px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

/* ── Botão ─────────────────────────────────────── */
.cta-button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    min-height:60px;
    padding:0 20px;
    background:#25D366;
    color:#fff;
    border:none;
    border-radius:10px;
    font-family:inherit;
    font-size:16px;
    font-weight:800;
    letter-spacing:.5px;
    text-transform:uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    cursor:pointer;
    touch-action:manipulation;
    box-shadow:0 4px 16px rgba(37,211,102,.40);
    animation: pulse-glow 2.2s ease-in-out infinite;
    transition:background-color .15s ease, transform .1s ease;
    -webkit-appearance:none;
    appearance:none;
}

.cta-button:hover{
    background:#1EBE58;
    box-shadow:0 6px 20px rgba(37,211,102,.50);
}

.cta-button:active{
    background:#1AAD4E;
    transform:scale(.98);
    box-shadow:0 2px 8px rgba(37,211,102,.30);
}

/* Ícone WhatsApp dentro do botão */
.cta-button svg{
    flex-shrink:0;
    width:22px;height:22px;
}

/* ── Rodapé de privacidade — toque Meta ───────── */
.privacy-note{
    text-align:center;
    font-size:13px;
    color:#8A8D91;
    line-height:1.5;
    padding:12px 16px 16px;
}

/* ── Validação — estados de erro ─────────────────── */
.field-error{
    border-color:#E02020 !important;
    background:#FFF5F5 !important;
}
.field-error:focus{
    box-shadow:0 0 0 2px rgba(224,32,32,.20) !important;
}
.err-msg{
    display:block;
    font-size:12px;
    color:#E02020;
    margin-top:4px;
    font-weight:500;
}

/* ── Pulso do botão ─────────────────────────────── */
@keyframes pulse-glow{
    0%   { box-shadow: 0 4px 16px rgba(37,211,102,.40); }
    50%  { box-shadow: 0 4px 28px rgba(37,211,102,.75), 0 0 0 6px rgba(37,211,102,.12); }
    100% { box-shadow: 0 4px 16px rgba(37,211,102,.40); }
}

/* ── iPhone SE ──────────────────────────────────── */
@media(max-width:360px){
    :root{--hero-height:370px}
    h1{font-size:26px}
}

/* ── Desktop ─────────────────────────────────────  */
@media(min-width:600px){
    body { 
        background: #E4E6EB; /* Branco mais escuro / Cinza suave */
    }
    .hero-wrapper {
        max-width:520px; 
        margin:24px auto 0;
        border-radius:12px 12px 0 0;
        height: auto;
    }
    .profile-img {
        height: auto;
    }
    .container {
        max-width:520px;
        background: #F0F2F5;
        border-radius: 0 0 8px 8px;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}
