/* ChatPET overrides: white + tan, clean */

:root {
  --chatpet-primary: #8b7355;
  --chatpet-primary-hover: #6f5a44;
  --chatpet-bg: #faf8f5;
  --chatpet-tan: #e8dfd4;
  --chatpet-tan-light: #f5f0ea;
  --chatpet-text: #3d3630;
  --chatpet-muted: #7d7268;
}

body {
  background: #fff;
  color: var(--chatpet-text);
}

/* Prevent white text on light ChatPET areas */
.chatpet-main,
.chatpet-main p,
.chatpet-main .form-control,
.chatpet-for-all,
.chatpet-for-all p,
.chatpet-hero,
.chatpet-hero h1,
.chatpet-hero p,
.ftco-navbar-light .navbar-brand,
.ftco-navbar-light .navbar-brand span,
.ftco-navbar-light .nav-link,
.ftco-navbar-light .navbar-toggler,
.ftco-navbar-light .navbar-toggler span {
  color: var(--chatpet-text) !important;
}
.chatpet-hero-subtext,
.chatpet-for-all-text,
.chatpet-main .text-muted {
  color: var(--chatpet-muted) !important;
}
.chatpet-main .btn-primary,
.chatpet-hero .btn-primary {
  color: #fff !important;
}

/* Top bar – soft tan */
.wrap {
  background: var(--chatpet-tan) !important;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.wrap .phone a,
.wrap .phone span {
  color: var(--chatpet-text) !important;
}
.wrap .phone a:hover {
  opacity: 0.85;
}
.social-media p a span {
  color: var(--chatpet-text) !important;
}

/* Nav – white, minimal */
.ftco-navbar-light {
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.ftco-navbar-light .navbar-brand {
  color: var(--chatpet-primary) !important;
}
.ftco-navbar-light .navbar-brand span {
  color: var(--chatpet-primary) !important;
}
.ftco-navbar-light .nav-link {
  color: var(--chatpet-text) !important;
  padding: 0.75rem 1rem;
  font-weight: 500;
}
.ftco-navbar-light .nav-link:hover,
.ftco-navbar-light .nav-link:focus {
  color: var(--chatpet-primary) !important;
}
.ftco-navbar-light .nav-item.active .nav-link {
  color: var(--chatpet-primary) !important;
}
.navbar-toggler {
  border-color: var(--chatpet-tan);
  padding: 0.5rem 0.75rem;
}

/* Hero – if used */
.hero-wrap .overlay {
  background: rgba(61, 54, 48, 0.4) !important;
}
.hero-wrap h1 {
  color: #fff !important;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
}
.hero-wrap p {
  color: rgba(255,255,255,0.95) !important;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}
.hero-wrap .btn-primary {
  background: var(--chatpet-primary) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  min-width: 140px;
}

/* Sections */
.ftco-section {
  padding: 3rem 0;
}
#about h2 {
  color: var(--chatpet-text);
  font-weight: 700;
  font-size: 1.5rem;
}
#about p {
  color: var(--chatpet-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.disclaimer-box {
  background: var(--chatpet-tan-light);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border-left: 4px solid var(--chatpet-primary);
  font-weight: 500;
  color: var(--chatpet-text) !important;
}

/* Hero: headline, subtext, CTA */
.chatpet-hero {
  background: #fff;
  padding: 2.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--chatpet-tan);
}
.chatpet-hero-headline {
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  font-weight: 700;
  color: var(--chatpet-text);
  line-height: 1.35;
  margin-bottom: 1rem;
}
.chatpet-hero-subtext {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--chatpet-muted);
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.chatpet-hero-cta {
  background: var(--chatpet-primary) !important;
  border-color: var(--chatpet-primary) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1.05rem;
}
.chatpet-hero-cta:hover {
  background: var(--chatpet-primary-hover) !important;
  border-color: var(--chatpet-primary-hover) !important;
  color: #fff !important;
}

/* For all pet owners – main banner (diverse pets and birds) */
.chatpet-for-all {
  background: var(--chatpet-tan-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.chatpet-banner-section .chatpet-banner-wrap {
  margin-bottom: 0.75rem;
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.chatpet-banner-section .chatpet-banner-img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.chatpet-for-all-text {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--chatpet-muted);
  font-weight: 500;
}

/* Main content: chat centered below header */
.chatpet-main {
  padding: 2rem 0 3rem;
  min-height: 60vh;
  background: #fff;
}
.chatpet-intro {
  color: var(--chatpet-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.chatpet-cta {
  margin-bottom: 0.75rem;
}
.chatpet-activation-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.chatpet-activation-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--chatpet-tan);
  background: var(--chatpet-tan-light);
  color: var(--chatpet-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.chatpet-trust-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.45rem;
}
.chatpet-trust-name {
  margin: 0;
  color: var(--chatpet-text);
  font-size: 0.82rem;
  font-weight: 700;
}
.chatpet-trust-location {
  margin: 0 0 0.35rem;
  color: var(--chatpet-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.chatpet-trust-quote {
  margin: 0;
  color: var(--chatpet-text);
  font-size: 0.78rem;
  line-height: 1.35;
}
.chatpet-trust-rail {
  margin: 1rem 0 0.25rem;
}
.chatpet-trust-rail-title {
  margin: 0 0 0.45rem;
  color: var(--chatpet-text);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
}
.chatpet-trust-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0.1rem 0.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.chatpet-trust-scroll-card {
  scroll-snap-align: start;
  flex: 0 0 240px;
  background: #fff;
  border: 1px solid var(--chatpet-tan);
  border-radius: 10px;
  padding: 0.65rem;
}

/* Email modal: shown on first send */
.chatpet-email-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.chatpet-email-modal.chatpet-email-modal-visible {
  opacity: 1;
  visibility: visible;
}
.chatpet-email-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.chatpet-email-modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--chatpet-tan);
  padding: 1.5rem;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.chatpet-email-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--chatpet-text);
  margin-bottom: 1rem;
}
.chatpet-google-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem !important;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #fff !important;
  border: 1px solid #dadce0 !important;
  color: #3c4043 !important;
}
.chatpet-google-btn:hover {
  background: #f8f9fa !important;
  border-color: #dadce0 !important;
  color: #3c4043 !important;
}
.chatpet-google-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.15 7.09-10.26 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.chatpet-email-modal-divider {
  font-size: 0.85rem;
  color: var(--chatpet-muted);
  margin: 0.75rem 0 0.5rem;
  text-align: center;
}
.chatpet-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chatpet-email-form .form-control {
  border: 1px solid var(--chatpet-tan);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
}
.chatpet-email-form .form-control:focus {
  border-color: var(--chatpet-primary);
  outline: none;
}
.chatpet-email-form .btn-primary {
  background: var(--chatpet-primary) !important;
  border-color: var(--chatpet-primary) !important;
  font-weight: 600;
  border-radius: 8px;
}

/* Sign up: email, first name, location (legacy / reused for errors) */
.chatpet-collect {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1.5rem 1.5rem;
  margin-bottom: 1rem;
}
.chatpet-collect-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--chatpet-text);
  margin-bottom: 0.25rem;
}
.chatpet-collect-sub {
  font-size: 0.9rem;
  color: var(--chatpet-muted);
  margin-bottom: 1rem;
}
.chatpet-collect-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chatpet-collect-form .form-control {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--chatpet-tan);
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  background: #fff;
}
.chatpet-collect-form .form-control:focus {
  border-color: var(--chatpet-primary);
  outline: none;
}
.chatpet-collect-form .btn-primary {
  background: var(--chatpet-primary) !important;
  border-color: var(--chatpet-primary) !important;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 0.25rem;
}
.chatpet-collect-form .btn-primary:hover {
  background: var(--chatpet-primary-hover) !important;
  border-color: var(--chatpet-primary-hover) !important;
}
.chatpet-collect-error {
  font-size: 0.85rem;
  color: #c53030;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
#chat-area {
  display: none; /* shown by chatpet-contact.js after sign-up submit */
}

