/* azisunt.xyz — chatul de pe prima pagina, ca o conversatie WhatsApp. */
.hero-chat { padding: 28px 0 32px; text-align: center; }
.hero-chat .wrap { max-width: 640px; }
.hero-chat h1.display { font-size: clamp(2rem, 6.5vw, 3.2rem); }
.hero-chat .lead { margin-left: auto; margin-right: auto; }

.wa-box {
  --wa-green: #008069;
  --wa-send: #00a884;
  --wa-out: #d9fdd3;
  --wa-wall: #efeae2;
  --wa-ink: #111b21;
  --wa-soft: #667781;
  display: flex;
  flex-direction: column;
  height: min(600px, 74svh);
  min-height: 440px;
  margin-top: 22px;
  overflow: hidden;
  text-align: left;
  color: var(--wa-ink);
  background: var(--wa-wall);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px -30px rgba(28, 25, 23, 0.55);
}
.wa-head { display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: #fff; background: var(--wa-green); }
.wa-avatar { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; font-weight: 800; color: var(--wa-green); background: #fff; border-radius: 50%; }
.wa-who { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.25; }
.wa-who strong { font-size: 1rem; font-weight: 600; }
.wa-who span { font-size: 0.78rem; opacity: 0.88; }
.wa-reset { display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.15rem; color: #fff; cursor: pointer; background: none; border: 0; border-radius: 50%; }
.wa-reset:hover { background: rgba(255, 255, 255, 0.15); }

.wa-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--wa-wall);
  background-image: radial-gradient(rgba(84, 101, 111, 0.09) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
}
.wa-msg {
  position: relative;
  max-width: 84%;
  padding: 7px 10px 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  border-radius: 10px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  animation: wa-in 160ms ease-out;
}
.wa-bot { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-eu { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.wa-msg a { font-weight: 600; color: #027eb5; }
.wa-time { float: right; margin: 7px 0 -2px 10px; font-size: 0.68rem; color: var(--wa-soft); }
.wa-eu .wa-time::after { margin-left: 3px; color: #53bdeb; content: "\2713\2713"; }

.wa-plan { width: 92%; max-width: 92%; }
.wa-plan h3 { margin: 2px 0 2px; font-size: 1rem; font-weight: 700; }
.wa-plan > p { margin: 0 0 8px; }
.wa-plan ol { display: grid; gap: 7px; padding: 0; margin: 0 0 10px; list-style: none; counter-reset: pas; }
.wa-plan li { counter-increment: pas; }
.wa-plan li a { display: grid; grid-template-columns: 26px 1fr; gap: 0 8px; padding: 8px; color: inherit; text-decoration: none; background: #f6f5f3; border-radius: 9px; }
.wa-plan li a:hover { background: #ecebe8; }
.wa-plan li a::before { display: grid; grid-row: span 2; place-items: center; width: 26px; height: 26px; font-size: 0.8rem; font-weight: 700; color: #fff; content: counter(pas); background: var(--wa-green); border-radius: 50%; }
.wa-plan li strong { color: var(--wa-green); }
.wa-plan li span { font-size: 0.84rem; font-weight: 400; color: #3b4a54; }
.wa-cta { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; font-weight: 700; color: #fff !important; text-align: center; text-decoration: none; background: var(--wa-send); border-radius: 999px; }
.wa-cta:hover { background: #008f6f; }

.wa-typing { display: inline-flex; gap: 4px; padding: 11px 12px; }
.wa-typing i { width: 7px; height: 7px; background: #8696a0; border-radius: 50%; animation: wa-dot 1.1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: 0.15s; }
.wa-typing i:nth-child(3) { animation-delay: 0.3s; }

.wa-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 2px; background: var(--wa-wall); }
.wa-chips:empty { display: none; }
.wa-chips button { min-height: 40px; padding: 7px 13px; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--wa-green); cursor: pointer; background: #fff; border: 1px solid rgba(0, 128, 105, 0.35); border-radius: 999px; }
.wa-chips button:hover { background: #f0faf7; }

.wa-form { display: flex; gap: 7px; padding: 8px 10px 10px; background: var(--wa-wall); }
.wa-form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--wa-ink); background: #fff; border: 0; border-radius: 999px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wa-form button { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; font-size: 1.2rem; color: #fff; cursor: pointer; background: var(--wa-send); border: 0; border-radius: 50%; }
.wa-form button:disabled, .wa-form input:disabled { cursor: not-allowed; opacity: 0.55; }
.wa-box :focus-visible { outline: 2px solid #005c4b; outline-offset: 2px; }
.wa-head :focus-visible { outline-color: #fff; }
.wa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wa-noscript { padding: 10px 14px; margin: 0; background: #fff; }
.wa-note { max-width: 520px; margin: 12px auto 0; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
body.chat-activ .sticky-cta { display: none; }

@keyframes wa-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .wa-msg, .wa-typing i { animation: none; } }
