@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;800;900&family=Libre+Franklin:wght@400;500;600;700;800&display=swap');

.meti-shortcode-shell,
.meti-floating-widget,
.meti-launcher {
  font-family: 'Libre Franklin', sans-serif;
  letter-spacing: normal;
}

.meti-shortcode-shell *,
.meti-floating-widget *,
.meti-launcher * {
  font-family: 'Libre Franklin', sans-serif;
  letter-spacing: normal;
}

:root {
  --bordo: #cd0e43;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #172033;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --white: #ffffff;
  --panel: #f8fafc;
  --panel-soft: rgba(255, 255, 255, 0.96);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.chat-only-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 198, 222, 0.28), transparent 24%),
    linear-gradient(180deg, #fbf9fd, #f4f6fb);
}

.meti-shortcode-shell {
  position: relative;
  /*width: 100vw;*/
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.meti-shortcode-shell .chat-only-page {
  min-height: 0;
}

.meti-host-title-hidden {
  display: none !important;
}

.chat-only-main {
  min-height: 100vh;
  padding: 0;
}

.chat-section-only {
  margin-top: 0;
  padding: 0px 0 0;
}

.chat-section-only .section-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.meti-shortcode-shell .section-inner {
  width: min(100%, 1240px);
  max-width: min(100% - 32px, 1240px);
  margin: 0 auto;
}

.meti-launcher,
.meti-launcher * {
  box-sizing: border-box;
}

.meti-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99998;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #cd0e43;
  color: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
  font-family: 'Libre Franklin', sans-serif;
}

.meti-launcher:hover {
  transform: translateY(-2px);
}

.meti-launcher-mark {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
}

.meti-launcher-text {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.meti-unread-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #cd0e43;
  font-size: 0.78rem;
  font-weight: 800;
}

.meti-floating-widget {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 99997;
  width: min(1080px, calc(100vw - 32px));
  font-family: 'Libre Franklin', sans-serif;
}

.meti-floating-widget:not(.is-open) {
  display: none;
}

.meti-floating-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
}

.meti-icon-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  color: #475569;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease;
}

.meti-icon-button:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  body:has(.meti-shortcode-shell) .entry-content,
  body:has(.meti-shortcode-shell) .wp-block-post-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .meti-shortcode-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .meti-shortcode-shell .section-inner {
    max-width: 100%;
    margin: 0;
  }

  .meti-floating-widget {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
  }
  .meti-launcher {
    right: 12px;
    bottom: 12px;
  }
  .meti-launcher-text {
    display: none;
  }
}

.is-hidden {
  display: none !important;
}

.chat-widget {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.chat-widget:not(.is-open) {
  display: none;
}

.chat-widget-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 760px;
  height: min(78vh, 860px);
  border-radius: 28px;
  background: #ffffff;
  color: var(--slate-900);
  border: none;
  box-shadow: none;
  font-family: 'Libre Franklin', sans-serif;
  letter-spacing: normal;
}

.chat-widget-header {
  padding: 24px 28px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: none;
  background: #ffffff;
}

.chat-widget-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.32rem;
  letter-spacing: -1px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: var(--white);
  color: var(--slate-700);
  font-size: 1.6rem;
  line-height: 1;
}

.messages {
  flex: 1 1 auto;
  min-height: 460px;
  max-height: none;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 28px 18px;
  background: #ffffff;
}

.message {
  display: flex;
  flex-direction: column;
}

.message[hidden] {
  display: none !important;
}


.message-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.message-user .message-row {
  justify-content: flex-end;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: min(920px, calc(100% - 96px));
}

.message-avatar {
  width: 78px;
  flex: 0 0 78px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

.message-avatar img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffd6e8;
  background: #fff1f7;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 1.4em;
  color: #7a849c;
  font-size: 0.98rem;
  font-weight: 700;
  padding-left: 2px;
}

.message-bot .message-meta strong {
  color: #c01768;
  font-weight: 800;
}

.message-user .message-meta {
  justify-content: flex-end;
  color: #07112f;
}

.message-bubble {
  max-width: 100%;
  padding: 24px 28px;
  border-radius: 28px;
  border: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.58;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  background: transparent;
  color: #07112f;
  box-shadow: none;
}

.message-bubble.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.16em;
  border-right: 2px solid currentColor;
  animation: meti-caret-blink 0.9s steps(1) infinite;
}

.message-bubble.meti-streaming::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.16em;
  border-right: 2px solid currentColor;
  animation: meti-caret-blink 0.9s steps(1) infinite;
}

.meti-captcha-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e2e8;
  border-radius: 12px;
}

.meti-captcha-label {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

.message-bubble-with-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.message-info-card-rail {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  grid-template-columns: 1fr;
}

.message-info-card {
  position: relative;
  overflow: hidden;
  padding: 15px 15px 14px;
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.message-info-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}

.message-info-card:active {
  transform: translateY(-1px) scale(0.985);
}

.message-info-card:focus-visible {
  outline: 2px solid rgba(192, 23, 104, 0.4);
  outline-offset: 2px;
}

.message-info-card::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -18px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  opacity: 0.28;
  filter: blur(4px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
}

.message-info-card-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff1f7;
  color: #c01768;
}

