@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Anton-Regular.woff2") format("woff2");
}

:root{
  --newton-blue: #123263;
  --newton-paper: #fbfcff;
  --newton-left-column: #FFDD1E;
  --newton-right-column: #782377;
  --newton-browse-accent: #007C96;
  --newton-heading-font: "Anton", sans-serif;
}

h2{
  font-size: clamp(25px, 1.563rem + ((1vw - 3.2px) * 1.294), 36px);;
}

.newton-cta-panel__overlay {
  position: fixed;
  z-index: 1043;
  inset: 0;
  visibility: hidden;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh;
  height: 100dvh;
  margin: 0 !important;
  opacity: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.newton-cta-panel__overlay.visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.newton-cta-panel {
  position: fixed;
  z-index: 1045;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: calc(100vw - 2rem);
  max-width: 640px;
  margin: 0;
  padding: 1.50rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  color: var(--newton-blue);
  background: var(--newton-paper);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(100% + 1rem), 0, 0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  container-name: newton-panel;
  container-type: inline-size;
}

.newton-cta-panel,
.newton-cta-panel *,
.newton-cta-panel *::before,
.newton-cta-panel *::after {
  box-sizing: border-box;
}

.newton-cta-panel[aria-hidden=false] {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.newton-cta-panel [hidden] {
  display: none !important;
}

/* ==========================================================
   AREA 2: Persistent heading, close control and introduction
   ========================================================== */
.newton-cta-panel__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.25rem;
}

.newton-cta-panel__header-copy {
  flex: 1 1 auto;
  min-width: 0;
}


.newton-cta-panel__title {
  margin: 0;
  color: var(--newton-blue);
  font-family: var(--newton-heading-font);
  font-weight: 400;
  font-variation-settings: initial;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.demo-card h1{
font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--newton-heading-font);
  font-weight: 400;
  font-variation-settings: initial;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.newton-cta-panel__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0;
  padding: 0.575rem;
  border: 0;
  border-radius: 50%;
  color: var(--newton-blue);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.newton-cta-panel__close svg.close-cross {
  display: block;
  width: 100%;
  height: 100%;
}

.newton-cta-panel__close:hover {
  color: #fff;
  background: #007f78;
}

.newton-cta-panel__intro {
  flex: 0 0 auto;
  padding-bottom: 2rem;
}

.newton-cta-panel__intro p {
  margin: 0;
  /*font-size: 1rem;*/
  line-height: 1.55;
}

.newton-cta-panel__intro--dismissed {
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================
   AREA 3: Scrollable chooser
   ========================================================== */
.newton-cta-panel__chooser {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 0.25rem 0.375rem 0.5rem;
}

/* ==========================================================
   AREA 3A: Support cards
   ========================================================== */
.newton-cta-panel__cards {
  display: grid;
  /*grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);*/
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.6rem;
}

.newton-cta-panel__card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.newton-cta-panel__card--peer {
  color: var(--newton-blue);
  background: var(--newton-left-column);
}

.newton-cta-panel__card--advisor {
  color: #fff;
  background: var(--newton-right-column);
}

.newton-cta-panel__card-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: #28677d;
}

.newton-cta-panel__card-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.newton-cta-panel__card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.25rem;
  padding: clamp(1.25rem, 3vw, 3.25rem);
}

.newton-cta-panel__card-title,
.newton-cta-panel__browse-title {
  margin: 0;
  color: inherit;
  font-family: var(--newton-heading-font);
  /*font-size: 1.65rem;*/
  font-weight: 400;
  font-variation-settings: initial;
  line-height: 1.15;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.newton-cta-panel__card-description {
  margin: 0;
  color: inherit;
  /*font-size: 1rem;*/
  line-height: 1.5;
}

/* Shared underlined card buttons and portal link. */
.newton-cta-panel .newton-cta-panel__text-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
  /*font-size: 1rem;*/
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}

.newton-cta-panel__text-action > span:first-child {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.newton-cta-panel .newton-cta-panel__text-action:hover {
  color: inherit;
  background: transparent;
  border-bottom-width: 3px;
  padding-bottom: calc(0.25rem - 2px);
}

.newton-cta-panel__icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.newton-cta-panel__arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1.4em;
}

.newton-cta-panel__arrow-icon {
  display: block;
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
}

/* ==========================================================
   AREA 3B: UniBuddy status
   ========================================================== */
.newton-cta-panel__status {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border-left: 0.25rem solid var(--newton-blue);
  color: var(--newton-blue);
  background: #edf2f7;
  line-height: 1.5;
}

/* ==========================================================
   AREA 3C: AI disclaimer
   ========================================================== */
.newton-cta-panel__disclaimer {
  margin-top: 3.25rem;
  padding: 2.25rem 2.5rem;
  color: #fff;
  background: var(--newton-blue);
  text-align: center;
}

.newton-cta-panel__disclaimer p {
  max-width: 46rem;
  margin: 0 auto;
  /*font-size: 1rem;*/
  font-weight: 700;
  line-height: 1.55;
}

/* ==========================================================
   AREA 3D: "Or" divider
   ========================================================== */
.newton-cta-panel__divider {
  display: flex;
  align-items: center;
  gap: 2.125rem;
  margin: 2.25rem 0;
  color: var(--newton-blue);
  font-size: 1.125rem;
  font-weight: 600;
}

.newton-cta-panel__divider::before,
.newton-cta-panel__divider::after {
  flex: 1 1 auto;
  height: 1px;
  background: #b8bec5;
  content: "";
}

.newton-cta-panel__divider span {
  flex: 0 0 auto;
}

/* ==========================================================
   AREA 3E: Browse UniHelp
   ========================================================== */
.newton-cta-panel__browse {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 1rem solid var(--newton-browse-accent);
  color: var(--newton-blue);
}

.newton-cta-panel__browse-description {
  margin: 0;
  /*font-size: 1rem;*/
  line-height: 1.6;
}

/* ==========================================================
   AREA 4: Existing agent view
   ========================================================== */
.newton-cta-panel__agent-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
  min-height: 0;
}

