html,
body.survey-app {
  background-color: #ffffff;
  overflow: hidden;
}

#app-scale {
  width: 1080px;
  height: 1920px;
  transform-origin: top left;
  position: relative;
  background-color: #ffffff;
}

.survey-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  padding: 113px 50px 130px;
  background-color: #ffffff;
}

.survey-logo {
  flex: 0 1 auto;
  width: 868px;
  max-width: 100%;
  height: auto;
  max-height: 680px;
  min-height: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.survey-actions {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  gap: 40px;
  width: 100%;
  max-width: 980px;
  min-height: 0;
  margin-top: auto;
  margin-bottom: auto;
  padding: 48px 0;
}

.survey-intro {
  width: 100%;
  max-width: 820px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.39rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  color: #58595b;
  overflow-wrap: anywhere;
}

.survey-start-button {
  flex: 0 0 auto;
  min-width: 237px;
  max-width: 100%;
  min-height: 74px;
  padding: 1rem 2rem;
  margin: 0;
  margin-top: 50px;
  border: 3px solid #f15a23;
  border-radius: 20px;
  background-color: #f15a23;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  color: #ffffff;
  cursor: pointer;
}

.survey-start-button:active {
  filter: brightness(0.95);
}

.survey-icons {
  left: 50px;
  bottom: 50px;
  gap: 12px;
  align-items: center;
}

.survey-icon-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: #58595b;
  box-shadow:
    0 1.5px 1.5px rgba(0, 0, 0, 0.1),
    0 5.5px 2.75px rgba(0, 0, 0, 0.09),
    0 12.5px 3.75px rgba(0, 0, 0, 0.05),
    0 22px 4.5px rgba(0, 0, 0, 0.01);
}

.survey-icon-button img {
  display: block;
  width: 30px;
  height: 30px;
  position: static;
  transform: none;
  top: auto;
  left: auto;
}

.survey-app .lang-menu {
  left: 50px;
  right: auto;
  bottom: 112px;
  background-color: #58595b;
}