.message-info-card-title {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.24;
}

.message-info-card-summary {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.92);
}

.message-info-card-footer {
  margin-top: 12px;
}

.message-info-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.message-info-card-link::after {
  content: ">";
  font-size: 0.88rem;
}

.message-info-card-fit .message-info-card-eyebrow,
.message-info-card-fit .message-info-card-link {
  background: rgba(29, 78, 216, 0.26);
  border-color: rgba(96, 165, 250, 0.38);
  color: #dbeafe !important;
}

.message-info-card-fit::before {
  background: radial-gradient(circle, rgba(29, 78, 216, 0.6), rgba(29, 78, 216, 0));
}

.message-info-card-fam .message-info-card-eyebrow,
.message-info-card-fam .message-info-card-link {
  background: rgba(217, 119, 6, 0.26);
  border-color: rgba(253, 186, 116, 0.38);
  color: #ffedd5 !important;
}

.message-info-card-fam::before {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.58), rgba(217, 119, 6, 0));
}

.message-info-card-fdu .message-info-card-eyebrow,
.message-info-card-fdu .message-info-card-link {
  background: rgba(126, 34, 206, 0.26);
  border-color: rgba(196, 181, 253, 0.38);
  color: #f3e8ff !important;
}

.message-info-card-fdu::before {
  background: radial-gradient(circle, rgba(126, 34, 206, 0.58), rgba(126, 34, 206, 0));
}

.message-info-card-fsj .message-info-card-eyebrow,
.message-info-card-fsj .message-info-card-link {
  background: rgba(8, 145, 178, 0.26);
  border-color: rgba(153, 246, 228, 0.38);
  color: #cffafe !important;
}

.message-info-card-fsj::before {
  background: radial-gradient(circle, rgba(8, 145, 178, 0.58), rgba(8, 145, 178, 0));
}

.message-info-card-general .message-info-card-eyebrow,
.message-info-card-general .message-info-card-link {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff !important;
}

.message-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.message-quick-action {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.message-quick-action:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
}

.message-quick-action:active {
  transform: translateY(0) scale(0.98);
}

.message-quick-action:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.program-card-rail {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  grid-template-columns: 1fr;
}

.program-card {
    position: relative;
    overflow: hidden;
    padding: 14px 14px 13px;
    border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.22);
  }

  .program-card:active {
    transform: translateY(-1px) scale(0.985);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  }

  .program-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 2px;
  }

.program-card::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -10px;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  opacity: 0.3;
  filter: blur(3px);
  pointer-events: none;
}

.program-card-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
}

.program-card-title {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.program-card-summary {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.program-card-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 14px auto 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease, text-shadow 160ms ease;
  }

  .program-card-trigger span {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 10px rgba(15, 23, 42, 0.28);
  }

  .program-card:hover .program-card-trigger {
    transform: translateY(2px);
    color: #ffffff;
  }

  .program-card-trigger:active {
    transform: translateY(1px) scale(0.98);
  }

  .program-card-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
  }

.program-card-fit .program-card-eyebrow {
  color: #dbeafe;
  background: rgba(29, 78, 216, 0.3);
}

.program-card-fit::before {
  background: radial-gradient(circle, rgba(29, 78, 216, 0.58), rgba(29, 78, 216, 0));
}

.program-card-fam .program-card-eyebrow {
  color: #ffedd5;
  background: rgba(217, 119, 6, 0.3);
}

.program-card-fam::before {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.58), rgba(217, 119, 6, 0));
}

.program-card-fdu .program-card-eyebrow {
  color: #f3e8ff;
  background: rgba(126, 34, 206, 0.3);
}

.program-card-fdu::before {
  background: radial-gradient(circle, rgba(126, 34, 206, 0.58), rgba(126, 34, 206, 0));
}

.program-card-fsj .program-card-eyebrow {
  color: #cffafe;
  background: rgba(8, 145, 178, 0.3);
}

.program-card-fsj::before {
  background: radial-gradient(circle, rgba(8, 145, 178, 0.58), rgba(8, 145, 178, 0));
}

.lead-card {
  margin-top: 2px;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #d9deea;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.lead-card-heading {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead-card-admission {
  background:
    radial-gradient(circle at top right, rgba(192, 23, 104, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fcf7fb 100%);
  border-color: rgba(192, 23, 104, 0.14);
}

.lead-card-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.lead-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 14px;
}

