/* ============================================================
   HUB26 OFFICE FUNNEL — styles.css
   Brand tokens, reset, components, layout, responsive
   ============================================================ */

/* BRAND TOKENS */
:root {
  --gold: #C9A15A;
  --gold-light: #E0C184;
  --warm-dark: #1A1407;
  --navy: #15171C;
  --footer-bg: #0E0F12;
  --stone: #F5F3EE;
  --white: #FFFFFF;
  --muted: #8B9099;
  --border-muted: #CFD2D8;
  --gdpr: #6B7079;
}

/* RESET + BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  background: #F5F3EE;
  color: #15171C;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  text-wrap: pretty;
}

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* SECTION LAYOUT */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow,
.section-eyebrow {
  color: #C9A15A;
  font-size: 12.48px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

section {
  padding: 96px 0;
}

.section-sub {
  font-size: 18px;
  color: #475063;
  max-width: 640px;
  margin: 16px auto 48px;
  line-height: 1.6;
}

.section-sub-light {
  color: #CFD2D8;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #C9A15A;
  color: #1A1407;
  padding: 14px 28px;
  font-size: 14px;
}

.btn-primary:hover {
  background: #E0C184;
}

.btn-ghost {
  background: transparent;
  color: #C9A15A;
  padding: 13px 27px;
  font-size: 14px;
  border: 1px solid #C9A15A;
}

.btn-ghost:hover {
  background: rgba(201, 161, 90, 0.08);
}

.btn-ghost-navy {
  background: transparent;
  color: #15171C;
  padding: 13px 27px;
  font-size: 14px;
  border: 1px solid #15171C;
}

.btn-ghost-navy:hover {
  background: rgba(21, 23, 28, 0.06);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
  padding: 16px 28px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* STICKY HEADER */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: #15171C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.header-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
  background: #15171C;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 23, 28, 0.78) 0%, rgba(21, 23, 28, 0.55) 60%, rgba(201, 161, 90, 0.07) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 12.48px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A15A;
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #C9A15A;
  opacity: 0.7;
}

.dot-sep {
  display: inline-block;
  margin: 0 8px;
  color: #C9A15A;
  opacity: 0.7;
  font-weight: 400;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 940px;
  margin: 0;
  text-wrap: balance;
}

.hero-headline .line {
  display: block;
}

.hero-headline .line + .line {
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  max-width: 880px;
}

.hero-sub {
  font-size: 18px;
  color: #CFD2D8;
  max-width: 640px;
  margin-top: 28px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 48px;
}

.trust-item {
  font-size: 13px;
  color: #CFD2D8;
  letter-spacing: 0.02em;
}

.trust-sep {
  color: #C9A15A;
  margin: 0 12px;
  opacity: 0.6;
}

/* WHAT'S INCLUDED */
.whats-included {
  background: #F5F3EE;
}

.whats-included h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #15171C;
  max-width: 720px;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-col h3 {
  font-size: 20px;
  font-weight: 700;
  color: #15171C;
  margin-top: 20px;
  margin-bottom: 12px;
}

.feature-col p {
  font-size: 16px;
  line-height: 1.6;
  color: #475063;
}

/* INVENTORY */
.inventory-section {
  background: #15171C;
}

.inventory-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  max-width: 720px;
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-label {
  font-size: 13px;
  color: #8B9099;
  margin-right: 8px;
  white-space: nowrap;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #8B9099;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip.active,
.filter-chip:hover {
  background: #C9A15A;
  border-color: #C9A15A;
  color: #1A1407;
  font-weight: 600;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Unit cards rendered by app.js — styles here so they work immediately on insert */
.unit-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 161, 90, 0.18);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 240ms ease, box-shadow 280ms ease, background 240ms ease;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.unit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(201, 161, 90, 0.10) 0%, rgba(201, 161, 90, 0) 60%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.unit-card:hover {
  border-color: rgba(201, 161, 90, 0.6);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(201, 161, 90, 0.25);
}

.unit-card:hover::before {
  opacity: 1;
}

.unit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.unit-building {
  font-size: 12.48px;
  color: #C9A15A;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.availability-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-now {
  background: rgba(127, 176, 105, 0.15);
  color: #7FB069;
}

.badge-future {
  background: rgba(201, 161, 90, 0.12);
  color: #C9A15A;
}

.unit-number {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.unit-capacity {
  font-size: 14px;
  color: #CFD2D8;
  margin-top: 6px;
}

.unit-price {
  font-size: 28px;
  font-weight: 700;
  color: #C9A15A;
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.unit-price-small {
  font-size: 13px;
  color: #8B9099;
  font-weight: 400;
  margin-left: 4px;
}

.unit-scarcity {
  font-size: 12px;
  color: #8B9099;
  font-style: italic;
  margin-top: 8px;
  min-height: 18px;
}

.unit-cta {
  margin-top: auto;
  padding-top: 20px;
}

.unit-enquire {
  width: 100%;
  padding: 12px 16px;
  background: #C9A15A;
  color: #1A1407;
  border: none;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.unit-enquire:hover {
  background: #E0C184;
  transform: translateY(-1px);
}

.inventory-note {
  font-size: 14px;
  color: #CFD2D8;
  text-align: center;
  margin-top: 32px;
}

/* VIDEO SECTION */
.video-section {
  background: #F5F3EE;
  text-align: center;
}

.video-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #15171C;
  max-width: 720px;
  margin: 0 auto;
}

.video-cta-card {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 760px;
  margin: 56px auto 0;
  padding: 18px 28px 18px 18px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(21, 23, 28, 0.08);
  box-shadow: 0 4px 24px rgba(21, 23, 28, 0.08);
  text-decoration: none;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.video-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(21, 23, 28, 0.14);
  border-color: rgba(201, 161, 90, 0.5);
}

.video-cta-thumb {
  position: relative;
  display: block;
  width: 220px;
  height: 124px;
  border-radius: 10px;
  overflow: hidden;
  background: #15171C;
}

.video-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 23, 28, 0.55) 0%, rgba(21, 23, 28, 0.25) 100%);
}

.video-cta-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #C9A15A;
  color: #1A1407;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(201, 161, 90, 0.4);
  transition: transform 200ms ease;
}