/* Auth gate – sign up form */
.chatpet-auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1.75rem 1.5rem;
}
.chatpet-auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--chatpet-text);
  margin-bottom: 0.35rem;
}
.chatpet-auth-sub {
  color: var(--chatpet-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.chatpet-auth-form .form-group {
  margin-bottom: 1rem;
}
.chatpet-auth-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--chatpet-text);
  margin-bottom: 0.35rem;
  display: block;
}
.chatpet-auth-form .form-control {
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
}
.chatpet-auth-form .form-control:focus {
  border-color: var(--chatpet-primary);
  box-shadow: 0 0 0 2px rgba(30, 73, 118, 0.15);
}
.chatpet-auth-form .btn-primary {
  background: var(--chatpet-primary) !important;
  border-color: var(--chatpet-primary) !important;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 0.25rem;
}
.chatpet-auth-form .btn-primary:hover {
  background: var(--chatpet-primary-hover) !important;
  border-color: var(--chatpet-primary-hover) !important;
}

/* Chat card – simple, readable (ChatGPT-like) */
.chatpet-chat-card {
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  overflow: hidden;
  background: #fff !important;
}
.chatpet-chat-card .chat-messages {
  min-height: 400px;
  max-height: 65vh;
  padding: 1.25rem 1.5rem 1rem !important;
  background: #fff !important;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.chatpet-chat-card .chat-message {
  margin-bottom: 1.5rem;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 2.5rem;
}
.chatpet-chat-card .chat-message-body {
  min-width: 0;
  flex: 1 1 0%;
  max-width: 100%;
  overflow: visible;
}
.chatpet-chat-card .chat-message-new {
  animation: chat-message-in 0.2s ease-out;
}
@keyframes chat-message-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatpet-chat-card .chat-message .avatar {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0;
  font-size: 0.85rem !important;
}
.chatpet-chat-card .chat-message .bubble {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 1.15rem 1.4rem !important;
  border-radius: 16px !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.8 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  letter-spacing: 0.01em;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.chatpet-chat-card .chat-message .bubble p {
  margin: 0 0 1em !important;
  line-height: 1.8 !important;
  white-space: normal !important;
}
.chatpet-chat-card .chat-message .bubble p:last-child {
  margin-bottom: 0 !important;
}
.chatpet-chat-card .chat-message .bubble br {
  display: block !important;
  margin-bottom: 0.5em !important;
}
.chatpet-chat-card .chat-message .bubble .chatpet-md-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--chatpet-text);
  margin: 1em 0 0.4em;
  line-height: 1.35;
}
.chatpet-chat-card .chat-message .bubble .chatpet-md-h3:first-child {
  margin-top: 0;
}
.chatpet-chat-card .chat-message .bubble .chatpet-md-h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--chatpet-text);
  margin: 1em 0 0.4em;
  line-height: 1.35;
}
.chatpet-chat-card .chat-message .bubble .chatpet-md-h2:first-child {
  margin-top: 0;
}
.chatpet-chat-card .chat-message .bubble .chatpet-md-ul {
  margin: 0.5em 0 1em;
  padding-left: 1.25rem;
  list-style: disc;
}
.chatpet-chat-card .chat-message .bubble .chatpet-md-ul li {
  margin-bottom: 0.35em;
  line-height: 1.6;
}
.chatpet-chat-card .chat-message .label {
  margin-bottom: 0.35rem !important;
  display: block !important;
}
.chatpet-chat-card .chat-message.assistant .bubble {
  border-bottom-left-radius: 4px !important;
  background: var(--chatpet-tan-light) !important;
  color: var(--chatpet-text) !important;
}
.chatpet-chat-card .chat-message.user .avatar,
.chatpet-chat-card .chat-message.user .bubble,
.chatpet-chat-card .chat-input-wrap .btn-primary {
  background: var(--chatpet-primary) !important;
  border-color: var(--chatpet-primary) !important;
}
.chatpet-chat-card .chat-message.user .bubble {
  border-bottom-right-radius: 4px !important;
}
.chatpet-chat-card .chat-message .label {
  color: var(--chatpet-primary) !important;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}
