/**
 * HG Homepage Engine — Frontend Styles
 * Version: 1.7.4
 */
:root {
  --hghe-bg: #f6f8fb;
  --hghe-surface: #ffffff;
  --hghe-surface-soft: #f8fafc;
  --hghe-text: #0f172a;
  --hghe-muted: #526074;
  --hghe-border: #e2e8f0;
  --hghe-border-strong: #d7dee7;
  --hghe-primary: #163a5f;
  --hghe-primary-deep: #102d49;
  --hghe-gold: #c8a96b;
  --hghe-gold-soft: #f5eddc;
  --hghe-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
  --hghe-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.045);
  --hghe-radius-xl: 28px;
  --hghe-radius-lg: 22px;
  --hghe-radius-md: 16px;
  --hghe-max: 1240px;
  --hghe-section-padding-desktop: 88px;
  --hghe-section-padding-mobile: 48px;
  --hghe-hero-pad-top-desktop: 32px;
  --hghe-hero-pad-bottom-desktop: 32px;
  --hghe-hero-pad-top-mobile: 8px;
  --hghe-hero-pad-bottom-mobile: 8px;
  --hghe-hero-inner-gap: 32px;
  --hghe-hero-media-gap: 12px;
  --hghe-trust-section-top: 8px;
  --hghe-trust-section-bottom: 10px;
  --hghe-trust-head-bottom: 10px;
  --hghe-trust-links-top: 14px;
  --hghe-trust-to-next-top: 8px;
  --hghe-trust-to-wizard-gap: 8px;
  --hghe-hero-portrait-width-desktop: 580px;
  --hghe-hero-portrait-width-mobile: 320px;
  --hghe-hero-convo-max-width: var(--hghe-hero-convo-max-width);
  --hghe-section-heading-gap: 14px;
  --hghe-section-intro-gap: 18px;
  --hghe-button-row-top-gap: 16px;
  --hghe-card-grid-top-gap: 24px;
  --hghe-wizard-margin-top: 0px;
  --hghe-wizard-margin-bottom: 0px;
  --hghe-wizard-padding-desktop: 20px;
  --hghe-wizard-padding-mobile: 14px;
}
.hghe-homepage {
  background:
    radial-gradient(circle at top right, rgba(200,169,107,0.10), transparent 26%),
    linear-gradient(180deg, #fbfcfe 0%, var(--hghe-bg) 100%);
  color: var(--hghe-text);
}
.hghe-section { padding: var(--hghe-section-padding-desktop) 0; position: relative; }
.hghe-section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #f1f5f9 14%, #f1f5f9 86%, rgba(255,255,255,0) 100%);
}
.hghe-container {
  max-width: var(--hghe-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.hghe-grid { display: grid; gap: 24px; }
.hghe-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hghe-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hghe-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hghe-section-head {
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
}
.hghe-section-head h2,
.hghe-ask-left h2,
.hghe-newsletter-card h2 {
  margin: 0 0 var(--hghe-section-heading-gap);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hghe-text);
}
.hghe-section-foot { margin-top: 22px; text-align: center; }
.hghe-subsection-title {
  margin: 14px 0 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--hghe-primary);
}
.hghe-list {
  margin: 0 0 20px 18px;
  padding: 0;
  color: var(--hghe-muted);
}
.hghe-list li { margin: 0 0 9px; }
.hghe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
}
.hghe-btn:hover { transform: translateY(-1px); text-decoration: none; }
.hghe-btn-primary {
  background: linear-gradient(180deg, #1b436c 0%, var(--hghe-primary) 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(22,58,95,0.20);
}
.hghe-btn-primary:hover,
.hghe-btn-primary:focus-visible { background: linear-gradient(180deg, #163a5f 0%, var(--hghe-primary-deep) 100%); color: #fff; }
.hghe-btn-secondary {
  background: rgba(255,255,255,0.88);
  color: var(--hghe-primary);
  border-color: var(--hghe-border);
  box-shadow: 0 8px 18px rgba(15,23,42,0.04);
}
.hghe-btn-secondary:hover,
.hghe-btn-secondary:focus-visible { background: #fff; color: var(--hghe-primary); border-color: var(--hghe-border-strong); }
.hghe-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 800;
  color: var(--hghe-primary);
  text-decoration: none;
}
.hghe-link-arrow:hover,
.hghe-link-arrow:focus-visible { color: var(--hghe-primary-deep); text-decoration: none; }
.hghe-hero-wrap { padding: 64px 0 28px; }
.hghe-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 34px;
  align-items: center;
}
.hghe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22,58,95,0.07);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--hghe-primary);
  text-transform: uppercase;
}
.hghe-h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6.2vw, 66px);
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--hghe-text);
}
.hghe-subhead {
  margin: 0 0 26px;
  max-width: 690px;
  font-size: 18px;
  line-height: 1.68;
  color: var(--hghe-muted);
}
.hghe-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hghe-trust-line {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}
.hghe-hero-panel,
.hghe-card,
.hghe-ask-panel,
.hghe-newsletter-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: var(--hghe-radius-xl);
  box-shadow: var(--hghe-shadow);
}
.hghe-hero-panel {
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.hghe-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--hghe-gold), #e8d7ad 52%, rgba(255,255,255,0) 100%);
}
.hghe-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hghe-tab {
  border: 1px solid var(--hghe-border);
  background: var(--hghe-surface-soft);
  color: var(--hghe-text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all .18s ease;
}
.hghe-tab:hover { background: #fff; border-color: var(--hghe-border-strong); }
.hghe-tab.is-active {
  background: linear-gradient(180deg, #1b436c 0%, var(--hghe-primary) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(22,58,95,0.18);
}
.hghe-panel-label {
  margin-bottom: var(--hghe-trust-head-bottom);
  font-size: 14px;
  font-weight: 800;
  color: var(--hghe-muted);
}
.hghe-main-input,
.hghe-form-grid input,
.hghe-form-grid select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--hghe-border);
  border-radius: 18px;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  color: var(--hghe-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.hghe-main-input::placeholder,
.hghe-form-grid input::placeholder { color: #8090a4; }
.hghe-main-input:focus,
.hghe-form-grid input:focus,
.hghe-form-grid select:focus,
.hghe-chip:focus,
.hghe-tab:focus,
.hghe-btn:focus { outline: 3px solid rgba(22,58,95,0.18); outline-offset: 2px; }
.hghe-tab-pane { display: none; }
.hghe-tab-pane.is-active { display: block; }
.hghe-panel-actions { margin-top: 14px; }
.hghe-panel-btn { width: 100%; }
.hghe-chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; margin-bottom: 8px; }
.hghe-chip {
  border: 1px solid var(--hghe-border);
  background: #fff;
  color: var(--hghe-primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}
.hghe-chip:hover { background: var(--hghe-gold-soft); border-color: rgba(200,169,107,0.45); }

.hghe-hero-illustration {
  position: relative;
  margin-top: 10px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 40px rgba(9, 15, 35, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}
.hghe-hero-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(84,37,131,0.04) 0%, rgba(84,37,131,0.00) 38%, rgba(24,10,46,0.16) 100%);
  pointer-events: none;
  z-index: 1;
}
.hghe-hero-illustration::after {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 56%;
  height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.24) 0%, rgba(200,169,107,0.14) 28%, rgba(200,169,107,0.00) 68%);
  pointer-events: none;
  z-index: 1;
}
.hghe-hero-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  transform: scale(1.01);
}
.hghe-card {
  padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hghe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(15,23,42,0.09);
  border-color: rgba(200,169,107,0.35);
}
.hghe-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--hghe-text);
}
.hghe-card p { margin: 0; color: var(--hghe-muted); line-height: 1.68; }
.hghe-card-compact {
  padding: 22px;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.hghe-card-compact h3 { font-size: 17px; margin-bottom: 8px; }
.hghe-planner-panel {
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,250,252,0.95));
}
.hghe-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.hghe-tool-card .hghe-thumb {
  height: 164px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(200,169,107,0.22), transparent 34%),
    linear-gradient(135deg, #eaf1fb 0%, #f7f9fc 55%, #eef3f9 100%);
  border: 1px solid rgba(22,58,95,0.08);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hghe-tool-card .hghe-thumb::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 16px;
  border: 1px solid rgba(22,58,95,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.25)),
    linear-gradient(90deg, rgba(22,58,95,0.08) 0 28%, transparent 28% 100%);
}
.hghe-mini-card h3 { font-size: 20px; }
.hghe-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--hghe-text);
  min-height: 104px;
}
.hghe-shortcut-card:hover,
.hghe-shortcut-card:focus-visible { text-decoration: none; }
.hghe-shortcut-title { font-weight: 800; max-width: 80%; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }

