/* Go Golf — one stylesheet. Edit colors and spacing here. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/open-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/open-sans-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/playfair-display.woff2") format("woff2");
}

:root {
  --blue: #1694e3;
  --blue-dark: #067bc4;
  --blue-deeper: #0475bd;
  --blue-mid: #158fdb;
  --navy: #022c49;
  --navy-2: #033352;
  --tint: #edf4ff;
  --text: #1b1b1b;
  --muted: #3f3f3f;
  --gray: #5e5e5e;
  --line: #e2e2e2;
  --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Open Sans", arial, sans-serif;
  --wrap: 1120px;
  --shadow: 0 12px 32px rgba(2, 44, 73, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue-deeper);
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  z-index: 80;
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.announce {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.announce a {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

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

.nav-wrap {
  position: relative;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.nav-button .bars,
.nav-button .bars::before,
.nav-button .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  border-radius: 2px;
}

.nav-button .bars::before,
.nav-button .bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-button .bars::before {
  top: -6px;
}

.nav-button .bars::after {
  top: 6px;
}

.nav-toggle:focus-visible + .nav-button {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.nav {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  background: var(--white);
  min-width: min(320px, 100vw);
  width: min(360px, calc(100vw - 2rem));
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem 0.8rem;
  max-height: calc(100vh - 130px);
  overflow: auto;
}

.nav-toggle:checked ~ .nav {
  display: block;
}

.nav a,
.services summary {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav > a,
.services summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.nav a.is-current,
.services.is-current > summary {
  color: var(--blue-deeper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.services summary {
  cursor: pointer;
  list-style: none;
}

.services summary::-webkit-details-marker {
  display: none;
}

.services summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.services-panel {
  display: none;
  padding: 0.15rem 0 0.4rem 0.75rem;
}

.services[open] .services-panel {
  display: block;
}

.services-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

@media (min-width: 1180px) {
  .nav-button,
  .nav-toggle {
    display: none;
  }

  .nav-wrap {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .nav,
  .nav-toggle:checked ~ .nav {
    display: flex;
    position: static;
    width: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.15rem 0.15rem;
  }

  .nav > a,
  .services summary {
    border-bottom: 0;
    min-height: 44px;
    padding: 0.35rem 0.42rem;
    font-size: 0.9rem;
  }

  .services {
    position: relative;
  }

  .services-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 240px;
    padding: 0.4rem 0;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .services[open] .services-panel {
    display: block;
  }

  .services-panel a {
    padding: 0.35rem 1rem;
    border-bottom: 0;
  }

  .services-panel a:hover,
  .nav > a:hover,
  .services summary:hover {
    background: var(--tint);
  }
}

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(2, 44, 73, 0.92) 0%, rgba(2, 44, 73, 0.55) 48%, rgba(2, 44, 73, 0.2) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0 6.5rem;
  max-width: 40rem;
}

.hero h1,
.hero p,
.book-banner h2 {
  color: var(--white);
}

.kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
  color: var(--blue-deeper);
}

.hero .kicker {
  color: #d7ecfb;
}

.feature-wrap {
  position: relative;
  z-index: 2;
  margin-top: -4.25rem;
}

.feature {
  display: grid;
  gap: 0.5rem 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.feature h2,
.feature h1,
.feature p {
  color: var(--white);
}

.feature .price {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 4.5rem);
  margin: 0;
}

.feature a:not(.btn) {
  color: #d7ecfb;
}

.eval-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.eval-cards > li {
  display: flex;
  min-width: 0;
}

.eval-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.eval-card h3,
.eval-card p {
  color: var(--white);
}

.eval-card h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 0 0 0.55rem;
}

.eval-card .price {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  margin: 0 0 0.7rem;
}

.eval-card .eval-book {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.35rem;
}

.eval-card .btn {
  background: var(--white);
  color: var(--navy);
}

.eval-card .btn:hover {
  background: var(--tint);
  color: var(--navy);
}

.eval-more {
  margin: 0.9rem 0 0;
}

@media (min-width: 800px) {
  .eval-cards {
    grid-template-columns: 1fr 1fr;
  }

  .eval-card {
    padding: 1.6rem 1.5rem 1.5rem;
  }
}

@media (min-width: 800px) {
  .feature {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2rem 2.25rem;
  }

  .feature .price {
    text-align: right;
  }
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  border-radius: 6px;
  line-height: 1.3;
  text-align: center;
}

.btn:hover {
  background: var(--blue-deeper);
  color: var(--white);
}

button.btn:disabled {
  border: 2px solid #9aafbf;
  font: inherit;
  font-weight: 700;
  background: #eef3f6;
  color: var(--navy);
  cursor: not-allowed;
  max-width: 100%;
  white-space: normal;
}

.feature .btn,
.book-banner .btn {
  background: var(--white);
  color: var(--navy);
}

.feature .btn:hover,
.book-banner .btn:hover {
  background: var(--tint);
  color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.section {
  padding: 2.75rem 0;
}

.section-head {
  margin-bottom: 1.25rem;
}

.lede {
  font-size: 1.125rem;
  max-width: 68ch;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.card {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  background: var(--navy);
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  max-width: none;
}

.card-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  padding: 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  background: linear-gradient(to top, rgba(2, 44, 73, 0.92) 0%, rgba(2, 44, 73, 0.15) 62%);
}

.card:hover .card-title,
.card:focus-visible .card-title {
  background: linear-gradient(to top, rgba(4, 117, 189, 0.94) 0%, rgba(2, 44, 73, 0.25) 70%);
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.cards > li {
  display: flex;
}

.card {
  width: 100%;
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .cards > li {
    grid-column: span 2;
  }

  .cards > li:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .cards > li:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.book-banner {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.book-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.book-banner .shade {
  position: absolute;
  inset: 0;
  background: rgba(2, 44, 73, 0.72);
}

.book-banner .inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .split.top {
    align-items: start;
  }
}

.panel {
  background: var(--tint);
  border-radius: 12px;
  padding: 1.25rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-list li {
  margin: 0.35rem 0;
}

.contact-list a {
  font-weight: 700;
}

.inquiry {
  display: grid;
  gap: 0.95rem;
  margin: 1.25rem 0 0;
}

.inquiry label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.inquiry input[type="text"],
.inquiry input[type="email"],
.inquiry input[type="tel"],
.inquiry input[type="date"],
.inquiry select,
.inquiry textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid #b9b9b9;
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
}

.inquiry textarea {
  min-height: 9rem;
  resize: vertical;
}

.inquiry button.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  justify-self: start;
}

.botcheck {
  display: none;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.35rem 0.6rem 0.35rem 0;
  vertical-align: top;
  font-weight: 600;
}

.hours th {
  width: 3.4rem;
  color: var(--navy);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.partners a,
.partners span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  min-width: 140px;
}

.partners img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 210px;
  max-height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.page-head {
  background: var(--tint);
  padding: 2rem 0 1.6rem;
}

.page-head p {
  max-width: 68ch;
  margin-bottom: 0;
}

.prose {
  max-width: 75ch;
}

.prose p,
.narrow {
  max-width: 72ch;
}

.content-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 1.25rem;
}

.price-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(2, 44, 73, 0.04);
}

.price-card .price,
.price {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--navy);
  margin: 0.2rem 0 0.45rem;
  line-height: 1;
}

.muted {
  color: var(--muted);
}

.membership-offer {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
  margin: 0 0 1rem;
}

.membership-offer p {
  margin: 0;
}

.membership-offer .lead {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.3;
}

.membership-offer .fine {
  color: #d7e6f2;
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

#membership-request {
  scroll-margin-top: 5.5rem;
}

#membership-request .inquiry {
  max-width: 40rem;
}

.terms {
  background: var(--tint);
  border-left: 4px solid var(--blue);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.terms ul,
.plain-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.terms li,
.plain-list li {
  margin: 0.3rem 0;
}

.notice {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 1.2rem 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.35;
}

.notice + .notice {
  margin-top: 0.75rem;
}

.media-grid {
  display: grid;
  gap: 1rem;
}

.media-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
}

.bio {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 2.5rem;
}

.bio img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.bio h2 {
  margin-top: 0.2rem;
}

.names {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.names li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--navy);
}

.fee-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.fee-grid h3 {
  margin-bottom: 0.35rem;
}

.tier-label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-deeper);
  margin: 0;
}

.results-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.results th,
.results td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.results th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
}

.results td:nth-child(1),
.results th:nth-child(1),
.results td:nth-child(3),
.results th:nth-child(3),
.results td:nth-child(4),
.results th:nth-child(4) {
  white-space: nowrap;
}

.results tbody tr:nth-child(even) {
  background: var(--tint);
}

@media (max-width: 480px) {
  .results {
    font-size: 0.9rem;
  }

  .results th,
  .results td {
    padding: 0.45rem 0.35rem;
  }
}

.year-end h2 {
  margin-top: 0.25rem;
}

.year-end h3 {
  margin-top: 1.15rem;
}

.goal-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.goal-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--navy);
}

.visit-photo {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px;
}

.gift-logo {
  width: auto;
  max-width: 240px;
  height: auto;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0 2rem;
  margin-top: 1rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.25rem;
}

.site-footer .hours th {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.95rem;
}

.fine {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .fine {
  color: #d7e6f2;
}

@media (min-width: 700px) {
  .price-grid.cols-2,
  .media-grid,
  .names,
  .fee-grid,
  .goal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .price-grid.cols-3,
  .media-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .bio {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.15fr 0.85fr 0.8fr;
  }

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

@media (min-width: 1100px) {
  .price-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }
}

/* Question chat. Closed launcher stays a small corner control. */
.site-footer {
  padding-bottom: 5.5rem;
}