.chatpet-chat-card .chat-message.assistant .avatar {
  background: var(--chatpet-tan) !important;
  color: var(--chatpet-primary) !important;
}
.chatpet-share-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--chatpet-primary) !important;
  font-weight: 600;
  text-decoration: none;
}
.chatpet-share-link:hover {
  text-decoration: underline;
}
.chatpet-message-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}
/* YOLO / object-detection hints (API field yolo_summary); not a medical diagnosis */
.chatpet-yolo-hint {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--chatpet-text-muted, #5c6370);
  margin-top: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  max-width: 100%;
}
.chatpet-inline-gate {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--chatpet-tan-light);
  border-radius: 8px;
  border: 1px solid var(--chatpet-tan);
}
.chatpet-gate-urgency {
  font-weight: 700;
  color: var(--chatpet-text);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.chatpet-gate-cta {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--chatpet-text);
}
.chatpet-inline-gate .chatpet-gate-email {
  margin-bottom: 0.5rem;
  max-width: 280px;
}
.chatpet-email-answer-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--chatpet-primary) !important;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.chatpet-email-answer-link:hover {
  text-decoration: underline;
}
.chatpet-email-answer-link.chatpet-email-answer-loading {
  opacity: 0.7;
  cursor: wait;
}
.chatpet-email-answer-link.chatpet-email-answer-sent {
  color: var(--chatpet-muted) !important;
  cursor: default;
}
.chatpet-email-answer-form-wrap {
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}
.chatpet-email-answer-prompt {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--chatpet-text);
}
.chatpet-email-answer-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.chatpet-email-answer-input {
  flex: 1;
  min-width: 0;
  max-width: 280px;
}
.chatpet-email-answer-note {
  margin: 0;
  font-size: 0.8rem;
}

