.cello-hs-modal[aria-hidden="true"] { display: none; }
.cello-hs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cello-hs-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(16, 18, 27, 0.15) 0%, rgba(16, 18, 27, 0.55) 100%),
    var(--cello-hs-backdrop-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(6px);
}
.cello-hs-modal__panel {
  position: relative;
  width: min(1281px, calc(100vw - 32px));
  height: min(715px, calc(100vh - 32px));
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0px 1.852px 3.148px rgba(21, 0, 101, 0.08),
    0px 8.148px 6.519px rgba(21, 0, 101, 0.07),
    0px 20px 13px rgba(21, 0, 101, 0.06),
    0px 38.519px 25.481px rgba(21, 0, 101, 0.04);
}
.cello-hs-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(94, 94, 94, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: auto;
}
.cello-hs-modal__close:hover { color: rgba(94, 94, 94, 0.85); }
.cello-hs-modal__grid {
  display: grid;
  grid-template-columns: 640px 641px;
  height: 100%;
}
.cello-hs-modal__left {
  padding: 54px 52px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0; /* enables internal scrolling in flex/grid */
  overflow-y: hidden;
  overflow-x: visible;
}
.cello-hs-modal__right {
  padding: 54px 40px 40px;
  background: #f6f3ff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cello-hs-modal__title {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: 0;
  color: #252525;
  text-align: center;
  width: 640px;
  max-width: 100%;
}
.cello-hs-modal__subtitle {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: -8px 0 40px;
  color: #424242;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  width: 426px;
  max-width: 100%;
}

.cello-hs-modal--step-2 .cello-hs-modal__title,
.cello-hs-modal--step-2 .cello-hs-modal__subtitle {
  display: none;
}

.cello-hs-modal--step-2 .cello-hs-modal__left {
  padding-top: 54px;
  padding-bottom: 32px;
}

.cello-hs-modal--step-2 .cello-hs-form__footer {
  padding-top: 28px;
}

