.survey {
  --survey-ink: #0f172a;
  --survey-muted: #64748b;
  --survey-line: #e2e8f0;
  --survey-soft: #f8fafc;
  --survey-accent: #0699D8;
  padding: 2.5rem 0 4rem;
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(6, 153, 216, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.survey__container {
  width: min(var(--page-max, 1200px), calc(100% - var(--page-gutter, 2rem)));
  margin: 0 auto;
}

.survey__head {
  margin-bottom: 1.75rem;
}

.survey__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--survey-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.survey__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--survey-ink);
}

.survey__subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
}

.survey__expert {
  margin: 0 0 0.85rem;
  color: var(--survey-muted);
}

.survey__intro {
  margin: 0;
  color: #334155;
  line-height: 1.55;
  font-size: 0.98rem;
}

.survey__form,
.survey__success {
  background: #fff;
  border: 1px solid var(--survey-line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 1.25rem 1.25rem 1.5rem;
}

.survey__success h2 {
  margin: 0 0 0.5rem;
}

.survey__success p {
  margin: 0 0 1rem;
  color: var(--survey-muted);
}

.survey__q {
  margin: 0 0 1.15rem;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--survey-line);
}

.survey__q:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.survey__q-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--survey-ink);
  line-height: 1.4;
}

.survey__q-num {
  color: var(--survey-accent);
  margin-right: 0.25rem;
}

.survey__req {
  color: #dc2626;
  margin-left: 0.15rem;
}

.survey__hint {
  margin: -0.25rem 0 0.65rem;
  color: var(--survey-muted);
  font-size: 0.85rem;
}

.survey__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
}

.survey__images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.survey__image-option {
  display: block;
  cursor: pointer;
  margin: 0;
}

.survey__image-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey__image-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--survey-line);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.survey__image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e2e8f0;
}

.survey__image-label {
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #1e293b;
  text-align: center;
}

.survey__image-option:hover .survey__image-card {
  border-color: #bfdbfe;
}

.survey__image-option input:checked + .survey__image-card {
  border-color: var(--survey-accent);
  box-shadow: 0 0 0 3px rgba(6, 153, 216, 0.18);
  transform: translateY(-1px);
}

.survey__image-option input:focus-visible + .survey__image-card {
  outline: 2px solid var(--survey-accent);
  outline-offset: 2px;
}

.survey__option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  background: var(--survey-soft);
  border: 1px solid transparent;
  cursor: pointer;
}

.survey__option:hover {
  border-color: #bfdbfe;
}

.survey__option input {
  margin-top: 0.2rem;
}

.survey__option span {
  color: #1e293b;
  line-height: 1.4;
  font-size: 0.95rem;
}

.survey__select-wrap,
.survey__input,
.survey__textarea {
  display: block;
  width: 100%;
}

.survey__select-wrap select,
.survey__input,
.survey__textarea {
  width: 100%;
  font: inherit;
  color: var(--survey-ink);
  border: 1px solid var(--survey-line);
  background: #fff;
  padding: 0.7rem 0.8rem;
  border-radius: 0;
}

.survey__select-wrap select:focus,
.survey__input:focus,
.survey__textarea:focus {
  outline: none;
  border-color: var(--survey-accent);
  box-shadow: 0 0 0 3px rgba(6, 153, 216, 0.15);
}

.survey__q--consent .pdn-consent {
  align-items: flex-start;
  max-width: 42rem;
}

.survey__q--consent .pdn-consent__text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1e293b;
}

.survey__actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--survey-line);
}

.survey__submit {
  min-width: 220px;
}

.survey__note {
  margin: 0.75rem 0 0;
  color: var(--survey-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .survey__images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .survey__options {
    grid-template-columns: 1fr;
  }

  .survey__images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .survey {
    padding-top: 1.5rem;
  }

  .survey__form,
  .survey__success {
    padding: 1rem;
  }
}

/* Public surveys catalog */
.surveys-page {
  --survey-ink: #0f172a;
  --survey-muted: #64748b;
  --survey-accent: #0699D8;
  padding: 2.5rem 0 4rem;
  background:
    radial-gradient(1100px 380px at 8% -8%, rgba(6, 153, 216, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.surveys-page__container {
  width: min(var(--page-max, 1200px), calc(100% - var(--page-gutter, 2rem)));
  margin: 0 auto;
}

.surveys-page__hero {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.surveys-page__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--survey-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.surveys-page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--survey-ink);
}

.surveys-page__lead {
  margin: 0;
  color: #334155;
  line-height: 1.55;
  font-size: 1.02rem;
}

.surveys-page__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.survey-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  min-height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.survey-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 14px 32px rgba(6, 153, 216, 0.12);
  transform: translateY(-2px);
}

.survey-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.survey-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0578AB;
  background: #EFF6FF;
}

.survey-card__meta {
  color: var(--survey-muted);
  font-size: 0.85rem;
}

.survey-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--survey-ink);
}

.survey-card__title a {
  color: inherit;
  text-decoration: none;
}

.survey-card__title a:hover {
  color: var(--survey-accent);
}

.survey-card__subtitle {
  margin: 0 0 0.55rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.98rem;
  line-height: 1.4;
}

.survey-card__excerpt {
  margin: 0;
  color: var(--survey-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.survey-card__actions {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.surveys-page__empty {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.surveys-page__empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.surveys-page__empty p {
  margin: 0 0 1.25rem;
  color: var(--survey-muted);
}

@media (max-width: 960px) {
  .surveys-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .surveys-page {
    padding-top: 1.5rem;
  }

  .surveys-page__grid {
    grid-template-columns: 1fr;
  }
}