/* Analyzing state: "ChatPET is analyzing Veterinary data" */
.chatpet-chat-card .chat-message.analyzing .analyzing-bubble {
  color: var(--chatpet-muted) !important;
  font-size: 0.9rem;
  animation: analyzing-pulse 1.5s ease-in-out infinite;
}
.chatpet-chat-card .chat-message .analyzing-dots {
  display: inline-block;
  animation: analyzing-dots 0.9s ease-in-out infinite;
}
@keyframes analyzing-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
@keyframes analyzing-dots {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ChatGPT-style input bar: pill shape, prominent */
.chatpet-chat-card .chat-input-wrap {
  padding: 1rem 1.25rem 1.25rem !important;
  background: #fff !important;
  border-top: 1px solid var(--chatpet-tan) !important;
}
.chatpet-chat-card .chat-input-wrap .input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--chatpet-tan-light);
  border-radius: 24px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border: 1px solid transparent;
  transition: background 0.2s, box-shadow 0.2s;
  min-height: 52px;
}
.chatpet-chat-card .chat-input-wrap .input-row:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--chatpet-primary);
}
.chatpet-chat-card .chat-input-wrap .form-control {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0.75rem 0 !important;
  font-size: 1rem !important;
  min-height: 44px;
  line-height: 1.4;
  box-shadow: none !important;
  flex: 1 1 auto;
  min-width: 0;
}
.chatpet-chat-card .chat-input-wrap .form-control::placeholder {
  color: var(--chatpet-muted);
}
.chatpet-chat-card .chat-input-wrap .form-control:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.chatpet-voice-btn {
  flex-shrink: 0;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid var(--chatpet-tan);
  background: #fff;
  color: var(--chatpet-muted);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.chatpet-voice-btn:hover {
  border-color: var(--chatpet-primary);
  color: var(--chatpet-primary);
}
.chatpet-voice-btn.chatpet-voice-recording {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
  animation: chatpet-voice-pulse 1s ease-in-out infinite;
}
@keyframes chatpet-voice-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.chatpet-chat-card .chat-input-wrap .btn-primary {
  border-radius: 999px !important;
  width: auto !important;
  height: 40px !important;
  min-width: 126px !important;
  padding: 0 0.95rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.chatpet-chat-card .chat-input-wrap .chat-send-label {
  line-height: 1;
  white-space: nowrap;
}
.chatpet-chat-card .chat-input-wrap .btn-primary .fa {
  font-size: 0.8rem;
}
.chatpet-chat-card .chat-input-wrap .btn-primary:hover {
  background: var(--chatpet-primary-hover) !important;
  border-color: var(--chatpet-primary-hover) !important;
}
.chatpet-chat-card .chat-input-wrap .small.text-muted {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  font-size: 0.8rem;
}

/* Input section: attach + main chat input */
.chatpet-input-section {
  border-top: 1px solid var(--chatpet-tan);
  background: #fff;
}

/* Add files or photos about your pet */
.chatpet-attach-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--chatpet-tan);
  background: var(--chatpet-bg);
}
.chatpet-attach-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--chatpet-primary);
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}
.chatpet-attach-label:hover {
  color: var(--chatpet-primary-hover);
  text-decoration: underline;
}
.chatpet-attach-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.chatpet-attach-count {
  font-size: 0.8rem;
  color: var(--chatpet-muted);
}
.chatpet-attach-badge {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: var(--chatpet-primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}
.chatpet-attach-wrap.chatpet-attach-has-files {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: var(--chatpet-primary);
}
.chatpet-attach-clear {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  color: var(--chatpet-muted);
  background: transparent;
  border: 1px solid var(--chatpet-tan);
  border-radius: 6px;
  cursor: pointer;
}
.chatpet-attach-clear:hover {
  color: var(--chatpet-text);
  border-color: var(--chatpet-primary);
}

/* Legacy pet block (no longer in DOM) */
.chatpet-pet-block {
  padding: 0.875rem 1.25rem 1rem;
  background: var(--chatpet-bg);
  border-bottom: 1px solid var(--chatpet-tan);
}
.chatpet-pet-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chatpet-muted);
  margin-right: 0.5rem;
  vertical-align: middle;
}
.chatpet-pet-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--chatpet-text);
  margin: 0 0 0.15rem 0;
  display: inline;
}
.chatpet-pet-desc {
  font-size: 0.8rem;
  color: var(--chatpet-muted);
  margin: 0 0 0.65rem 0;
  line-height: 1.35;
}
.chatpet-pet-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chatpet-pet-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.chatpet-pet-form #chatpet-pet-name {
  flex: 1;
  min-width: 120px;
  border: 1px solid var(--chatpet-tan);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.chatpet-pet-form #chatpet-pet-name:focus {
  border-color: var(--chatpet-primary);
  outline: none;
}
.chatpet-pet-file-wrap {
  margin: 0;
  flex-shrink: 0;
}
.chatpet-pet-file-label {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--chatpet-primary);
  background: #fff;
  border: 1px solid var(--chatpet-tan);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chatpet-pet-file-wrap input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.chatpet-pet-file-wrap:hover .chatpet-pet-file-label,