.lead-card-status {
  margin: 24px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.lead-card-status[data-kind="success"] {
  color: #047857;
}

.lead-card-status[data-kind="error"] {
  color: #b91c1c;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.lead-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--slate-950);
  font-size: 0.92rem;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  font-size: 0.92rem;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  border-color: rgba(192, 23, 104, 0.48);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(192, 23, 104, 0.1);
}

.lead-field-hint {
  font-size: 0.73rem;
  line-height: 1.35;
  color: #64748b;
}

.lead-field-hint:empty {
  display: none;
}

.lead-field[data-state="valid"] input,
.lead-field[data-state="valid"] select,
.lead-field[data-state="valid"] textarea {
  border-color: #86efac;
  background: #f0fdf4;
}

.lead-field[data-state="valid"] .program-picker-trigger {
  border-color: #86efac;
  background: #f0fdf4;
}

.lead-field[data-state="valid"] .lead-field-hint {
  color: #047857;
}

.lead-field[data-state="invalid"] input,
.lead-field[data-state="invalid"] select,
.lead-field[data-state="invalid"] textarea {
  border-color: #fca5a5;
  background: #fff1f2;
}

.lead-field[data-state="invalid"] .program-picker-trigger {
  border-color: #fca5a5;
  background: #fff1f2;
}

.lead-field[data-state="invalid"] .lead-field-hint {
  color: #b91c1c;
}

.lead-field[data-state="optional"] .lead-field-hint {
  color: #a16207;
}

.lead-field-full {
  margin-top: 14px;
}

.lead-field-program-picker {
  position: relative;
}

.program-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--slate-950);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.program-picker-trigger:focus-visible,
.lead-field-program-picker.is-open .program-picker-trigger {
  border-color: rgba(192, 23, 104, 0.48);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(192, 23, 104, 0.1);
  outline: none;
}

.program-picker-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.program-picker-trigger-text {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.program-picker-trigger-arrow {
  font-size: 1.1rem;
  color: #64748b;
}

.program-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  max-height: 320px;
  overflow-y: auto;
}

.program-picker-menu[hidden] {
  display: none !important;
}

.program-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  color: #ffffff !important;
  background: var(--program-picker-option-bg, #1e293b);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.program-picker-option:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.program-picker-option:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.program-picker-option-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.program-picker-option-text {
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.3;
  color: #ffffff !important;
}

.lead-card-actions {
  margin-top: 14px;
  margin-bottom: 14px;
}

.lead-card-submit {
  width: 100%;
  border: 1px solid rgba(192, 23, 104, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  background: linear-gradient(145deg, #c01768, #d40967);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(192, 23, 104, 0.22);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease, filter 140ms ease;
}

.lead-card-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(192, 23, 104, 0.28);
  filter: brightness(1.06);
}

.lead-card-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  background: linear-gradient(145deg, #c01768, #d40967);
  border-color: #cbd5e1;
  color: #64748b;
}

@media (max-width: 720px) {
  .lead-card-grid {
    grid-template-columns: 1fr;
  }
}

.message-bot .message-bubble {
  background: rgba(255, 255, 255, 0.98);
  border-color: #d9deea;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  color: #07112f;
}

.message-bubble a {
  color: #c01768;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  word-break: break-word;
}

.message-phone-link {
  color: #c01768;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  word-break: break-word;
}

.message-bubble a:hover {
  opacity: 0.88;
}

.message-link-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-right: 8px;
  margin-left: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(192, 23, 104, 0.28);
  color: #c01768 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease;
}

.message-link-button:hover {
  background: rgba(192, 23, 104, 0.07);
  border-color: rgba(192, 23, 104, 0.6);
}

.message-link-button.message-link-fit {
  background: transparent;
  border-color: rgba(20, 115, 223, 0.28);
  color: #1473df !important;
}

.message-link-button.message-link-fit:hover {
  background: rgba(20, 115, 223, 0.07);
  border-color: rgba(20, 115, 223, 0.6);
}

.message-link-button.message-link-fam {
  background: transparent;
  border-color: rgba(154, 103, 0, 0.28);
  color: #9a6700 !important;
}

.message-link-button.message-link-fam:hover {
  background: rgba(154, 103, 0, 0.07);
  border-color: rgba(154, 103, 0, 0.6);
}

.message-link-button.message-link-fdu {
  background: transparent;
  border-color: rgba(109, 53, 217, 0.28);
  color: #6d35d9 !important;
}

.message-link-button.message-link-fdu:hover {
  background: rgba(109, 53, 217, 0.07);
  border-color: rgba(109, 53, 217, 0.6);
}

.message-link-button.message-link-fsj {
  background: transparent;
  border-color: rgba(7, 139, 74, 0.28);
  color: #078b4a !important;
}

.message-link-button.message-link-fsj:hover {
  background: rgba(7, 139, 74, 0.07);
  border-color: rgba(7, 139, 74, 0.6);
}

.message-link-button::after {
  content: ">";
  font-size: 0.88rem;
}

.message-user .message-bubble {
  max-width: 100%;
  padding: 22px 28px;
  border-radius: 24px;
  border: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.58;
  font-weight: 700;
  letter-spacing: 0;
  background: transparent;
  box-shadow: none;
}

@keyframes meti-caret-blink {
  50% {
    opacity: 0;
  }
}

.thinking-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  white-space: normal;
  line-height: 0;
  width: auto !important;
  align-self: flex-start;
}

.thinking-label {
  display: none;
}

.thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.thinking-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(192, 23, 104, 0.72);
  animation: thinkingPulse 1s infinite ease-in-out;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.chat-form {
  padding: 18px 22px 22px;
  background: #ffffff;
  border-top: none;
}

