@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
    /* Paleta azul-marinho baseada em #1D3F5A (cor do logo) */
    --primary: #1D3F5A;
    --primary-light: #2E5C82;
    --primary-dark: #14304A;
    --primary-deep: #0E2436;
    --primary-teal: #1D3F5A;
    --mint: #E7EEF4;          /* tint claro para fundos selecionados/realces */
    --mint-soft: #F2F6FA;     /* tint muito suave para caixas de info */
    --bg-color: oklch(0.985 0.005 230);
    --surface: #ffffff;
    --text-main: oklch(0.24 0.02 240);
    --text-muted: oklch(0.55 0.02 235);
    --text-label: oklch(0.32 0.02 240);
    --border-color: oklch(0.91 0.01 235);
    --border-light: oklch(0.95 0.006 235);
    --error: #ef4444;
    --disabled-bg: oklch(0.85 0.012 235);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-btn: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text-main); }
h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; }
p { color: var(--text-muted); font-size: 0.95rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed; width: 100%; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(226,232,240,0.5);
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); }
.logo i { font-size: 1.6rem; color: var(--primary); }

/* ── Hero Section ── */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(29,63,90,0.08), transparent 400px),
                radial-gradient(circle at bottom left, rgba(29,63,90,0.04), transparent 400px);
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 span { color: var(--primary); }
.hero-desc { font-size: 1.15rem; margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.trust-badges { display: flex; gap: 12px; margin-top: 1.5rem; flex-wrap: wrap; }
.badge {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 500;
    background: white; padding: 6px 12px; border-radius: 20px;
    box-shadow: var(--shadow); color: var(--text-muted);
}
.badge i { color: var(--primary); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.8rem 1.5rem; font-size: 0.95rem; font-weight: 600;
    border-radius: 50px; cursor: pointer;
    transition: all 0.25s ease; text-decoration: none; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; box-shadow: 0 4px 14px rgba(29,63,90,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,63,90,0.35); }
.btn-secondary {
    background: white; color: var(--text-main); border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ── Form Page ── */
.form-page { padding: 24px 0 60px; min-height: 100vh; }

.form-logo {
    text-align: center;
    padding-top: 1.75rem;
    margin-bottom: 1.25rem;
}
.form-logo img { width: auto; height: 140px; max-width: 420px; display: inline-block; object-fit: contain; }

.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 0 2rem 2.5rem;
    max-width: 620px;
    margin: 0 auto;
}

/* ── Price Banner ── */
.price-banner {
    background: var(--mint);
    border-radius: 6px;
    padding: 8px 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.price-banner-value {
    font-weight: 600; color: var(--primary-deep); font-size: 0.95rem;
}
.price-banner-sep { color: var(--text-muted); }
.price-banner-label { color: var(--text-muted); font-size: 0.85rem; }

/* ── Progress Bar + Dots ── */
.progress-container { margin-bottom: 1.5rem; }
.progress-track {
    height: 6px; background: var(--border-color); border-radius: 3px;
    overflow: hidden; position: relative;
}
.progress-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease-in-out;
}
.progress-dots {
    display: flex; justify-content: space-between;
    margin-top: 10px; padding: 0 2px;
}
.progress-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}
.progress-dot.completed { background: var(--primary-dark); }
.progress-dot.current { background: var(--primary-dark); transform: scale(1.4); }

/* ── Form Steps ── */
.step { display: none; animation: fadeIn 0.35s ease-out; }
.step.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Form Elements ── */
.form-group { margin-bottom: 1.25rem; }
label {
    display: block; font-weight: 500; margin-bottom: 0.4rem;
    color: var(--text-label); font-size: 0.9rem;
}
input, select {
    width: 100%; padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem; color: var(--text-main);
    transition: border-color 0.2s; background: #fff; outline: none;
    font-family: inherit;
}
input::placeholder { color: #9ca3af; }
input:focus, select:focus { border-color: var(--primary-teal); }

.hint-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.error-text { color: var(--error); font-size: 0.85rem; margin-top: 0.4rem; display: none; }
input.invalid { border-color: var(--error); }

.email-sugestao-box {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--mint-soft); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 0.4rem;
    font-size: 0.85rem; color: var(--text-main);
}
.email-sugestao-box strong { color: var(--primary-dark); }
.btn-corrigir-email {
    background: var(--primary); color: white; border: none;
    border-radius: var(--radius-btn); padding: 5px 14px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    font-family: inherit; flex-shrink: 0;
    transition: background 0.2s;
}
.btn-corrigir-email:hover { background: var(--primary-dark); }