.video-cta-card:hover .video-cta-play {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-cta-play svg {
  margin-left: 3px;
}

.video-cta-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.video-cta-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C9A15A;
}

.video-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #15171C;
  line-height: 1.25;
}

.video-cta-meta {
  font-size: 13.5px;
  color: #6B7079;
}

.video-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(21, 23, 28, 0.12);
  color: #15171C;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.video-cta-card:hover .video-cta-arrow {
  background: #15171C;
  border-color: #15171C;
  color: #C9A15A;
  transform: translate(3px, -3px);
}

.video-embed-wrap {
  max-width: 880px;
  margin: 48px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(21, 23, 28, 0.14);
}

/* TWO BUILDINGS */
.two-buildings {
  background: #15171C;
}

.two-buildings h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  max-width: 720px;
  margin-bottom: 48px;
}

.buildings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.building-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 90, 0.18);
}

.building-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.building-info {
  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
}

.building-name {
  font-size: 12.48px;
  color: #C9A15A;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.building-address {
  font-size: 14px;
  color: #CFD2D8;
  margin-top: 8px;
  line-height: 1.5;
}

.building-tagline {
  font-size: 15px;
  color: #8B9099;
  margin-top: 12px;
  line-height: 1.5;
}

.map-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: #C9A15A;
  font-weight: 600;
  transition: opacity 0.15s;
}

.map-link:hover {
  opacity: 0.75;
}

/* FORM SECTION */
.form-section {
  background: #F5F3EE;
}

.form-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #15171C;
  text-align: center;
}

.form-section .eyebrow {
  text-align: center;
}

.form-panel {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 32px rgba(21, 23, 28, 0.08);
}

.form-question {
  margin-bottom: 40px;
}

.form-question:last-of-type {
  margin-bottom: 32px;
}

.question-num {
  font-size: 12px;
  color: #8B9099;
  font-weight: 600;
  margin-bottom: 8px;
}

.question-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #15171C;
  margin-bottom: 16px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.q-chip {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid #CFD2D8;
  background: #fff;
  color: #15171C;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.q-chip.selected {
  background: #15171C;
  color: #fff;
  border-color: #15171C;
}