textarea,
input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--slate-900);
}

textarea {
  resize: vertical;
  min-height: 58px;
}

textarea::placeholder,
input::placeholder {
  color: rgba(51, 65, 85, 0.62);
}

.form-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

#sendButton,
.secondary-button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--bordo);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.input-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 12px 12px 18px;
  border-radius: 22px;
  background: #ffffff;
  border: none;
  box-shadow: none;
}

.input-shell textarea {
  min-height: 48px;
  max-height: 120px;
  border: none;
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--slate-900);
  line-height: 1.5;
}

.input-shell textarea::placeholder {
  color: rgba(51, 65, 85, 0.76);
}

.input-shell textarea:focus-visible {
  outline: none;
}

#sendButton {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c01768, #de4c84);
}

#sendButton img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(16%) sepia(76%) saturate(4426%) hue-rotate(330deg) brightness(84%) contrast(101%);
}

.helper-inline {
  margin: 0;
  color: rgba(71, 85, 105, 0.76);
  font-size: 0.8rem;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.ghost-button {
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--white);
}

.small-note {
  margin: 12px 0 0;
  color: rgba(71, 85, 105, 0.68);
  font-size: 0.84rem;
  line-height: 1.6;
}

.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

textarea:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.72;
  cursor: wait;
}

@keyframes thinkingPulse {
  0%, 80%, 100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.38;
  }

  40% {
    transform: translateY(-2px) scale(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 18px 16px;
  }

  .topbar-inner,
  .hero-content,
  .section-inner {
    width: min(100% - 20px, 1200px);
  }

  .hero-content {
    padding-top: 108px;
    padding-bottom: 72px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }

  .content-section-light {
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
  }

  .chat-widget {
    width: 100%;
  }

  .chat-widget-shell {
    min-height: 0;
    height: 100vh;
    height: 100svh;
    border-radius: 0;
  }

  .meti-floating-widget .chat-widget-shell {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    border-radius: 0;
  }

  .chat-section {
    margin-top: -72px;
    padding-bottom: 16px;
  }
}



.message-bubble p {
  margin: 4px;
}