.faq-chat {
  position: fixed;
  right: 0.5rem;
  bottom: 0.75rem;
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 1.5rem);
}

.faq-chat-launcher,
.faq-chat-close,
.faq-chat-send,
.faq-chat-suggestions button {
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
}

.faq-chat-launcher {
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.faq-chat-launcher:hover,
.faq-chat-send:hover {
  background: var(--blue-deeper);
}

@media (max-width: 700px) {
  .faq-chat.is-open .faq-chat-launcher {
    display: none;
  }
}

.faq-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  display: flex;
  flex-direction: column;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100vh - 6.5rem));
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-chat-panel[hidden] {
  display: none;
}

.faq-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--navy);
  color: var(--white);
}

.faq-chat-header h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.25rem;
}

.faq-chat-close {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  font-size: 0.95rem;
}

.faq-chat-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.faq-chat-log {
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
  min-height: 4.5rem;
}

.faq-chat-msg {
  margin: 0;
  max-width: 92%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  line-height: 1.45;
  font-size: 0.95rem;
}

.faq-chat-msg.is-bot {
  background: var(--tint);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.faq-chat-msg.is-user {
  margin-left: auto;
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.faq-chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 13.5rem;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--line);
}

.faq-chat-suggestions button {
  text-align: left;
  background: var(--tint);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.faq-chat-suggestions button:hover {
  border-color: var(--blue);
  background: var(--white);
}

.faq-chat-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0.75rem 0.8rem;
  border-top: 1px solid var(--line);
}

.faq-chat-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: var(--text);
}

.faq-chat-send {
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  min-height: 44px;
  padding: 0.5rem 0.85rem;
}

body.faq-chat-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .faq-chat.is-open .faq-chat-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 78vh;
    border-radius: 16px 16px 0 0;
  }

  .faq-chat-log {
    flex: 0 1 auto;
    max-height: 28vh;
  }

  .faq-chat-suggestions {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
  }
}