/* Make all Ask Thomas buttons use the same gold treatment */
.hghe-hero-left .hghe-btn-primary,
.hghe-panel-actions .hghe-btn-primary,
.hghe-ask-left .hghe-btn-primary {
  background: linear-gradient(180deg, #d7bb83 0%, var(--hghe-gold) 100%);
  color: var(--hghe-primary-deep);
  box-shadow: 0 14px 32px rgba(200,169,107,0.28);
  border-color: rgba(200,169,107,0.65);
}
.hghe-hero-left .hghe-btn-primary:hover,
.hghe-hero-left .hghe-btn-primary:focus-visible,
.hghe-panel-actions .hghe-btn-primary:hover,
.hghe-panel-actions .hghe-btn-primary:focus-visible,
.hghe-ask-left .hghe-btn-primary:hover,
.hghe-ask-left .hghe-btn-primary:focus-visible {
  background: linear-gradient(180deg, #e2ca98 0%, #d2b170 100%);
  color: var(--hghe-primary-deep);
}

.hghe-shortcut-arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hghe-gold-soft);
  color: var(--hghe-primary);
  font-size: 20px;
}
.hghe-ask-panel-wrap { padding: 48px 0; }
.hghe-ask-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 38px;
  background:
    radial-gradient(circle at top right, rgba(200,169,107,0.18), transparent 28%),
    linear-gradient(135deg, #163a5f 0%, #102d49 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.08);
}
.hghe-ask-left h2 { color: #fff; }
.hghe-ask-left p { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.82); margin: 14px 0 22px; }
.hghe-ask-right { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hghe-prompt-bubble {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
}
.hghe-newsletter-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 32px;
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.hghe-newsletter-card p { margin: 12px 0 0; color: var(--hghe-muted); }
.hghe-newsletter-setup-note {
  padding: 16px 18px;
  border: 1px dashed var(--hghe-border-strong);
  border-radius: 18px;
  color: var(--hghe-muted);
  background: var(--hghe-surface-soft);
  max-width: 420px;
}
@media (max-width: 1180px) {
  .hghe-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hghe-section { padding: 72px 0; }
  .hghe-hero-grid,
  .hghe-ask-panel,
  .hghe-newsletter-card { grid-template-columns: 1fr; }
  .hghe-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hghe-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hghe-grid-3,
  .hghe-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hghe-section { padding: 48px 0; }
  .hghe-container { padding: 0 16px; }
  .hghe-h1 { font-size: 38px; }
  .hghe-section-head h2,
  .hghe-ask-left h2,
  .hghe-newsletter-card h2 { font-size: 28px; }
  .hghe-grid-4,
  .hghe-grid-5 { grid-template-columns: 1fr; }
  .hghe-card,
  .hghe-planner-panel,
  .hghe-ask-panel,
  .hghe-newsletter-card,
  .hghe-hero-panel { padding: 22px; }
  .hghe-newsletter-setup-note { max-width: 100%; }
  .hghe-shortcut-card { min-height: 86px; }
}


/* Responsive premium refinement v1.5.0 */
.hghe-homepage { overflow-x: clip; }
.hghe-card, .hghe-tool-card, .hghe-mini-card, .hghe-shortcut-card { min-height: 100%; }
.hghe-hero-left { align-self: center; }
.hghe-trust-line { max-width: 52ch; }
.hghe-shortcut-card { min-height: 104px; }
@media (max-width: 1280px) {
  .hghe-container { padding: 0 28px; }
  .hghe-hero-grid { grid-template-columns: minmax(0,1fr) minmax(340px,.92fr); gap: 28px; }
}
@media (max-width: 1180px) {
  .hghe-section { padding: 72px 0; }
  .hghe-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hghe-section { padding: 64px 0; }
  .hghe-container { padding: 0 22px; }
  .hghe-hero-wrap { padding: 44px 0 20px; }
  .hghe-hero-grid { grid-template-columns: 1fr; }
  .hghe-h1 { max-width: 12ch; font-size: clamp(40px, 7vw, 56px); }
  .hghe-subhead { max-width: 58ch; font-size: 17px; }
  .hghe-hero-panel { padding: 26px; }
  .hghe-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hghe-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hghe-newsletter-card, .hghe-ask-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hghe-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hghe-section-head { text-align: left; max-width: none; }
  .hghe-cta-row { gap: 12px; }
  .hghe-btn { min-height: 50px; }
  .hghe-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hghe-section { padding: 48px 0; }
  .hghe-container { padding: 0 14px; }
  .hghe-hero-wrap { padding: 24px 0 16px; }
  .hghe-h1 { font-size: clamp(34px, 11vw, 42px); line-height: 1.02; }
  .hghe-subhead { font-size: 16px; line-height: 1.55; }
  .hghe-grid-3, .hghe-grid-4, .hghe-grid-5 { grid-template-columns: 1fr; gap: 16px; }
  .hghe-card, .hghe-hero-panel, .hghe-ask-panel, .hghe-newsletter-card { padding: 20px; border-radius: 20px; }
  .hghe-cta-row { display: grid; grid-template-columns: 1fr; }
  .hghe-cta-row .hghe-btn, .hghe-panel-btn { width: 100%; }
  .hghe-chip-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hghe-chip { width: 100%; text-align: left; }
  .hghe-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .hghe-tabs::-webkit-scrollbar { display: none; }
  .hghe-tab { white-space: nowrap; }
  .hghe-shortcut-card { min-height: 84px; }
}


/* =====================================================================
   1.6.0 — Premium purple animated hero matching footer palette
===================================================================== */
:root {
  --hghe-purple: #552583;
  --hghe-purple-deep: #3d1a60;
  --hghe-purple-light: #7b4fa8;
}
.hghe-hero-wrap {
  padding: 72px 0 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(123,79,168,0.34) 0%, transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(200,169,107,0.13) 0%, transparent 16%),
    radial-gradient(circle at 68% 72%, rgba(123,79,168,0.28) 0%, transparent 24%),
    linear-gradient(135deg, var(--hghe-purple-deep) 0%, #4a2275 34%, var(--hghe-purple) 68%, #6e42a2 100%);
}
.hghe-hero-wrap::before,
.hghe-hero-wrap::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  opacity: .55;
}
.hghe-hero-wrap::before {
  top: -8rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(200,169,107,.16) 24%, rgba(123,79,168,.10) 54%, transparent 72%);
  animation: hgheFloatOrb 16s ease-in-out infinite;
}
.hghe-hero-wrap::after {
  left: -12rem;
  bottom: -14rem;
  background: radial-gradient(circle, rgba(123,79,168,.28) 0%, rgba(85,37,131,.20) 34%, transparent 70%);
  animation: hgheFloatOrbTwo 18s ease-in-out infinite;
}
.hghe-hero-wrap .hghe-container { position: relative; z-index: 1; }
.hghe-hero-left { padding: 16px 0; }
.hghe-eyebrow {
  background: rgba(255,255,255,0.12);
  color: #f4e7c6;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.hghe-h1,
.hghe-hero-wrap .hghe-h1 {
  color: #fff;
  text-shadow: 0 12px 36px rgba(17,9,43,.24);
}
.hghe-subhead,
.hghe-hero-wrap .hghe-subhead {
  color: rgba(255,255,255,.84);
  max-width: 60ch;
}
.hghe-trust-line,
.hghe-hero-wrap .hghe-trust-line {
  color: rgba(255,255,255,.72);
}
.hghe-hero-left .hghe-btn-secondary {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: 0 14px 30px rgba(17,9,43,.12);
  backdrop-filter: blur(10px);
}
.hghe-hero-left .hghe-btn-secondary:hover,
.hghe-hero-left .hghe-btn-secondary:focus-visible {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.hghe-hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.09) 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 28px 70px rgba(17,9,43,.24);
  backdrop-filter: blur(18px);
}
.hghe-hero-panel::before {
  height: 4px;
  background: linear-gradient(90deg, rgba(200,169,107,.95), rgba(255,255,255,.72) 54%, rgba(255,255,255,0) 100%);
}
.hghe-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, rgba(200,169,107,.10) 28%, transparent 68%);
  animation: hghePulseGlow 12s ease-in-out infinite;
  pointer-events: none;
}
.hghe-hero-panel .hghe-tab {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.hghe-hero-panel .hghe-tab:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.hghe-hero-panel .hghe-tab.is-active {
  background: linear-gradient(180deg, #e2ca98 0%, #c8a96b 100%);
  color: #2f1848;
  box-shadow: 0 12px 24px rgba(17,9,43,.18);
}
.hghe-hero-panel .hghe-panel-label { color: rgba(255,255,255,.84); }
.hghe-hero-panel .hghe-main-input {
  background: rgba(255,255,255,.94);
  border-color: rgba(255,255,255,.22);
}
.hghe-hero-panel .hghe-chip {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.hghe-hero-panel .hghe-chip:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.22); color: #fff; }
@keyframes hgheFloatOrb {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-2.5rem,1.25rem,0) scale(1.08); }
}
@keyframes hgheFloatOrbTwo {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(2rem,-1.5rem,0) scale(1.06); }
}
@keyframes hghePulseGlow {
  0%,100% { transform: scale(1); opacity: .42; }
  50% { transform: scale(1.08); opacity: .62; }
}
@media (max-width: 1100px) {
  .hghe-hero-wrap { padding: 54px 0 26px; }
  .hghe-hero-left { padding: 0; }
}
@media (max-width: 767px) {
  .hghe-hero-wrap {
    padding: 34px 0 18px;
    background:
      radial-gradient(circle at 14% 18%, rgba(123,79,168,0.28) 0%, transparent 26%),
      radial-gradient(circle at 86% 16%, rgba(200,169,107,0.10) 0%, transparent 18%),
      linear-gradient(160deg, var(--hghe-purple-deep) 0%, #48216f 46%, var(--hghe-purple) 100%);
  }
  .hghe-hero-panel { box-shadow: 0 20px 46px rgba(17,9,43,.24); }
}
@media (prefers-reduced-motion: reduce) {
  .hghe-hero-wrap::before,
  .hghe-hero-wrap::after,
  .hghe-hero-panel::after {
    animation: none !important;
  }
}


/* Smart planner upgrades */
.hghe-planner-intents {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 0 0 18px;
}
.hghe-intent-chip {
  border:1px solid var(--hghe-border);
  background: rgba(255,255,255,0.92);
  color: var(--hghe-text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all .18s ease;
}
.hghe-intent-chip:hover { border-color: rgba(200,169,107,0.45); background: var(--hghe-gold-soft); }
.hghe-intent-chip.is-active { background: linear-gradient(180deg, #d7bb83 0%, var(--hghe-gold) 100%); color: var(--hghe-primary-deep); border-color: rgba(200,169,107,0.55); box-shadow: 0 12px 26px rgba(200,169,107,0.24); }
.hghe-planner-copy { margin-bottom: 14px; }
.hghe-planner-lead { margin:0; font-size:15px; line-height:1.65; color: var(--hghe-muted); }
.hghe-form-grid-route { grid-template-columns: repeat(4, minmax(0,1fr)); }
.hghe-form-grid-advanced { grid-template-columns: repeat(5, minmax(0,1fr)); margin-top: 16px; }
.hghe-smart-details { margin: 0 0 18px; }
.hghe-smart-details summary { cursor:pointer; font-weight:800; color:var(--hghe-primary); list-style:none; }
.hghe-smart-details summary::-webkit-details-marker { display:none; }
.hghe-smart-details summary::after { content:'+'; margin-left:8px; }
.hghe-smart-details[open] summary::after { content:'–'; }
.hghe-quick-picks { margin: 0 0 18px; }
.hghe-quick-picks-label,
.hghe-recommendation-label { font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--hghe-primary); margin-bottom:10px; }
.hghe-chip-quick { background: var(--hghe-surface-soft); }
.hghe-recommendation-preview {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid rgba(22,58,95,0.08);
  box-shadow: var(--hghe-shadow-soft);
  margin-bottom: 18px;
}
.hghe-recommendation-text { color: var(--hghe-text); line-height:1.65; font-weight:600; }
.hghe-planner-actions-row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.hghe-planner-actions-row .hghe-btn-primary { min-width: 250px; }
.hghe-planner-actions-row .hghe-btn-secondary { min-width: 220px; }
@media (max-width: 1180px) {
  .hghe-form-grid-route { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hghe-form-grid-advanced { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .hghe-planner-intents, .hghe-planner-actions-row { flex-direction: column; align-items: stretch; }
  .hghe-intent-chip, .hghe-planner-actions-row .hghe-btn-primary, .hghe-planner-actions-row .hghe-btn-secondary { width: 100%; }
  .hghe-form-grid-route, .hghe-form-grid-advanced { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hghe-hero-illustration { margin-top: 8px; border-radius: 20px; }
  .hghe-hero-illustration img { aspect-ratio: 16 / 9.4; }
  .hghe-chip-row { gap: 8px; }
}


/* Readability fixes for non-hero planner UI */
.hghe-planner-panel .hghe-tab {
  background: #fff;
  border: 1px solid var(--hghe-border);
  color: var(--hghe-text);
  font-weight: 800;
}
.hghe-planner-panel .hghe-tab:hover,
.hghe-planner-panel .hghe-tab:focus-visible {
  background: #fff;
  border-color: rgba(200,169,107,0.45);
  color: var(--hghe-text);
}
.hghe-planner-panel .hghe-tab.is-active {
  background: linear-gradient(180deg, #d7bb83 0%, var(--hghe-gold) 100%);
  color: var(--hghe-primary-deep);
  border-color: rgba(200,169,107,0.55);
  box-shadow: 0 12px 26px rgba(200,169,107,0.24);
}
.hghe-planner-panel .hghe-chip-quick,
.hghe-planner-panel .hghe-chip {
  background: #fff;
  color: var(--hghe-text);
  border-color: var(--hghe-border);
}
.hghe-planner-panel .hghe-chip-quick:hover,
.hghe-planner-panel .hghe-chip:hover,
.hghe-planner-panel .hghe-chip-quick:focus-visible,
.hghe-planner-panel .hghe-chip:focus-visible {
  background: var(--hghe-gold-soft);
  color: var(--hghe-text);
  border-color: rgba(200,169,107,0.45);
}
.hghe-planner-panel .hghe-quick-picks-label,
.hghe-planner-panel .hghe-recommendation-label,
.hghe-planner-panel .hghe-planner-lead {
  color: var(--hghe-text);
}
.hghe-planner-panel .hghe-chip-row {
  opacity: 1;
}


.hghe-planner-panel .hghe-chip-quick.is-active,
.hghe-planner-panel .hghe-chip.is-active {
  background: linear-gradient(180deg, #f3ebd6 0%, #ead3a1 100%);
  color: var(--hghe-primary-deep);
  border-color: rgba(200,169,107,0.7);
  box-shadow: 0 0 0 2px rgba(200,169,107,0.28) inset, 0 8px 18px rgba(200,169,107,0.16);
}

.hghe-planner-panel .hghe-intent-chip:focus-visible,
.hghe-planner-panel .hghe-chip-quick:focus-visible,
.hghe-planner-panel .hghe-tab:focus-visible {
  outline: 2px solid rgba(22,58,95,0.22);
  outline-offset: 2px;
}


/* v1.7.7 stronger pill/tab active-state sync */
.hghe-planner-panel .hghe-tab[aria-selected="true"],
.hghe-planner-panel .hghe-tab.is-active {
  background: linear-gradient(180deg, #d7bb83 0%, var(--hghe-gold) 100%);
  color: var(--hghe-primary-deep);
  border-color: rgba(200,169,107,0.55);
  box-shadow: 0 12px 26px rgba(200,169,107,0.24);
}

.hghe-planner-panel .hghe-intent-chip[aria-pressed="true"],
.hghe-planner-panel .hghe-intent-chip.is-active,
.hghe-planner-panel .hghe-chip-quick[aria-pressed="true"],
.hghe-planner-panel .hghe-chip-quick.is-active {
  background: linear-gradient(180deg, #f3ebd6 0%, #ead3a1 100%);
  color: var(--hghe-primary-deep);
  border-color: rgba(200,169,107,0.7);
  box-shadow: 0 0 0 2px rgba(200,169,107,0.28) inset, 0 8px 18px rgba(200,169,107,0.16);
}


/* v1.7.8 route planner mode sync */
.hghe-planner-panel .hghe-tab.is-active,
.hghe-planner-panel .hghe-tab[aria-selected="true"],
.hghe-planner-panel .hghe-intent-chip.is-active,
.hghe-planner-panel .hghe-intent-chip[aria-pressed="true"] {
  background: linear-gradient(180deg, #d7bb83 0%, var(--hghe-gold) 100%);
  color: var(--hghe-primary-deep);
  border-color: rgba(200,169,107,0.65);
  box-shadow: 0 10px 22px rgba(200,169,107,0.18);
}

/* ── Route Wizard v1.8.0 ─────────────────────────────────────────────────── */

.hghe-wizard {
  padding: 1.75rem 1.5rem 1.5rem;
}

/* Progress pips */
.hghe-wizard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 1.75rem;
}
.hghe-pip {
  height: 3px;
  flex: 1;
  background: var(--hghe-border, #e0ddd6);
  border-radius: 2px;
  transition: background .25s;
}
.hghe-pip-active {
  background: var(--hghe-accent, #0f3b6f);
}

/* Steps */
.hghe-wstep { display: none; }
.hghe-wstep-active { display: block; }

.hghe-wstep-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #888;
  margin-bottom: .35rem;
}
.hghe-wstep-q {
  font-size: 1.1rem;
  font-weight: 500;
  color: inherit;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.hghe-wstep-back-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.hghe-wstep-context {
  font-size: 13px;
  color: #888;
}

/* Back button */
.hghe-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #888;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hghe-back-btn:hover { color: inherit; }

/* Chip grid */
.hghe-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}

/* Wizard chips */
.hghe-wchip {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, background .15s;
  line-height: 1.3;
}
.hghe-wchip:hover {
  border-color: #b22222;
  background: #f0f5fc;
}
.hghe-wchip.is-active {
  background: #e6f1fb;
  border-color: #185fa5;
  color: #0c447c;
}
.hghe-wchip-lg {
  padding: 11px 20px;
  font-size: 15px;
}
.hghe-chip-icon {
  font-size: 16px;
  line-height: 1;
}
.hghe-transport-chips .hghe-wchip {
  font-size: 13px;
  padding: 8px 14px;
}
.hghe-transport-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: .75rem;
}

/* Summary card */
.hghe-wizard-summary {
  background: #f8f7f4;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  padding: .875rem 1.125rem;
  margin-bottom: 1rem;
}
.hghe-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 3px 0;
}
.hghe-summary-label { color: #888; }
.hghe-summary-val   { font-weight: 500; }

/* Thomas recommendation */
.hghe-wizard-rec {
  background: #e6f1fb;
  border: 1px solid #b5d4f4;
  border-radius: 10px;
  padding: .875rem 1.125rem;
  margin-bottom: 1.25rem;
}
.hghe-rec-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #185fa5;
  margin-bottom: .35rem;
}
.hghe-rec-text {
  font-size: 14px;
  color: #0c447c;
  line-height: 1.55;
}

/* Divider */
.hghe-wizard-divider {
  height: 1px;
  background: #e8e5df;
  margin: 1.25rem 0;
}

/* Action row */
.hghe-planner-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 500px) {
  .hghe-wchip-lg { width: 100%; justify-content: flex-start; }
  .hghe-planner-actions-row { flex-direction: column; align-items: stretch; }
  .hghe-planner-actions-row .hghe-btn { text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Transfer Search Section — v1.9.0
   ══════════════════════════════════════════════════════════════════════════ */

.hghe-transfer-search-section {
  background: #fff;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid #eee;
}
.hghe-transfer-search-section .hghe-section-sub {
  font-size: 15px;
  color: #666;
  margin-top: .25rem;
}

/* ── Search bar ──────────────────────────────────────────────────────────── */
.hgts-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f3f0;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.hgts-field {
  flex: 1 1 160px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}
.hgts-dot,
.hgts-pin {
  font-size: 14px;
  flex-shrink: 0;
}
.hgts-dot { width: 10px; height: 10px; background: #0f3b6f; border-radius: 50%; display: inline-block; }
.hgts-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: inherit;
  min-width: 0;
}
.hgts-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 200;
  padding: 4px 0;
  list-style: none;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
}
.hgts-dropdown li button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  gap: 8px;
}
.hgts-dropdown li button:hover { background: #f4f3f0; }
.hgts-dd-code { font-size: 12px; color: #888; font-weight: 500; }
.hgts-swap {
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.hgts-swap:hover { background: #e8e5e0; }
.hgts-search-btn { white-space: nowrap; flex-shrink: 0; }

/* ── Airport pills ───────────────────────────────────────────────────────── */
.hgts-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.hgts-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .02em;
}
.hgts-pill:hover, .hgts-pill.is-active { border-color: #0f3b6f; background: #e6f1fb; color: #0c447c; }
.hgts-pill-lhr { border-color: #185fa5; color: #185fa5; }
.hgts-pill-lgw { border-color: #c8401a; color: #c8401a; }
.hgts-pill-stn { border-color: #3a8a3a; color: #3a8a3a; }
.hgts-pill-ltn { border-color: #8a5a00; color: #8a5a00; }
.hgts-pill-lcy { border-color: #5a2b8a; color: #5a2b8a; }
.hgts-pill-sen { border-color: #888;    color: #555; }

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.hgts-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.hgts-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f4f3f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
}
.hgts-stat-icon { font-size: 15px; }
.hgts-stat-label { color: #888; }
.hgts-stat-val { font-weight: 600; color: #0f3b6f; }

/* ── Layout: panel + map ────────────────────────────────────────────────── */
.hgts-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .hgts-layout { grid-template-columns: 1fr; }
}
.hgts-map-wrap {
  position: sticky;
  top: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
  height: 480px;
}
#hgts-map { width: 100%; height: 100%; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.hgts-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 1rem;
}
.hgts-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.hgts-tab:hover { color: #0f3b6f; }
.hgts-tab-active { color: #0f3b6f; border-bottom-color: #0f3b6f; }
.hgts-badge {
  background: #0f3b6f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

/* ── Filters ────────────────────────────────────────────────────────────── */
.hgts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: .875rem;
}
.hgts-filter-btn {
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.hgts-filter-btn.is-active,
.hgts-filter-btn:hover { background: #0f3b6f; color: #fff; border-color: #0f3b6f; }

/* ── Route cards ────────────────────────────────────────────────────────── */
.hgts-route-card {
  background: #fff;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  padding: 1rem 1.125rem;
  margin-bottom: .75rem;
  transition: border-color .15s, box-shadow .15s;
}
.hgts-route-card:hover { border-color: #0f3b6f; box-shadow: 0 2px 8px rgba(15,59,111,.08); }
.hgts-route-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: .75rem;
}
.hgts-mode-icon {
  font-size: 22px;
  width: 40px; height: 40px;
  background: #f4f3f0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hgts-mode-bus     { background: #fdf3e6; }
.hgts-mode-train   { background: #e6f0fb; }
.hgts-mode-drive   { background: #e8f5e8; }
.hgts-mode-rideshare { background: #f5e6fb; }
.hgts-route-info { flex: 1; min-width: 0; }
.hgts-route-operator { font-weight: 500; font-size: 15px; }
.hgts-route-meta { font-size: 13px; color: #666; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
.hgts-co2 { color: #3a8a3a; }
.hgts-route-price { font-size: 18px; font-weight: 700; color: #0f3b6f; white-space: nowrap; flex-shrink: 0; }
.hgts-highlights { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .75rem; }
.hgts-hl { font-size: 12px; background: #f0f5fc; color: #185fa5; border-radius: 4px; padding: 3px 8px; }
.hgts-route-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #666; }

/* ── Hotel cards ────────────────────────────────────────────────────────── */
.hgts-hotel-card {
  background: #fff;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  padding: 1rem 1.125rem;
  margin-bottom: .75rem;
}
.hgts-hotel-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: .5rem; }
.hgts-hotel-name { font-weight: 500; font-size: 15px; }
.hgts-stars { color: #f5a623; font-size: 13px; letter-spacing: -.5px; }
.hgts-hotel-price { font-size: 17px; font-weight: 700; color: #0f3b6f; white-space: nowrap; }
.hgts-hotel-price span { font-size: 12px; font-weight: 400; color: #888; }
.hgts-review { font-size: 13px; color: #555; margin-bottom: .5rem; }
.hgts-amenities { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: .75rem; }
.hgts-amenity { font-size: 12px; background: #f4f3f0; border-radius: 4px; padding: 3px 8px; color: #444; }
.hgts-hotel-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; font-size: 13px; color: #666; }
.hgts-address { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Tour cards ─────────────────────────────────────────────────────────── */
.hgts-tour-card {
  background: #fff;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  padding: 1rem 1.125rem;
  margin-bottom: .75rem;
}
.hgts-tour-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: .375rem; }
.hgts-tour-title { font-weight: 500; font-size: 15px; flex: 1; }
.hgts-tour-price { font-size: 17px; font-weight: 700; color: #0f3b6f; white-space: nowrap; }
.hgts-cat-badge { font-size: 11px; background: #e8f5e8; color: #3a8a3a; border-radius: 4px; padding: 2px 8px; display: inline-block; margin-bottom: .5rem; text-transform: capitalize; }
.hgts-tour-desc { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: .75rem; }
.hgts-tour-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #555; }

/* ── Book button ────────────────────────────────────────────────────────── */
.hgts-book-btn {
  display: inline-block;
  background: #0f3b6f;
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.hgts-book-btn:hover { background: #185fa5; color: #fff; }

/* ── Popular routes grid ────────────────────────────────────────────────── */
.hgts-popular { margin-top: 2rem; }
.hgts-popular-heading { font-size: 16px; font-weight: 500; margin-bottom: 1rem; }
.hgts-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.hgts-popular-card {
  background: #f4f3f0;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  padding: .875rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hgts-popular-card:hover { border-color: #0f3b6f; background: #eef4fc; }
.hgts-popular-codes { display: flex; align-items: center; gap: 8px; margin-bottom: .5rem; }
.hgts-code { font-size: 18px; font-weight: 700; color: #0f3b6f; }
.hgts-popular-arrow { color: #aaa; font-size: 16px; }
.hgts-popular-desc { font-size: 13px; color: #555; line-height: 1.4; margin-bottom: .5rem; }
.hgts-popular-meta { display: flex; justify-content: space-between; font-size: 12px; color: #666; }
.hgts-popular-mode { display: flex; align-items: center; gap: 5px; }
.hgts-mode-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.hgts-dot-bus      { background: #f5a623; }
.hgts-dot-train    { background: #185fa5; }
.hgts-dot-drive    { background: #3a8a3a; }
.hgts-dot-rideshare{ background: #8a2b8a; }
.hgts-popular-dur  { font-weight: 600; }

/* ── Skeleton + empty ───────────────────────────────────────────────────── */
.hgts-skeleton {
  height: 96px;
  background: linear-gradient(90deg, #f0ede8 25%, #e8e5e0 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: hgts-shimmer 1.4s infinite;
  border-radius: 10px;
  margin-bottom: .75rem;
}
@keyframes hgts-shimmer { to { background-position: -200% 0; } }
.hgts-empty { padding: 2rem; text-align: center; color: #888; font-size: 14px; }
.hgts-no-lat { padding: 1.5rem; background: #fff8e6; border: 1px solid #f5a623; border-radius: 10px; font-size: 14px; color: #7a5a00; margin-top: 1rem; }

/* ── Results wrapper ────────────────────────────────────────────────────── */
.hgts-results { margin-top: 1.5rem; }

@media (max-width: 600px) {
  .hgts-search-bar { flex-direction: column; align-items: stretch; }
  .hgts-swap { align-self: center; transform: rotate(90deg); }
  .hgts-search-btn { width: 100%; text-align: center; }
  .hgts-popular-grid { grid-template-columns: 1fr 1fr; }
  .hgts-stats { gap: 8px; }
  .hgts-stat { padding: 7px 10px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Thomas-First Hero — v2.0.0
   ══════════════════════════════════════════════════════════════════════════ */


.hghe-thomas-hero {
  position: relative;
  padding: var(--hghe-hero-pad-top-desktop) 0 var(--hghe-hero-pad-bottom-desktop);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #dbe8ef 0%, #ecdfc7 100%);
}

.hghe-thomas-parallax-sky,
.hghe-thomas-parallax-bg,
.hghe-thomas-parallax-foreground,
.hghe-thomas-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.hghe-thomas-parallax-sky {
  z-index: -5;
  background:
    radial-gradient(circle at 16% 22%, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.00) 28%),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.00) 26%),
    linear-gradient(180deg, rgba(219,232,239,0.96) 0%, rgba(236,223,199,0.84) 100%);
  transform: translate3d(0, 0, 0) scale(1.02);
}

.hghe-thomas-parallax-bg {
  z-index: -4;
  background-image: var(--hghe-thomas-bg-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  transform: translate3d(0, 0, 0) scale(1.09);
  opacity: 0.92;
  filter: saturate(0.95);
}

.hghe-thomas-parallax-foreground {
  z-index: -3;
  background:
    radial-gradient(circle at 72% 42%, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.00) 30%),
    radial-gradient(circle at 78% 70%, rgba(15,59,111,0.13) 0%, rgba(15,59,111,0.00) 26%),
    linear-gradient(180deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.10) 52%, rgba(255,255,255,0.18) 100%);
  transform: translate3d(0, 0, 0) scale(1.05);
}

.hghe-thomas-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.92) 0%, rgba(248, 250, 252, 0.76) 42%, rgba(248, 250, 252, 0.22) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(15, 23, 42, 0.08) 100%);
  transform: translate3d(0, 0, 0);
}

.hghe-thomas-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.00) 0%, rgba(15, 23, 42, 0.08) 100%);
}

.hghe-thomas-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: var(--hghe-hero-inner-gap);
  align-items: center;
}

@media (max-width: 900px) {
  .hghe-thomas-hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    align-items: center;
  }
}

/* ── Left column: Thomas media ─────────────────────────────────────────── */
.hghe-thomas-hero-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: var(--hghe-hero-media-gap);
}

.hghe-thomas-portrait-wrap {
  position: relative;
  width: min(100%, 520px);
  min-height: 460px;
  display: flex;
  justify-content: center;
  align-items: end;
  margin-top: -8px;
  margin-bottom: 4px;
  will-change: transform;
}

.hghe-thomas-portrait-glow {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: min(80%, 460px);
  height: min(42%, 240px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.20) 30%, rgba(15, 59, 111, 0.08) 54%, rgba(15, 59, 111, 0.00) 76%);
  filter: blur(20px);
  z-index: 0;
  will-change: transform;
}

.hghe-thomas-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, var(--hghe-hero-portrait-width-desktop));
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.22));
  animation: hghe-thomas-float 7s ease-in-out infinite;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}

.hghe-thomas-portrait-base {
  position: relative;
  z-index: 1;
  opacity: 1;
  left: auto;
  bottom: auto;
  transform: none;
}

.hghe-thomas-portrait-hover {
  /* Keep the hover image locked to the exact same visual footprint
     as the base portrait so the swap happens in-place without any drift. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(100%, var(--hghe-hero-portrait-width-desktop));
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: none;
}

.hghe-thomas-portrait-wrap:hover .hghe-thomas-portrait-base,
.hghe-thomas-portrait-wrap:focus-within .hghe-thomas-portrait-base {
  opacity: 0;
  transform: scale(1.015);
}

.hghe-thomas-portrait-wrap:hover .hghe-thomas-portrait-hover,
.hghe-thomas-portrait-wrap:focus-within .hghe-thomas-portrait-hover {
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 30px 52px rgba(15, 23, 42, 0.24));
}

@keyframes hghe-thomas-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.hghe-thomas-badge {
  position: absolute;
  right: 12px;
  bottom: 13%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(226,232,240,0.96);
  border-radius: 999px;
  padding: 9px 16px 9px 30px;
  font-size: 13px;
  font-weight: 600;
  color: #0f3b6f;
  box-shadow: 0 10px 26px rgba(15, 59, 111, 0.14);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.hghe-thomas-badge-dot {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #3a8a3a;
  border-radius: 50%;
  animation: hghe-thomas-pulse 2s ease-in-out infinite;
}

@keyframes hghe-thomas-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58, 138, 58, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(58, 138, 58, 0); }
}

/* Trust row */
.hghe-thomas-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  width: 100%;
  max-width: 540px;
  margin-top: 6px;
  padding: 0.75rem 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.45);
}

.hghe-thomas-trust-item {
  text-align: center;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  padding: 14px 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.hghe-thomas-trust-value {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #0f3b6f;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.hghe-thomas-trust-label {
  font-size: 12px;
  color: #4f596a;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ── Right column: Conversation ───────────────────────────────────────── */
.hghe-thomas-hero-convo {
  max-width: var(--hghe-hero-convo-max-width);
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  border-radius: 28px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.hghe-thomas-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #a54b16;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hghe-thomas-title {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #0c2e55;
  margin: 0 0 1.25rem;
}

.hghe-thomas-title-cursive {
  font-family: 'Caveat', 'Kalam', 'Bradley Hand', cursive;
  font-weight: 600;
  font-size: 1.15em;
  color: #0f3b6f;
  font-style: italic;
  display: inline-block;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.hghe-thomas-lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: #3e4a59;
  margin: 0 0 2rem;
  max-width: 58ch;
}

/* Conversational input */
.hghe-thomas-form {
  margin-bottom: 1.25rem;
}

.hghe-thomas-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border: 2px solid #e0d9c6;
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.hghe-thomas-input-wrap:focus-within {
  border-color: #0f3b6f;
  box-shadow: 0 16px 32px rgba(15, 59, 111, 0.14);
  transform: translateY(-1px);
}

.hghe-thomas-input-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}

.hghe-thomas-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: clamp(15px, 1.3vw, 17px);
  padding: 16px 0;
  outline: none;
  color: #0c2e55;
  min-width: 0;
  font-family: inherit;
}

.hghe-thomas-input::placeholder {
  color: #8e8570;
  font-style: italic;
}

.hghe-thomas-input-shake {
  animation: hghe-thomas-shake 0.4s;
}

@keyframes hghe-thomas-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.hghe-thomas-submit {
  background: linear-gradient(180deg, #1b436c 0%, #0f3b6f 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 12px 24px rgba(15, 59, 111, 0.18);
}

.hghe-thomas-submit:hover {
  background: linear-gradient(180deg, #24558a 0%, #114a82 100%);
  transform: translateX(1px);
}

.hghe-thomas-submit:active {
  transform: scale(0.98);
}

/* Suggested prompts */
.hghe-thomas-prompts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.hghe-thomas-prompts-label {
  font-size: 13px;
  color: #5b6370;
  font-weight: 600;
  margin-right: 4px;
}

.hghe-thomas-prompt-chip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 59, 111, 0.15);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: #0c2e55;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-align: left;
  line-height: 1.4;
}

.hghe-thomas-prompt-chip:hover {
  background: #fff;
  border-color: #0f3b6f;
  color: #0f3b6f;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 59, 111, 0.08);
}

/* Secondary path */
.hghe-thomas-secondary {
  font-size: 13px;
}

.hghe-thomas-secondary-link {
  color: #5d6675;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15, 59, 111, 0.25);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.hghe-thomas-secondary-link:hover {
  color: #0f3b6f;
  border-bottom-color: #0f3b6f;
}

/* Mobile refinements */
@media (max-width: 900px) {
  .hghe-thomas-hero {
    padding: 0.5rem 0 1rem;
  }
  .hghe-thomas-parallax-sky,
  .hghe-thomas-parallax-bg,
  .hghe-thomas-parallax-foreground,
  .hghe-thomas-overlay {
    transform: none !important;
  }
  .hghe-thomas-parallax-bg {
    background-position: 60% center;
    background-size: cover;
  }
  .hghe-thomas-overlay {
    background:
      linear-gradient(180deg, rgba(248, 250, 252, 0.58) 0%, rgba(248, 250, 252, 0.86) 46%, rgba(248, 250, 252, 0.96) 100%),
      linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(15, 23, 42, 0.06) 100%);
  }
  .hghe-thomas-portrait-wrap {
    width: min(100%, 360px);
    min-height: 320px;
    margin: 0 auto 4px;
    transform: none !important;
  }
  .hghe-thomas-portrait-hover {
    display: none;
  }

  .hghe-thomas-portrait-wrap:hover .hghe-thomas-portrait-base,
  .hghe-thomas-portrait-wrap:focus-within .hghe-thomas-portrait-base {
    opacity: 1;
    transform: none;
  }
  .hghe-thomas-portrait-glow {
    transform: translateX(-50%) !important;
  }
  .hghe-thomas-badge {
    right: 10px;
    bottom: 12%;
    font-size: 11px;
    padding: 6px 12px 6px 26px;
  }
  .hghe-thomas-badge-dot {
    left: 10px;
    width: 6px;
    height: 6px;
  }
  .hghe-thomas-trust {
    max-width: 100%;
    margin-top: 4px;
    gap: var(--hghe-hero-media-gap);
    padding-top: 0.5rem;
    padding-left: 0;
    padding-right: 0;
  }
  .hghe-thomas-hero-convo {
    margin-top: 2px;
    padding: 1rem;
  }
  .hghe-thomas-input-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 6px;
  }
  .hghe-thomas-input-wrap .hghe-thomas-input-icon {
    display: none;
  }
  .hghe-thomas-input {
    padding: 10px 14px;
    font-size: 16px;
  }
  .hghe-thomas-submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .hghe-thomas-hero {
    padding: 0.25rem 0 0.75rem;
  }
  .hghe-thomas-hero-inner {
    gap: 0.875rem;
  }
  .hghe-thomas-portrait-wrap {
    width: min(100%, 280px);
    min-height: 250px;
    margin-bottom: 0;
  }
  .hghe-thomas-trust {
    grid-template-columns: 1fr;
    gap: 0.625rem;
    padding-top: 0.25rem;
  }
  .hghe-thomas-trust-item {
    padding: 12px 12px;
  }
}

/* Priority 1 trust cleanup */
.hghe-section-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hghe-primary);
}

.hghe-section-intro {
  margin: 12px 0 0;
  max-width: 820px;
  color: var(--hghe-muted);
  line-height: 1.72;
}

.hghe-trust-section {
  padding-top: 18px;
}

.hghe-trust-head {
  margin-bottom: 24px;
}

.hghe-trust-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hghe-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--hghe-border);
  background: #fff;
  color: var(--hghe-primary);
  font-weight: 700;
}

.hghe-btn-ghost:hover {
  border-color: rgba(22,58,95,0.22);
  background: #f8fafc;
}

.hghe-trust-card {
  height: 100%;
}

.hghe-thomas-trust-value {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hghe-thomas-trust-label {
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .hghe-trust-links {
    flex-direction: column;
  }

  .hghe-btn-ghost,
  .hghe-trust-links .hghe-btn {
    width: 100%;
  }
}


/* 2.0.1.6 — mobile UX fixes */
@media (max-width: 980px) {
  html input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  html textarea,
  html select {
    font-size: 16px !important;
  }
}

/* Hide transfer search until the LAT integration proves healthy */
#hghe-transfer-search[hidden] {
  display: none !important;
}

/* Mobile chat widget: use FAB only, no auto-expanded tooltip */
@media (max-width: 768px) {
  .pre-chat-message,
  [id^="pre-chat-message-"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .floating-chatbot-button,
  [id^="floating-chatbot-button-"] {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    right: 16px !important;
    bottom: 16px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
  }

  .floating-chatbot-button svg,
  [id^="floating-chatbot-button-"] svg {
    width: 26px !important;
    height: 26px !important;
  }
}


/* v2.0.1.7 section spacing cleanup */
.hghe-trust-section {
  padding-top: 8px;
  padding-bottom: 26px;
}

.hghe-trust-head {
  margin-bottom: 16px;
}

.hghe-trust-links {
  margin-top: 14px;
}

/* Hide empty section heads so they do not create visual gaps */
.hghe-section-head:has(> h2:empty):not(:has(> :not(h2))) {
  display: none;
}

/* Tighten spacing when a content section follows trust/transparency */
.hghe-trust-section + .hghe-section,
.hghe-trust-section + .hghe-section-soft {
  padding-top: 22px;
}

/* Tighten the route wizard block itself */
.hghe-wizard {
  padding: var(--hghe-wizard-padding-desktop);
}

.hghe-wizard-progress {
  margin-bottom: 1rem;
}

@media (max-width: 980px) {
  .hghe-trust-section {
    padding-top: 4px;
    padding-bottom: 18px;
  }

  .hghe-trust-head {
    margin-bottom: 12px;
  }

  .hghe-trust-section + .hghe-section,
  .hghe-trust-section + .hghe-section-soft {
    padding-top: 16px;
  }

  .hghe-wizard {
    padding: 1rem 1rem .95rem;
  }

  .hghe-wizard-progress {
    margin-bottom: .85rem;
  }
}

@media (max-width: 640px) {
  .hghe-section {
    padding-top: var(--hghe-section-padding-mobile);
    padding-bottom: var(--hghe-section-padding-mobile);
  }

  .hghe-trust-section {
    padding-top: 0;
    padding-bottom: 12px;
  }

  .hghe-trust-section + .hghe-section,
  .hghe-trust-section + .hghe-section-soft {
    padding-top: 10px;
  }

  .hghe-wizard {
    padding: var(--hghe-wizard-padding-mobile);
  }

  .hghe-wizard-progress {
    margin-bottom: .7rem;
  }
}


/* v2.0.1.8 fine-tuned spacing between trust block and wizard */
.hghe-trust-section {
  padding-top: var(--hghe-trust-section-top);
  padding-bottom: var(--hghe-trust-section-bottom);
}

.hghe-trust-head {
  margin-bottom: var(--hghe-trust-head-bottom);
}

.hghe-trust-links {
  margin-top: var(--hghe-trust-links-top);
  margin-bottom: 0;
}

.hghe-trust-section + .hghe-section,
.hghe-trust-section + .hghe-section-soft {
  padding-top: var(--hghe-trust-to-next-top);
}

.hghe-trust-section + .hghe-section-soft {
  padding-top: var(--hghe-trust-to-wizard-gap);
}

.hghe-trust-section + .hghe-section .hghe-container,
.hghe-trust-section + .hghe-section-soft .hghe-container {
  margin-top: 0;
}

.hghe-wizard {
  margin-top: var(--hghe-wizard-margin-top);
  margin-bottom: var(--hghe-wizard-margin-bottom);
}

@media (max-width: 980px) {
  .hghe-trust-section {
    padding-top: calc(var(--hghe-trust-section-top) * .25);
    padding-bottom: calc(var(--hghe-trust-section-bottom) * .8);
  }

  .hghe-trust-head {
    margin-bottom: 8px;
  }

  .hghe-trust-section + .hghe-section,
  .hghe-trust-section + .hghe-section-soft {
    padding-top: 8px;
  }
}

@media (max-width: 640px) {
  .hghe-trust-section {
    padding-top: 0;
    padding-bottom: calc(var(--hghe-trust-section-bottom) * .6);
  }

  .hghe-trust-head {
    margin-bottom: 6px;
  }

  .hghe-trust-links {
    margin-top: 12px;
  }

  .hghe-trust-section + .hghe-section,
  .hghe-trust-section + .hghe-section-soft {
    padding-top: 6px;
  }
}


/* v2.1.0.4 wizard wrapper spacing */
.hghe-section-wizard {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

@media (max-width: 980px) {
  .hghe-section-wizard {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 640px) {
  .hghe-section-wizard {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}


/* Inline Thomas reply bridge for mxchat */
.hghe-thomas-inline {
  margin: 0 0 1.25rem;
}
.hghe-thomas-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.75rem;
  font-size: 13px;
  font-weight: 600;
  color: #566171;
}
.hghe-thomas-inline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a8a3a;
  box-shadow: 0 0 0 0 rgba(58,138,58,0.35);
  animation: hghe-thomas-pulse 1.8s ease-in-out infinite;
}
.hghe-thomas-inline-thread {
  display: grid;
  gap: 10px;
  width: 100%;
}
.hghe-thomas-inline-bubble {
  max-width: 78%;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}
.hghe-thomas-inline-bubble--user {
  justify-self: end;
  background: linear-gradient(180deg, #1b436c 0%, #0f3b6f 100%);
  color: #fff;
  border-bottom-right-radius: 8px;
}
.hghe-thomas-inline-bubble--assistant {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  background: #1f1f23;
  color: #fff;
  border-bottom-left-radius: 8px;
}
.hghe-thomas-inline-bubble--assistant a { color: #fff; text-decoration: underline; }
.hghe-thomas-inline-bubble--assistant p:first-child,
.hghe-thomas-inline-bubble--assistant div:first-child { margin-top: 0; }
.hghe-thomas-inline-bubble--assistant p:last-child,
.hghe-thomas-inline-bubble--assistant div:last-child { margin-bottom: 0; }
.hghe-thomas-inline-bubble.is-loading { opacity: 0.92; }
.hghe-thomas-inline-loading-copy,
.hghe-thomas-inline-error { min-height: 1.5em; }
.hghe-thomas-inline-actions { margin-top: 0.75rem; }
.hghe-thomas-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f3b6f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15, 59, 111, 0.28);
  padding-bottom: 2px;
}
.hghe-thomas-inline-link:hover { color: #114a82; border-bottom-color: #114a82; }
@media (max-width: 900px) {
  .hghe-thomas-inline-bubble { max-width: 100%; font-size: 14px; }
}


/* Hide floating mxchat on homepage; keep on internal pages */
body.home #floating-chatbot-button-default,
body.home #floating-chatbot-default,
body.home #pre-chat-message-default,
body.page-template-template-homepage #floating-chatbot-button-default,
body.page-template-template-homepage #floating-chatbot-default,
body.page-template-template-homepage #pre-chat-message-default {
  display: none !important;
}


/* Hide top navigation Ask Thomas CTA sitewide; homepage uses inline Thomas UI */
.hg-header-actions > a.hg-nav-cta,
.hg-mobile-nav-actions {
  display: none !important;
}

/* Homepage only: make the hero Ask Thomas submit button match the gold CTA */
body.home .hghe-thomas-submit,
body.page-template-template-homepage .hghe-thomas-submit {
  background: linear-gradient(180deg, #d7bb83 0%, var(--hghe-gold) 100%) !important;
  color: var(--hghe-primary-deep) !important;
  box-shadow: 0 14px 32px rgba(200,169,107,0.28) !important;
}

body.home .hghe-thomas-submit:hover,
body.home .hghe-thomas-submit:focus-visible,
body.page-template-template-homepage .hghe-thomas-submit:hover,
body.page-template-template-homepage .hghe-thomas-submit:focus-visible {
  background: linear-gradient(180deg, #e2ca98 0%, #d2b170 100%) !important;
  color: var(--hghe-primary-deep) !important;
}
