:root {
  --on-primary: #ffffff;

  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5dc;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #1e293b;
  --gray-800: #141c2e;
  --gray-900: #0c1222;
  --gray-950: #060a14;

  --red-700: rgb(193, 0, 7);

  --surface: rgba(16, 132, 133, 0.15);
  --surface-blue: rgba(8, 122, 153, 0.15);
  --surface-blue-subtle: rgba(8, 122, 153, 0.08);
  --surface-hover: rgba(16, 132, 133, 0.8);
  --border-subtle: rgba(8, 122, 153, 0.08);
  --border-hover: rgba(16, 132, 133, 0.15);
  --glow-primary: rgba(16, 132, 133, 0.15);

  --light-primary-50: #e7f3f3;
  --light-primary-100: #cfe6e7;
  --light-primary-200: #9fcece;
  --light-primary-300: #70b5b6;
  --light-primary-400: #409d9d;
  --light-primary-500: #108485;
  --light-primary-600: #0d6a6a;
  --light-primary-700: #0a4f50;
  --light-primary-800: #063535;
  --light-primary-900: #020d0d;

  --light-mode-primary: #108485;
  --light-mode-blue: rgb(8, 122, 153);

  --app-bg: var(--gray-100);
  --text-primary: var(--gray-900);
  --text-secondary: var(--on-primary);
  --text-error: var(--red-700);

  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --container-width: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button,
input,
textarea,
select {
  font: inherit;
}
html {
  height: 100%;
}

body {
  font-family:
    'Montserrat',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;

  background-image: url('../../static/resources/img/page-bg-v2.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  min-height: 100vh;
  line-height: 1.6;

  height: 100%;
  margin: 0;

  display: flex;
  flex-direction: column;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ===== LAYOUT ===== */

.main-container {
  position: relative;
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-primary);
}

.page-header {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
}

.chat-page {
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 4vw, 2rem) 0.5rem;

  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 0.9) 70%,
    rgba(255, 255, 255, 0.4)
  );
  /* background-color: #ffffff90; */
}

/* ===== FACULTY FILTERS ===== */

