@charset "utf-8";

:root { --wa-green: #10A37F; --wa-teal: #10A37F; --wa-teal-dark: #202123; --wa-light-green: #10A37F; --wa-blue: #10A37F; --wa-dark: #ECECF1; --wa-gray: #8E8EA0; --wa-gray-light: #8E8EA0; --wa-light: #2A2B32; --wa-white: #202123; --wa-border: #4E4F60; --wa-chat-bg: #1E1F22; --msg-bot-bg: #2B2C31; --msg-user-bg: #3E3F4B; --wa-blue-check: #10A37F; --wa-danger: #EF4444; --wa-warning: #F59E0B; --shadow-sm: 0 1px 0.5px rgba(0, 0, 0, 0.2); --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.15); --shadow-lg: 0 2px 5px rgba(0, 0, 0, 0.2); --radius-sm: 7.5px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 9999px; --transition: all 0.15s ease; }

.sidebar { display: none; }

*, ::before, ::after { margin: 0px; padding: 0px; box-sizing: border-box; }

html { font-size: 16px; text-size-adjust: 100%; scroll-behavior: smooth; }

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; background: var(--wa-chat-bg); color: rgb(236, 236, 241); line-height: 1.3; min-height: -webkit-fill-available; overflow: hidden; -webkit-font-smoothing: antialiased; }

.chat-wrapper { display: flex; flex-direction: column; height: 100dvh; width: 100%; min-width: 320px; max-width: 100%; margin: 0px auto; background: rgb(30, 31, 34); position: relative; }

.chat-header { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 4px; background: var(--wa-teal-dark); color: rgb(236, 236, 241); position: relative; z-index: 100; min-height: 56px; }

.chat-header__back { display: flex; align-items: center; justify-content: center; width: 24px; height: 48px; cursor: pointer; flex-shrink: 0; margin-left: 4px; }

.chat-header__back svg { width: 24px; height: 24px; }

.chat-header__avatar { position: relative; flex-shrink: 0; }

.avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: none; }

.online-indicator { display: none; }

.chat-header__info { flex: 1 1 0%; min-width: 0px; padding-left: 4px; }

.chat-header__titleline { display: flex; align-items: center; gap: 6px; min-width: 0px; }

.chat-header__verified { height: 18px; flex-shrink: 0; }

.chat-header__name { font-size: 17px; font-weight: 500; color: rgb(236, 236, 241); letter-spacing: normal; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-header__status { font-size: 13px; color: rgba(255, 255, 255, 0.8); font-weight: 400; line-height: 1.2; }

.chat-header__actions { display: flex; gap: 0px; margin-left: auto; }

.header-btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: none; color: rgb(236, 236, 241); cursor: pointer; border-radius: 50%; transition: background 0.2s; -webkit-tap-highlight-color: transparent; }

.header-btn:active { background: rgba(255, 255, 255, 0.1); }

.chat-messages { flex: 1 1 0%; overflow: hidden auto; padding: 16px 16px 80px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; scroll-behavior: smooth; background-color: rgb(33, 33, 33); }

.chat-messages::-webkit-scrollbar { width: 6px; }

.chat-messages::-webkit-scrollbar-track { background: transparent; }

.chat-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }

.chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

.message { display: flex; gap: 10px; max-width: 85%; animation: 0.3s ease-out 0s 1 normal none running messageIn; }

@keyframes messageIn { 
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0px); }
}

.message--bot { align-self: flex-start; }

.message--user { align-self: flex-end; flex-direction: row-reverse; }

.message__avatar { flex-shrink: 0; width: 36px; height: 36px; align-self: flex-end; }

.message__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.message--user .message__avatar { display: none; }

.message__content { position: relative; padding: 8px 12px; border-radius: 12px; overflow-wrap: break-word; box-shadow: none; max-width: 100%; }

.message--bot .message__content { background: var(--msg-bot-bg); color: rgb(236, 236, 241); border-radius: 12px; }

.message--user .message__content { background: var(--msg-user-bg); color: rgb(255, 255, 255); border-radius: 12px; }

.message__text { font-size: 14.2px; line-height: 19px; color: rgb(209, 213, 219); }

.message--user .message__text { color: rgb(255, 255, 255); }