.chatpet-pet-file-wrap:focus-within .chatpet-pet-file-label {
  border-color: var(--chatpet-primary);
  background: var(--chatpet-tan-light);
}
.chatpet-pet-form .chatpet-pet-question {
  border: 1px solid var(--chatpet-tan);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  background: #fff;
}
.chatpet-pet-form .chatpet-pet-question:focus {
  border-color: var(--chatpet-primary);
  outline: none;
}
.chatpet-pet-form .chatpet-pet-question::placeholder {
  color: var(--chatpet-muted);
}
.chatpet-pet-submit {
  align-self: flex-start;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--chatpet-primary);
  background: #fff;
  border: 1px solid var(--chatpet-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chatpet-pet-submit:hover {
  background: var(--chatpet-tan-light);
  color: var(--chatpet-primary-hover);
  border-color: var(--chatpet-primary-hover);
}
.chatpet-pet-block .chatpet-collect-error {
  margin-top: 0.35rem;
}

/* Pet active: one slim line above main input */
.chatpet-pet-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--chatpet-bg);
  border-bottom: 1px solid var(--chatpet-tan);
}
.chatpet-pet-active-label {
  font-size: 0.85rem;
  color: var(--chatpet-muted);
}
.chatpet-pet-active-label strong {
  color: var(--chatpet-text);
  font-weight: 600;
}
.chatpet-pet-change-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--chatpet-primary);
  background: none;
  border: none;
  padding: 0.25rem 0;
  cursor: pointer;
  text-decoration: underline;
}
.chatpet-pet-change-btn:hover {
  color: var(--chatpet-primary-hover);
}