.message-heading {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.message-heading-1 {
  font-size: 1.5rem;
}

.message-heading-2 {
  font-size: 1.22rem;
}

.message-heading-3 {
  font-size: 1.02rem;
}

.message-bubble p + .message-heading,
.message-bubble .message-heading + p,
.message-bubble .message-heading + .message-heading,
.message-bubble .message-heading + .message-list,
.message-bubble .message-list + .message-heading {
  margin-top: 12px;
}

.message-bubble p + p,
.message-bubble p + .message-list,
.message-bubble .message-list + .message-list {
  margin-top: 12px;
}

.message-bubble .message-list + p {
  margin-top: 20px;
}

.message-list {
  margin: 6px 0;
  padding-left: 1.3rem;
  list-style-type: disc;
}

.message-list li {
  line-height: 1.66;
}

.message-list li + li {
  margin-top: 12px;
}

.message-bubble .message-tuition-block + p,
.message-bubble p + .message-tuition-block,
.message-bubble .message-tuition-block + .message-tuition-block {
  margin-top: 16px;
}

.message-tuition-block {
  width: 100%;
  margin: 10px 0 2px;
}

.message-tuition-block-rich {
  padding: 18px 18px 14px;
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.message-tuition-heading {
  margin-bottom: 18px;
}

.message-tuition-title {
  margin: 0;
  color: #111827;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.32;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.message-tuition-title strong {
  font-weight: 900;
}

.message-tuition-subtitle {
  margin: 4px 0 0;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 800;
}

.message-tuition-accent {
  width: 100px;
  height: 2px;
  margin-top: 16px;
  background: #cd0e43;
}

.message-tuition-table-wrap {
  overflow-x: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.message-tuition-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #111827;
}

.message-tuition-table thead th {
  padding: 13px 12px;
  background: #b10f3b;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: pre-line;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.message-tuition-faculty-row th {
  padding: 8px 6px 8px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.message-tuition-data-row th,
.message-tuition-data-row td {
  padding: 7px 12px;
  border-top: 1px solid #ffffff;
}

.message-tuition-data-row th {
  width: 32%;
  background: #f3f4f6;
  color: #0f172a;
  text-align: left;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.message-tuition-data-row td:nth-child(2),
.message-tuition-data-row td:nth-child(4) {
  background: #b10f3b;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

.message-tuition-data-row td:nth-child(3) {
  background: #ffffff;
  color: #0f172a;
  text-align: center;
  font-weight: 400;
}

.message-tuition-cell-accent {
  background: #b10f3b !important;
  color: #ffffff !important;
  text-align: center;
  font-weight: 700;
}

.message-tuition-cell-light {
  background: #ffffff !important;
  color: #0f172a !important;
  text-align: center;
  font-weight: 500;
}

.message-tuition-note {
  margin: 10px 0 0;
  color: #cd0e43;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}


.message-bubble a.message-link-button + a.message-link-button {
  display: flex;
  margin-top: 12px;
  margin-right: 0;
}

@media (min-width: 720px) {
  .message-info-card-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-card-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .message-info-card-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-card-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.meti-page-body {
  background: linear-gradient(180deg, #08111f 0%, #0f172a 100%);
}

.meti-page-main {
  padding-top: 96px;
}

.meti-hero {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 0 40px;
}

.meti-hero-media {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 0;
  padding: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.meti-hero-media img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.45);
}

.meti-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.meti-hero-copy h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1.08;
  text-wrap: balance;
}

.meti-hero-lead {
  margin: 0;
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.meti-band {
  padding: 88px 0;
}

.meti-band-dark {
  background: #081322;
}

.meti-band-light {
  background: #f8fafc;
  color: var(--slate-900);
}

.meti-band-accent {
  background: linear-gradient(120deg, #7f1238 0%, #be123c 52%, #0f172a 100%);
}

.meti-heading-light p,
.meti-heading-light h2 {
  color: var(--white);
}

.meti-heading-light .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.meti-heading-light .section-heading > p:last-child,
.meti-heading-light p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.meti-achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.meti-achievement-card,
.meti-quote-panel,
.meti-proof-item {
  border-radius: 8px;
}

.meti-achievement-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meti-achievement-card h3,
.meti-proof-item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.meti-achievement-card p,
.meti-proof-item p,
.meti-quote-note,
.meti-quote-text {
  margin: 0;
  line-height: 1.75;
}

.meti-achievement-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meti-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.meti-proof-list {
  display: grid;
  gap: 16px;
}

.meti-proof-item {
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.meti-quote-panel {
  padding: 28px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.meti-quote-mark {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meti-quote-text {
  font-size: 1.45rem;
  line-height: 1.5;
  font-weight: 700;
}

.meti-quote-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .meti-hero,
  .meti-two-column,
  .meti-achievement-grid {
    grid-template-columns: 1fr;
  }

  .meti-hero-media {
    min-height: 420px;
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .meti-page-main {
    padding-top: 82px;
  }

  .meti-hero {
    width: min(100% - 20px, 1200px);
    padding-top: 20px;
  }

  .meti-band {
    padding: 64px 0;
  }

  .meti-quote-text {
    font-size: 1.18rem;
  }
}

.meti-band-accent .hero-actions {
  justify-content: center;
}
.starter-panel {
  display: none;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: none;
  box-shadow: none;
}

.starter-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #8b1538;
}

.starter-panel h3 {
  margin: 0;
  font-size: 1.16rem;
  color: var(--slate-900);
}

.starter-prompt-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.starter-prompt {
  width: 100%;
  padding: 0px 18px;
  text-align: left;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.45;
  box-shadow: none;
  cursor: pointer;
}

.starter-prompt:hover {
  border-color: transparent;
  background: transparent;
}

.chat-widget-shell {
  display: flex;
  flex-direction: column;
  overflow: visible;
  gap: 28px;
  min-height: auto;
  height: auto;
  padding: 16px;
  background: transparent;
}

.chat-page-heading {
  background: linear-gradient(1deg, #e00035 0%, #d11142 46%, #6a0c19 100%);;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 52px);
  text-align: center;
  margin-block-start: 20px;
  margin-block-end: 0px;
}

.chat-page-heading::after {
  background-color: #d11142;
  content: '';
  width: 130px;
  height: 4px;
  display: block;
  border-radius: 70px;
  margin-top: 10px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.chat-start-intro {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  min-height: 320px;
  padding: 30px 56px 30px 70px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 198, 222, 0.45), transparent 22%),
    radial-gradient(circle at 85% 30%, rgba(248, 222, 233, 0.6), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 251, 0.98));
  border: 1px solid rgba(223, 227, 239, 0.95);
  box-shadow: 0 18px 52px rgba(22, 31, 64, 0.08);
}

.chat-start-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.chat-start-visual-glow {
  display: none;
}

.chat-start-visual img {
  position: relative;
  width: min(100%, 286px);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 18px 28px rgba(192, 23, 104, 0.12));
}

.chat-start-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  align-self: center;
}

.chat-start-kicker {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #4e5b86;
}

.chat-start-kicker span:first-child {
  color: #d61d6c;
}

.chat-start-kicker-dot {
  color: #7c4dff;
  font-size: 1.08rem;
}

.chat-start-copy h2 {
  margin: 0;
  font-family: 'Libre Franklin', sans-serif;
  font-size: clamp(2.7rem, 3.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: #131b4d;
  white-space: nowrap;
}

.chat-start-nowrap {
  white-space: nowrap;
}

.chat-start-wave {
  display: inline-block;
  margin: 0 0.08em;
  transform: translateY(-0.02em);
}

.chat-start-copy h2 span {
  color: #d61d6c;
  letter-spacing: 0.08em;
}

.chat-start-copy h2 .chat-start-nowrap {
  color: inherit;
  letter-spacing: inherit;
}

.chat-start-copy h2 .chat-start-nowrap span {
  letter-spacing: -1px;
}

.chat-widget.chat-widget-shortcode .chat-start-intro {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  padding: 32px 40px;
  gap: 28px;
  min-width: 0;
}

.chat-widget.chat-widget-shortcode .chat-start-copy,
.chat-widget.chat-widget-shortcode .chat-start-copy p,
.chat-widget.chat-widget-shortcode .chat-start-copy h2,
.chat-widget.chat-widget-shortcode .chat-form,
.chat-widget.chat-widget-shortcode .chat-popular-questions,
.chat-widget.chat-widget-shortcode .popular-question-grid,
.chat-widget.chat-widget-shortcode .messages,
.chat-widget.chat-widget-shortcode .message-bubble,
.chat-widget.chat-widget-shortcode .input-shell {
  min-width: 0;
}

.chat-widget.chat-widget-shortcode .chat-start-copy h2 {
  white-space: normal;
  overflow-wrap: anywhere;
}

.chat-widget.chat-widget-shortcode .chat-start-nowrap {
  white-space: normal;
}

.chat-widget.chat-widget-shortcode .chat-start-copy,
.chat-widget.chat-widget-shortcode .chat-start-copy p {
  max-width: none;
}

.chat-widget.chat-widget-shortcode .model-toggle {
  flex-wrap: wrap;
}

.chat-widget.chat-widget-shortcode .model-toggle-options {
  max-width: 100%;
}

.chat-start-lead {
  max-width: 880px;
  margin: 18px 0 0;
  font-family: 'Libre Franklin', sans-serif;
  font-size: clamp(1.32rem, 2.2vw, 1.9rem);
  line-height: 1.35;
  font-weight: 800;
  color: #d61d6c !important;
}

.chat-start-copy p {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.55;
  color: #4c5987;
}

.chat-start-pattern {
  display: none;
}

.form-footer {
  margin-top: -12px;
}

.helper-inline {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(76, 89, 135, 0.72);
}

.chat-form {
  position: relative;
  z-index: 3;
  padding: 0;
  background: transparent;
}

.model-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 6px;
}

.model-toggle-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(76, 89, 135, 0.76);
}

.model-toggle-options {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.model-toggle-option {
  border: 1px solid rgba(205, 212, 232, 0.92);
  background: rgba(255, 255, 255, 0.9);
  color: #4b5a86;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.model-toggle-option.is-active {
  background: linear-gradient(145deg, #ff2a83, #d40967);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(214, 29, 108, 0.22);
}

.model-toggle-option:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.chat-widget.chat-widget-shortcode {
  width: min(100%, 1240px);
  margin: 0 auto;
}


.input-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 11px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(223, 227, 239, 0.95);
  box-shadow: 0 16px 44px rgba(22, 31, 64, 0.08);
}

.input-shell-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(250, 226, 237, 0.9), rgba(247, 241, 255, 0.92));
  color: #e61772;
}

.input-shell-icon::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 15px;
  height: 15px;
  border: 2.4px solid currentColor;
  border-radius: 999px;
}

.input-shell-icon::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 32px;
  width: 8px;
  height: 2.4px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.input-shell textarea {
  width: 100%;
  min-width: 0;
  resize: none;
  box-sizing: border-box;
  min-height: 30px;
  padding: 10px 0;
  font-family: 'Libre Franklin', sans-serif;
  font-size: clamp(.72rem, 1.44vw, 1.16rem);
  font-weight: 500;
  letter-spacing: 0;
  color: #39456d;
}

.input-shell textarea::placeholder {
  color: #5b678f;
  opacity: 1;
}

#sendButton {
  position: relative;
  z-index: 4;
  justify-self: end;
  margin-left: auto;
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #c01768, #d40967);
  box-shadow: 0 20px 34px rgba(214, 29, 108, 0.3);
  pointer-events: auto;
}

#sendButton img {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
}

.chat-popular-questions {
  position: relative;
  z-index: 1;
  padding-top: 10px;
}

.chat-popular-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.chat-popular-heading h3 {
  margin: 0;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #151d4f;
}

.chat-popular-spark {
  color: #7c4dff;
  font-size: 1.8rem;
  line-height: 1;
}

.popular-question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.popular-question-card {
  min-height: 0;
  padding: 16px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 16px;
  text-align: left;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(223, 227, 239, 0.95);
  box-shadow: 0 18px 48px rgba(22, 31, 64, 0.06);
  cursor: pointer;
}

.popular-question-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.popular-question-icon img,
.message-quick-action-icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.popular-question-icon img.popular-question-icon-star {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(200%) saturate(100%) invert(78%) sepia(73%) saturate(500%) hue-rotate(3deg) ;
}

.popular-question-text {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: 0;
  color: #1a2358;
}

.popular-question-icon {
  grid-column: 1;
  grid-row: 1;
}

.popular-question-arrow {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  font-size: 2.2rem;
  color: #6f769c;
  line-height: 1;
}

.popular-question-card-purple .popular-question-icon {
  background: #efe5ff;
  color: #7a39ed;
}

.popular-question-card-pink .popular-question-icon {
  background: #ffe4f0;
  color: #d61d6c;
}

.popular-question-card-blue .popular-question-icon {
  background: #e4f1ff;
  color: #1473df;
}

.popular-question-card-green .popular-question-icon {
  background: #ddf8e6;
  color: #14a44d;
}

.chat-conversation-view {
  display: block;
}

.chat-conversation-view[hidden] {
  display: none;
}

.messages {
  min-height: 0;
  padding: 16px;
  gap: 24px;
  overflow: visible;
}

.message-row {
  gap: 22px;
}

.message-avatar {
  width: 64px;
  flex: 0 0 64px;
}

.message-avatar img,
.user-avatar-badge {
  width: 56px;
  height: 56px;
}

.message-avatar img {
  border: 1px solid rgba(248, 203, 225, 0.95);
  background: linear-gradient(180deg, rgba(255, 247, 251, 0.98), rgba(254, 239, 247, 0.98));
}

.message-avatar-user {
  display: flex;
  justify-content: flex-end;
}

.user-avatar-badge {
  position: relative;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 249, 252, 0.98), rgba(238, 240, 246, 0.98));
  border: 1px solid rgba(223, 227, 239, 0.95);
  overflow: hidden;
}