.survey-app .lang-menu > div {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.survey-app .lang-menu > div.selected {
  background-color: #f15a23;
}

/* —— Kroki ankiety (02–05) —— */
.survey-step-page {
  box-sizing: border-box;
  padding: 50px 50px 130px;
  background-color: #e9e9e9;
  font-family: Arial, Helvetica, sans-serif;
  color: #58595b;
}

.survey-step-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.survey-step-layout--intro {
  padding-top: 0;
}

.survey-step-intro {
  flex: 0 0 auto;
  width: 100%;
  max-width: 838px;
  margin: 0 auto 48px;
  text-align: center;
}

.survey-step-intro-title {
  margin: 0 0 0.5em;
  font-weight: 700;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.survey-step-intro-sub {
  margin: 0;
  font-weight: 400;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.survey-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 50px 40px;
  border-radius: 43.5px;
  background-color: #ffffff;
  box-sizing: border-box;
  position: relative;
}

.survey-card--short {
  flex: 0 1 auto;
  margin-top: auto;
  margin-bottom: 0;
  height: calc(100% - 340px);
}

.survey-step-label {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 0.87rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.survey-progress {
  width: 100%;
  height: 20px;
  margin-bottom: 28px;
  border-radius: 10px;
  background-color: #dbdbdb;
  overflow: hidden;
}

.survey-progress-fill {
  height: 100%;
  border-radius: 10px;
  background-color: #f15a23;
}

.survey-question-block {
  margin-bottom: 20px;
}

.survey-question {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.survey-question--bold {
  margin-bottom: 0;
}

.survey-question-sub {
  margin: 0.35em 0 0;
  font-weight: 400;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.survey-nps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.survey-nps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 3px solid #dbdbdb;
  border-radius: 8px;
  background-color: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #58595b;
  cursor: pointer;
}

.survey-nps-btn[data-value="1"],
.survey-nps-btn[data-value="2"],
.survey-nps-btn[data-value="3"] {
  border-color: #e57373;
  color: #c62828;
}

.survey-nps-btn[data-value="4"],
.survey-nps-btn[data-value="5"],
.survey-nps-btn[data-value="6"],
.survey-nps-btn[data-value="7"] {
  border-color: #ffca28;
  color: #f9a825;
}

.survey-nps-btn[data-value="8"],
.survey-nps-btn[data-value="9"],
.survey-nps-btn[data-value="10"] {
  border-color: #81c784;
  color: #2e7d32;
}

.survey-nps-btn[data-value="1"].selected,
.survey-nps-btn[data-value="2"].selected,
.survey-nps-btn[data-value="3"].selected {
  border-color: #d32f2f;
  background-color: #d32f2f;
  color: #ffffff;
}

.survey-nps-btn[data-value="4"].selected,
.survey-nps-btn[data-value="5"].selected,
.survey-nps-btn[data-value="6"].selected,
.survey-nps-btn[data-value="7"].selected {
  border-color: #f9a825;
  background-color: #fbc02d;
  color: #ffffff;
}

.survey-nps-btn[data-value="8"].selected,
.survey-nps-btn[data-value="9"].selected,
.survey-nps-btn[data-value="10"].selected {
  border-color: #388e3c;
  background-color: #43a047;
  color: #ffffff;
}

.survey-nps-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.survey-options--scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 920px;
  overflow-y: auto;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.survey-options--scroll + .survey-other-field {
  margin-top: 0;
}

.survey-other-field {
  margin: 0 0 12px;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 82px;
  padding: 20px 36px 20px 28px;
  border: 3px solid #dbdbdb;
  border-radius: 13px;
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
  color: #58595b;
  cursor: pointer;
}

.survey-option-marker {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 3px solid #dbdbdb;
  border-radius: 50%;
  box-sizing: border-box;
}

.survey-option.selected .survey-option-marker {
  border-color: #f15a23;
  background-color: #f15a23;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.survey-option.selected {
  color: #f15a23;
}

.survey-feedback-label {
  margin: 8px 0 12px;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.survey-feedback {
  position: relative;
  min-height: 355px;
  margin-bottom: 16px;
  padding: 24px 28px;
  border: 3px solid #dbdbdb;
  border-radius: 13px;
  background-color: #ffffff;
  box-sizing: border-box;
}

.survey-feedback-hint {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #dbdbdb;
  pointer-events: none;
}

.survey-feedback.has-text .survey-feedback-hint,
.survey-feedback.is-focused .survey-feedback-hint {
  display: none;
}

.survey-feedback-input,
.survey-other-input,
.survey-email-input {
  -webkit-user-select: text !important;
  user-select: text !important;
  caret-color: #f15a23;
}

.survey-feedback-input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 260px;
  padding: 24px 0 0;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #58595b;
}

.survey-other-field[hidden] {
  display: none;
}

.survey-other-wrap {
  position: relative;
  min-height: 120px;
  padding: 20px 28px;
  border: 3px solid #dbdbdb;
  border-radius: 13px;
  background-color: #ffffff;
  box-sizing: border-box;
}

.survey-other-hint {
  position: absolute;
  top: 20px;
  left: 28px;
  right: 28px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #dbdbdb;
  pointer-events: none;
}

.survey-other-wrap.has-text .survey-other-hint,
.survey-other-wrap.is-focused .survey-other-hint {
  display: none;
}

.survey-other-input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 72px;
  padding: 0;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #58595b;
}

.survey-popup {
  position: absolute;
  left: 50%;
  bottom: 200px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 90%);
  min-height: 147px;
  padding: 40px 48px;
  border-radius: 26px;
  background-color: #e9e9e9;
  box-shadow: -6.5px 8.5px 6.3px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  box-sizing: border-box;
}

.survey-popup[hidden] {
  display: none !important;
}

.survey-popup p {
  margin: 0;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: #f15a23;
}

.survey-divider {
  width: 100%;
  height: 0;
  margin: auto 0 24px;
  border: none;
  border-top: 3px solid #dbdbdb;
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.survey-btn {
  min-width: 160px;
  min-height: 65px;
  padding: 14px 24px;
  border-radius: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.survey-btn-back {
  border: 3px solid #58595b;
  background-color: transparent;
  color: #58595b;
}

.survey-btn-next,
.survey-btn-subscribe {
  border: 3px solid #f15a23;
  background-color: #f15a23;
  color: #ffffff;
}

.survey-btn-decline {
  align-self: flex-end;
  margin-top: 24px;
  margin-left: auto;
  min-width: 194px;
  min-height: 74px;
  border: 3px solid #58595b;
  background-color: transparent;
  color: #58595b;
  font-weight: 400;
  font-size: 0.87rem;
  text-transform: none;
}

.survey-btn:active {
  filter: brightness(0.95);
}

/* —— Newsletter (06) —— */
.survey-newsletter-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 81px 50px 130px;
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.survey-logo--newsletter {
  flex: 0 0 auto;
  width: 552px;
  max-width: 100%;
  height: auto;
  max-height: 432px;
  margin-bottom: 40px;
  object-fit: contain;
}

.survey-newsletter-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 880px;
}

.survey-newsletter-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f15a23;
}

.survey-newsletter-desc {
  margin: 0 0 40px;
  font-weight: 400;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #58595b;
}

.survey-newsletter-box {
  padding: 48px 57px 110px;
  border-radius: 43.5px;
  background-color: #e9e9e9;
}

.survey-newsletter-question {
  margin: 0 0 28px;
  font-weight: 700;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f15a23;
}

.survey-newsletter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.survey-email-field {
  position: relative;
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  min-height: 76px;
  padding: 12px 20px;
  border: 3px solid #dbdbdb;
  border-radius: 13px;
  background-color: #ffffff;
  box-sizing: border-box;
}

.survey-email-field.is-invalid {
  border-color: #f15a23;
}

.survey-email-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.39rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #58595b;
}

.survey-email-input::placeholder {
  color: #dbdbdb;
}

.survey-btn-subscribe {
  flex: 0 0 auto;
  min-height: 74px;
  text-transform: none;
}

.survey-btn-subscribe:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* —— Podziękowanie (07) —— */
.survey-thankyou-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 100%;
  padding: 113px 50px 130px;
  background-color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.survey-thankyou-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
  max-width: 868px;
  margin: 400px auto auto;
}