.message__time { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; float: right; margin-left: 4px; margin-top: 2px; margin-bottom: -5px; color: rgba(255, 255, 255, 0.4); line-height: 15px; }

.message--user .message__time { color: rgba(255, 255, 255, 0.7); }

.message--bot .message__time, .message--user .message__time { color: rgba(255, 255, 255, 0.4); }

.buttons-container { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 85%; align-self: flex-end; animation: 0.3s ease-out 0s 1 normal none running messageIn; }

.answer-btn { display: block; width: 100%; padding: 12px 16px; background: rgb(42, 43, 50); color: rgb(255, 255, 255); border: 1.5px solid rgb(255, 255, 255); border-radius: var(--radius-md); font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition); text-align: center; white-space: normal; overflow-wrap: break-word; line-height: 1.4; }

.buttons-container.buttons-inline { flex-flow: wrap; justify-content: flex-end; }

.buttons-container.buttons-inline .answer-btn { width: auto; flex: 0 0 auto; padding: 10px 24px; border-radius: var(--radius-full); }

.answer-btn:hover { background: rgb(255, 255, 255); color: rgb(0, 0, 0); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.answer-btn:active { transform: translateY(0px); }

.answer-btn:disabled, .answer-btn--disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; transform: none !important; box-shadow: none !important; }

.answer-btn:disabled:hover, .answer-btn--disabled:hover { background: rgb(42, 43, 50); color: rgb(250, 250, 250); transform: none; }

.buttons-container.buttons-used { pointer-events: none; }

.answer-btn--selected { background: rgb(255, 255, 255); color: rgb(0, 0, 0); }

.typing-indicator-wrapper { animation: 0.3s ease-out 0s 1 normal none running messageIn; }

.typing-indicator { display: flex; gap: 5px; padding: 4px 0px; }

.typing-indicator span { width: 8px; height: 8px; background: var(--wa-gray-light); border-radius: 50%; animation: 1.4s ease-in-out 0s infinite normal none running typingBounce; }

.typing-indicator span:nth-child(1) { animation-delay: 0s; }

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }

.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce { 
  0%, 60%, 100% { transform: translateY(0px); opacity: 0.5; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.chat-input { padding: 5px; background: rgb(30, 31, 34); backdrop-filter: blur(10px); position: relative; z-index: 10; display: flex; align-items: flex-end; gap: 6px; }

.chat-input__container { display: flex; align-items: center; gap: 4px; background: rgb(43, 44, 49); border-radius: 21px; padding: 5px 8px 5px 12px; border: 1px solid rgb(86, 88, 105); box-shadow: var(--shadow-sm); flex: 1 1 0%; min-height: 42px; }

.chat-input__container:focus-within { box-shadow: var(--shadow-sm); }

.input-field { flex: 1 1 0%; padding: 0px; display: flex; align-items: center; }

.input-field .iti { width: 100%; }

.input-field .iti input { width: 100%; }

.input-field input { width: 100%; border: none !important; background: transparent !important; font-family: inherit !important; font-size: 15px !important; color: rgb(236, 236, 241) !important; outline: none !important; line-height: 20px !important; padding: 8px 0px !important; }

.input-field input::placeholder { color: rgb(142, 142, 160); }

.send-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: transparent; border: none; color: rgb(16, 163, 127); cursor: pointer; border-radius: 0px; transition: background 0.2s; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }

.send-btn:active { background: transparent; color: rgb(13, 140, 109); }

.send-btn:disabled { background: transparent; opacity: 0.5; cursor: not-allowed; }

.date-separator { display: flex; justify-content: center; margin: 16px 0px; animation: 0.5s ease 0s 1 normal none running fadeIn; }

.date-separator__text { background: rgb(43, 44, 49); color: rgb(197, 197, 210); font-size: 12.5px; font-weight: 400; padding: 5px 12px 6px; border-radius: 7.5px; text-transform: uppercase; letter-spacing: 0px; box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 0.5px; }

@keyframes fadeIn { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.input-error { color: var(--wa-danger); font-size: 0.8rem; margin-top: 8px; padding-left: 16px; animation: 0.3s ease 0s 1 normal none running shake; }

@keyframes shake { 
  0%, 100% { transform: translateX(0px); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (min-width: 769px) {
  body { background: rgb(30, 31, 34); display: flex; align-items: flex-start; justify-content: center; padding: 0px; min-height: 100vh; position: relative; }
  .sidebar { display: flex; flex-direction: column; width: 30%; min-width: 340px; max-width: 500px; height: 100vh; background: rgb(24, 24, 24); position: relative; z-index: 1; }
  .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgb(32, 33, 35); min-height: 60px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .sidebar-header__title { font-size: 22px; font-weight: 700; color: rgb(255, 255, 255); }
  .sidebar-search { padding: 8px 12px; background: rgb(32, 33, 35); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .sidebar-search__input { width: 100%; padding: 8px 32px 8px 12px !important; background: rgb(42, 43, 50) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 8px !important; font-size: 14px !important; color: rgb(236, 236, 241) !important; outline: none !important; }
  .sidebar-search__input::placeholder { color: rgb(142, 142, 160); }
  .chat-list { flex: 1 1 0%; overflow-y: auto; }
  .chat-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .chat-item:hover { background: rgb(42, 43, 50); }
  .chat-item.active { background: rgb(30, 31, 34); }
  .chat-item__avatar { width: 49px; height: 49px; border-radius: 50%; flex-shrink: 0; }
  .chat-item__info { flex: 1 1 0%; min-width: 0px; }
  .chat-item__name { font-size: 17px; font-weight: 400; color: rgb(236, 236, 241); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chat-item__last-message { font-size: 14px; color: rgb(142, 142, 160); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chat-item__time { font-size: 12px; color: rgb(142, 142, 160); align-self: flex-start; margin-top: 4px; }
  .chat-wrapper { flex: 1 1 0%; display: flex; flex-direction: column; height: 100vh; min-height: 0px; border-radius: 0px; width: auto; box-shadow: rgba(11, 20, 26, 0.05) 0px 6px 18px; position: relative; z-index: 1; }
  .chat-header { border-radius: 0px; padding: 10px 16px; min-height: 60px; }
  .chat-header__back { display: none; }
  .message { max-width: 65%; }
  .buttons-container { max-width: 65%; }
  .chat-messages { padding: 20px 60px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  body { background: rgb(30, 31, 34); display: flex; align-items: center; justify-content: center; padding: 16px; }
  .chat-wrapper { max-width: 100%; height: 95vh; border-radius: var(--radius-md); overflow: hidden; box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 40px; }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .chat-header { padding: 8px 4px; gap: 8px; min-height: 56px; }
  .chat-header__back { width: 24px; height: 48px; margin-left: 4px; }
  .avatar-img { width: 40px; height: 40px; }
  .chat-header__name { font-size: 17px; }
  .chat-header__status { font-size: 13px; }
  .header-btn { width: 48px; height: 48px; }
  .chat-messages { padding: 8px 8px 65px; gap: 2px; }
  .message { max-width: 85%; margin-bottom: 2px; }
  .message__content { padding: 8px 12px; }
  .message__text { font-size: 14.2px; line-height: 19px; }
  .buttons-container { max-width: 90%; padding: 0px; gap: 6px; }
  .answer-btn { padding: 12px 16px; font-size: 14px; }
  .chat-input { padding: 5px; }
}

@media (max-width: 360px) {
  .chat-header__name { font-size: 16px; }
  .chat-header__status { font-size: 12px; }
  .avatar-img { width: 36px; height: 36px; }
  .message__text { font-size: 14px; }
  .answer-btn { padding: 10px 14px; font-size: 13px; }
  .send-btn { width: 38px; height: 38px; }
  .chat-input__container { min-height: 38px; }
}

@media (max-width: 320px) {
  .chat-header { padding: 6px 2px; gap: 6px; min-height: 50px; }
  .avatar-img { width: 32px; height: 32px; }
  .chat-header__name { font-size: 15px; }
  .chat-header__status { font-size: 11px; }
  .message { max-width: 90%; }
  .message__text { font-size: 13px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .chat-header { padding: 4px; min-height: 48px; }
  .avatar-img { width: 36px; height: 36px; }
  .chat-messages { padding: 6px 8px 55px; }
  .chat-input { padding: 3px 5px; }
  .send-btn { width: 36px; height: 36px; }
  .chat-input__container { min-height: 36px; }
}

@supports (padding: max(0px)) {
  .chat-wrapper { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .chat-header { padding-top: max(8px, env(safe-area-inset-top)); }
  .chat-input { padding-bottom: max(5px, env(safe-area-inset-bottom)); }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .message__content { box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 0.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.answer-btn:focus-visible, .header-btn:focus-visible, .send-btn:focus-visible { outline: 2px solid var(--wa-teal); outline-offset: 2px; }

@media print {
  .chat-header, .chat-input { display: none; }
  .chat-wrapper { height: auto; max-width: 100%; }
  .chat-messages { overflow: visible; }
}

.input-field.input-valid { border-color: var(--wa-green) !important; }

.input-field.input-valid::after { content: "✓"; position: absolute; right: 50px; top: 50%; transform: translateY(-50%); color: var(--wa-green); font-size: 1.2rem; font-weight: bold; }

.input-field.input-invalid { border-color: var(--wa-danger) !important; }

.chat-input__container.input-valid { box-shadow: 0 0 0 2px var(--wa-green); }

.chat-input__container.input-invalid { box-shadow: 0 0 0 2px var(--wa-danger); }

.social-proof-toast { position: fixed; top: -60px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, rgb(26, 58, 42) 0%, rgb(13, 51, 32) 100%); border: 1px solid var(--wa-green); color: rgb(209, 250, 229); padding: 12px 20px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 9999; transition: top 0.3s; white-space: nowrap; max-width: 90%; text-align: center; }

.social-proof-toast.show { top: 20px; }

@media (max-width: 480px) {
  .social-proof-toast { font-size: 0.8rem; padding: 10px 16px; white-space: normal; max-width: 85%; }
}

.resume-dialog { display: flex; justify-content: center; padding: 16px; animation: 0.3s ease-out 0s 1 normal none running messageIn; }

.resume-dialog__content { background: rgb(43, 44, 49); border-radius: var(--radius-lg); padding: 20px; text-align: center; max-width: 300px; box-shadow: var(--shadow-md); }

.resume-dialog__text { font-size: 0.95rem; color: rgb(236, 236, 241); margin-bottom: 16px; line-height: 1.5; }

.resume-dialog__buttons { display: flex; flex-direction: column; gap: 8px; }

.resume-dialog__btn { padding: 12px 20px; border-radius: var(--radius-full); font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition); border: none; }

.resume-dialog__btn--primary { background: var(--wa-teal); color: white; }

.resume-dialog__btn--primary:hover { background: var(--wa-teal-dark); }

.resume-dialog__btn--secondary { background: transparent; color: rgb(197, 197, 210); border: 1px solid rgb(86, 88, 105); }

.resume-dialog__btn--secondary:hover { background: rgb(42, 43, 50); color: rgb(236, 236, 241); }

.message__text .trust-badge { display: inline-block; font-size: 0.8rem; color: rgb(16, 163, 127); margin-top: 8px; }

.chat-input.hidden { display: none; }

.lead-submit-overlay { position: fixed; inset: 0px; background: rgba(11, 27, 33, 0.55); display: flex; align-items: center; justify-content: center; z-index: 12000; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }

.lead-submit-overlay.is-visible { opacity: 1; visibility: visible; }

.lead-submit-overlay__card { min-width: 220px; background: rgb(43, 44, 49); border-radius: 14px; padding: 18px 20px; text-align: center; box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 25px; }

.lead-submit-overlay__spinner { width: 34px; height: 34px; margin: 0px auto 10px; border-width: 3px; border-style: solid; border-right-color: rgb(217, 226, 232); border-bottom-color: rgb(217, 226, 232); border-left-color: rgb(217, 226, 232); border-image: initial; border-top-color: var(--wa-teal); border-radius: 50%; animation: 0.8s linear 0s infinite normal none running leadSubmitSpin; }

.lead-submit-overlay__text { margin: 0px; color: rgb(236, 236, 241); font-size: 14px; font-weight: 600; }

@keyframes leadSubmitSpin { 
  100% { transform: rotate(360deg); }
}
