.xp-application-form {
  width: min(100%, 696px);
}

.xp-form-progress {
  display: none;
  height: 3px;
  width: 100%;
  margin-bottom: 42px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.xp-form-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #000;
  transition: width 220ms ease;
}

.xp-form-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.xp-form-step.is-active {
  display: block;
}

.xp-form-step[hidden],
.xp-form-actions[hidden],
.xp-form-progress[hidden],
.xp-form-success[hidden] {
  display: none !important;
}

.xp-form-step legend {
  display: block;
  margin: 0 0 64px;
  padding: 0;
  color: #050505;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
}

.xp-form-intro {
  max-width: 560px;
  margin: -44px 0 32px;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}

.xp-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.xp-field {
  position: relative;
  display: block;
}

.xp-field::before {
  display: none;
}

.xp-field-wide {
  grid-column: 1 / -1;
}

.xp-field input,
.xp-field select,
.xp-field textarea {
  width: 100%;
  min-height: 59px;
  padding: 0 132px 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -14px 26px rgba(0, 0, 0, 0.03), 0 18px 42px rgba(0, 0, 0, 0.035);
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.xp-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
}

.xp-field textarea {
  min-height: 59px;
  padding-top: 22px;
  border-radius: 30px;
  resize: vertical;
}

.xp-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 112px) 50%, calc(100% - 106px) 50%, 0 0;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.xp-field input::placeholder,
.xp-field textarea::placeholder {
  color: #777;
  opacity: 1;
}

.xp-field input:focus,
.xp-field input:hover,
.xp-field select:focus,
.xp-field select:hover,
.xp-field textarea:focus,
.xp-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -14px 26px rgba(0, 0, 0, 0.03), 0 18px 42px rgba(0, 0, 0, 0.035);
  color: #000;
}

.xp-field input:focus::placeholder,
.xp-field input:hover::placeholder,
.xp-field textarea:focus::placeholder,
.xp-field textarea:hover::placeholder {
  color: #000;
}

.xp-field .is-invalid,
.xp-field input.is-invalid,
.xp-field select.is-invalid,
.xp-field textarea.is-invalid {
  border-color: #d60000;
  box-shadow: none;
}

.xp-field-checkbox {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 59px;
  padding: 14px 16px 14px 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -14px 26px rgba(0, 0, 0, 0.03), 0 18px 42px rgba(0, 0, 0, 0.035);
  color: #070707;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.xp-field-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.xp-checkbox-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xp-toggle-ui {
  order: 3;
  position: relative;
  display: inline-block;
  width: 61px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background-color 180ms ease;
}

.xp-toggle-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #777;
  transition: transform 180ms ease, background-color 180ms ease;
}

.xp-field-checkbox input:checked ~ .xp-toggle-ui {
  background: #e20c17;
}

.xp-field-checkbox input:checked ~ .xp-toggle-ui::after {
  transform: translateX(29px);
  background: #fff;
}

.xp-info-button {
  order: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #777;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}

.xp-info-button:hover,
.xp-info-button:focus {
  background: #e20c17;
}

.xp-info-panel {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 1000;
  width: min(1120px, calc(100vw - 128px));
  max-height: min(740px, calc(100vh - 128px));
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 88px 104px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px) saturate(120%);
}

.xp-info-close {
  position: absolute;
  top: 32px;
  right: 32px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}

.xp-info-close:hover,
.xp-info-close:focus {
  background: rgba(227, 12, 23, 0.7);
}

.xp-info-panel[hidden] {
  display: none;
}

.xp-info-panel strong {
  display: block;
  margin-bottom: 22px;
  font-size: 28px;
  font-weight: 900;
}

