/* Assistência Espiritual — estilos básicos */
:root {
  --bg: #0b1020;
  --card: #121833;
  --muted: #9aa3b2;
  --text: #ecf0ff;
  --primary: #6ea8fe;
  --primary-ink: #0b1020;
  --outline: #2a335a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, #1a2150, #0b1020);
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--outline);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.subtitle { margin: 2px 0 0 0; color: var(--muted); font-size: 13px; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6ea8fe, #8f94fb);
  color: var(--primary-ink); font-weight: 800;
  box-shadow: var(--shadow);
}

.container {
  max-width: 980px; margin: 24px auto; padding: 0 16px;
  display: grid; gap: 16px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.hidden { display: none; }

label { display: grid; gap: 8px; font-size: 14px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--outline); background: rgba(0,0,0,.25);
  color: var(--text); outline: none;
}
textarea { resize: vertical; }

.fieldset { border: 1px solid var(--outline); border-radius: 12px; padding: 12px; }
.fieldset legend { padding: 0 6px; color: var(--muted); }
.checkline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.choices { display: flex; gap: 10px; align-items: center; }
.actions { display: flex; gap: 10px; align-items: center; }

.btn {
  padding: 10px 14px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .03s ease-in-out, box-shadow .2s ease-in-out, background .2s;
}
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.outline { border-color: var(--outline); color: var(--text); }
.btn.ghost { background: transparent; border-color: var(--outline); color: var(--text); }
.btn:active { transform: translateY(0); }

.chatHeader { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.messages {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 14px;
  height: 360px;
  overflow: auto;
  display: grid; gap: 10px;
}

.msg { display: grid; gap: 6px; }
.msg .meta { font-size: 12px; color: var(--muted); }
.msg .bubble {
  padding: 12px 14px; border-radius: 14px;
  background: #0f1633; border: 1px solid var(--outline);
}
.msg.user .bubble { background: rgba(110,168,254,0.12); border-color: #3a4b80; }
.msg.agent .bubble { background: rgba(15, 200, 180, 0.07); border-color: #2a6c6f; }

.chatForm {
  margin-top: 10px; display: flex; gap: 10px;
}

.footer { text-align: center; padding: 40px 16px; color: var(--muted); }

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .topbar { flex-direction: column; gap: 10px; align-items: flex-start; }
}
