@charset "utf-8";

:root { --header: #075e54; --green: #25d366; --chat: #efeae2; --incoming: #ffffff; --outgoing: #d9fdd3; --text: #111b21; --border: #d7e2dc; }

* { box-sizing: border-box; }

html { min-width: 0px; background: rgb(216, 219, 213); }

body { min-height: 100vh; margin: 0px; background: rgb(216, 219, 213); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }

.chat { width: 100%; max-width: 1000px; min-height: 100vh; margin: 0px auto; background: var(--chat); box-shadow: rgba(17, 27, 33, 0.14) 0px 0px 26px; }

.chat-header { position: sticky; top: 0px; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 9px 18px; background: var(--header); color: rgb(255, 255, 255); box-shadow: rgba(17, 27, 33, 0.28) 0px 1px 3px; }

.person { display: flex; align-items: center; gap: 10px; }

.avatar-wrap { position: relative; width: 48px; height: 48px; }

.avatar { width: 100%; height: 100%; border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 50%; object-fit: cover; }

.online { position: absolute; right: 0px; bottom: 1px; width: 13px; height: 13px; border: 2px solid var(--header); border-radius: 50%; background: var(--green); }

.person-name { font-size: 17px; font-weight: 600; text-shadow: rgba(0, 0, 0, 0.22) 1px 1px 1px; }

.messenger-logo { width: 44px; height: 44px; object-fit: contain; }

.messages { display: flex; flex-direction: column; gap: 9px; padding: 18px 16px 32px; }

.message, .form-card { animation: 0.65s ease 0s 1 normal both running reveal; }

.message { position: relative; width: fit-content; max-width: min(78%, 650px); padding: 9px 12px; border-radius: 9px; font-size: 16px; line-height: 1.45; box-shadow: rgba(17, 27, 33, 0.13) 0px 1px 1px; }

.message p { margin: 0px; }

.message p + p { margin-top: 7px; }

.incoming { margin-left: 48px; border-top-left-radius: 0px; background: var(--incoming); }

.incoming::before { position: absolute; top: 0px; left: -48px; width: 36px; height: 36px; border-radius: 50%; background: url("images/avatar1.webp") center center / cover no-repeat; content: ""; }

.incoming::after { position: absolute; top: 0px; left: -10px; border-width: 5px; border-style: solid; border-bottom-color: transparent; border-left-color: transparent; border-image: none; border-top-color: var(--incoming); border-right-color: var(--incoming); content: ""; }

.outgoing { align-self: flex-end; margin-right: 8px; border-top-right-radius: 0px; background: var(--outgoing); }

.outgoing::after { position: absolute; top: 0px; right: -10px; border-width: 5px; border-style: solid; border-right-color: transparent; border-bottom-color: transparent; border-image: none; border-top-color: var(--outgoing); border-left-color: var(--outgoing); content: ""; }

.message:nth-child(2) { animation-delay: 1.1s; }

.message:nth-child(3) { animation-delay: 2.2s; }

.message:nth-child(4) { animation-delay: 3.3s; }

.form-card { width: min(100%, 520px); margin: 5px auto 0px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: rgb(255, 255, 255); box-shadow: rgba(17, 27, 33, 0.12) 0px 4px 18px; animation-delay: 3.3s; }

.field + .field { margin-top: 15px; }

label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 650; }

input { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid rgb(199, 213, 207); border-radius: 10px; outline: none; background: rgb(247, 249, 248); color: var(--text); font: inherit; }

input::placeholder { color: rgb(135, 148, 143); }

input:focus { border-color: rgb(18, 140, 126); box-shadow: rgba(18, 140, 126, 0.14) 0px 0px 0px 3px; }

button { width: 100%; min-height: 50px; margin-top: 19px; padding: 11px 16px; border: 0px; border-radius: 999px; background: linear-gradient(135deg, #128c7e, var(--green)); color: rgb(255, 255, 255); cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: 0.015em; box-shadow: rgba(18, 140, 126, 0.28) 0px 3px 10px; }

button:hover { filter: brightness(0.97); }

@keyframes reveal { 
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0px); }
}

@media (max-width: 600px) {
  .chat-header { padding-right: 12px; padding-left: 12px; }
  .person-name { font-size: 16px; }
  .messages { padding: 12px 10px 24px; }
  .message { max-width: calc(100% - 58px); font-size: 15px; }
  .outgoing { max-width: 84%; }
  .form-card { padding: 17px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .message, .form-card { animation: auto ease 0s 1 normal none running none; }
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
button:disabled { opacity: .7; cursor: wait; }
.form-note { margin: 10px 0 0; min-height: 0; font-size: 14px; color: #b42318; text-align: center; }
.form-note:empty { display: none; }
.legal { margin: 12px 0 0; font-size: 12px; line-height: 1.4; color: #667781; text-align: center; }
.legal a { color: #128c7e; }
.page { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; background: var(--chat); min-height: 100vh; line-height: 1.6; }
.page h1 { font-size: 24px; line-height: 1.3; }
.page h2 { font-size: 18px; margin-top: 28px; }
.thanks { text-align: center; padding-top: 60px; }
.thanks img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: rgba(17,27,33,.15) 0 2px 8px; }
.thanks .check { font-size: 48px; }