/* ── Info Box ── */
.info-box {
    background: var(--mint-soft); border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.9rem; color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex; align-items: flex-start; gap: 8px;
}
.info-box i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.info-box strong { color: var(--text-main); }

/* ── Options (Tipo de Atestado) — Single Column ── */
.options-grid {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 1.5rem;
}
.option-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 18px;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 14px;
    background: var(--surface);
}
.option-card:hover {
    border-color: var(--primary-light);
}
.option-card.selected {
    border-color: var(--primary);
    background: var(--mint);
    box-shadow: 0 0 0 3px rgba(29,63,90,0.16);
}
.option-icon {
    font-size: 1.25rem; color: var(--text-muted);
    width: 28px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: none;
    transition: color 0.2s;
}
.option-card.selected .option-icon { color: var(--primary-dark); }
.option-content h4 { margin-bottom: 2px; font-size: 0.95rem; font-weight: 600; transition: color 0.2s; }
.option-card.selected .option-content h4 { color: var(--primary-dark); }
.option-content p { font-size: 0.8rem; margin: 0; color: var(--text-muted); }

/* ── Accordion for Doencas ── */
.accordion { margin-bottom: 1.5rem; }
.accordion-item {
    border: 1px solid var(--border-color); border-radius: 10px;
    margin-bottom: 12px; overflow: hidden; background: var(--surface);
}
.accordion-header {
    padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 600; font-size: 0.88rem;
    background: var(--bg-color);
    transition: background 0.2s;
}
.accordion-header:hover { background: var(--border-light); }
.accordion-title { display: flex; align-items: center; gap: 10px; }
.accordion-title i { color: var(--primary); font-size: 1rem; width: 20px; text-align: center; }
.accordion-right { display: flex; align-items: center; gap: 10px; }
.cat-count {
    background: var(--border-color); color: oklch(0.42 0.01 175);
    border-radius: 999px; padding: 2px 8px;
    font-size: 0.72rem; font-weight: 500; line-height: 1.4;
}
.accordion-header .fa-chevron-down { color: var(--text-muted); font-size: 0.75rem; transition: transform 0.3s; }
.accordion-item.open .accordion-header .fa-chevron-down { transform: rotate(180deg); }
.accordion-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease-out; background: var(--surface);
}
.accordion-item.open .accordion-body {
    max-height: 800px;
    border-top: 1px solid var(--border-color);
}
.doenca-item {
    padding: 13px 16px; font-size: 0.92rem; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.15s; color: var(--text-main);
}
.doenca-item + .doenca-item { border-top: 1px solid var(--border-light); }
.doenca-item:hover { background: var(--bg-color); }
.doenca-item.selected {
    background: var(--mint); color: var(--primary-dark); font-weight: 600;
}
.doenca-item.selected i { color: var(--primary); }

/* ── Selected Doença Banner ── */
.doenca-banner {
    background: var(--mint); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; font-weight: 600; color: var(--text-main);
}
.doenca-banner .fa-circle-check { color: var(--primary); margin-right: 8px; }
.btn-alterar {
    background: var(--surface); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 4px 14px;
    font-size: 0.8rem; font-weight: 500; color: var(--text-main);
    cursor: pointer; transition: border-color 0.2s;
    font-family: inherit;
}
.btn-alterar:hover { border-color: var(--primary); }

/* ── Form Row (UF + Cidade only) ── */
.form-row-uf {
    display: grid; grid-template-columns: 90px 1fr; gap: 12px;
}

/* ── Step Actions ── */
.step-actions {
    display: flex; align-items: center; gap: 16px;
    margin-top: 2rem; padding-top: 0;
    justify-content: space-between;   /* Voltar à esquerda, Próximo à direita (igual à 1ª etapa) */
}
.step-actions-right { justify-content: flex-end; }

.btn-voltar {
    background: none; border: none; color: var(--text-muted);
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
    padding: 0.6rem 0; text-decoration: underline;
    transition: color 0.2s;
    font-family: inherit;
}
.btn-voltar:hover { color: var(--primary); }

