@charset "UTF-8";
.back-link {
  position: absolute;
  top: var(--spacing-xl);
  left: var(--spacing-xl);
  z-index: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-icons-default);
}
.back-link__icon {
  box-shadow: inset 0 0 0 var(--border-width-md) var(--color-icons-default);
  border-radius: var(--border-radius-full);
  display: grid;
  place-items: center;
  flex: none;
  width: var(--size-2xl);
  aspect-ratio: 1;
}
.back-link__icon svg {
  width: 48%;
  height: auto;
}
.back-link__text {
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body-md);
  font-weight: var(--font-weight-normal);
  flex: none;
  width: 7.5rem;
  margin-right: -7.5rem;
  padding-left: var(--spacing-md);
  opacity: 0;
  transition: margin-right 0.3s ease, opacity 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .back-link__text {
    transition: none;
  }
}
.back-link:hover .back-link__text, .back-link:focus-visible .back-link__text {
  margin-right: 0;
  opacity: 1;
}

.survey-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-gap-group);
  text-align: center;
}
.survey-intro__avatar {
  width: 6rem;
  height: 6rem;
  border-radius: var(--radius-full);
  -o-object-fit: cover;
     object-fit: cover;
}
.survey-intro__heading-area {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-gap-content);
}
.survey-intro__heading {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-3xl);
  font-weight: var(--font-weight-bold);
}
@media (min-width: 768px) {
  .survey-intro__heading {
    font-size: var(--font-size-6xl);
    line-height: var(--line-height-4xl);
    font-weight: var(--font-weight-bold);
  }
}
.survey-intro__caption {
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body-md);
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-400);
}

.survey-step {
  min-width: 0;
  border: none;
}
.survey-step__heading {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-2xl);
  font-weight: var(--font-weight-semibold);
  display: block;
  width: 100%;
  margin-bottom: var(--spacing-2xl);
  text-align: center;
  color: var(--color-text-headings);
}
.survey-step__heading:focus {
  outline: none;
}
.survey-step__heading:has(+ .survey-step__caption) {
  margin-bottom: var(--spacing-sm);
}
.survey-step__caption {
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body-md);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
  color: var(--color-neutral-400);
}
.survey-step__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.js-survey .survey-step:not(.is-active) {
  display: none;
}

.survey-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-card-gap-inner-lg);
}
.survey-field__input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font: inherit;
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body-md);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-body);
  background-color: var(--color-background-secondary);
  border: var(--border-width-sm) solid var(--color-border-primary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.survey-field__input::-moz-placeholder {
  color: var(--color-text-placeholder);
  font-weight: 400;
}
.survey-field__input::placeholder {
  color: var(--color-text-placeholder);
  font-weight: 400;
}
.survey-field__input:focus {
  outline: none;
  border-color: var(--color-border-action);
  box-shadow: 0 0 0 1px var(--color-border-action);
}
.survey-field__input--textarea {
  min-height: 120px;
  resize: vertical;
}
.survey-field.is-invalid .survey-field__input {
  border-color: var(--color-border-error);
  box-shadow: var(--shadow-md-dark), 0 0 0 1px var(--color-border-error);
}
.survey-field.is-invalid .survey-field__input:focus {
  box-shadow: 0 0 0 1px var(--color-border-error);
}
.survey-field.is-invalid .survey-option {
  border-color: var(--color-border-error);
  box-shadow: 0 0 0 1px var(--color-border-error);
}
.survey-field__error {
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body-sm);
  font-weight: var(--font-weight-normal);
  padding: var(--spacing-2xs) var(--spacing-md);
  text-align: center;
  color: var(--color-text-error);
  border: var(--border-width-sm) solid var(--color-border-error);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-background-error);
}
.survey-field__error:empty {
  display: none;
}

/* Karty radio: cały wiersz klikalny, wybrana = złota ramka
----------------------------------------------------------------------------- */
.survey-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.survey-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  background-color: var(--color-background-secondary);
  border: var(--border-width-sm) solid var(--color-border-primary);
  border-radius: var(--border-radius-md);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.survey-option__input {
  flex-shrink: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  border: var(--border-width-sm) solid var(--color-border-primary);
  border-radius: var(--border-radius-full);
}
.survey-option__input:checked {
  border-color: var(--color-border-action);
  background: radial-gradient(circle, var(--color-icons-action) 0 40%, transparent 45%);
}
.survey-option__input:focus-visible {
  outline: none;
}
.survey-option__label {
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-headings);
}
.survey-option:has(:checked) {
  border-color: var(--color-border-action);
  box-shadow: 0 0 0 1px var(--color-border-action);
}
.survey-option:has(:focus-visible:not(:checked)) {
  outline: var(--border-width-md) solid var(--color-border-focus);
  outline-offset: 3px;
}

.survey-field__input[type=number] {
  -webkit-appearance: textfield;
          appearance: textfield;
  -moz-appearance: textfield;
}
.survey-field__input[type=number]::-webkit-inner-spin-button, .survey-field__input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
          appearance: none;
  margin: 0;
}

.survey-field__input:-webkit-autofill, .survey-field__input:-webkit-autofill:hover, .survey-field__input:-webkit-autofill:focus {
  box-shadow: 0 0 0 100rem var(--color-neutral-800) inset;
  -webkit-text-fill-color: var(--color-text-body);
  caret-color: var(--color-text-body);
}