.user-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  background: none;
}

.user-avatar-badge-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(233, 220, 255, 0.98) 100%);
  border-color: rgba(248, 203, 225, 0.98);
}

.user-avatar-initial {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  color: #b3155a;
  text-transform: uppercase;
}

.user-avatar-head,
.user-avatar-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #98a0bb;
}

.user-avatar-head {
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.user-avatar-body {
  bottom: 11px;
  width: 30px;
  height: 15px;
  border-radius: 30px 30px 18px 18px;
}

.message-content {
  max-width: min(1000px, calc(100% - 90px));
  gap: 14px;
}

.message-meta {
  gap: 18px;
  font-size: 0.78rem;
  padding-left: 0;
}

.message-time {
  color: #8088ab;
  font-weight: 500;
}

.message-user .message-meta {
  color: #131b4d;
  font-weight: 800;
}

.message-bubble {
  padding: 28px 42px;
  border-radius: 30px;
  border: 1px solid rgba(223, 227, 239, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(22, 31, 64, 0.06);
  color: #131b4d;
  line-height: 1.56;
  font-size: 0.95rem;
  font-weight: 500;
}

.message-bot .message-bubble {
  background: rgba(255, 255, 255, 0.98);
  border-color: #d9deea;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  color: #131b4d;
}

.message-user .message-row {
  justify-content: flex-end;
}

.message-user .message-content {
  align-items: flex-end;
}

.message-user .message-bubble {
  min-width: 260px;
  padding: 16px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 249, 252, 0.98), rgba(238, 240, 246, 0.98));
}