.q-chip:hover:not(.selected) {
  border-color: #15171C;
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CFD2D8;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #15171C;
  margin-top: 12px;
  transition: border-color 0.15s ease;
  outline: none;
  background: #fff;
}

.text-input:focus {
  border-color: #C9A15A;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-wrap {
  display: flex;
  flex-direction: column;
}

.field-wrap label {
  font-size: 14px;
  font-weight: 600;
  color: #15171C;
  margin-bottom: 6px;
}

.field-wrap.full-width {
  grid-column: 1 / -1;
}

.field-wrap .text-input {
  margin-top: 0;
}

.form-smallprint {
  font-size: 12px;
  color: #6B7079;
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.form-smallprint a {
  color: #C9A15A;
}

.form-error {
  background: rgba(220, 50, 50, 0.06);
  border: 1px solid rgba(220, 50, 50, 0.2);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 14px;
  color: #b91c1c;
}

.form-error a {
  color: #b91c1c;
  font-weight: 600;
}

/* THANK YOU STATE */
.thankyou-state {
  text-align: center;
  padding: 16px 0;
}

.thankyou-check {
  margin-bottom: 24px;
}

.thankyou-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #15171C;
  margin-bottom: 16px;
}

.thankyou-body {
  font-size: 16px;
  color: #475063;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.thankyou-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

/* FOOTER */
.site-footer {
  background: #0E0F12;
  color: #CFD2D8;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
}

.footer-address {
  font-size: 16px;
  line-height: 1.6;
  color: #CFD2D8;
  margin-bottom: 24px;
}

.footer-contact {
  font-size: 14.4px;
  line-height: 1.6;
  color: #8B9099;
  margin-bottom: 20px;
}

.footer-link {
  color: #8B9099;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.social-pill:hover {
  background: #C9A15A;
  border-color: #C9A15A;
  color: #1A1407;
}

.footer-col-heading {
  color: #fff;
  font-size: 12.48px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col-list {
  list-style: none;
}

.footer-col-link {
  display: block;
  font-size: 14.4px;
  color: #8B9099;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.15s;
  padding: 2px 0;
}

.footer-col-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12.8px;
  color: #8B9099;
}

.footer-gdpr {
  font-size: 12.16px;
  color: #6B7079;
  line-height: 1.5;
  margin-top: 16px;
}

/* SPINNER ANIMATION */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

@media (max-width: 600px) {
  section {
    padding: 64px 0;
  }

  .hero {
    height: 85vh;
  }

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

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.1;
  }

  .hero-eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.16em;
  }

  .hero-eyebrow::before {
    width: 20px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .video-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px 16px 22px;
    gap: 18px;
  }

  .video-cta-thumb {
    width: 100%;
    height: 180px;
  }

  .video-cta-text {
    align-items: center;
    gap: 4px;
  }

  .video-cta-arrow {
    display: none;
  }

  .form-panel {
    padding: 32px 20px;
  }

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

  .field-wrap.full-width {
    grid-column: auto;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .thankyou-ctas {
    max-width: 100%;
  }

  .trust-strip {
    row-gap: 8px;
  }

  .video-embed-wrap {
    margin-top: 32px;
  }
}

/* ============================================================
   MILLY CHAT SECTION
   ============================================================ */

.milly-chat {
  background: #F5F3EE;
  padding: 96px 0 48px;
}

.milly-chat-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #15171C;
  margin-bottom: 16px;
  text-wrap: balance;
}

.milly-chat-sub {
  text-align: center;
}

/* CHAT PANEL */
.milly-panel {
  max-width: 720px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(21,23,28,0.10), 0 1px 4px rgba(21,23,28,0.06);
}

/* HEADER */
.milly-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #15171C;
  border-bottom: 2px solid #C9A15A;
  padding: 10px 20px;
  min-height: 60px;
}

.milly-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #C9A15A;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.milly-header-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.milly-name {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.milly-role {
  color: #CFD2D8;
  font-size: 12.5px;
  line-height: 1.3;
}

.milly-online {
  display: flex;
  align-items: center;
  gap: 5px;
}

