.investusca-feedback,
.investusca-feedback * {
  box-sizing: border-box;
}

.investusca-feedback {
  --feedback-green: #2d684c;
  --feedback-green-dark: #1d4935;
  --feedback-ink: #193226;
  --feedback-muted: #6d8075;
  --feedback-line: #dce8df;
  --feedback-paper: #fbfdfb;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.investusca-feedback__trigger {
  --feedback-blue: #1277e1;
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, #49a2f1 0%, var(--feedback-blue) 55%, #0b5fbe 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 11px 27px rgba(18, 119, 225, 0.26), 0 2px 7px rgba(18, 119, 225, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.investusca-feedback__trigger:hover,
.investusca-feedback__trigger:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(18, 119, 225, 0.34), 0 3px 8px rgba(18, 119, 225, 0.2);
  filter: saturate(1.08);
  outline: none;
}

.investusca-feedback__trigger:active {
  transform: translateY(-1px) scale(0.97);
}

.investusca-feedback__trigger svg {
  position: relative;
  width: 22px;
  height: 22px;
  overflow: visible;
  stroke: none;
}

.investusca-feedback__back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: calc(20px + env(safe-area-inset-bottom) + 46px + 10px);
  z-index: 2147482999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, #76b896 0%, #2d684c 56%, #1d4935 100%);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
  box-shadow: 0 8px 20px rgba(45, 104, 76, 0.2), 0 2px 6px rgba(29, 73, 53, 0.14);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, box-shadow 180ms ease;
}

.investusca-feedback__back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.investusca-feedback__back-to-top:hover,
.investusca-feedback__back-to-top:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 11px 24px rgba(45, 104, 76, 0.28), 0 3px 7px rgba(29, 73, 53, 0.18);
  outline: none;
}

.investusca-feedback__back-to-top:active {
  transform: translateY(-1px) scale(0.97);
}

.investusca-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  width: min(100% - 40px, 1080px);
  margin: 38px auto 28px;
  padding: 18px 20px 0;
  border-top: 1px solid rgba(112, 139, 121, 0.2);
  color: #788d80;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.investusca-legal-links a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.investusca-legal-links a:hover,
.investusca-legal-links a:focus-visible {
  color: #2d684c;
  text-decoration: underline;
}

.investusca-feedback__back-to-top svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.investusca-feedback__trigger .investusca-feedback__icon-dot {
  fill: var(--feedback-blue);
}

.investusca-feedback__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: max-content;
  max-width: 160px;
  padding: 8px 11px;
  border: 1px solid rgba(18, 119, 225, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--feedback-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, -50%);
  box-shadow: 0 8px 22px rgba(31, 64, 45, 0.12);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.investusca-feedback__trigger:hover .investusca-feedback__tooltip,
.investusca-feedback__trigger:focus-visible .investusca-feedback__tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.investusca-feedback__modal[hidden],
.investusca-feedback__panel[hidden],
.investusca-feedback__success[hidden],
.investusca-feedback__error[hidden] {
  display: none !important;
}

.investusca-feedback__modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 35, 25, 0.54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.investusca-feedback__backdrop {
  position: absolute;
  inset: 0;
}

.investusca-feedback__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: min(760px, calc(100dvh - 32px));
  overflow: auto;
  border: 1px solid rgba(198, 219, 204, 0.8);
  border-radius: 28px;
  background: linear-gradient(150deg, #fff 0%, var(--feedback-paper) 100%);
  color: var(--feedback-ink);
  box-shadow: 0 28px 80px rgba(11, 37, 23, 0.24), 0 8px 24px rgba(15, 49, 30, 0.1);
  animation: investusca-feedback-in 220ms ease-out both;
}

@keyframes investusca-feedback-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.investusca-feedback__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--feedback-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--feedback-muted);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.investusca-feedback__close:hover,
.investusca-feedback__close:focus-visible {
  border-color: #b3cdbb;
  background: #eef6ef;
  color: var(--feedback-green-dark);
  outline: none;
}

.investusca-feedback__close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
}

.investusca-feedback__content {
  padding: 38px 38px 30px;
}