.survey-logo--thankyou {
  flex: 0 0 auto;
  width: 630px;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  margin: 0;
  object-fit: contain;
}

.survey-thankyou-text {
  width: 100%;
  max-width: 702px;
  margin: 0;
  text-align: center;
}

.survey-thankyou-text p {
  margin: 0;
  font-weight: 700;
  font-size: 1.39rem;
  line-height: 1.54;
  letter-spacing: -0.02em;
  color: #f15a23;
}

.survey-thankyou-text p + p {
  margin-top: 0.25em;
}

.survey-thankyou-back {
  min-width: 194px;
  min-height: 74px;
  margin-top: 8px;
  border: 3px solid #58595b;
  background-color: transparent;
  color: #58595b;
  font-weight: 400;
  font-size: 0.87rem;
  text-transform: none;
}

/* —— Klawiatura ekranowa —— */
.keyboard-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1080px;
  height: 440px;
  z-index: 9999;
  box-sizing: border-box;
}

.keyboard-container[hidden] {
  display: none !important;
}

.simple-keyboard {
  width: 100%;
  height: 100%;
}

.simple-keyboard.hg-theme-default {
  background-color: #58595b;
  padding: 12px;
  border-radius: 20px 20px 0 0;
}

.simple-keyboard .hg-button {
  background-color: #ffffff;
  color: #58595b;
  height: 72px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  border: 3px solid #dbdbdb;
  border-radius: 10px;
  box-shadow: none;
}

.simple-keyboard .hg-button:active,
.simple-keyboard .hg-button.hg-activeButton {
  background-color: #f15a23;
  color: #ffffff;
  border-color: #f15a23;
}

.simple-keyboard .hg-row:last-child {
  display: flex;
}

.simple-keyboard .hg-row:last-child .hg-button {
  flex: 1 1 0;
}

.simple-keyboard .hg-button[data-skbtn="{space}"] {
  flex: 3 1 0;
}

.simple-keyboard .hg-row:last-child .hg-button[data-skbtn="@"],
.simple-keyboard .hg-row:last-child .hg-button[data-skbtn="."] {
  flex: 0 0 150px;
  width: 150px;
  max-width: 150px;
}

.simple-keyboard .hg-row:last-child .hg-button[data-skbtn="{hide}"] {
  flex: 0 0 110px;
  width: 110px;
  max-width: 110px;
  font-size: 1.15rem;
}

#app-scale.is-keyboard-open .survey-step-page,
#app-scale.is-keyboard-open .survey-newsletter-page {
  padding-bottom: 470px;
}
