/* The Student Care: website chat assistant (works with js/tsc-chat.js). Brand: #c92127 / #821910, Teko + Karla. */
.tscc, .tscc * { box-sizing: border-box; }
.tscc { --red: #c92127; --red-d: #9d1a1f; --ink: #1b1b1f; --grey: #6b6b75; --line: #ece6e3; --bg: #f7f4f2; --green: #1e8e3e;
  position: fixed; right: 24px; bottom: var(--tscc-bottom, 24px); z-index: 1000; font-family: 'Karla', Arial, sans-serif; font-size: 15px; line-height: 1.45; color: var(--ink); }

/* Launcher: the collapsed card */
.tscc-launch { display: flex; align-items: center; gap: 12px; width: 340px; max-width: calc(100vw - 32px); padding: 14px 14px 14px 16px; border: 0; border-radius: 16px 16px 4px 16px;
  background: linear-gradient(120deg, #2a0d0f, #821910 60%, #a51d23); color: #fff; cursor: pointer; text-align: left; box-shadow: 0 14px 34px rgba(60,10,10,.32); }
.tscc-launch:hover { filter: brightness(1.08); }
.tscc-av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  font: 700 15px/1 'Karla', Arial, sans-serif; letter-spacing: .04em; border: 2px solid rgba(255,255,255,.85); }
.tscc-launch b { display: block; font-size: 17px; }
.tscc-launch small { display: block; font-size: 13.5px; opacity: .9; }
.tscc-launch .tscc-ico { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.tscc-launch .tscc-ico svg { width: 20px; height: 20px; }
.tscc-dot { position: absolute; left: 50px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; border: 2px solid #2a0d0f; }
.tscc-dot.off { background: #f0b429; }

/* Teaser bubble */
.tscc-teaser { position: absolute; right: 0; bottom: calc(100% + 10px); width: 280px; background: #fff; color: var(--ink); border-radius: 14px 14px 4px 14px; padding: 12px 34px 12px 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18); font-size: 14.5px; cursor: pointer; animation: tscc-pop .3s ease; }
.tscc-teaser button { position: absolute; top: 6px; right: 6px; border: 0; background: none; font-size: 16px; color: var(--grey); cursor: pointer; padding: 2px 6px; }

/* Panel */
.tscc-panel { position: absolute; right: 0; bottom: 0; width: 380px; max-width: calc(100vw - 32px); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 22px 60px rgba(30,5,5,.35); animation: tscc-pop .25s ease; }
.tscc-panel[hidden], .tscc-launch[hidden], .tscc-teaser[hidden] { display: none; }
@keyframes tscc-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tscc-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(120deg, #2a0d0f, #821910 60%, #a51d23); color: #fff; }
.tscc-head .tscc-av { width: 44px; height: 44px; }
.tscc-head b { display: block; font-size: 17px; }
.tscc-head small { display: block; font-size: 13px; opacity: .92; }
.tscc-close { margin-left: auto; flex: none; border: 0; background: none; color: #fff; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; }
.tscc-close:hover { background: rgba(255,255,255,.14); }

.tscc-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--bg); scroll-behavior: smooth; }
.tscc-msg { max-width: 88%; margin: 0 0 10px; padding: 11px 14px; border-radius: 14px; white-space: pre-line; word-wrap: break-word; }
.tscc-msg.bot { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.tscc-msg.me { margin-left: auto; background: var(--red); color: #fff; border-top-right-radius: 4px; }
.tscc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tscc-chip { border: 1.5px solid var(--red); color: var(--red); background: #fff; border-radius: 999px; padding: 7px 14px; font: 700 14px 'Karla', Arial, sans-serif; cursor: pointer; text-decoration: none; }
.tscc-chip:hover { background: var(--red); color: #fff; }
.tscc-chip.wa { border-color: var(--green); color: var(--green); }
.tscc-chip.wa:hover { background: var(--green); color: #fff; }
.tscc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; border-top-left-radius: 4px; margin-bottom: 10px; }
.tscc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #bbb; animation: tscc-b 1s infinite; }
.tscc-typing i:nth-child(2) { animation-delay: .15s; } .tscc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tscc-b { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Lead form inside the chat */
.tscc-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 12px; display: grid; gap: 9px; }
.tscc-form b { font-size: 15px; }
.tscc-form input, .tscc-form select { width: 100%; border: 1.5px solid #ddd; border-radius: 10px; padding: 10px 12px; font: 15px 'Karla', Arial, sans-serif; color: var(--ink); background: #fff; }
.tscc-form input:focus, .tscc-form select:focus { outline: none; border-color: var(--red); }
.tscc-form button { border: 0; background: var(--red); color: #fff; border-radius: 10px; padding: 11px; font: 700 15px 'Karla', Arial, sans-serif; cursor: pointer; }
.tscc-form button:disabled { opacity: .6; }
.tscc-form .tscc-err { color: #b71c1c; font-size: 13.5px; }
.tscc-form .tscc-fine { color: var(--grey); font-size: 12.5px; }
.tscc-hp { position: absolute; left: -9999px; }

.tscc-foot { border-top: 1px solid var(--line); padding: 12px 14px 8px; background: #fff; }
.tscc-input { display: flex; gap: 10px; align-items: center; }
.tscc-input input { flex: 1; min-width: 0; border: 1.5px solid #e2dcd9; border-radius: 999px; padding: 12px 18px; font: 15.5px 'Karla', Arial, sans-serif; color: var(--ink); }
.tscc-input input:focus { outline: none; border-color: var(--red); }
.tscc-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tscc-send:hover { background: var(--red-d); }
.tscc-send svg { width: 20px; height: 20px; }
.tscc-note { text-align: center; font-size: 12.5px; color: var(--grey); margin-top: 8px; }
.tscc-note a { color: var(--grey); }

/* Phones: round button, full-screen chat */
@media (max-width: 600px) {
  .tscc { right: 14px; }
  .tscc-launch { width: auto; padding: 10px; border-radius: 50%; }
  .tscc-launch .tscc-txt, .tscc-launch .tscc-ico { display: none; }
  .tscc-dot { left: 42px; top: 8px; }
  .tscc-teaser { width: 240px; }
  .tscc.is-open { inset: 0; right: 0; bottom: 0; }
  .tscc.is-open .tscc-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; }
  .tscc-input input { font-size: 16px; } /* stops iPhone zooming in */
}
@media (prefers-reduced-motion: reduce) { .tscc-panel, .tscc-teaser { animation: none; } .tscc-body { scroll-behavior: auto; } }

/* Live chat with a mentor */
.tscc-msg.staff small { display: block; font-weight: 700; color: var(--red); font-size: 12.5px; margin-bottom: 2px; }
.tscc-sys { text-align: center; color: var(--grey); font-size: 13px; margin: 4px 8px 12px; white-space: pre-line; }
.tscc-end { flex: none; margin-left: auto; border: 1px solid rgba(255,255,255,.55); background: none; color: #fff; border-radius: 999px; padding: 6px 12px; font: 700 13px 'Karla', Arial, sans-serif; cursor: pointer; }
.tscc-end:hover { background: rgba(255,255,255,.14); }
.tscc-end + .tscc-close { margin-left: 4px; }
.tscc-end[hidden] { display: none; }
.tscc-launch.tscc-ping { animation: tscc-ring 1s ease 3; }
@keyframes tscc-ring { 0%, 100% { transform: none; } 25% { transform: translateY(-4px); } 75% { transform: translateY(2px); } }