.newton-cta-panel .newton-cta-panel__back {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0.5rem;
  border: 0;
  border-radius: 50%;
  color: var(--newton-blue);
  background: transparent;
  cursor: pointer;
}

.newton-cta-panel .newton-cta-panel__back:hover {
  color: #fff;
  background: #007f78;
}

.newton-cta-panel__back svg {
  display: block;
  width: 100%;
  height: 100%;
}

.newton-cta-panel__frame-wrap {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d5dbe0;
  border-radius: 0.75rem;
  background: #fff;
}

.newton-cta-panel__loader {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.875rem;
  color: var(--newton-blue);
  background: #fff;
  /*font-size: 1rem;*/
}

.newton-cta-panel__loader-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5ebee;
  border-top-color: #007f78;
  border-radius: 50%;
  animation: newton-panel-loader-spin 0.8s linear infinite;
}

@keyframes newton-panel-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .newton-cta-panel__loader-spinner {
    animation-duration: 2.5s;
  }
}
.newton-cta-panel__iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: #f6f6f6;
}

/* ==========================================================
   AREA 6: Shared keyboard focus
   ========================================================== */
.newton-cta-panel__close:focus-visible,
.newton-cta-panel .newton-cta-panel__text-action:focus-visible,
.newton-cta-panel .newton-cta-panel__back:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.newton-cta-panel .newton-cta-panel__back:focus-visible {
  outline-color: var(--newton-blue);
}

.newton-cta-panel.is-transition-disabled,
.newton-cta-panel.is-transition-disabled + .newton-cta-panel__overlay {
  transition: none !important;
}

/* ==========================================================
   AREA 7: Existing UniBuddy visibility integration
   ========================================================== */
#unibuddy-assistant-cta-container {
  display: none !important;
}

.newton-cta-panel__frame-wrap #unibuddy-assistant-chat-container {
  position: relative !important;
  inset: auto !important;
  display: flex;
  flex: 1 1 auto;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#unibuddy-assistant-chat-container[hidden] {
  display: none !important;
}

/* ==========================================================
   AREA 8: Responsive layout
   ========================================================== */
@container newton-panel (min-width: 36rem) {
  .newton-cta-panel__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 46.25em) {
  .newton-cta-panel {
    top: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(64rem, 100vw - 3rem);
    transform: translate3d(calc(100% + 1.5rem), 0, 0);
  }
  .newton-cta-panel[aria-hidden=false] {
    transform: translate3d(0, 0, 0);
  }
}
@media (max-height: 35rem) {
  .newton-cta-panel {
    padding: 1rem;
  }
  .newton-cta-panel__header,
  .newton-cta-panel__intro {
    padding-bottom: 0.75rem;
  }
  .newton-cta-panel__title {
    font-size: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .newton-cta-panel,
  .newton-cta-panel__overlay {
    transition: none;
  }
}