.btn-proximo {
    background: var(--primary); color: white;
    border: none; border-radius: var(--radius-btn);
    padding: 12px 24px; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.btn-proximo:hover { background: var(--primary-dark); }
.btn-proximo:disabled {
    background: var(--disabled-bg); color: white;
    cursor: not-allowed; box-shadow: none;
}

/* ── Busca de Unidade ── */
.search-input-wrap { position: relative; }
.search-input-wrap .fa-magnifying-glass {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.9rem; pointer-events: none;
}
.search-input-wrap input { padding-left: 40px; }

/* ── Unidade Card ── */
.filters-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 1.25rem;
}
.filters-row .filter-group { margin-bottom: 0; }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label { font-size: 0.9rem; }

.unidade-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.unidade-logo-inline {
    display: inline-flex; align-items: center;
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 5px 10px; margin: 6px 0 8px;
}
.unidade-logo-inline img { height: 26px; max-width: 100px; object-fit: contain; display: block; }
.badge-logo {
    display: inline-flex; align-items: center;
    font-size: 0.68rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
    white-space: nowrap;
}
.badge-logo.com { background: var(--mint); color: var(--primary-dark); }
.badge-logo.sem { background: var(--border-light); color: var(--text-muted); }

.unidades-count {
    font-size: 0.9rem; font-weight: 600; color: var(--text-main);
    margin-bottom: 1rem;
}

.unidade-card {
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 10px;
    cursor: pointer; transition: all 0.2s;
    background: white;
}
.unidade-card:hover {
    border-color: var(--primary); box-shadow: var(--shadow);
}
.unidade-card.selected {
    border-color: var(--primary); background: var(--mint);
    border-left-width: 4px;
}
.unidade-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.unidade-detail {
    font-size: 0.8rem; color: var(--text-muted); margin-top: 3px;
    display: flex; align-items: center; gap: 6px;
}
.unidade-detail i { font-size: 0.75rem; }
.unidade-meta {
    display: flex; gap: 16px; margin-top: 6px;
    font-size: 0.8rem; font-weight: 600;
}
.unidade-meta .distance { color: var(--primary); }
.unidade-meta .rating { color: var(--primary); }
.unidade-meta i { margin-right: 3px; }

.btn-ver-mais {
    display: block; width: 100%;
    background: var(--primary); color: white;
    border: none; border-radius: var(--radius-sm);
    padding: 0.85rem; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; margin-top: 1rem;
    transition: background 0.2s;
}
.btn-ver-mais:hover { background: var(--primary-dark); }

/* ── Resumo (Sectioned Table) ── */
.resumo-box {
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    overflow: hidden; margin-bottom: 1.5rem;
}
.resumo-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.resumo-section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem;
}
.resumo-section-title {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted);
}
.resumo-section:last-child { border-bottom: none; }
.resumo-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 0.4rem 0; font-size: 0.85rem;
}
.resumo-label { font-weight: 500; color: var(--text-muted); min-width: 140px; flex-shrink: 0; }
.resumo-value { font-weight: 600; text-align: right; flex: 1; word-break: break-word; }