.cello-hs-form {
  width: 536px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.cello-hs-form__fields {
  flex: 1 1 auto;
  min-height: 0;
  /* 4px left padding = focus ring spread so it's never clipped
     (overflow-y:auto forces overflow-x to auto per CSS spec) */
  padding: 4px 0 24px 4px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: transparent transparent; /* hidden until hover */
}
.cello-hs-form__fieldsInner {
  padding-right: 16px; /* space between content and scrollbar */
  box-sizing: border-box;
  width: 100%;
}
.cello-hs-form__fields:hover {
  scrollbar-color: rgba(37, 37, 37, 0.28) transparent;
}
.cello-hs-form__fields::-webkit-scrollbar {
  width: 8px;
}
.cello-hs-form__fields::-webkit-scrollbar-track {
  background: transparent;
}
.cello-hs-form__fields::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 999px;
}
.cello-hs-form__fields:hover::-webkit-scrollbar-thumb {
  background-color: rgba(37, 37, 37, 0.22);
}
.cello-hs-form__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
/* Use flexible columns to avoid clipping when scrollbar gutter/padding is present */
.cello-hs-form__grid--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; width: 100%; }
.cello-hs-form__field { display: flex; flex-direction: column; gap: 8px; }
.cello-hs-form__label {
  font-family: "PolySans-Median", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: #5e5e5e;
}
.cello-hs-form__input,
.cello-hs-form__select {
  height: 48px;
  border-radius: 40px;
  border: 1px solid #ccc;
  padding: 0 32px;
  font-size: 14px;
  outline: none;
  background: #fff;
  font-family: "PolySans-Neutral", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.4;
  color: #252525;
}
.cello-hs-form__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 76px; /* leave room for chevron */
  text-overflow: ellipsis;
  background-clip: padding-box;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(94,94,94,0.9) 50%),
    linear-gradient(135deg, rgba(94,94,94,0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 39px) 50%,
    calc(100% - 33px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.cello-hs-form__input:focus,
.cello-hs-form__select:focus { border-color: rgba(112,78,241,0.55); box-shadow: 0 0 0 4px rgba(112,78,241,0.14); }
.cello-hs-form__error { min-height: 16px; font-size: 12px; color: #c0352b; }
.cello-hs-form__footer {
  margin-top: 0;
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  position: relative;
}
.cello-hs-form__step {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: "PolySans-Median", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: #5e5e5e;
  pointer-events: none;
}
.cello-hs-form__submit {
  min-width: 140px;
  border-radius: 40px;
  padding: 16px 32px;
  font-family: "PolySans-Bulky", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}
.cello-hs-form__status { margin-top: 12px; font-size: 13px; color: rgba(17,17,17,0.7); }
.cello-hs-form.is-hidden { display: none; }
.cello-hs-chilipiper { width: 536px; max-width: 100%; }
.cello-hs-thankyou {
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  padding-left: 80px;
  padding-right: 80px;
}
.cello-hs-thankyou[aria-hidden="true"] { display: none !important; }
.cello-hs-thankyou.is-active { display: block !important; }
.cello-hs-thankyou__title {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: #252525;
  margin: 0 0 38px;
  text-align: center;
}
.cello-hs-thankyou__content p {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #424242;
  margin: 0 0 16px;
  max-width: none;
}

/* When Chili Piper is shown, make the left column a proper embed container */
.cello-hs-modal--cp-active .cello-hs-modal__left {
  align-items: stretch;
}
.cello-hs-modal--cp-active .cello-hs-chilipiper {
  flex: 1 1 auto;
  min-height: 520px;
  width: 100%;
  max-width: 536px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cello-hs-modal--cp-active .cello-hs-chilipiper iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* Chili Piper popup embeds sometimes use fixed/fullscreen styles; constrain them */
.cello-hs-modal--cp-active .cello-hs-chilipiper .chilipiper-popup,
.cello-hs-modal--cp-active .cello-hs-chilipiper .chilipiper-popup-window {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  background: #ffffff !important;
}

/* Some Chili Piper embeds render a grey backdrop element */
.cello-hs-modal--cp-active .cello-hs-chilipiper [class*="backdrop"],
.cello-hs-modal--cp-active .cello-hs-chilipiper [class*="overlay"] {
  background: transparent !important;
}

/* Concierge router root sometimes carries the grey background */
.cello-hs-modal--cp-active .cello-hs-chilipiper [data-test-id^="concierge-"] {
  background: #ffffff !important;
}
.cello-hs-modal--cp-active .cello-hs-chilipiper [data-test-id^="concierge-"] > * {
  background: #ffffff !important;
}

.cello-hs-proof {
  width: 100%;
  max-width: 563px;
  background: #ffffff;
  border-radius: 28px;
  padding: 20px;
  color: #252525;
  box-shadow:
    0px 1.852px 3.148px rgba(21, 0, 101, 0.08),
    0px 8.148px 6.519px rgba(21, 0, 101, 0.07),
    0px 20px 13px rgba(21, 0, 101, 0.06),
    0px 38.519px 25.481px rgba(21, 0, 101, 0.04);
}
.cello-hs-proof__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.cello-hs-proof__company { font-weight: 700; font-size: 18px; }
.cello-hs-proof__badge {
  display: inline-flex;
  font-size: 11px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #424242;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0;
  font-family: "PolySans-Median", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  white-space: nowrap;
}
.cello-hs-proof__quote { margin-top: 18px; font-size: 14px; line-height: 1.4; }
.cello-hs-proof__person { margin-top: 18px; display: flex; gap: 12px; align-items: center; }
.cello-hs-proof__avatar {
  width: 41px;
  height: 41px;
  border-radius: 999px;
  background: rgba(112,78,241,0.25);
  overflow: hidden;
}
.cello-hs-proof__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cello-hs-proof__name { font-size: 14px; line-height: 1.4; }
.cello-hs-proof__role { font-size: 14px; line-height: 1.4; font-weight: 700; }
.cello-hs-proof__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.cello-hs-proof__statValue { font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: 0; }
.cello-hs-proof__statLabel { font-size: 14px; line-height: 1.4; }

.cello-hs-proof__logo {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 146px;
  height: 48px;
  pointer-events: none;
  opacity: 1;
}
.cello-hs-proof { position: relative; }
.cello-hs-proof__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.cello-hs-logos {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 20px;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}
.cello-hs-logos__logo { height: 22px; width: auto; }

@media (max-width: 960px) {
  .cello-hs-modal__panel { height: auto; max-height: calc(100vh - 32px); }
  .cello-hs-modal__grid { grid-template-columns: 1fr; }
  .cello-hs-modal__right { display: none; }
  .cello-hs-modal__left { padding: 40px 20px 28px; }
  .cello-hs-modal__title { font-size: 34px; width: 100%; }
  .cello-hs-form__grid--2 { grid-template-columns: 1fr 1fr; }
  .cello-hs-form__footer { justify-content: space-between; gap: 16px; }
  .cello-hs-form__step { width: auto; }
  .cello-hs-thankyou { padding-left: 56px; padding-right: 56px; }
}

/* Mobile-ish layout (collapse 2-col earlier) */
@media (max-width: 600px) {
  .cello-hs-modal__panel {
    width: min(340px, calc(100vw - 32px));
    margin: 16px auto;
    border-radius: 20px;
  }
  .cello-hs-modal__left {
    padding: 54px 24px 24px;
  }
  .cello-hs-modal__title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 24px;
  }
  .cello-hs-modal__subtitle {
    font-size: 14px;
    line-height: 1.4;
    width: 292px;
    margin: -8px 0 40px;
  }
  .cello-hs-form { width: 290px; }
  .cello-hs-form__grid--2 { grid-template-columns: 1fr; }
  .cello-hs-form__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
  }
  .cello-hs-form__step { width: 100%; }
  .cello-hs-form__submit { width: 100%; max-width: 220px; text-align: center; }
  .cello-hs-thankyou { padding-left: 24px; padding-right: 24px; }
}

/* Short viewports: prefer max-height + scrolling over clipping */
@media (max-height: 820px) {
  .cello-hs-modal__panel {
    height: auto;
    max-height: calc(100vh - 32px);
  }
  .cello-hs-modal__grid {
    height: auto;
    min-height: 0;
  }
  .cello-hs-modal__right {
    overflow: auto;
  }
}

