.consultation-popup[hidden] {
  display: none !important;
}

.consultation-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  place-items: safe center;
  align-content: center;
  align-content: safe center;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  --consultation-popup-block-inset: max(
    16px,
    env(safe-area-inset-top),
    env(safe-area-inset-bottom)
  );
  padding:
    var(--consultation-popup-block-inset)
    max(16px, env(safe-area-inset-right))
    var(--consultation-popup-block-inset)
    max(16px, env(safe-area-inset-left));
  font-family: "Poppins", sans-serif;
  opacity: 0;
  transition: opacity 180ms ease;
  overscroll-behavior: contain;
}

.consultation-popup.is-open {
  opacity: 1;
}

.consultation-popup__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.consultation-popup__scale {
  position: relative;
  width: 644px;
  height: 679.7px;
  flex: 0 0 auto;
  margin-bottom: 41px;
}

.consultation-popup__stage {
  position: absolute;
  inset: 0 auto auto 0;
  width: 920px;
  height: 971px;
  isolation: isolate;
  transform: scale(0.7);
  transform-origin: top left;
}

.consultation-popup__sheet {
  position: absolute;
  display: block;
  width: 804.453px;
  border-radius: 31.424px;
  pointer-events: none;
  transform-origin: center center;
}

.consultation-popup__sheet--left-back {
  z-index: 0;
  top: 57.279px;
  left: 27.807px;
  height: 874.03px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-3.76deg);
}

.consultation-popup__sheet--left-front {
  z-index: 1;
  top: 25.853px;
  left: 44.224px;
  height: 919.303px;
  background: #e3e3e3;
  transform: rotate(-1.78deg);
}

.consultation-popup__sheet--right-back {
  z-index: 0;
  top: 57.279px;
  left: 87.847px;
  height: 874.03px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(3.76deg);
}

.consultation-popup__sheet--right-front {
  z-index: 1;
  top: 25.853px;
  left: 71.434px;
  height: 919.303px;
  background: #e3e3e3;
  transform: rotate(1.78deg);
}

.consultation-popup__panel {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 58.14px;
  width: 804.453px;
  min-height: 971px;
  padding: 0;
  overflow: hidden;
  border-radius: 31.424px;
  background: linear-gradient(180deg, #f2edfe 0%, #ffeafa 100%);
  color: #3e3050;
  box-shadow: 0 20px 70px rgba(20, 14, 31, 0.16);
}

.consultation-popup__header {
  position: relative;
  height: 251.392px;
  overflow: hidden;
  border-radius: 31.424px 31.424px 0 0;
  background: linear-gradient(137.283deg, #e9a5fc 0%, #898bf8 100%);
  color: #fff;
}

.consultation-popup__close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 19.593px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.consultation-popup__close img {
  display: block;
  width: 24px;
  height: 24px;
}

.consultation-popup__close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
  border-radius: 50%;
}

.consultation-popup__eyebrow {
  display: none !important;
}

.consultation-popup__eyebrow img {
  display: none !important;
}

.consultation-popup__header h2 {
  position: absolute;
  top: 116.506px;
  left: 31.42px;
  width: 624.906px;
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 52.124px;
  font-weight: 700;
  line-height: 65.527px;
  letter-spacing: -1.0425px;
}

.consultation-popup__description {
  position: absolute;
  top: 188.64px;
  left: 31.42px;
  width: 624.906px;
  margin: 0;
  color: #fff;
  font-size: 21.003px;
  font-weight: 400;
  line-height: normal;
  /* letter-spacing: -0.4201px; */
}

.consultation-popup__accent-bar {
  position: absolute;
  top: 210.54px;
  right: 50.284px;
  width: 37.709px;
  height: 9.427px;
  border-radius: 157.12px;
  background: #fff;
}

.consultation-popup__accent-dot {
  position: absolute;
  top: 210.54px;
  right: 31.216px;
  display: block;
  width: 9.427px;
  height: 9.427px;
}

.consultation-popup__form {
  padding: 31.428px 40.852px 25px;
}

.consultation-popup__fields {
  display: grid;
  gap: 30.868px;
}

.consultation-popup__field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20.439px;
}

.consultation-popup__fields input,
.consultation-popup__fields textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1.531px solid #ddd6fe;
  border-radius: 15.712px;
  outline: 0;
  background: #ddd6fe;
  color: #3e3050;
  font-family: "Poppins", sans-serif;
  font-size: 18.854px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.3771px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.consultation-popup__fields input {
  height: 56px;
  padding: 0 20px;
}

.consultation-popup__fields > input {
  height: 56px;
}

.consultation-popup__fields textarea {
  height: 120px;
  min-height: 120px;
  margin-top: 0.559px;
  padding: 14px 20px;
  resize: vertical;
}

.consultation-popup__fields input::placeholder,
.consultation-popup__fields textarea::placeholder {
  color: #3e3050;
}