.chat-filters {
  width: min(100%, 980px);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.chat-filter-group {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.chat-filter-group .ts-wrapper {
  font-family: inherit;
  font-size: 0.875rem;
}

.chat-filter-group .ts-control {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  padding: 0.375rem 0.5rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.chat-filter-group .ts-wrapper.focus .ts-control {
  border-color: var(--light-mode-primary);
  box-shadow: 0 0 0 3px var(--glow-primary);
}

.chat-filter-group .ts-control .item {
  background: var(--light-primary-100);
  color: var(--light-primary-700);
  border-radius: 9999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.chat-filter-group .ts-control .item .remove {
  color: var(--light-primary-600);
  border-left: none;
  font-size: 1rem;
}

.chat-filter-group .ts-control .item .remove:hover {
  color: var(--gray-900);
  background: transparent;
}

.chat-filter-group .ts-dropdown {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.chat-filter-group .ts-dropdown .option {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.chat-filter-group .ts-dropdown .active {
  background: var(--surface);
  color: var(--text-primary);
}

.chat-wrapper {
  width: min(100%, 980px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== CHAT BOX ===== */

.chat-container {
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== MESSAGES ===== */

.msg {
  font-size: 1rem;
  line-height: 1.65;
}

.msg.bot {
  background: transparent;
  color: var(--text-primary);
  justify-self: flex-start;

  padding-left: 1rem;
  border-left: 2px solid var(--light-mode-blue);

  &.markdown {
    p {
      margin: 0.75rem 0;
    }

    a {
      color: var(--light-mode-blue);
      text-decoration: underline;

      &:hover {
        color: var(--light-mode-blue);
      }
    }

    hr {
      border: 1px solid var(--surface);
    }
  }
}

.msg.user {
  background: var(--surface);
  color: var(--text-primary);
  margin-left: auto;
  justify-self: flex-end;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--border-subtle);
}

[data-chat-state][data-inactive='true'] {
  opacity: 0.65;
  pointer-events: none;
}

[data-chat-state][data-inactive='true'] button,
[data-chat-state][data-inactive='true'] input,
[data-chat-state][data-inactive='true'] select,
[data-chat-state][data-inactive='true'] textarea,
[data-chat-state][data-inactive='true'] .checkbox-item {
  cursor: not-allowed;
}

/* subject tiles */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.subject-tile {
  position: relative;

  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.02em;

  grid-column: span 3 / span 3;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

  cursor: pointer;

  &:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .checkmark {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    height: 1.375rem;
    width: 1.375rem;
    background: transparent;
    border: 1.5px solid var(--app-bg);
    border-radius: 9999px;

    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      background 0.2s ease,
      border-color 0.2s ease;
  }

  &[data-active='true'] {
    background: var(--light-mode-primary);
    border-color: var(--border-subtle);
    color: var(--on-primary);
    box-shadow: 0 0 20px var(--glow-primary);

    .checkmark {
      border-color: var(--gray-300);
      background: var(--light-mode-primary);
    }
  }

  &.subject-tile--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }
}

.check-icon {
  color: var(--app-bg);
}

/* ===== CHECKBOX LIST ===== */

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;

  &:hover {
    border-color: var(--border-hover);
    background: var(--surface-blue);
  }

  &:has(.checkbox-input:checked) {
    border-color: var(--light-mode-primary);
    background: var(--surface-blue);
  }
}

.checkbox-input {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  margin-top: 0.125rem;
  border: 1.5px solid var(--gray-400);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;

  &:checked {
    background: var(--light-mode-primary);
    border-color: var(--light-mode-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.875rem;
  }
}

.checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.checkbox-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.checkbox-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.matura-exam-options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  align-items: center;
}

.matura-exam-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.matura-exam-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-width: 11rem;
  min-height: 10rem;
  padding: 1.25rem 1rem;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(6, 10, 20, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;

  &:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 32px rgba(6, 10, 20, 0.12);
    background: var(--app-bg);
  }

  &[data-active='true'] {
    background: var(--surface-hover);
    border-color: transparent;
    color: var(--on-primary);
    box-shadow: 0 0 24px var(--glow-primary);
  }

  &:disabled {
    pointer-events: none;
    opacity: 0.6;
  }
}

.matura-exam-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);

  > svg {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.matura-exam-btn[data-active='true'] .matura-exam-btn__icon {
  background: rgba(255, 255, 255, 0.9);
}

.matura-exam-btn__label {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.matura-exam-skip-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);

  &:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(6, 10, 20, 0.1);
    transform: translateY(-1px);
  }

  &[data-active='true'] {
    background: var(--surface-hover);
    border-color: transparent;
    color: var(--on-primary);
    box-shadow: 0 0 18px var(--glow-primary);
  }

  &:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
  }
}

.matura-exam-options-container > .options-container {
  align-self: stretch;
  width: 100%;
}

/* ===== OPTIONS ===== */

.options-container {
  display: flex;
  flex-direction: column;
}

.options {
  display: flex;
  gap: 0.625rem;
  justify-content: flex-end;
}

.options button {
  padding: 0.75rem 1.5rem;

  background: var(--light-mode-blue);
  color: var(--on-primary);

  border-radius: var(--radius-md);
  border: none;

  font-weight: 500;
  font-size: 0.9375rem;
  font-family: inherit;
  letter-spacing: 0.01em;

  cursor: pointer;

  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

  &:hover {
    box-shadow: 0 4px 12px var(--light-mode-blue);
    transform: translateY(-1px);
  }

  &:active {
    transform: translateY(0);
  }
}

.options button.active {
  background: var(--light-mode-primary);
  color: #ffffff;
}

.options button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.options-error {
  color: var(--text-error);
  font-size: 0.875rem;
  text-align: right;
  padding-right: 0.25rem;
}

/* ===== PROGRAM SECTION ===== */

.program-section-title {
  margin-top: 2rem;
  margin-bottom: 0.75rem;

  display: flex;
  align-items: center;
  gap: 0.5rem;

  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;

  color: var(--text-primary);

  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.625rem;
}

/* ===== PROGRAM GRID ===== */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.625rem;

  padding: 1.25rem;

  border-radius: var(--radius-xl);

  background: var(--surface);
  color: var(--text-primary);

  border: 1px solid var(--border-subtle);

  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.program-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.program-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.program-faculty {
  font-size: 0.8125rem;
  color: var(--light-mode-blue);
  margin-bottom: 10px;
}

.program-match {
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.match-bar {
  height: 6px;
  background: var(--border-hover);
  border-radius: 6px;
  margin-top: 6px;
  overflow: hidden;
}

.match-fill {
  height: 6px;
  border-radius: 6px;

  background: linear-gradient(90deg, var(--surface), var(--light-mode-blue));
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-meta {
  font-size: 0.875rem;
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.program-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.program-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 2.125rem;
  height: 2.125rem;

  border-radius: var(--radius-sm);

  background: var(--light-mode-blue);
  color: var(--text-secondary);

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;

  > svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.program-links a:hover {
  background: var(--light-mode-primary);
  transform: scale(1.08);
}

/* ===== NAVBAR ===== */

.navbar {
  background: rgba(6, 10, 20, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-container {
  max-width: 1600px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1rem 2rem;
}

.navbar-logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.15s ease;

  &:hover {
    color: var(--light-primary-300);
  }
}

/* ===== FOOTER ===== */

.footer {
  /* background-image: url('../static/resources/img/small-bg-15.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right; */

  background-color: var(--gray-600);

  color: #fff;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem 0;
}

.footer-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  background-image: url('../../static/resources/img/footer-art-hollow.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;

  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 1.5rem;
}

.footer-grid-item {
  grid-column: span 3 / span 3;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logos-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;

  > a {
    text-decoration: none;
    object-fit: contain;
  }
}

.footer-logo {
  height: 60px;
  width: 60px;
}

.footer-logo-cr {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  align-self: center;

  font-size: 1rem;
  font-weight: 600;
  color: white;

  &:hover {
    text-decoration: underline;
  }
}

.footer-logo-svg-link {
  > svg {
    height: 60px;
    fill: white;
  }
}

.footer-list-item {
  border-left: 1px solid var(--gray-500);
  padding: 0.25rem 0.75rem;

  > a {
    color: white;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.survey-link {
  position: absolute;
  left: 100%;
  top: -1rem;

  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  text-decoration: none;

  opacity: 0;

  transition: opacity 0.5s ease;

  .survey-link-description-finished {
    display: none;
  }

  &.active {
    opacity: 0.85;
  }

  &[data-finished='finished'] {
    position: static;
    gap: 0;

    transition: all 0.2s ease;

    .survey-link-description {
      display: none;
    }
    .survey-link-description-finished {
      display: flex;
      align-items: center;
      padding-right: 1rem;
      height: 2.5rem;

      background-color: var(--light-mode-blue);
      color: var(--on-primary);
      font-size: 0.875rem;
      border-radius: 0 var(--radius-full) var(--radius-full) 0;
    }

    .survey-link-icon-container {
      border-radius: var(--radius-full) 0 0 var(--radius-full);

      padding-left: 1.25rem;
      padding-right: 1rem;

      > svg {
        flex-shrink: 0;
      }
    }

    &:hover {
      transform: scale(1.08);
    }
  }
}

.survey-link-icon-container {
  background-color: var(--light-mode-blue);
  color: var(--on-primary);
  width: 2.5rem;
  height: 2.5rem;

  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: none;

  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

  &:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--light-mode-blue);
  }
}

.survey-link-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.survey-link-description {
  background-color: var(--light-mode-blue);
  opacity: 0.85;
  color: var(--on-primary);
  font-size: 0.875rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.chat-input-sticky {
  position: sticky;
  bottom: 2rem;
  right: 0;
  z-index: 40;
  width: 100%;
}

.chat-input-row {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform-origin: right center;
}

.chat-input-bar {
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 9999px;
  background: #e7f3f398;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--border-subtle);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;

  &:focus-within {
    border-color: var(--border-subtle);
    background: var(--light-primary-50);
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.3),
      0 0 20px var(--glow-primary);
  }
}

.chat-input-row[data-maximized='minimized'] {
  .chat-input-bar {
    display: none;
  }

  .chat-reset-btn {
    margin-right: 0;
    width: auto;
    padding: 0 1rem;

    > span {
      display: block;
      font-size: 0.875rem;
    }
  }
}

.chat-input-row[data-maximized='maximized'] {
  .chat-input-bar {
    display: flex;
  }
}

.chat-input-textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 1.25rem 1.75rem;
  resize: none;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.chat-input-textarea::placeholder {
  color: rgba(106, 114, 130, 0.5);
}

.chat-input-textarea:disabled {
  cursor: not-allowed;
  color: var(--light-primary-100);
}

.chat-send-btn {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.75rem;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9999px;
  border: none;
  background: var(--light-mode-blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--border-subtle);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;

  > svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  &:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(8, 122, 153, 0.4);

  &:disabled {
    transform: none;
    box-shadow: none;
  }
}

.chat-send-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(8, 122, 153, 0.2);
}

.chat-reset-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: none;
  background: var(--gray-500, #6b7280);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--border-subtle);
  transition: all 0.2s ease;
  flex-shrink: 0;

  > span {
    display: none;
  }

  & > svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.chat-reset-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(107, 114, 128, 0.4);
}

.chat-reset-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(107, 114, 128, 0.2);
}

.chat-input-disclaimer {
  text-align: center;
  font-size: 10px;
  color: rgba(106, 114, 130, 0.4);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  .chat-box {
    height: 260px;
  }

  .footer-grid-item {
    grid-column: span 12 / span 12;
  }

  .subject-tile {
    grid-column: span 6 / span 6;
    font-size: 0.875rem;
  }

  .chat-input-row {
    gap: 0.5rem;
  }

  .chat-input-textarea {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
  }

  .chat-send-btn {
    width: 2rem;
    height: 2rem;

    > svg {
      width: 1rem;
      height: 1rem;
    }
  }

  .footer-container {
    font-size: 0.875rem;
    background-image: none;
  }
}

@media (max-width: 1100px) {
  .survey-link {
    top: -2.5rem;
    left: -0.375rem;
  }

  .survey-link-description {
    display: none;
  }

  .footer-logos {
    align-items: center;
  }

  .footer-logos-row {
    justify-content: center;
  }
}

/* ===== BOT TYPING ===== */

.typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
}

.typing span {
  width: 6px;
  height: 6px;

  background: #999;
  border-radius: 50%;

  animation: typing 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

/* shared */
.btn-primary {
  padding: 0.75rem 1.5rem;

  background: var(--light-mode-blue);
  color: var(--on-primary);

  border-radius: var(--radius-md);
  border: none;

  font-weight: 500;
  font-size: 0.9375rem;
  font-family: inherit;
  letter-spacing: 0.01em;

  cursor: pointer;

  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

  &:hover {
    box-shadow: 0 4px 12px var(--light-mode-blue);
    transform: translateY(-1px);
  }

  &:active {
    transform: translateY(0);
  }

  &:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
  }
}

@keyframes typing {
  0% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
}