.milly-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7FB069;
  flex-shrink: 0;
}

.milly-online-text {
  color: #7FB069;
  font-size: 11.5px;
  font-style: italic;
}

/* MESSAGE FEED */
.milly-feed {
  height: 480px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* BOT MESSAGES */
.milly-msg-bot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 80%;
  animation: millyFadeIn 0.3s ease forwards;
  opacity: 0;
}

.milly-bubble-bot {
  background: #FFFFFF;
  color: #15171C;
  border: 1px solid rgba(21,23,28,0.06);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.5;
}

/* USER MESSAGES */
.milly-msg-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  max-width: 80%;
  animation: millyFadeIn 0.2s ease forwards;
  opacity: 0;
}

.milly-bubble-user {
  background: #15171C;
  color: #FFFFFF;
  border-radius: 16px 16px 4px 16px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.5;
}

/* QUICK-REPLY CHIPS */
.milly-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.milly-chip {
  padding: 10px 16px;
  border-radius: 22px;
  border: 1px solid #C9A15A;
  color: #C9A15A;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.milly-chip:hover,
.milly-chip.selected {
  background: #C9A15A;
  color: #1A1407;
}

.milly-chip:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* TYPING INDICATOR */
.milly-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid rgba(21,23,28,0.06);
  border-radius: 16px 16px 16px 4px;
  width: fit-content;
  animation: millyFadeIn 0.2s ease forwards;
  opacity: 0;
}

.milly-dot-anim {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #15171C;
  animation: millyDot 1.2s ease-in-out infinite;
}
.milly-dot-anim:nth-child(2) { animation-delay: 0.2s; }
.milly-dot-anim:nth-child(3) { animation-delay: 0.4s; }

@keyframes millyDot {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

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

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

/* FREE-TEXT INPUT ROW */
.milly-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(21,23,28,0.06);
  background: #FFFFFF;
}

.milly-text-input {
  flex: 1;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  border: 1px solid #CFD2D8;
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  color: #15171C;
  background: #FFFFFF;
  transition: border-color 0.15s;
}

.milly-text-input:focus {
  border-color: #C9A15A;
}

.milly-send-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #C9A15A;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.milly-send-btn:hover { background: #E0C184; }

/* CONTACT FORM inside panel */
.milly-contact-form {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(21,23,28,0.06);
  background: #FFFFFF;
}

.milly-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.milly-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milly-field-full {
  grid-column: 1 / -1;
}

.milly-field-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: #15171C;
}

.milly-form-error {
  font-size: 13px;
  color: #C0392B;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(192,57,43,0.06);
  border-radius: 6px;
  border-left: 3px solid #C0392B;
}

/* REASSURANCE TEXT */
.milly-reassurance {
  text-align: center;
  font-size: 12.5px;
  color: #6B7079;
  margin-top: 16px;
}

/* BRIDGE */
.milly-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 24px 48px;
  flex-direction: column;
}

.milly-bridge-text {
  color: #C9A15A;
  font-size: 12.48px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.milly-bridge-chevron {
  animation: millyChevronBounce 1.4s ease-in-out infinite;
  display: flex;
  align-items: center;
}

/* THANK-YOU STATE inside chat panel */
.milly-thankyou {
  padding: 40px 32px;
  text-align: center;
}

.milly-thankyou-check {
  margin-bottom: 20px;
}

.milly-thankyou h3 {
  font-size: 22px;
  font-weight: 800;
  color: #15171C;
  margin-bottom: 12px;
  text-wrap: balance;
}

.milly-thankyou p {
  font-size: 15px;
  color: #475063;
  margin-bottom: 24px;
  line-height: 1.6;
}

.milly-thankyou-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .milly-feed {
    height: 400px;
    padding: 16px;
  }

  .milly-contact-grid {
    grid-template-columns: 1fr;
  }

  .milly-field-full {
    grid-column: 1;
  }

  .milly-msg-bot,
  .milly-msg-user {
    max-width: 92%;
  }

  .milly-thankyou-ctas {
    flex-direction: column;
    align-items: center;
  }

  .milly-chat-heading {
    font-size: 26px;
  }
}
