/* =========================================================
   Peak & Pitch — shared styles
   Palette: navy + sky blue, pulled from the logo
   Sturdy, professional, trade-credible — not generic tech.
   ========================================================= */

:root {
  --bg: #f6f8fa;
  --bg-alt: #ecf1f5;
  --surface: #ffffff;
  --border: #dfe6ed;

  --navy: #24384a;
  --navy-2: #2e4459;
  --navy-deep: #16232e;

  --sky: #2481b8;
  --sky-dark: #1a5c85;
  --sky-light: #5fbcea;
  --steel: #2c6d9a;

  --heading: #1f2e3d;
  --text: #56697c;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Oswald", Arial, sans-serif;
  color: var(--heading);
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--sky);
  text-decoration: none;
}

a:hover {
  color: var(--sky-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 0.75em;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  font-size: 2rem;
  text-transform: uppercase;
}

.disclaimer {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text);
  opacity: 0.8;
}

section {
  padding: 80px 0;
}

section.alt {
  background: var(--bg-alt);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(36, 56, 74, 0.25);
}

.btn-primary:hover {
  background: var(--sky-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(36, 56, 74, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-outline.on-light {
  border-color: var(--sky);
  color: var(--sky);
}

.btn-outline.on-light:hover {
  background: var(--sky);
  color: var(--white);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(22, 35, 46, 0.06);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--heading);
  font-size: 1.6rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--sky);
}

.main-nav a.btn {
  color: var(--white);
}

.main-nav a.btn:hover {
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 60%, var(--steel) 130%);
  color: var(--white);
  padding: 110px 0 140px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero h1 {
  color: var(--white);
  font-size: 2.9rem;
  text-transform: uppercase;
  max-width: 820px;
  margin: 0 auto 0.5em;
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin: 0 auto 2em;
}

.hero .btn-row {
  justify-content: center;
}

.page-hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 90px 0 100px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* ---------- Hero (split: image + quote card) ---------- */

.hero-split {
  position: relative;
  color: var(--white);
  padding: 110px 0 150px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  background:
    linear-gradient(100deg, rgba(15, 24, 32, 0.94) 0%, rgba(15, 24, 32, 0.82) 38%, rgba(22, 35, 46, 0.5) 70%, rgba(22, 35, 46, 0.35) 100%),
    url("../assets/photos/hero-roof.jpg") center / cover no-repeat;
}

.hero-split .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-split-content h1 {
  color: var(--white);
  font-size: 2.7rem;
  text-transform: uppercase;
  text-align: left;
  max-width: 560px;
  margin: 0 0 1.1em;
}

.hero-split-content .btn-row {
  justify-content: flex-start;
}

.quote-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px 24px;
  max-width: 320px;
  margin-left: auto;
  box-shadow: 0 30px 70px rgba(8, 14, 20, 0.45);
}

.quote-card h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 0.3em;
}

.quote-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.quote-card.expanded .quote-fields {
  max-height: 700px;
  margin-top: 18px;
}

.quote-card .quote-toggle {
  display: block;
}

.quote-card.expanded .quote-toggle {
  display: none;
}

.quote-card .quote-sub {
  font-size: 0.92rem;
  margin-bottom: 1.5em;
}

.quote-card .form-group {
  margin-bottom: 16px;
}

.quote-card textarea {
  min-height: 90px;
}

.quote-card .form-note {
  margin-top: 16px;
}

.inline-photo {
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(22, 35, 46, 0.18);
  margin: 2em 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Grid / Cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(22, 35, 46, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 129, 184, 0.35);
  box-shadow: 0 16px 32px rgba(22, 35, 46, 0.12);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(36, 129, 184, 0.1);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- Badges / numbered chips ---------- */

.badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  flex: 0 0 auto;
}

/* ---------- Service tiers (Services page) ---------- */

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 2px 10px rgba(22, 35, 46, 0.05);
}

.tier.storm {
  border-color: rgba(36, 129, 184, 0.4);
  box-shadow: 0 8px 30px rgba(36, 129, 184, 0.12);
}

.tier-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tier-head h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin: 0;
}

.tier-tag {
  margin-left: auto;
  background: rgba(36, 129, 184, 0.1);
  color: var(--sky-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}

.tier-tag.storm {
  background: var(--navy);
  color: var(--sky-light);
}

.tier-includes {
  font-style: italic;
  color: var(--text);
  font-size: 0.92rem;
  margin: 0 0 24px 56px;
}

.tier-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.tier-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tier-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(36, 129, 184, 0.12);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tier-check svg {
  width: 14px;
  height: 14px;
}

.tier-features h4 {
  font-size: 1rem;
  text-transform: none;
  margin-bottom: 0.2em;
}

.tier-features p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.addon-card {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 32px 40px;
  margin-bottom: 40px;
  text-align: center;
}

.addon-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 0.6em;
}

.addon-card h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.addon-card p {
  max-width: 480px;
  margin: 0 auto;
}