.message-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.message-quick-action {
  min-height: 54px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  border: 1px solid rgba(223, 227, 239, 0.95);
  background: rgba(255, 255, 255, 0.98);
  color: #1c2558;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  box-shadow: 0 12px 28px rgba(22, 31, 64, 0.05);
  cursor: pointer;
}

.message-quick-action:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(192, 23, 104, 0.24);
}

.message-quick-action:focus-visible {
  outline: 2px solid rgba(214, 29, 108, 0.34);
}

.message-quick-action-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.message-quick-action-icon img {
  width: 14px;
  height: 14px;
}

.message-quick-action-icon img.message-quick-action-badge-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.message-quick-action-icon:has(img.message-quick-action-badge-img) {
  background: transparent;
}

.message-quick-action-label {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.34;
}

.message-quick-action-purple {
  border-color: #cdb8ff;
  color: #6d35d9;
  background: #fbf8ff;
}

.message-quick-action-purple .message-quick-action-icon {
  background: #efe5ff;
}

.message-quick-action-pink {
  border-color: #f3bdd8;
  color: #c01768;
  background: #fff8fb;
}

.message-quick-action-pink .message-quick-action-icon {
  background: #ffe4f0;
}

.message-quick-action-blue {
  border-color: #bdd8ff;
  color: #1473df;
  background: #f8fbff;
}

.message-quick-action-blue .message-quick-action-icon {
  background: #e4f1ff;
}

.message-quick-action-green {
  border-color: #bdebd5;
  color: #078b4a;
  background: #f8fffb;
}

.message-quick-action-green .message-quick-action-icon {
  background: #ddf8e6;
}

.message-quick-action-gray {
  border-color: #dfe3ef;
  color: #6d748a;
  background: #ffffff;
}

.message-quick-action-gray .message-quick-action-icon {
  background: #f4f5f8;
}

.chat-widget.is-conversation .chat-widget-shell {
  overflow-x: clip;
}

.chat-widget.is-conversation .chat-form {
  order: 3;
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding-top: 8px;
  background: transparent;
  width: 100%;
}

.chat-widget.is-conversation .chat-conversation-view {
  order: 2;
}

.chat-widget.is-conversation .form-footer {
  order: 5;
}

.chat-widget.is-conversation .input-shell {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 18px;
  gap: 12px;
  border-radius: 22px;
  box-shadow: none;
}

.chat-widget.is-conversation .input-shell-icon {
  display: none;
}

