* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul: #102a43;
    --azul-claro: #1f4e79;
    --verde: #12b76a;
    --verde-escuro: #0f9f5a;
    --cinza: #667085;
    --cinza-claro: #f2f4f7;
    --branco: #ffffff;
    --preto: #101828;
    --vermelho: #d92d20;
    --amarelo: #f79009;
    --borda: #d0d5dd;
    --sombra: 0 20px 60px rgba(16, 42, 67, 0.14);
    --radius: 22px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 45%, #eefbf5 100%);
    color: var(--preto);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    padding: 24px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--azul), var(--verde));
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 12px 30px rgba(18, 183, 106, 0.25);
}

.logo-text h1 {
    font-size: 22px;
    line-height: 1.1;
    color: var(--azul);
}

.logo-text span {
    display: block;
    font-size: 13px;
    color: var(--cinza);
    margin-top: 3px;
}

.header-badge {
    background: rgba(18, 183, 106, 0.12);
    color: var(--verde-escuro);
    border: 1px solid rgba(18, 183, 106, 0.24);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero {
    padding: 36px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
    align-items: flex-start;
}

.hero-copy {
    padding: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--azul-claro);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
    margin-bottom: 18px;
}

.hero-copy h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    color: var(--azul);
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.hero-copy h2 strong {
    color: var(--verde);
}

.hero-copy p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--cinza);
    max-width: 620px;
    margin-bottom: 24px;
}

.hero-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.hero-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--azul);
    font-weight: 700;
}