.xp-info-panel span {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.xp-optional,
.xp-required {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 27px;
  margin: 0;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #6f6f76;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.xp-required {
  color: #777;
}

.xp-field:hover .xp-optional,
.xp-field:hover .xp-required,
.xp-field input:focus ~ .xp-optional,
.xp-field input:focus ~ .xp-required,
.xp-field select:focus ~ .xp-optional,
.xp-field select:focus ~ .xp-required,
.xp-field textarea:focus ~ .xp-optional,
.xp-field textarea:focus ~ .xp-required {
  color: #000;
}

.xp-field input.is-invalid ~ .xp-optional,
.xp-field input.is-invalid ~ .xp-required,
.xp-field select.is-invalid ~ .xp-optional,
.xp-field select.is-invalid ~ .xp-required,
.xp-field textarea.is-invalid ~ .xp-optional,
.xp-field textarea.is-invalid ~ .xp-required {
  width: 124px;
  align-items: center;
  justify-items: center;
  border: 0.5px solid #e20c17;
  color: #e20c17;
  font-size: 0;
  line-height: 27px;
}

.xp-field input.is-invalid ~ .xp-optional::after,
.xp-field input.is-invalid ~ .xp-required::after,
.xp-field select.is-invalid ~ .xp-optional::after,
.xp-field select.is-invalid ~ .xp-required::after,
.xp-field textarea.is-invalid ~ .xp-optional::after,
.xp-field textarea.is-invalid ~ .xp-required::after {
  content: "TEKRAR KONTROL ET";
  display: block;
  font-size: 9px;
  line-height: 27px;
  white-space: nowrap;
}

.xp-form-actions {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.xp-back,
.xp-next {
  min-height: 59px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.xp-back {
  flex: 0 0 88px;
  background: #000;
  color: #fff;
}

.xp-next {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  flex: 1 1 auto;
  gap: 16px;
  padding: 0 12px 0 32px;
  background: #e20c17;
  color: #fff;
  text-align: left;
}

.xp-next:hover,
.xp-next:focus {
  background: #000;
}

.xp-back:hover,
.xp-back:focus {
  background: #fff;
  color: #000;
}

.xp-next:disabled {
  cursor: wait;
  opacity: 0.62;
}

.xp-count {
  color: rgba(255, 255, 255, 0.82);
}

.xp-arrow {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.xp-form-errors {
  min-height: 20px;
  margin-top: 16px;
  color: #d60000;
  font-size: 14px;
  font-weight: 700;
}

.xp-form-success {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #050505;
}

.xp-form-success h2 {
  max-width: 696px;
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
}

.xp-form-success p {
  max-width: 696px;
  margin: 0 0 64px;
  color: #555;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.55;
}

.xp-share {
  position: relative;
}

.xp-share-toggle {
  position: relative;
  min-height: 54px;
  min-width: 198px;
  padding: 0 48px 0 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -14px 26px rgba(0, 0, 0, 0.03), 0 18px 42px rgba(0, 0, 0, 0.035);
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease;
}

.xp-share-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 8px;
  height: 5px;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.xp-share-toggle:hover,
.xp-share-toggle:focus {
  color: #e20c17;
}

.xp-share-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.xp-share-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f7;
  color: #050505;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.xp-share-feedback {
  min-height: 22px;
  margin: 12px 0 0;
  color: #555;
  font-size: 14px;
  font-weight: 700;
}

.xp-fields-table input.regular-text {
  max-width: 320px;
}

.xp-theme-dark .xp-form-progress {
  background: rgba(255, 255, 255, 0.12);
}

.xp-theme-dark .xp-form-progress span,
.xp-theme-dark .xp-next {
  background: #e20c17;
  color: #fff;
}

.xp-theme-dark .xp-next:hover,
.xp-theme-dark .xp-next:focus {
  background: #777;
}

.xp-theme-dark .xp-back {
  background: #777;
  color: #fff;
}

.xp-theme-dark .xp-back:hover,
.xp-theme-dark .xp-back:focus {
  background: #fff;
  color: #050505;
}

.xp-theme-dark .xp-form-step legend,
.xp-theme-dark .xp-form-success {
  color: #fff;
}

.xp-theme-dark .xp-form-intro,
.xp-theme-dark .xp-form-success p,
.xp-theme-dark .xp-share-feedback {
  color: rgba(255, 255, 255, 0.72);
}

.xp-theme-dark .xp-field input,
.xp-theme-dark .xp-field select,
.xp-theme-dark .xp-field textarea,
.xp-theme-dark .xp-field-checkbox,
.xp-theme-dark .xp-share-menu {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1f1f24 0%, #16161a 100%);
  color: #fff;
}

.xp-theme-dark .xp-optional,
.xp-theme-dark .xp-required {
  background: #000;
  color: #b9b9c0;
}

.xp-theme-dark .xp-field:hover .xp-optional,
.xp-theme-dark .xp-field:hover .xp-required,
.xp-theme-dark .xp-field input:focus ~ .xp-optional,
.xp-theme-dark .xp-field input:focus ~ .xp-required,
.xp-theme-dark .xp-field select:focus ~ .xp-optional,
.xp-theme-dark .xp-field select:focus ~ .xp-required,
.xp-theme-dark .xp-field textarea:focus ~ .xp-optional,
.xp-theme-dark .xp-field textarea:focus ~ .xp-required {
  color: #fff;
}

.xp-theme-dark .xp-share-toggle {
  background: linear-gradient(180deg, #1f1f24 0%, #16161a 100%);
  color: #fff;
}

.xp-theme-dark .xp-field input::placeholder,
.xp-theme-dark .xp-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.xp-theme-dark .xp-share-menu button {
  background: #2a2a31;
  color: #fff;
}

.xp-theme-dark .xp-count {
  color: rgba(0, 0, 0, 0.52);
}

.xp-theme-dark .xp-arrow {
  background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 760px) {
  .xp-field-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .xp-form-step legend {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .xp-field input,
  .xp-field select,
  .xp-field textarea {
    padding-left: 28px;
    padding-right: 116px;
    font-size: 16px;
  }

  .xp-field-type-text::before,
  .xp-field-type-email::before,
  .xp-field-type-tel::before,
  .xp-field-type-date::before,
  .xp-field-type-textarea::before {
    content: attr(data-placeholder);
    position: absolute;
    top: 50%;
    left: 28px;
    right: 116px;
    z-index: 2;
    display: block;
    overflow: hidden;
    color: #777;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .xp-field-type-textarea::before {
    top: 22px;
    transform: none;
  }

  .xp-field:not(.has-value):not(.is-focused)::before {
    animation: xp-marquee 8s linear 1.2s infinite alternate;
  }

  .xp-field.has-value::before,
  .xp-field.is-focused::before {
    display: none;
  }

  .xp-field input::placeholder,
  .xp-field textarea::placeholder {
    color: transparent;
  }

  .xp-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
  }

  .xp-field textarea {
    height: 59px;
    overflow: auto;
    resize: vertical;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .xp-field textarea::placeholder {
    white-space: nowrap;
  }

  .xp-checkbox-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .xp-info-panel {
    width: calc(100vw - 64px);
    max-height: calc(100vh - 96px);
    padding: 72px 40px 40px;
    border-radius: 24px;
  }

  .xp-info-close {
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .xp-info-panel strong {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .xp-info-panel span {
    font-size: 14px;
    line-height: 1.55;
  }

  .xp-form-actions {
    gap: 16px;
  }

  .xp-back {
    flex: 0 0 88px;
  }

  .xp-share-menu {
    grid-template-columns: 1fr;
  }
}

@keyframes xp-marquee {
  0% {
    transform: translateY(-50%) translateX(0);
  }
  100% {
    transform: translateY(-50%) translateX(-35%);
  }
}