.chat-widget.is-conversation .input-shell textarea {
  width: 100%;
  min-width: 0;
  max-width: none;
  font-size: 0.8rem;
}

.chat-widget.is-conversation #sendButton {
  width: 34px;
  height: 34px;
  box-shadow: none;
}

.chat-widget.is-conversation #sendButton img {
  width: 14px;
  height: 14px;
}

@media (max-width: 1100px) {
  .popular-question-grid,
  .message-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .chat-start-intro {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .chat-start-copy {
    text-align: center;
  }

  .chat-start-visual {
    min-height: 220px;
  }

  .message-avatar {
    width: 88px;
    flex-basis: 88px;
  }

  .message-avatar img,
  .user-avatar-badge {
    width: 72px;
    height: 72px;
  }

  .message-content {
    max-width: min(1000px, calc(100% - 110px));
  }

  .message-bubble {
    padding: 24px 24px;
    font-size: 1rem;
  }

  .chat-widget.chat-widget-shortcode .chat-start-intro {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .chat-widget.chat-widget-shortcode .chat-start-copy h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }
}

@media (max-width: 640px) {
  .chat-section {
    margin-top: -64px;
  }

  .chat-section.chat-section-only {
    margin-top: 0;
    padding-top: 0px;
  }

  .chat-widget-shell {
    gap: 20px;
  }

  .chat-start-copy h2 {
    font-size: 2.3rem;
    white-space: normal;
    text-align: center;
  }

  .chat-start-copy h2 .chat-start-nowrap {
    display: block;
  }

  .chat-start-copy p {
    font-size: 1.05rem;
    text-align: center;
  }

  .chat-start-kicker {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    font-size: 0.82rem;
  }

  .chat-start-lead {
    font-size: 1.12rem;
    text-align: center;
  }

  .chat-widget.chat-widget-shortcode {
    width: 100%;
  }

  .chat-widget.chat-widget-shortcode .chat-widget-shell {
    padding: 10px;
    gap: 16px;
  }

  .chat-widget.chat-widget-shortcode .chat-start-intro {
    padding: 22px 16px;
    gap: 0px;
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .chat-widget.chat-widget-shortcode .chat-start-copy {
    width: 100%;
    margin: 0 auto;
    text-align: center !important;
  }

  .chat-widget.chat-widget-shortcode .chat-start-copy p,
  .chat-widget.chat-widget-shortcode .chat-start-copy h2,
  .chat-widget.chat-widget-shortcode .chat-start-kicker,
  .chat-widget.chat-widget-shortcode .chat-start-lead {
    text-align: center !important;
  }

  .chat-widget.chat-widget-shortcode .chat-start-visual {
    min-height: 180px;
  }

  .chat-widget.chat-widget-shortcode .chat-start-visual img {
    width: min(100%, 220px);
  }

  .chat-widget.chat-widget-shortcode .chat-start-kicker {
    gap: 10px;
    font-size: 0.75rem;
  }

  .chat-widget.chat-widget-shortcode .chat-start-copy h2 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .chat-widget.chat-widget-shortcode .chat-start-lead {
    font-size: 1rem;
  }

  .helper-inline {
    text-align: center;
  }

  .input-shell {
    padding: 8px 14px 8px 16px;
    gap: 12px;
  }

  .input-shell-icon {
    width: 42px;
    height: 42px;
  }

  .input-shell-icon::before {
    left: 14px;
    top: 13px;
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .input-shell-icon::after {
    left: 24px;
    top: 25px;
    width: 7px;
    height: 2px;
  }

  #sendButton {
    width: 35px;
    height: 35px;
  }

  .popular-question-grid,
  .message-quick-actions {
    grid-template-columns: 1fr;
  }

  .message-quick-action-label {
    font-size: 0.75rem;
  }

  .popular-question-card {
    min-height: 0;
    padding: 18px 20px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 14px;
  }

  .popular-question-card .popular-question-text {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    font-weight: 700;
  }

  .popular-question-card .popular-question-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .popular-question-card .popular-question-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .messages {
    overflow: auto;
    padding: 8px 6px 6px;
    gap: 14px;
  }

  .message-row {
    gap: 8px;
  }

  .message-avatar {
    width: 36px;
    flex-basis: 36px;
    flex: 0 0 36px;
  }

  .message-avatar img,
  .user-avatar-badge {
    width: 32px;
    height: 32px;
  }

  .user-avatar-head {
    top: 6px;
    width: 12px;
    height: 12px;
  }

  .user-avatar-body {
    bottom: 6px;
    width: 22px;
    height: 12px;
  }

  .message-content {
    flex: 1 1 auto;
    max-width: calc(100% - 44px);
  }

  .message-user .message-content {
    align-items: flex-end;
  }

  .message-bubble.thinking-bubble {
    align-self: flex-start;
    width: auto;
  }

  .message-meta {
    gap: 8px;
    font-size: 0.82rem;
  }

  .message-bubble {
    font-size: 0.9rem;
    padding: 12px 14px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .message-user .message-bubble {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding: 12px 14px;
  }

  .user-avatar-initial {
    font-size: 1rem;
  }
}