.consultation-popup__fields input:focus,
.consultation-popup__fields textarea:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.consultation-popup__proof {
  display: flex;
  align-items: center;
  gap: 16.5px;
  margin-top: 24.357px;
}

.consultation-popup__avatars {
  display: flex;
  align-items: center;
  gap: 11.784px;
}

.consultation-popup__avatars img {
  display: block;
  width: 120px;
  height: 48px;
  object-fit: contain;
}

.consultation-popup__proof-copy {
  display: flex;
  flex-direction: column;
  gap: 5.5px;
}

.consultation-popup__stars {
  display: block;
  width: 70.697px;
  height: 14.139px;
}

.consultation-popup__proof-copy p {
  width: 251.393px;
  margin: 0;
  color: #3e3050;
  font-size: 14.139px;
  font-weight: 400;
  line-height: 18.067px;
  letter-spacing: -0.2828px;
}

.consultation-popup__proof-copy strong {
  display: block;
  font-size: 15.71px;
  font-weight: 600;
  line-height: 18.067px;
  letter-spacing: -0.3142px;
}

.consultation-popup__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 60px;
  margin-top: 15px;
  border: 0;
  border-radius: 15.712px;
  outline: 0;
  background: #a855f7;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4242px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.consultation-popup__submit:hover {
  background: #9333ea;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.35);
}

.consultation-popup__submit:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 4px;
}

.consultation-popup__submit:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.consultation-popup__privacy {
  display: none !important;
}

body.has-consultation-popup {
  overflow: hidden;
}

/* Only the popup canvas scales on smaller viewports; its Figma layout stays intact. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .consultation-popup__scale {
    width: 588.8px;
    height: 621.44px;
  }

  .consultation-popup__stage {
    transform: scale(0.64);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .consultation-popup__scale {
    width: 662.4px;
    height: 699.12px;
  }

  .consultation-popup__stage {
    transform: scale(0.72);
  }
}

@media (min-width: 620px) and (max-width: 767.98px) {
  .consultation-popup__scale {
    width: 579.6px;
    height: 611.73px;
  }

  .consultation-popup__stage {
    transform: scale(0.63);
  }
}

@media (min-width: 480px) and (max-width: 619.98px) {
  .consultation-popup__scale {
    width: 478.4px;
    height: 582.4px;
  }

  .consultation-popup__stage {
    transform: scale(0.52);
  }

}

@media (min-width: 390px) and (max-width: 479.98px) {
  .consultation-popup__scale {
    width: 388.24px;
    height: 472.64px;
  }

  .consultation-popup__stage {
    transform: scale(0.422);
  }
}

@media (min-width: 360px) and (max-width: 389.98px) {
  .consultation-popup__scale {
    width: 358.8px;
    height: 436.8px;
  }

  .consultation-popup__stage {
    transform: scale(0.39);
  }
}

@media (max-width: 359.98px) {
  .consultation-popup__scale {
    width: 299px;
    height: 364px;
  }

  .consultation-popup__stage {
    transform: scale(0.325);
  }
}

@media (max-width: 299.98px) {
  .consultation-popup__scale {
    width: 276px;
    height: 336px;
  }

  .consultation-popup__stage {
    transform: scale(0.3);
  }
}

@media (min-width: 768px) and (max-height: 899.98px) {
  .consultation-popup__scale {
    width: 598px;
    height: 631.15px;
  }

  .consultation-popup__stage {
    transform: scale(0.65);
  }
}

@media (min-width: 768px) and (max-height: 749.98px) {
  .consultation-popup__scale {
    width: 533.6px;
    height: 563.18px;
  }

  .consultation-popup__stage {
    transform: scale(0.58);
  }
}

@media (max-width: 619.98px) {
  .consultation-popup {
    padding-right: max(0px, env(safe-area-inset-right));
    padding-left: max(0px, env(safe-area-inset-left));
  }

  .consultation-popup__stage {
    height: 1120px;
  }

  .consultation-popup__panel {
    min-height: 1120px;
  }

  .consultation-popup__sheet--left-back,
  .consultation-popup__sheet--right-back {
    height: 1023px;
  }

  .consultation-popup__sheet--left-front,
  .consultation-popup__sheet--right-front {
    height: 1068px;
  }
}

/* Fluid type compensation for the scaled popup canvas. The decorative
 * sheets and the popup's original geometry remain untouched. */
