/* Agendamento — Nossa Clínica. Tudo dentro de .nca para não brigar com o tema/Elementor. */
.nca {
	--navy: #000B2E; --navy-3: #1A2A66;
	--red: #FF3131; --red-ink: #D61F27; --red-soft: #FF6B6B;
	--mist: #EEF2FA; --bg: #F6F8FC; --line: #DCE2EF; --ink: #0B1533; --muted: #56607C;
	--ok: #0E8A5F; --ok-soft: #E3F6EE; --wpp: #1FA855; --err: #C2161E;
	--display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--body: "Figtree", "Segoe UI", system-ui, sans-serif;
	position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px;
	font: 400 16px/1.5 var(--body); color: var(--ink); -webkit-font-smoothing: antialiased; color-scheme: light;
}
.nca[hidden] { display: none !important; }
.nca *, .nca *::before, .nca *::after { box-sizing: border-box; }
.nca button { touch-action: manipulation; appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-transform: none; letter-spacing: normal; line-height: inherit; box-shadow: none; cursor: pointer; text-align: inherit; white-space: normal; -webkit-tap-highlight-color: transparent; }
.nca button:hover, .nca button:focus { background: none; color: inherit; }
.nca input, .nca textarea { appearance: none; -webkit-appearance: none; margin: 0; font: inherit; color: inherit; box-shadow: none; }
.nca h2, .nca h3, .nca p, .nca ul, .nca ol { margin: 0; padding: 0; }
.nca svg { display: block; }
.nca a { text-decoration: none; }
.nca :focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 12px; }
.nca [hidden] { display: none !important; }