.hero-check {
    width: 23px;
    height: 23px;
    min-width: 23px;
    border-radius: 50%;
    background: rgba(18, 183, 106, 0.15);
    color: var(--verde-escuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.bot-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(208, 213, 221, 0.75);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    overflow: hidden;
}

.bot-header {
    background: linear-gradient(135deg, var(--azul), #163b5c);
    color: var(--branco);
    padding: 22px;
}

.bot-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.bot-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.bot-body {
    padding: 24px;
}

.progress-area {
    margin-bottom: 22px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    color: var(--cinza);
    font-size: 13px;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: var(--cinza-claro);
    overflow: hidden;
}

.progress-fill {
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, var(--verde), #36d399);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.form-step {
    display: none;
    animation: fadeIn 0.25s ease;
}

.form-step.active {
    display: block;
}

.form-step h4 {
    color: var(--azul);
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.form-step .step-desc,
.step-desc {
    color: var(--cinza);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.option-card {
    position: relative;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card span {
    display: block;
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 14px 15px;
    background: var(--branco);
    color: var(--azul);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.option-card input:checked + span,
.option-card span:hover {
    border-color: var(--verde);
    background: rgba(18, 183, 106, 0.08);
    color: var(--verde-escuro);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    color: var(--azul);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--borda);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--preto);
    background: var(--branco);
    outline: none;
    transition: 0.2s ease;
}

.form-control:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.consent-box {
    background: #f8fafc;
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 15px;
    margin: 18px 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--azul);
    font-size: 14px;
    line-height: 1.45;
}

.consent-label input {
    margin-top: 3px;
    min-width: 18px;
    width: 18px;
    height: 18px;
    accent-color: var(--verde);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
    color: var(--branco);
    box-shadow: 0 12px 28px rgba(18, 183, 106, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(18, 183, 106, 0.32);
}

.btn-secondary {
    background: var(--cinza-claro);
    color: var(--azul);
}

.btn-secondary:hover {
    background: #e4e7ec;
}

.btn-danger {
    background: var(--vermelho);
    color: var(--branco);
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 14px;
}

.alert-error {
    background: #fef3f2;
    color: var(--vermelho);
    border: 1px solid #fecdca;
}

.alert-success {
    background: #ecfdf3;
    color: var(--verde-escuro);
    border: 1px solid #abefc6;
}

.footer {
    padding: 32px 0;
    text-align: center;
    color: var(--cinza);
    font-size: 14px;
}

.footer a {
    color: var(--azul);
    font-weight: 800;
}

.page-simple {
    padding: 36px 0 64px;
}

.simple-card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 32px;
    max-width: 820px;
    margin: 0 auto;
}

.simple-card h2 {
    color: var(--azul);
    font-size: 32px;
    margin-bottom: 14px;
}

.simple-card h3 {
    color: var(--azul);
    font-size: 22px;
    margin: 26px 0 10px;
}

.simple-card p,
.simple-card li {
    color: var(--cinza);
    font-size: 16px;
    line-height: 1.7;
}

.simple-card ul {
    padding-left: 20px;
    margin: 12px 0;
}

.thank-code {
    display: inline-block;
    background: rgba(18, 183, 106, 0.12);
    color: var(--verde-escuro);
    border: 1px solid rgba(18, 183, 106, 0.24);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    margin: 12px 0 18px;
}

.admin-page {
    background: #f8fafc;
    min-height: 100vh;
}

.admin-login-wrap {
    width: min(440px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.admin-login-card {
    width: 100%;
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 28px;
}

.admin-login-card h1 {
    color: var(--azul);
    font-size: 28px;
    margin-bottom: 8px;
}

.admin-login-card p {
    color: var(--cinza);
    margin-bottom: 22px;
    line-height: 1.5;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--azul);
    color: var(--branco);
    padding: 24px;
}

.admin-brand {
    margin-bottom: 28px;
}

.admin-brand h2 {
    font-size: 22px;
}

.admin-brand span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.admin-menu {
    display: grid;
    gap: 8px;
}

.admin-menu a {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--branco);
}

.admin-main {
    padding: 28px;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    color: var(--azul);
    font-size: 30px;
}

.admin-topbar p {
    color: var(--cinza);
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 18px;
    padding: 18px;
}

.stat-card span {
    color: var(--cinza);
    font-size: 14px;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    color: var(--azul);
    font-size: 30px;
    margin-top: 8px;
}

.panel-card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 18px;
    overflow: hidden;
}

.panel-header {
    padding: 18px;
    border-bottom: 1px solid var(--borda);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.panel-header h2 {
    color: var(--azul);
    font-size: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eaecf0;
    vertical-align: middle;
    font-size: 14px;
}

.admin-table th {
    color: var(--azul);
    background: #f9fafb;
    font-weight: 900;
}

.admin-table td {
    color: var(--cinza);
}

.admin-table td strong {
    color: var(--azul);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.badge-novo {
    background: #eff8ff;
    color: #175cd3;
}

.badge-contato {
    background: #fff7ed;
    color: #c2410c;
}

.badge-cotacao {
    background: #fef9c3;
    color: #a16207;
}

.badge-fechado {
    background: #dcfce7;
    color: #15803d;
}

.badge-perdido {
    background: #fee2e2;
    color: #b91c1c;
}

.action-link {
    color: var(--azul-claro);
    font-weight: 900;
}

.action-link:hover {
    text-decoration: underline;
}

.lead-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-item {
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    padding: 13px;
}

.info-item span {
    display: block;
    color: var(--cinza);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-item strong {
    color: var(--azul);
    font-size: 15px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    border-left: 3px solid var(--verde);
    background: #f9fafb;
    border-radius: 0 12px 12px 0;
    padding: 12px;
}

.timeline-item strong {
    color: var(--azul);
    display: block;
    margin-bottom: 4px;
}

.timeline-item p {
    color: var(--cinza);
    line-height: 1.5;
    font-size: 14px;
}

.timeline-item small {
    display: block;
    color: #98a2b3;
    margin-top: 6px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lead-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-list {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .admin-layout {
        display: block;
        min-height: auto;
    }

    .admin-sidebar {
        padding: 16px;
        position: sticky;
        top: 0;
        z-index: 50;
        box-shadow: 0 12px 28px rgba(16, 42, 67, 0.18);
    }

    .admin-brand {
        margin-bottom: 14px;
    }

    .admin-menu {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .admin-menu a {
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 13px;
        min-width: max-content;
        background: rgba(255, 255, 255, 0.06);
    }

    .admin-main {
        padding: 18px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 18px;
    }

    .admin-topbar h1 {
        font-size: 26px;
    }

    .admin-topbar .btn {
        width: 100%;
    }

    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-header .btn {
        width: 100%;
    }

    .table-responsive {
        border-top: 1px solid #eaecf0;
    }

    .admin-table {
        min-width: 760px;
    }
}

@media (max-width: 620px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .header-badge {
        text-align: center;
    }

    .hero {
        padding-top: 14px;
    }

    .bot-body {
        padding: 18px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card strong {
        font-size: 26px;
    }

    .simple-card {
        padding: 22px;
    }

    .admin-main {
        padding: 14px;
    }

    .admin-sidebar {
        padding: 14px;
    }

    .admin-topbar h1 {
        font-size: 24px;
    }

    .admin-topbar p {
        font-size: 14px;
        line-height: 1.45;
    }

    .panel-card {
        border-radius: 16px;
    }

    .panel-header {
        padding: 16px;
    }

    .panel-header h2 {
        font-size: 18px;
    }

    .admin-table {
        min-width: 720px;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px;
        font-size: 13px;
    }

    .lead-detail-grid {
        gap: 14px;
    }

    .info-item {
        padding: 12px;
    }

    .admin-login-wrap {
        align-items: flex-start;
        padding-top: 24px;
    }

    .admin-login-card {
        padding: 22px;
    }
}