.investusca-feedback__eyebrow {
  margin: 0 0 12px;
  color: var(--feedback-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.investusca-feedback__title {
  max-width: 390px;
  margin: 0;
  color: var(--feedback-ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.investusca-feedback__intro {
  max-width: 420px;
  margin: 12px 0 27px;
  color: var(--feedback-muted);
  font-size: 14px;
  line-height: 1.8;
}

.investusca-feedback__field {
  display: block;
  margin: 0 0 18px;
}

.investusca-feedback__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--feedback-ink);
  font-size: 13px;
  font-weight: 600;
}

.investusca-feedback__required {
  color: #b05c4f;
}

.investusca-feedback__counter {
  color: #93a49a;
  font-size: 11px;
  font-weight: 400;
}

.investusca-feedback__input,
.investusca-feedback__textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--feedback-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--feedback-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.investusca-feedback__input {
  height: 48px;
  padding: 0 14px;
}

.investusca-feedback__textarea {
  min-height: 142px;
  padding: 12px 14px;
  resize: vertical;
}

.investusca-feedback__input::placeholder,
.investusca-feedback__textarea::placeholder {
  color: #a3b1a8;
}

.investusca-feedback__input:focus,
.investusca-feedback__textarea:focus {
  border-color: #79a88a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(105, 157, 122, 0.13);
}

.investusca-feedback__input[aria-invalid="true"],
.investusca-feedback__textarea[aria-invalid="true"] {
  border-color: #c47b70;
  box-shadow: 0 0 0 4px rgba(196, 123, 112, 0.1);
}

.investusca-feedback__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.investusca-feedback__error {
  margin: 0 0 15px;
  color: #a24f45;
  font-size: 12px;
  line-height: 1.6;
}

.investusca-feedback__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--feedback-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.investusca-feedback__submit:hover,
.investusca-feedback__submit:focus-visible {
  background: var(--feedback-green-dark);
  box-shadow: 0 10px 20px rgba(45, 104, 76, 0.2);
  outline: none;
}

.investusca-feedback__submit:active {
  transform: scale(0.99);
}

.investusca-feedback__submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.investusca-feedback__submit svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.investusca-feedback__privacy {
  margin: 16px 0 0;
  color: #8a9a90;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.investusca-feedback__success {
  padding: 45px 38px 48px;
  text-align: center;
}

.investusca-feedback__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 19px;
  border: 1px solid #c3dfca;
  border-radius: 50%;
  background: #edf8ef;
  color: var(--feedback-green);
}

.investusca-feedback__success-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.investusca-feedback__success-title {
  margin: 0;
  color: var(--feedback-ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.investusca-feedback__success-copy {
  margin: 10px auto 24px;
  color: var(--feedback-muted);
  font-size: 14px;
  line-height: 1.8;
}

.investusca-feedback__success-close {
  min-width: 150px;
  padding: 11px 20px;
  border: 1px solid #bfd7c5;
  border-radius: 999px;
  background: #fff;
  color: var(--feedback-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease;
}

.investusca-feedback__success-close:hover,
.investusca-feedback__success-close:focus-visible {
  border-color: var(--feedback-green);
  background: #eef7f0;
  outline: none;
}

@media print {
  .investusca-feedback__trigger,
  .investusca-feedback__back-to-top {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .investusca-feedback__trigger {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 43px;
    height: 43px;
  }

  .investusca-feedback__trigger svg {
    width: 20px;
    height: 20px;
  }

  .investusca-feedback__back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom) + 43px + 10px);
    width: 43px;
    height: 43px;
  }

  .investusca-feedback__back-to-top svg {
    width: 21px;
    height: 21px;
  }

  .investusca-legal-links {
    width: min(100% - 28px, 1080px);
    gap: 7px 15px;
    margin-top: 30px;
    padding: 16px 10px 0;
    font-size: 11px;
  }

  .investusca-feedback__tooltip {
    display: none;
  }

  .investusca-feedback__modal {
    align-items: end;
    padding: 10px;
  }

  .investusca-feedback__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
  }

  .investusca-feedback__content {
    padding: 31px 22px 24px;
  }

  .investusca-feedback__success {
    padding: 39px 22px 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .investusca-feedback__dialog {
    animation: none;
  }

  .investusca-feedback__trigger,
  .investusca-feedback__back-to-top,
  .investusca-feedback__tooltip,
  .investusca-feedback__close,
  .investusca-feedback__input,
  .investusca-feedback__textarea,
  .investusca-feedback__submit {
    transition: none;
  }
}