/* ── Atestado gerado (prévia) — proporção A4 do arquivo entregável ── */
.atestado-doc {
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    aspect-ratio: 210 / 297;              /* mesmas proporções do PDF final (A4 retrato) */
    padding: 6.5% 7.5%;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    font-family: Arial, Helvetica, sans-serif; color: #1a1a1a;
    text-align: left; line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.atestado-doc .doc-footer { margin-top: auto; }

/* Informações sensíveis borradas na prévia (liberadas após o pagamento) */
.previa-blur { filter: blur(5px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.previa-blur-strong { filter: blur(7px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.atestado-doc .doc-lock {
    position: absolute; z-index: 3; font-size: 8px; font-weight: 700;
    color: var(--primary-dark); background: var(--mint); border-radius: 4px;
    padding: 2px 6px; display: inline-flex; align-items: center; gap: 3px;
}
.atestado-doc .doc-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 14px; margin-bottom: 8px;
}
.atestado-doc .doc-logo img { max-width: 150px; max-height: 56px; object-fit: contain; display: block; }
.atestado-doc .doc-hospital-nome { font-size: 13px; font-weight: bold; color: #000; }
.atestado-doc .doc-hospital-end { font-size: 9px; color: #555; margin-top: 3px; max-width: 220px; }
.atestado-doc .doc-validation {
    background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 8px 10px; display: flex; gap: 8px; width: 215px; flex-shrink: 0;
}
.atestado-doc .doc-validation strong { display: block; font-size: 8.5px; margin-bottom: 4px; color: #333; }
.atestado-doc .doc-validation ul { list-style: none; margin: 0; padding: 0; }
.atestado-doc .doc-validation li { display: flex; gap: 4px; font-size: 7.5px; color: #333; margin-bottom: 2px; align-items: center; }
.atestado-doc .step-num {
    background: #ddd; width: 11px; height: 11px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 7px; font-weight: bold; flex-shrink: 0; color: #333;
}
.atestado-doc .doc-qr { width: 52px; height: 52px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #fff; }
.atestado-doc .doc-qr img { width: 100%; height: 100%; display: block; }
.atestado-doc .doc-line { height: 3px; background: linear-gradient(90deg, #1D3F5A, #2E5C82); margin: 10px 0 18px; }
.atestado-doc .doc-title {
    text-align: center; font-size: 17px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 2px; color: #000; margin-bottom: 18px;
}
.atestado-doc .doc-body { font-size: 11.5px; line-height: 1.8; text-align: justify; color: #1a1a1a; }
.atestado-doc .doc-body .hl { font-weight: bold; color: #000; }
.atestado-doc .doc-cid { margin-top: 12px; font-size: 11px; color: #333; }
.atestado-doc .doc-date { margin-top: 24px; font-size: 11px; color: #333; text-align: right; font-style: italic; }
.atestado-doc .doc-signature { margin-top: 18px; width: 190px; }
.atestado-doc .doc-signature img { max-height: 64px; max-width: 100%; object-fit: contain; display: block; }
.atestado-doc .doc-medico { font-size: 9px; font-weight: bold; text-transform: uppercase; color: #000; margin-top: 2px; }
.atestado-doc .doc-crm { font-size: 8.5px; font-weight: normal; color: #444; }
.atestado-doc .doc-footer {
    margin-top: 18px; border: 1.5px solid #333; padding: 7px 10px;
    font-size: 6.5px; font-weight: bold; text-align: center;
    text-transform: uppercase; line-height: 1.4; color: #333;
}
.atestado-doc .doc-watermark {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 2.2rem; font-weight: 800; color: rgba(29,63,90,0.10);
    white-space: nowrap; pointer-events: none; z-index: 2;
    letter-spacing: 2px; font-family: 'Geist', Arial, sans-serif;
}

/* ── Tela do Entregável (atestado liberado) ── */
.entregavel-head { text-align: center; padding: 1rem 0 1.5rem; }
.entregavel-check { font-size: 3rem; color: var(--primary); margin-bottom: 0.5rem; }
.entregavel-head h2 { font-size: 1.4rem; }
.entregavel-head p { font-size: 0.9rem; margin-top: 6px; }
.entregavel-doc-wrap { margin: 0 auto 1.5rem; max-width: 460px; }
.entregavel-actions { max-width: 460px; margin: 0 auto; }
.atestado-doc.entregavel { box-shadow: 0 6px 24px rgba(0,0,0,0.12); }

/* ── Prévia Document ── */
.previa-document {
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    padding: 1.5rem; margin: 1.5rem 0; position: relative; overflow: hidden;
    background: white;
}
.previa-doc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.previa-doc-body { position: relative; z-index: 1; }
.previa-watermark {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 2.5rem; font-weight: 800; color: rgba(29,63,90,0.08);
    white-space: nowrap; pointer-events: none; z-index: 0;
    letter-spacing: 2px;
}
.previa-loader-icon {
    display: inline-flex; align-items: center; justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

/* ── Payment ── */
.payment-box {
    text-align: center; padding: 2rem;
    border: 2px dashed var(--primary);
    border-radius: var(--radius); background: var(--mint-soft);
    margin-bottom: 1rem;
}
.price { font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); margin: 0.75rem 0; }

.trust-bar {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
    padding: 1rem 0; font-size: 0.8rem; color: var(--text-muted);
}
.trust-bar span { display: flex; align-items: center; gap: 5px; }

/* ── PIX Page ── */
.pix-status-banner {
    background: #fef9c3; border: 1px solid #fde68a; border-radius: 50px;
    padding: 0.6rem 1.25rem; text-align: center;
    font-size: 0.85rem; font-weight: 500; color: #92400e;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pix-status-banner.pago {
    background: var(--mint); border-color: var(--primary); color: var(--primary-dark);
}
.pix-status-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #f59e0b;
    display: inline-block; animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.pix-valor-card {
    text-align: center; padding: 1.5rem;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    margin-bottom: 1.5rem; background: white;
}

.pix-instructions {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
}
.pix-instructions h4 { font-size: 0.9rem; margin-bottom: 0.75rem; }
.pix-instructions ol {
    padding-left: 1.5rem; font-size: 0.85rem; color: var(--text-main);
}
.pix-instructions li {
    margin-bottom: 0.6rem; line-height: 1.5;
    padding-left: 0.5rem;
}
.pix-instructions li::marker { color: var(--primary); font-weight: 700; }

.pix-code-section {
    border-top: 1px solid var(--border-color); padding-top: 1.25rem;
}
.pix-code-section h4 { font-size: 0.9rem; margin-bottom: 0.75rem; }
.pix-code-row {
    display: flex; gap: 0; border-radius: var(--radius-sm);
    overflow: hidden; border: 1px solid var(--border-color);
}
.pix-code-input {
    flex: 1; border: none !important; border-radius: 0 !important;
    font-size: 0.8rem; color: var(--text-muted); padding: 0.75rem;
    background: #f9fafb;
}
.pix-copy-btn {
    background: #14304A; color: white; border: none;
    padding: 0.75rem 1.25rem; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: background 0.2s; white-space: nowrap;
}
.pix-copy-btn:hover { background: #0E2436; }

.pix-qr-placeholder {
    width: 180px; height: 180px; margin: 0 auto;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: white;
}

/* ── Comprovante ── */
.comprovante-box {
    margin-top: 2rem; padding: 1.25rem;
    border: 1px dashed var(--primary); border-radius: var(--radius-sm);
    background: var(--mint-soft);
}
.comprovante-box h4 { font-size: 0.95rem; }
.comprovante-status-badge {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600;
}
.comprovante-status-badge.analise { background: #fef3c7; color: #92400e; }
.comprovante-status-badge.aprovado { background: var(--mint); color: var(--primary-dark); }
.comprovante-status-badge.recusado { background: #fee2e2; color: #b91c1c; }
.comprovante-status-badge.erro { background: #fee2e2; color: #b91c1c; }

.pix-alert {
    margin-top: 2rem; padding: 0.85rem 1rem;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm);
    font-size: 0.85rem; color: #92400e;
    display: flex; align-items: center; gap: 10px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .trust-badges { justify-content: center; }
    h1 { font-size: 2rem; }
    .form-row-uf { grid-template-columns: 80px 1fr; }
    .pix-code-row { flex-direction: column; }
    .trust-bar { flex-direction: column; align-items: center; gap: 8px; }
    .resumo-item { flex-direction: column; gap: 2px; }
    .resumo-value { text-align: left; }

    /* Formulário ocupa toda a largura do celular, sem margens laterais */
    .form-page { padding: 12px 0 40px; }
    .container { padding: 0 12px; }
    .form-card { padding: 0 1rem 1.75rem; border-radius: 12px; }
    .form-logo img { height: 168px; max-width: 90%; }
    h2 { font-size: 1.3rem; }

    /* Dois filtros lado a lado viram empilhados */
    .filters-row { grid-template-columns: 1fr; }
    .filter-group select { max-width: 100%; }

    /* Alvos de toque maiores */
    .option-card { padding: 14px 14px; }
    .btn-proximo, .btn-voltar { padding: 13px 20px; font-size: 1rem; }
    /* Barra de ações fixa no rodapé: Voltar à esquerda, Próximo à direita */
    .step-actions {
        position: sticky; bottom: 0; background: var(--surface);
        padding: 12px 0 8px; z-index: 5;
        justify-content: space-between;
        border-top: 1px solid var(--border-light);
    }
    .step-actions .btn-proximo { min-width: 150px; }
    .step-actions-right { justify-content: flex-end; padding-bottom: 8px; }

    /* Documento do atestado cabe na largura do celular */
    .entregavel-doc-wrap, .entregavel-actions { max-width: 100%; }
}

/* Telas muito estreitas: card sem cantos e coladinho nas bordas */
@media (max-width: 480px) {
    .container { padding: 0 8px; }
    .form-card { padding: 0 0.85rem 1.5rem; border-radius: 10px; }
    .form-logo img { height: 150px; }
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .step { animation: none; }
}

