*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --green:#25d366; --deep:#0b3d2e; --mid:#0f6b4f; --ink:#000; --steel:#616161; --line:#e6ebe8; }
body {
  font-family: 'Manrope', sans-serif; color: var(--ink); line-height: 1.6; min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(37,211,102,.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 10%, rgba(37,211,102,.10), transparent 70%),
    linear-gradient(180deg,#fff 0%,#fbfdfb 35%,#eef9f1 100%);
  background-attachment: fixed;
}
.hd { max-width: 680px; margin: 0 auto; padding: 72px 20px 64px; }
.hd-head { text-align: center; margin-bottom: 32px; }
.hd-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mid); margin-bottom: 12px; }
.hd h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin-bottom: 14px; }
.hd-lede { color: var(--steel); font-size: 17px; max-width: 460px; margin: 0 auto; }

.chat { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(11,61,46,.10); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(135deg,var(--deep),var(--mid)); color: #fff; }
.chat-bar small { display: block; opacity: .75; font-size: 12px; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37,211,102,.25); }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 15px; }
.msg-in { background: #f2f4f3; border-bottom-left-radius: 6px; }
.msg-out { align-self: flex-end; background: var(--deep); color: #fff; border-bottom-right-radius: 6px; }
.msg-out p { white-space: pre-wrap; word-break: break-word; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-size: 12px; font-weight: 700; color: var(--steel); display: flex; flex-direction: column; gap: 6px; }
input[type=text], textarea {
  font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fafcfb; outline: none; width: 100%;
}
input[type=text]:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37,211,102,.18); }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.msg-out .thumb { width: 64px; height: 64px; border-color: rgba(255,255,255,.3); }

.composer { display: flex; align-items: flex-end; gap: 10px; border: 1px solid var(--line); border-radius: 18px; padding: 10px; background: #fafcfb; }
.composer.drag { border-color: var(--green); background: rgba(37,211,102,.08); }
.composer textarea { border: 0; background: transparent; resize: none; padding: 8px; box-shadow: none !important; }
.attach { flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--deep); display: grid; place-items: center; cursor: pointer; }
.attach svg { width: 20px; height: 20px; }
.send { flex: none; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; font-size: 14px; background: #000; color: #f2f2f2; cursor: pointer; }
.send:disabled { opacity: .5; cursor: default; }
.hint { font-size: 12px; color: var(--steel); text-align: right; }
.error { font-size: 13px; color: #b3261e; }

.done { padding: 48px 24px; text-align: center; }
.done-check { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 28px; display: grid; place-items: center; }
.done h2 { font-size: 24px; margin-bottom: 10px; }
.done p { color: var(--steel); }
.done strong { color: var(--ink); }
.again { margin-top: 20px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .hd { padding-top: 48px; } }

.hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.direct { align-self:flex-end; font-size:14px; font-weight:700; color:var(--mid); }
.done a { color:var(--mid); font-weight:700; }