.nca .nca-scrim { position: absolute; inset: 0; background: rgba(0, 11, 46, .72); animation: nca-fade .2s ease; }
@keyframes nca-fade { from { opacity: 0; } to { opacity: 1; } }
.nca .nca-box { position: relative; width: 100%; max-width: 600px; max-height: min(860px, calc(100vh - 40px)); max-height: min(860px, calc(100dvh - 40px)); background: #fff; border-radius: 28px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65); display: flex; flex-direction: column; overflow: hidden; animation: nca-pop .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes nca-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Topo */
.nca .nca-top { flex: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px 14px 22px; background: var(--navy); color: #fff; background: radial-gradient(420px 200px at 100% -40%, var(--navy-3), transparent 70%), var(--navy); }
.nca .nca-brand { width: 34px; height: 34px; flex: none; animation: nca-beat 1.6s ease-in-out infinite; }
.nca .nca-brand svg { width: 100%; height: 100%; }
@keyframes nca-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
.nca .nca-prog { flex: 1; min-width: 0; }
.nca .nca-prog-t { display: flex; justify-content: space-between; gap: 8px; font: 700 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-bottom: 8px; }
.nca .nca-prog-t b { color: #fff; font-weight: 700; }
.nca .nca-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.nca .nca-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red-ink), var(--red-soft)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.nca .nca-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .1); }
.nca .nca-x:hover { background: rgba(255, 255, 255, .2); }
.nca .nca-x svg { width: 20px; height: 20px; fill: #fff; }

/* Corpo */
.nca .nca-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 26px 8px; }
.nca .nca-step { animation: nca-in .2s ease-out; }
.nca .nca-step.nca-back { animation-name: nca-in-back; }
@keyframes nca-in { from { opacity: .2; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes nca-in-back { from { opacity: .2; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.nca .nca-eyebrow { display: flex; align-items: center; gap: 8px; font: 700 12px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 8px; }
.nca .nca-eyebrow svg { width: 28px; height: 12px; }
.nca .nca-h { font: 800 clamp(24px, 5.4vw, 30px)/1.08 var(--display); letter-spacing: -0.03em; color: var(--navy); margin-bottom: 8px; text-wrap: balance; }
.nca .nca-h em { font-style: normal; color: var(--red-ink); }
.nca .nca-h:focus { outline: none; }
.nca .nca-sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.nca .nca-label { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); margin: 20px 0 10px; }
.nca .nca-label i { font-style: normal; font-weight: 500; color: var(--muted); }

/* Escolha principal */
.nca .nca-choices { display: grid; gap: 10px; }
.nca .nca-choice { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 20px; padding: 16px; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.nca .nca-choice:hover { border-color: var(--navy); background: #fff; }
.nca .nca-choice[aria-checked="true"], .nca .nca-choice[aria-checked="true"]:hover { border-color: var(--red); background: #FFF6F6; box-shadow: 0 0 0 3px rgba(255, 49, 49, .14); }
.nca .nca-choice-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--mist); color: var(--navy); display: grid; place-items: center; flex: none; }
.nca .nca-choice[aria-checked="true"] .nca-choice-ico { background: var(--red-ink); color: #fff; }
.nca .nca-choice-ico .nca-ico { width: 26px; height: 26px; }
.nca .nca-choice-txt { flex: 1; min-width: 0; }
.nca .nca-choice-txt b { display: block; font: 700 17px/1.2 var(--display); color: var(--navy); }
.nca .nca-choice-txt small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.nca .nca-arrow { width: 22px; height: 22px; fill: var(--muted); flex: none; }
.nca .nca-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Chips */
.nca .nca-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nca .nca-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink); transition: background .15s, border-color .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; }
.nca .nca-chip:hover { border-color: var(--navy); background: #fff; color: var(--ink); }
.nca .nca-chip[aria-checked="true"], .nca .nca-chip[aria-checked="true"]:hover, .nca .nca-chip[aria-pressed="true"], .nca .nca-chip[aria-pressed="true"]:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.nca .nca-chip[aria-checked="true"]::before, .nca .nca-chip[aria-pressed="true"]::before { content: "✓"; font-weight: 800; }

/* Médicos */
.nca .nca-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nca .nca-doc { display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line); background: #fff; border-radius: 18px; padding: 11px; min-width: 0; transition: border-color .15s, background .15s, box-shadow .15s; }
.nca .nca-doc:hover { border-color: var(--navy); background: #fff; }
.nca .nca-doc[aria-checked="true"], .nca .nca-doc[aria-checked="true"]:hover { border-color: var(--red); background: #FFF6F6; box-shadow: 0 0 0 3px rgba(255, 49, 49, .14); }
.nca .nca-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: var(--mist); display: grid; place-items: center; font: 800 15px/1 var(--display); color: var(--navy); }
.nca .nca-doc-txt { min-width: 0; }
.nca .nca-doc-txt b { display: block; font: 700 14.5px/1.2 var(--display); color: var(--navy); }
.nca .nca-doc-txt small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nca .nca-doc-txt small strong { color: var(--red-ink); }
.nca .nca-doc.nca-any { border-style: dashed; }

/* Exames */
.nca .nca-search { position: relative; margin-bottom: 12px; }
.nca .nca-search svg { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: var(--muted); pointer-events: none; }
.nca .nca-search input { padding-left: 42px !important; }
.nca .nca-groups { display: grid; gap: 8px; }
.nca .nca-group { border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.nca .nca-group-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; font: 700 15.5px/1.2 var(--display); color: var(--navy); }
.nca .nca-group-h:hover { background: var(--bg); color: var(--navy); }
.nca .nca-group-h .nca-ico { width: 22px; height: 22px; color: var(--navy); }
.nca .nca-group-h span { flex: 1; }
.nca .nca-group-h .nca-chev { width: 20px; height: 20px; fill: var(--muted); transition: transform .25s; }
.nca .nca-group[data-open="true"] .nca-chev { transform: rotate(180deg); }
.nca .nca-group-b { padding: 2px 14px 14px; }
.nca .nca-group-days { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.nca .nca-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red-ink); color: #fff; font: 800 12px/22px var(--display); text-align: center; flex: none !important; }
.nca .nca-count:empty { display: none; }
.nca .nca-xrows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nca .nca-xrow { display: flex; align-items: center; gap: 10px; min-height: 50px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 9px 11px; transition: border-color .15s, background .15s; }
.nca .nca-xrow:hover { border-color: var(--navy); background: #fff; }
.nca .nca-xrow[aria-pressed="true"], .nca .nca-xrow[aria-pressed="true"]:hover { border-color: var(--red); background: #FFF6F6; }
.nca .nca-xrow b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.25; color: var(--ink); }
.nca .nca-xrow small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.nca .nca-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.nca .nca-check::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s cubic-bezier(.3, 1.8, .5, 1); }
.nca [aria-pressed="true"] > .nca-check { background: var(--red-ink); border-color: var(--red-ink); }
.nca [aria-pressed="true"] > .nca-check::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.nca .nca-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nca .nca-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--mist); color: var(--navy); border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 13.5px; font-weight: 600; }
.nca .nca-tag button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.nca .nca-tag button:hover { background: #fff; }
.nca .nca-tag svg { width: 14px; height: 14px; fill: var(--navy); }
.nca .nca-empty { color: var(--muted); text-align: center; padding: 16px 8px; font-size: 14.5px; }

/* Campos */
.nca .nca-field { display: grid; gap: 6px; margin-bottom: 14px; }
.nca .nca-field label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.nca .nca-field label i { font-style: normal; font-weight: 500; color: var(--muted); }
.nca .nca-input { width: 100%; height: 52px; background: var(--mist); border: 1.5px solid transparent; border-radius: 14px; padding: 0 16px; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s, background .2s; }
.nca textarea.nca-input { height: auto; min-height: 84px; padding: 13px 16px; resize: vertical; line-height: 1.45; }
.nca .nca-input::placeholder { color: #7a829b; }
.nca .nca-input:focus { border-color: var(--navy); background: #fff; }
.nca .nca-field.nca-bad .nca-input { border-color: var(--err); background: #FFF6F6; }
.nca .nca-err { font-size: 13px; font-weight: 600; color: var(--err); display: none; }
.nca .nca-field.nca-bad .nca-err { display: block; }
.nca .nca-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nca .nca-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 4px 0 6px; }
.nca .nca-privacy svg { width: 16px; height: 16px; fill: var(--muted); flex: none; margin-top: 2px; }

/* Revisão */
.nca .nca-review { border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; }
.nca .nca-rv { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nca .nca-rv:last-child { border-bottom: 0; }
.nca .nca-rv-t { flex: 1; min-width: 0; }
.nca .nca-rv-t small { display: block; font: 700 11.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.nca .nca-rv-t div { font-size: 15px; color: var(--ink); font-weight: 600; }
.nca .nca-rv-t div span { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }
.nca .nca-edit { color: var(--red-ink); font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; padding: 2px; }
.nca .nca-edit:hover { color: var(--navy); }
.nca .nca-note { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-soft); color: #23604a; border-radius: 16px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.nca .nca-note svg { width: 22px; height: 22px; fill: var(--wpp); flex: none; }

/* Pronto */
.nca .nca-done { text-align: center; padding: 10px 0 6px; }
.nca .nca-heart { width: 88px; height: 88px; margin: 6px auto 16px; position: relative; }
.nca .nca-heart svg { width: 100%; height: 100%; fill: var(--red); animation: nca-beat 1.4s ease-in-out infinite; }
.nca .nca-heart::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 49, 49, .35); animation: nca-ring 1.8s ease-out infinite; }
@keyframes nca-ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.nca .nca-hours { background: var(--bg); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--muted); margin-top: 16px; }
.nca .nca-hours b { color: var(--navy); }

/* Rodapé */
.nca .nca-foot { flex: none; display: flex; gap: 10px; align-items: center; padding: 14px 26px 20px; border-top: 1px solid var(--line); background: #fff; }
.nca .nca-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 16px 22px; font: 700 16px/1.1 var(--body); transition: transform .2s, background .2s, opacity .2s, box-shadow .2s; text-align: center; }
.nca .nca-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.nca .nca-next, .nca .nca-next:hover, .nca .nca-next:focus { flex: 1; background: var(--red-ink); color: #fff; box-shadow: 0 14px 28px -14px rgba(214, 31, 39, .8); }
.nca .nca-next:hover { background: #B8161E; }
.nca .nca-next.nca-wpp, .nca .nca-next.nca-wpp:focus { background: var(--wpp); box-shadow: 0 14px 28px -14px rgba(31, 168, 85, .9); }
.nca .nca-next.nca-wpp:hover { background: #178A45; }
.nca .nca-next[aria-disabled="true"], .nca .nca-next[aria-disabled="true"]:hover { background: #E4E8F1; color: #8a90a6; box-shadow: none; transform: none; cursor: not-allowed; }
.nca .nca-prev, .nca .nca-prev:hover, .nca .nca-prev:focus { width: 54px; height: 54px; padding: 0; flex: none; background: var(--mist); color: var(--navy); }
.nca .nca-prev:hover { background: var(--line); }
.nca a.nca-btn.nca-next, .nca a.nca-btn.nca-next:visited { color: #fff; }

html.nca-lock, html.nca-lock body { overflow: hidden !important; }

@media (max-width: 640px) {
	.nca { padding: 0; align-items: flex-end; }
	.nca .nca-box { max-width: none; max-height: 100%; height: 100%; border-radius: 0; animation-name: nca-up; }
	@keyframes nca-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
	/* Com a janela em tela cheia, a página de trás some: o celular para de redesenhar animações que nem aparecem */
	html.nca-lock body > *:not(.nca) { visibility: hidden; }
	.nca .nca-top { padding: max(14px, env(safe-area-inset-top)) 14px 12px 18px; }
	.nca .nca-body { padding: 20px 18px 8px; }
	.nca .nca-foot { padding: 12px 18px max(16px, env(safe-area-inset-bottom)); }
	.nca .nca-docs, .nca .nca-xrows { grid-template-columns: minmax(0, 1fr); }
	.nca .nca-row2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.nca *, .nca *::before, .nca *::after { animation: none !important; transition: none !important; }
}