.chatpet-conversion-row {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.chatpet-usage-meter {
  color: var(--chatpet-muted);
  font-size: 0.8rem;
  line-height: 1.3;
}
.chatpet-save-progress-btn {
  appearance: none;
  border: 1px solid var(--chatpet-primary);
  background: #fff;
  color: var(--chatpet-primary);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.chatpet-save-progress-btn:hover {
  background: var(--chatpet-tan-light);
}
.chatpet-inline-signup-nudge .bubble {
  margin-bottom: 0.5rem;
}
.chatpet-inline-signup-btn {
  appearance: none;
  border: 1px solid var(--chatpet-primary);
  background: #fff;
  color: var(--chatpet-primary);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}
.chatpet-inline-signup-btn:hover {
  background: var(--chatpet-tan-light);
}
/* Empty state – suggestion chips (ChatGPT-style) */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 0 0.5rem;
}
.chat-suggestions .chat-suggestions-label {
  width: 100%;
  margin: 0 0 0.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--chatpet-muted);
  font-weight: 500;
}
.chat-suggestions .suggestion-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  background: var(--chatpet-tan-light);
  color: var(--chatpet-text);
  font-size: 0.9rem;
  border: 1px solid var(--chatpet-tan);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chat-suggestions .suggestion-chip:hover {
  background: var(--chatpet-tan);
  border-color: var(--chatpet-primary);
}
.chat-suggestions.hidden {
  display: none !important;
}

/* Footer – light tan, clean */
.footer {
  background: var(--chatpet-tan-light) !important;
  color: var(--chatpet-text) !important;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--chatpet-tan);
}
.footer .footer-heading {
  color: #2f2a25 !important;
  font-size: 1.1rem;
  font-weight: 600;
}
.footer p {
  color: #4f473f !important;
  font-size: 0.9rem;
}
.footer a {
  color: #3d3630 !important;
}
.footer ul.list-unstyled li a,
.footer .list-unstyled a {
  color: #3d3630 !important;
  font-size: 0.9rem;
  font-weight: 500;
}
.footer ul.list-unstyled li a:hover,
.footer .list-unstyled a:hover,
.footer a:hover {
  color: #2b2621 !important;
  text-decoration: underline;
}
.footer .copyright {
  color: #5d544b !important;
  font-size: 0.85rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--chatpet-tan);
}
.chatpet-footer-built {
  font-size: 0.9rem;
  color: #4f473f !important;
}
.chatpet-footer-built a {
  color: #3d3630 !important;
  font-weight: 600;
}

/* Email gate: partial readable preview + blurred remainder (first AI response only) */
.chatpet-gated-response {
  position: relative;
}

.chatpet-gated-visible {
  position: relative;
  z-index: 1;
}