.pricing-note {
  text-align: center;
  color: var(--text);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Steps (Insurance Claims process) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 24px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.step h3 {
  font-size: 1.05rem;
  text-transform: none;
  margin-bottom: 0.3em;
}

.step p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  font-size: 1.02rem;
  text-transform: none;
  margin-bottom: 0.4em;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- Template / example note banner ---------- */

.template-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(36, 129, 184, 0.07);
  border: 1px solid rgba(36, 129, 184, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 48px;
}

.template-note svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--sky);
  margin-top: 2px;
}

.template-note p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--heading);
}

.template-note strong {
  color: var(--navy);
}

/* ---------- Credibility list (About / Home) ---------- */

.credibility-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.credibility-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.credibility-list h3 {
  font-size: 1.05rem;
  text-transform: none;
  margin-bottom: 0.3em;
  color: var(--white);
}

.credibility-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* ---------- Dark band section ---------- */

.dark-band {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, 0.85);
}

.dark-band .container {
  max-width: 860px;
}

.dark-band.wide .container {
  max-width: 1120px;
}

.dark-band h2 {
  color: var(--white);
  text-transform: uppercase;
}

.dark-band p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
}

.dark-band .section-heading p {
  text-align: center;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--bg-alt);
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.9rem;
  text-transform: uppercase;
  margin-bottom: 0.3em;
}

.cta-banner p {
  max-width: 520px;
  margin: 0 auto 1.75em;
}

/* ---------- Tier preview (Home) ---------- */

.tier-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(22, 35, 46, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tier-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(22, 35, 46, 0.12);
}

.tier-preview-card .tier-num {
  font-family: "Oswald", sans-serif;
  color: var(--sky);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-preview-card h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0.3em 0 0.6em;
}

.tier-preview-card ul {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text);
  display: grid;
  gap: 8px;
}

.tier-preview-card ul li {
  padding-left: 20px;
  position: relative;
}

.tier-preview-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sky);
}

/* ---------- Form ---------- */

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--heading);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(86, 105, 124, 0.45);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(36, 129, 184, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 24px;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-brand svg {
  width: 26px;
  height: 26px;
  color: var(--sky-light);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-nav a:hover {
  color: var(--sky-light);
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .tier-includes {
    margin-left: 0;
  }

  .hero-split .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-split-content h1 {
    max-width: none;
  }

  .quote-card {
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0 12px;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
  }

  .main-nav a.btn {
    margin-top: 8px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero {
    padding: 80px 0 110px;
  }

  .page-hero {
    padding: 70px 0 90px;
  }

  .hero-split {
    padding: 70px 0 100px;
  }

  .hero-split-content h1 {
    font-size: 2.1rem;
  }

  .quote-card {
    padding: 26px 22px;
  }

  section {
    padding: 56px 0;
  }

  .tier {
    padding: 28px 24px;
  }

  .tier-tag {
    margin-left: 0;
  }

  .addon-card {
    padding: 28px 24px;
  }
}

/* ---------- Chat widget ---------- */

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--sky);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 35, 46, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.chat-toggle:hover {
  background: var(--sky-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 35, 46, 0.35);
}

.chat-toggle svg {
  width: 26px;
  height: 26px;
}

.chat-toggle .icon-close {
  display: none;
}

.chat-widget.open .chat-toggle .icon-chat {
  display: none;
}

.chat-widget.open .chat-toggle .icon-close {
  display: block;
}

.chat-hint {
  position: absolute;
  right: 74px;
  bottom: 20px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(22, 35, 46, 0.3);
  animation: chatHintFloat 2.4s ease-in-out infinite;
}

.chat-widget.open .chat-hint,
.chat-widget.hint-dismissed .chat-hint {
  display: none;
}

@keyframes chatHintFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(22, 35, 46, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  flex: 0 0 auto;
  padding: 14px 16px;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header span {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.chat-close:hover {
  color: var(--sky-light);
}

.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-message.assistant {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--heading);
  border-bottom-left-radius: 3px;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--sky);
  color: var(--white);
  border-bottom-right-radius: 3px;
}

.chat-message.error {
  align-self: flex-start;
  background: rgba(200, 40, 40, 0.08);
  border: 1px solid rgba(200, 40, 40, 0.3);
  color: #b02525;
}

.chat-message.typing {
  align-self: flex-start;
  color: var(--text);
  font-style: italic;
}

.chat-input-row {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.chat-input-row input {
  flex: 1 1 auto;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-family: inherit;
  font-size: 0.88rem;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(36, 129, 184, 0.15);
}

.chat-input-row button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: var(--sky);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chat-input-row button:hover {
  background: var(--sky-dark);
}

.chat-input-row button svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 480px) {
  .chat-widget {
    right: 16px;
    bottom: 16px;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 120px);
    bottom: 72px;
  }

  .chat-hint {
    right: 0;
    bottom: 72px;
    font-size: 0.75rem;
  }
}