@media (max-width: 619.98px) {
  .consultation-popup__eyebrow {
    font-size: clamp(18px, calc(27px - 1.5vw), 22px);
  }

  .consultation-popup__close {
    width: 48px;
    height: 48px;
  }

  .consultation-popup__close img {
    width: 42px;
    height: 42px;
  }

  .consultation-popup__header h2 {
    width: 740px;
    font-size: clamp(54px, calc(62px - 1vw), 58px);
    line-height: 1.07;
  }

  .consultation-popup__description {
    width: 740px;
    font-size: clamp(19px, calc(25px - 0.75vw), 22px);
  }

  .consultation-popup__fields input,
  .consultation-popup__fields textarea,
  .consultation-popup .contact-select__trigger,
  .consultation-popup .contact-select__option {
    font-size: clamp(28px, calc(38px - 1.5vw), 32px);
    font-weight: 600;
  }

  .consultation-popup__fields input::placeholder,
  .consultation-popup__fields textarea::placeholder,
  .consultation-popup .contact-select:not(.has-value) .contact-select__trigger {
    font-weight: 400;
  }

  .consultation-popup__fields {
    gap: 18px;
  }

  .consultation-popup__field-row {
    gap: 14px;
  }

  .consultation-popup__fields input,
  .consultation-popup__fields > input {
    height: 88px;
  }

  .consultation-popup__fields textarea {
    height: 184px;
    min-height: 184px;
  }

  .consultation-popup .contact-select__trigger {
    min-height: 82px;
    font-size: clamp(32px, calc(42px - 1.5vw), 36px);
  }

  .consultation-popup .contact-select__menu {
    max-height: 520px;
  }

  .consultation-popup__proof-copy p {
    font-size: clamp(17px, calc(23px - 0.75vw), 19px);
  }

  .consultation-popup__submit {
    width: 550px;
    padding: 30px 40px;
    font-size: clamp(25px, calc(33px - 1vw), 29px);
    font-weight: 600;
    line-height: 1.3;
  }

  .consultation-popup__privacy {
    font-size: clamp(22px, calc(30px - 1vw), 26px);
    font-weight: 600;
  }

  .consultation-popup .contact-select__error {
    font-size: clamp(15px, calc(21px - 0.75vw), 17px);
    font-weight: 600;
  }
}

@media (min-width: 620px) and (max-width: 991.98px) {
  .consultation-popup__eyebrow {
    font-size: clamp(17px, calc(22px - 0.4vw), 19px);
  }

  .consultation-popup__close {
    width: 38px;
    height: 38px;
  }

  .consultation-popup__close img {
    width: 34px;
    height: 34px;
  }

  .consultation-popup__header h2 {
    width: 700px;
    font-size: clamp(53px, calc(59px - 0.5vw), 55px);
    line-height: 1.08;
  }

  .consultation-popup__description {
    width: 700px;
    font-size: clamp(19px, calc(24px - 0.4vw), 21px);
  }

  .consultation-popup__fields input,
  .consultation-popup__fields textarea,
  .consultation-popup .contact-select__trigger,
  .consultation-popup .contact-select__option {
    font-size: clamp(22px, calc(29px - 0.6vw), 24px);
    font-weight: 600;
  }

  .consultation-popup__fields input::placeholder,
  .consultation-popup__fields textarea::placeholder,
  .consultation-popup .contact-select:not(.has-value) .contact-select__trigger {
    font-weight: 400;
  }

  .consultation-popup__fields {
    gap: 24px;
  }

  .consultation-popup__field-row {
    gap: 16px;
  }

  .consultation-popup__fields input,
  .consultation-popup__fields > input {
    height: 74px;
  }

  .consultation-popup__fields textarea {
    height: 170px;
    min-height: 170px;
  }

  .consultation-popup .contact-select__trigger {
    min-height: 72px;
    font-size: clamp(24px, calc(31px - 0.6vw), 27px);
  }

  .consultation-popup .contact-select__menu {
    max-height: 450px;
  }

  .consultation-popup__proof-copy p {
    font-size: clamp(16px, calc(21px - 0.4vw), 18px);
  }

  .consultation-popup__submit {
    width: 500px;
    padding: 28px 38px;
    font-size: clamp(24px, calc(30px - 0.5vw), 27px);
    font-weight: 600;
    line-height: 1.35;
  }

  .consultation-popup__privacy {
    font-size: clamp(19px, calc(25px - 0.5vw), 22px);
  }

  .consultation-popup .contact-select__error {
    font-size: clamp(14px, calc(19px - 0.4vw), 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .consultation-popup,
  .consultation-popup__scale,
  .consultation-popup__submit {
    transition: none;
  }
}

.consultation-popup .sms-consent-group {
  margin: 16px 0 12px !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  clear: both !important;
  display: block !important;
}

.consultation-popup label.sms-consent-label {
  color: #1e293b !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
}

.consultation-popup label.sms-consent-label span {
  font-size: 13px !important;
  color: #1e293b !important;
}

.consultation-popup label.sms-consent-label a {
  color: #6d28d9 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

.consultation-popup label.sms-consent-label a:hover {
  color: #4c1d95 !important;
}
  color: #fef08a !important;
}

.consultation-popup .consultation-popup__submit {
  margin: 18px auto 0 !important;
  clear: both !important;
  display: flex !important;
}