.survey-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  -moz-column-gap: var(--spacing-md);
       column-gap: var(--spacing-md);
}
.survey-consent__input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: var(--color-background-secondary);
  border: var(--border-width-md) solid var(--color-border-action);
  border-radius: var(--border-radius-sm);
}
.survey-consent__input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b8963f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 12px;
  background-repeat: no-repeat;
}
.survey-consent.is-invalid .survey-consent__input {
  border-color: var(--color-border-error);
}
.survey-consent__label {
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body-sm);
  font-weight: var(--font-weight-normal);
  cursor: pointer;
  color: var(--color-text-body);
}
.survey-consent__label a {
  color: var(--color-text-action);
  text-decoration: underline;
}
.survey-consent .survey-field__error {
  grid-column: 1/-1;
  margin-top: var(--spacing-xs);
}
.survey-consent__input:focus-visible {
  outline: var(--border-width-md) solid var(--color-border-focus);
  outline-offset: 2px;
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  scroll-margin-top: var(--survey-top-space);
}
.js-survey:not(.is-started) .survey-form {
  display: none;
}
.survey-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.survey-form__message {
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body-md);
  font-weight: var(--font-weight-normal);
  padding: var(--spacing-md);
  text-align: center;
  color: var(--color-text-error);
  border: var(--border-width-sm) solid var(--color-border-error);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-background-error);
}

/* Pasek postępu
----------------------------------------------------------------------------- */
.survey-progress {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.survey-progress__label {
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body-sm);
  font-weight: var(--font-weight-normal);
  white-space: nowrap;
  color: var(--color-neutral-200);
}
.survey-progress__bar {
  flex: 1;
  min-width: 0;
  height: 0.75rem;
  overflow: hidden;
  border-radius: var(--border-radius-full);
  background-color: var(--color-white);
}
.survey-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--border-radius-full) 0 0 var(--border-radius-full);
  background-color: var(--color-background-action);
  transition: width 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .survey-progress__fill {
    transition: none;
  }
}

/* Nawigacja: Wstecz / Dalej / Wyślij
----------------------------------------------------------------------------- */
.survey-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-gap-content);
}
.survey-nav .btn {
  flex: 1 1 0;
  max-width: 15.5rem;
}

.survey-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-gap-containers);
  container-type: inline-size;
  --survey-col-width: 69rem;
}
.survey-thanks__intro, .survey-thanks__next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-gap-group);
  width: 100%;
}
.survey-thanks__icon {
  display: flex;
}
.survey-thanks__icon svg {
  width: 8rem;
  height: auto;
}
.survey-thanks__heading-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-gap-content);
  max-width: 45rem;
  text-align: center;
}
.survey-thanks__heading:focus {
  outline: none;
}
.survey-thanks__lead {
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-body-lg);
  font-weight: var(--font-weight-normal);
  max-width: 37.25rem;
}
.survey-thanks__subheading {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  color: var(--color-text-headings);
}
.survey-thanks__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-card-gap-outside-md);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.survey-thanks__card {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  min-width: 0;
  padding: var(--spacing-card-padding-lg);
  background: var(--color-background-secondary);
  border: var(--border-width-sm) solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-cards);
  box-shadow: var(--shadow-lg-dark);
}
.survey-thanks__card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-card-gap-inner-lg);
}
.survey-thanks__card-head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-card-gap-inner-2xl);
}
.survey-thanks__card-number {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-500);
}
.survey-thanks__card-text {
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body-md);
  font-weight: var(--font-weight-normal);
}
.survey-thanks > .btn {
  width: 100%;
}
@container (min-width: 36rem) {
  .survey-thanks__card {
    flex-basis: calc((100% - var(--spacing-card-gap-outside-md)) / 2);
  }
  .survey-thanks__card-head {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-card-gap-inner-lg);
  }
  .survey-thanks > .btn {
    width: auto;
  }
}
@container (min-width: 66rem) {
  .survey-thanks__card {
    flex-basis: calc((100% - 2 * var(--spacing-card-gap-outside-md)) / 3);
  }
}

.survey {
  --survey-top-space: 6rem;
  --button-outline-color: var(--color-neutral-300);
  color: var(--color-text-body);
  --shadow-md: var(--shadow-md-dark);
  --shadow-lg: var(--shadow-lg-dark);
  --shadow-xl: var(--shadow-xl-dark);
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-dark);
}
.survey__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-3xl);
  min-height: inherit;
  padding-block: calc(var(--survey-top-space) + var(--spacing-2xl)) var(--spacing-3xl);
  padding-inline: var(--section-padding-inline);
}
.survey__content > :not(.back-link) {
  width: 100%;
  max-width: var(--survey-col-width, 32.5625rem);
}
@media (min-width: 1024px) {
  .survey__content {
    padding-block: calc(var(--survey-top-space) + var(--spacing-2xl));
  }
}
.survey__content:has([data-survey-thanks]:not([hidden])) > .back-link {
  display: none;
}
.survey__media {
  display: none;
}
.survey__calendar {
  --survey-col-width: 53rem;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}
.survey__fallback {
  padding: var(--spacing-xl);
  text-align: center;
}
.survey__fallback a {
  color: var(--color-text-action);
  text-decoration: underline;
}
@media (min-width: 1024px) {
  .survey {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  .survey__media {
    display: block;
    position: relative;
    overflow: hidden;
  }
  .survey__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }
}