/* ──────────────────────────────────────────────────────────────────────────
   Conceito OAB — Campaign / Lead Capture Page
   styles.css
   ────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens (espelha style.css do Conceito OAB) ─────────────────── */
:root {
    --background: oklch(0.985 0.006 80);
    --foreground: oklch(0.18 0.012 60);
    --card: oklch(1 0 0);
    --secondary: oklch(0.96 0.008 80);
    --muted-foreground: oklch(0.38 0.012 70);
    --hairline: oklch(0.18 0.012 60 / 0.12);

    --gold: #f0c230;
    --gold-deep: #e8b84b;
    --gold-deepest: #856b2e;
    --gold-soft: oklch(0.7 0.16 78 / 0.12);

    --shadow-card: 0 1px 2px oklch(0.18 0.012 60 / 0.04), 0 12px 40px -16px oklch(0.18 0.012 60 / 0.12);
    --shadow-gold: 0 0 0 1px oklch(0.7 0.16 78 / 0.2), 0 20px 60px -20px oklch(0.7 0.16 78 / 0.35);
    --shadow-input: 0 0 0 3px oklch(0.7 0.16 78 / 0.18);

    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 0.75rem;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', system-ui, sans-serif;
    font-feature-settings: 'ss01', 'cv11';
    -webkit-font-smoothing: antialiased;
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    /* Decoração radial dourada sutil — padrão do index.php */
    background-image:
        radial-gradient(ellipse 80% 40% at 50% -5%, oklch(0.7 0.16 78 / 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 45% 30% at 90% 95%, oklch(0.7 0.16 78 / 0.05) 0%, transparent 60%);
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
ul,
ol {
    list-style: none;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}
::selection {
    background: var(--gold-soft);
    color: oklch(0.135 0.008 60);
}

/* ── Tipografia utilitária ───────────────────────────────────────────────── */
.font-display {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-variant-numeric: lining-nums;
}
.eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Animação de entrada ─────────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Wrapper / centrador ─────────────────────────────────────────────────── */
.lp-wrapper {
    width: 100%;
    max-width: 900px;
    animation: fadeUp 0.8s var(--ease-premium) both;
}

/* ── Card principal (dois painéis) ──────────────────────────────────────── */
.lp-card {
    display: flex;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* ── Painel esquerdo: banner ─────────────────────────────────────────────── */
.lp-banner {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    background:
    /* Camada 1: degradê preto na base para contraste do texto */
        linear-gradient(to bottom, transparent 30%, oklch(0.09 0.004 60 / 0.88) 100%),
        /* Camada 2: overlay dourado/escuro direcional */
        linear-gradient(160deg, oklch(0.18 0.012 60 / 0.45) 0%, oklch(0.7 0.16 78 / 0.15) 100%),
        /* Camada 3: foto */
        url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop') center /
            cover no-repeat;
}

.lp-banner::after {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, var(--gold) 30%, var(--gold-deep) 70%, transparent 100%);
    z-index: 1;
}

.lp-banner-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
}

.lp-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    /* Logo fica visível sobre o fundo escuro do banner */
    filter: brightness(0) invert(1);
}

.lp-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}
.lp-heading em {
    font-style: italic;
    color: var(--gold);
}

.lp-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: oklch(0.96 0.005 80 / 0.75);
}
.lp-tagline strong {
    color: #fff;
    font-weight: 600;
}

/* ── Painel direito: formulário ──────────────────────────────────────────── */
.lp-form-side {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card);
}

/* Cabeçalho do form */
.lp-form-header {
    margin-bottom: 2rem;
}

.lp-form-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--foreground);
    margin-top: 0.5rem;
}
.lp-form-title em {
    font-style: italic;
    color: var(--gold-deepest);
}

/* Divisor dourado */
.gold-bar {
    width: 2.25rem;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep));
    border-radius: 99px;
    margin-top: 1rem;
}

/* ── Campos ──────────────────────────────────────────────────────────────── */
.campo {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0.4rem;
}
.label-optional {
    font-weight: 400;
    opacity: 0.65;
}

input:not([type='checkbox']):not([type='hidden']) {
    width: 100%;
    padding: 0.7rem 0.875rem;
    background: var(--secondary);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}
input:not([type='checkbox']):not([type='hidden'])::placeholder {
    color: oklch(0.38 0.012 70 / 0.5);
}
input:not([type='checkbox']):not([type='hidden']):focus {
    border-color: var(--gold-deep);
    background: var(--card);
    box-shadow: var(--shadow-input);
}

/* intl-tel-input override */
.iti {
    width: 100%;
}
.iti__selected-flag {
    background: var(--secondary) !important;
    border-radius: var(--radius) 0 0 var(--radius);
}
.iti__country-list {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    color: var(--foreground);
}
.iti__country:hover,
.iti__country.iti__active {
    background: var(--secondary);
}
.iti__country-name,
.iti__dial-code {
    color: var(--foreground);
}

/* ── Checkbox de privacidade ─────────────────────────────────────────────── */
.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.checkbox-wrap input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--gold-deep);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.checkbox-text {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    line-height: 1.55;
}
.checkbox-text a {
    color: var(--gold-deepest);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: oklch(0.7 0.16 78 / 0.3);
    text-underline-offset: 2px;
    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}
.checkbox-text a:hover {
    color: var(--gold-deep);
    text-decoration-color: var(--gold-deep);
}

/* ── Botão submit ────────────────────────────────────────────────────────── */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: oklch(0.135 0.008 60);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 9999px;
    box-shadow: 0 8px 24px -8px oklch(0.7 0.16 78 / 0.4);
    transition:
        filter 0.25s var(--ease-premium),
        transform 0.25s var(--ease-premium),
        box-shadow 0.25s var(--ease-premium);
}
.btn-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px oklch(0.7 0.16 78 / 0.5);
}
.btn-submit:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lp-footer {
    margin-top: 1.5rem;
    font-size: 0.68rem;
    color: var(--muted-foreground);
    text-align: center;
    line-height: 1.6;
    opacity: 0.7;
}

/* ── Popup de erro ───────────────────────────────────────────────────────── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0.18 0.012 60 / 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.25rem;
}
.popup-box {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.3s var(--ease-premium) both;
}
.popup-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: oklch(0.96 0.02 30);
    color: oklch(0.52 0.2 25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.popup-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}
.popup-message {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: oklch(0.52 0.2 25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 9999px;
    width: 100%;
    transition:
        filter 0.2s ease,
        transform 0.2s ease;
}
.popup-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ── Responsivo ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    body {
        padding: 1.25rem 1rem 2rem;
        justify-content: flex-start;
    }

    .lp-card {
        flex-direction: column;
        border-radius: 1.125rem;
    }

    .lp-banner {
        min-height: 240px;
        justify-content: flex-end;
    }
    /* Em mobile a faixa dourada fica embaixo do banner */
    .lp-banner::after {
        inset: auto 0 0 0;
        width: auto;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-deep) 70%, transparent 100%);
    }

    .lp-banner-inner {
        padding: 1.75rem;
    }
    .lp-logo {
        width: 140px;
        margin-bottom: 1.25rem;
    }

    .lp-form-side {
        padding: 1.75rem;
    }
}

@media (max-width: 420px) {
    .lp-banner-inner,
    .lp-form-side {
        padding: 1.25rem;
    }
}