.chatpet-gated-blurred {
  position: relative;
  pointer-events: none; /* prevent interaction / selection */
  user-select: none;
  filter: blur(8px);
  opacity: 0.72;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 32%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 32%,
    rgba(0, 0, 0, 1) 100%
  );
}

.chatpet-gated-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  pointer-events: auto;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 22%,
    rgba(255, 255, 255, 0.94) 70%,
    rgba(255, 255, 255, 0.98) 100%
  );
  border-radius: 12px;
  opacity: 0;
  animation: chatpetGateFadeIn 220ms ease-out forwards;
}

@keyframes chatpetGateFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatpet-gated-overlay-inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.chatpet-gated-overlay-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--chatpet-text) !important;
  margin-bottom: 0.35rem;
}

.chatpet-gated-overlay-subtitle {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--chatpet-text) !important;
  margin-bottom: 0.75rem;
}

.chatpet-gated-overlay-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.chatpet-gated-email {
  width: 100%;
  max-width: 320px;
}

.chatpet-gated-continue {
  width: 180px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-wrap {
    min-height: 60vh;
    padding: 2rem 0;
  }
  .hero-wrap .slider-text {
    padding: 1rem 0;
  }
  .ftco-section {
    padding: 2rem 0;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .navbar-collapse {
    padding: 0.5rem 0;
  }
  .ftco-navbar-light .nav-link {
    padding: 0.65rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .chatpet-chat-card .chat-messages {
    min-height: 260px;
    max-height: 50vh;
    padding: 1rem;
  }
  .chatpet-chat-card .chat-message .bubble {
    max-width: 92%;
  }
  .chatpet-pet-block {
    padding: 0.75rem 1rem 0.875rem;
  }
  .chatpet-pet-row {
    flex-direction: column;
    align-items: stretch;
  }
  .chatpet-pet-form #chatpet-pet-name {
    min-width: 0;
  }
  .chatpet-pet-active {
    padding: 0.5rem 1rem;
  }
  .chatpet-chat-card .chat-input-wrap {
    padding: 1rem;
  }
  .chatpet-activation-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }
  .chatpet-trust-scroll-card {
    flex-basis: 78%;
  }
  .chatpet-chat-card .chat-input-wrap .input-row {
    padding-left: 1rem;
  }
  .chatpet-conversion-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
  .chatpet-chat-card .chat-input-wrap .form-control,
  .chatpet-chat-card .chat-input-wrap .btn-primary {
    min-height: 44px;
  }
  .chatpet-chat-card .chat-input-wrap .btn-primary {
    width: auto !important;
    height: 44px !important;
    min-width: 116px !important;
    padding: 0 0.85rem !important;
  }
  .chat-suggestions .suggestion-chip {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
  }
  .disclaimer-box {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .chatpet-trust-scroll-card {
    flex-basis: 85%;
  }
  .hero-wrap h1 {
    font-size: 1.35rem;
  }
  .wrap .phone {
    font-size: 0.85rem;
  }
}

/* Touch-friendly */
@media (hover: none) {
  .btn,
  .nav-link,
  .chatpet-chat-card .chat-input-wrap .btn-primary {
    min-height: 44px;
  }
}

/* SEO symptom landing pages */
.chatpet-seo-intro {
  padding-top: 1rem;
}
.chatpet-seo-h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--chatpet-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.chatpet-seo-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--chatpet-text);
}
.chatpet-seo-cta {
  font-size: 1rem;
  color: var(--chatpet-text);
}
.chatpet-seo-related {
  padding-bottom: 2rem;
  border-top: 1px solid var(--chatpet-tan);
  padding-top: 1.5rem;
}
.chatpet-seo-h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--chatpet-text);
  margin-bottom: 0.75rem;
}
.chatpet-seo-links li {
  margin-bottom: 0.35rem;
}
.chatpet-seo-links a {
  color: var(--chatpet-primary);
  text-decoration: none;
}
.chatpet-seo-links a:hover {
  text-decoration: underline;
}
