.page-survey {
  background: #0c0c0c;
}

.survey-page {
  color: #f0f0f0;
}

.survey-hero {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center 35%;
  display: flex;
  align-items: flex-end;
  padding: 72px 0 48px;
}

.survey-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.25) 0%, rgba(8, 8, 8, 0.72) 70%, #0c0c0c 100%);
}

.survey-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.survey-hero__title {
  font-family: "Noto Nastaliq Urdu", Vazirmatn, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #f4c430;
  line-height: 1.7;
  margin: 0;
}

.survey-hero__subtitle {
  margin: 10px auto 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.survey-page__body {
  padding: 8px 0 64px;
}

.survey-flash {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #8ee0b0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: center;
}

.survey-flash--error {
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.35);
  color: #f0a8a0;
}

.survey-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 0;
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  overflow: hidden;
}

.survey-card__honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.survey-card__form {
  padding: 28px 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.survey-card__head,
.survey-q:has(.survey-stars),
.survey-q:has(.survey-textarea),
.survey-submit {
  grid-column: 1 / -1;
}

.survey-card__head {
  margin-bottom: 22px;
}

.survey-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 8px;
  display: inline-block;
}

.survey-card__title-rule {
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 6px;
  background: var(--color-gold, #d4af37);
  border-radius: 2px;
}

.survey-card__intro {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.survey-q {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
}

.survey-q__label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.survey-q__req {
  color: #e74c3c;
}

.survey-stars {
  display: flex;
  direction: ltr;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.survey-star {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 56px;
}

.survey-star input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.survey-star__icon {
  font-size: 1.7rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.28);
  transition: color 0.15s ease, transform 0.15s ease;
}

.survey-star:hover .survey-star__icon,
.survey-star:has(input:checked) .survey-star__icon {
  color: #f4c430;
}

.survey-star:has(input:checked) .survey-star__icon {
  transform: scale(1.08);
}

.survey-star__caption {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.survey-select,
.survey-input,
.survey-textarea {
  width: 100%;
  background: #1b1b1b;
  color: #f0f0f0;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.92rem;
}

.survey-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #1b1b1b;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23d4af37' d='M1 1h10L6 7z'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px 8px;
  padding-inline-start: 14px;
  padding-inline-end: 34px;
}

.survey-textarea {
  min-height: 108px;
  resize: vertical;
}

.survey-input--ltr {
  text-align: left;
  direction: ltr;
}

.survey-select:focus,
.survey-input:focus,
.survey-textarea:focus {
  outline: none;
  border-color: #d4af37;
}

.survey-q--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.survey-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 280px);
  margin: 8px auto 0;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: #d4af37;
  color: #1a1408;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.survey-card__form .survey-submit {
  display: flex;
}

.survey-submit svg {
  width: 16px;
  height: 16px;
}

.survey-submit:hover {
  background: #f2c94c;
}

.survey-quote {
  background: #101010;
  border-right: 1px solid rgba(212, 175, 55, 0.18);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.survey-quote__mark {
  font-size: 3rem;
  line-height: 0.6;
  color: #d4af37;
  font-family: Georgia, serif;
}

.survey-quote__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}

.survey-quote__photo {
  position: relative;
  margin-top: 8px;
  width: 100%;
  max-width: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.survey-quote__photo img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.survey-quote__heart {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: #e74c3c;
  font-size: 1.1rem;
}

.survey-reviews {
  margin-top: 56px;
  text-align: center;
}

.survey-reviews__title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
}

.survey-reviews__sub {
  margin: 6px 0 22px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.survey-reviews__empty {
  color: rgba(255, 255, 255, 0.45);
}

.survey-reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.survey-reviews__track::-webkit-scrollbar {
  display: none;
}

.survey-review {
  flex: 0 0 min(100%, 280px);
  scroll-snap-align: start;
  background: #161616;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  padding: 22px 20px 18px;
  text-align: right;
  position: relative;
}

.survey-review__mark {
  position: absolute;
  top: 10px;
  left: 16px;
  color: #d4af37;
  font-size: 2rem;
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.85;
}

.survey-review__stars {
  color: rgba(212, 175, 55, 0.28);
  letter-spacing: 2px;
  margin-bottom: 10px;
  direction: ltr;
  text-align: right;
}

.survey-review__stars .is-on {
  color: #f4c430;
}

.survey-review__text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  min-height: 4.2em;
}

.survey-review__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.survey-review__meta strong {
  color: #d4af37;
  font-weight: 700;
}

.survey-reviews__nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.survey-reviews__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: transparent;
  color: #d4af37;
  cursor: pointer;
  font-size: 1.2rem;
}

.survey-values {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
}

.survey-values__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  margin-bottom: 8px;
}

.survey-values__icon svg {
  width: 28px;
  height: 28px;
}

.survey-values strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .survey-card {
    grid-template-columns: 1fr;
  }

  .survey-quote {
    border-right: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    flex-direction: row;
    text-align: right;
    gap: 16px;
  }

  .survey-quote__photo {
    max-width: 120px;
    flex-shrink: 0;
  }

  .survey-quote__photo img {
    height: 140px;
  }

  .survey-values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .survey-hero {
    min-height: 220px;
    padding: 56px 0 32px;
  }

  .survey-card__form {
    padding: 20px 16px 24px;
    grid-template-columns: 1fr;
  }

  .survey-stars {
    justify-content: space-between;
    gap: 4px;
  }

  .survey-star {
    min-width: 0;
    flex: 1;
  }

  .survey-star__caption {
    font-size: 0.62rem;
  }

  .survey-review {
    flex-basis: 85%;
  }

  .survey-values {
    grid-template-columns: 1fr;
  }
}
