:root {
  --color-bg: #f4f6f5;
  --color-surface: #ffffff;
  --color-text: #17211b;
  --color-accent: #2f6b4f;
  --color-accent-dark: #214e3a;
  --color-accent-soft: #e9f4ed;
  --color-olive: #3d7a5c;
  --color-olive-dark: #28563f;
  --color-olive-soft: #edf6f0;
  --color-neutral-100: #f7f9f8;
  --color-neutral-200: #e6ebe8;
  --color-neutral-300: #cbd4cf;
  --color-neutral-500: #758178;
  --color-neutral-600: #5e6b62;
  --color-neutral-700: #445149;
  --color-neutral-800: #2d3931;
  --color-danger: #b42318;
  --color-danger-soft: #fff3f2;
  --color-danger-border: #f2b8b5;
  --radius-small: 14px;
  --radius-medium: 20px;
  --radius-large: 28px;
  --shadow-small: 0 1px 3px rgba(23, 33, 27, .08);
  --shadow-card: 0 3px 10px rgba(23, 33, 27, .07);
  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans Gurmukhi", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(47, 107, 79, .22);
}

:focus-visible {
  outline: 3px solid rgba(47, 107, 79, .4);
  outline-offset: 3px;
}

.survey-page {
  width: 100%;
  min-height: 100vh;
  padding: 20px 16px 40px;
}

.survey-hero,
.survey-content,
.survey-footer {
  width: min(100%, 720px);
  margin-inline: auto;
}

.survey-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
}

.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand-logo-frame {
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  box-shadow: var(--shadow-small);
}

.brand-logo-frame img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.hero-copy {
  text-align: left;
}

.hero-copy h1,
.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 400;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.hero-copy p {
  margin: 4px 0 0;
  color: var(--color-neutral-700);
  font-size: .94rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
  font-size: .73rem;
  letter-spacing: .01em;
  border: 1px solid var(--color-neutral-200);
}

.tag-reward {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-color: #c9e1d2;
}

.survey-content {
  margin-top: 16px;
}

.notice {
  margin-bottom: 12px;
  padding: 13px 16px;
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-small);
  background: var(--color-danger-soft);
  color: var(--color-danger);
  box-shadow: var(--shadow-small);
}

.notice-success {
  border-color: #b9d9c5;
  background: var(--color-accent-soft);
  color: var(--color-olive-dark);
}

.survey-progress {
  position: sticky;
  z-index: 10;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-small);
}

.progress-track {
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-neutral-200);
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-olive);
  transition: width .3s ease;
}

.progress-copy {
  flex: 0 0 auto;
  color: var(--color-neutral-700);
  font-size: .81rem;
  font-weight: 700;
  white-space: nowrap;
}

#surveyForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.survey-section {
  padding: 18px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  animation: card-enter .42s both;
}

.survey-section:nth-of-type(2) {
  animation-delay: .04s;
}

.survey-section:nth-of-type(3) {
  animation-delay: .08s;
}

.survey-section:nth-of-type(4) {
  animation-delay: .12s;
}

.survey-section:nth-of-type(5) {
  animation-delay: .16s;
}

@keyframes card-enter {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.section-number {
  display: inline-grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: .83rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(33, 78, 58, .18);
}

.section-number-optional {
  background: var(--color-neutral-300);
  color: var(--color-neutral-800);
  box-shadow: none;
}

.section-header h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.section-header h2 > span {
  color: var(--color-neutral-600);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 400;
}

.section-header h2 small {
  color: var(--color-neutral-500);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-neutral-700);
  font-size: .78rem;
  font-weight: 600;
}

.field label span {
  font-weight: 400;
}

.field label b,
.rating-heading b {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.field label small {
  color: var(--color-neutral-500);
  font-size: .68rem;
  font-weight: 400;
}

.form-control {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid var(--color-neutral-300);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  caret-color: var(--color-accent);
  font-size: .91rem;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-control::placeholder {
  color: var(--color-neutral-500);
}

.form-control:hover {
  border-color: #9eaaa3;
}

.form-control:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(47, 107, 79, .13);
}

input[type="date"] {
  color-scheme: light;
}

.field-help,
.invalid-feedback,
.character-count,
.group-error {
  font-size: .72rem;
}

.field-help {
  margin-top: 5px;
  color: var(--color-neutral-600);
  line-height: 1.35;
}

.invalid-feedback,
.group-error {
  display: none;
  margin: 5px 0 0;
  color: var(--color-danger);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.currency-field {
  position: relative;
}

.currency-field > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  color: var(--color-neutral-600);
}

.currency-field .form-control {
  padding-left: 34px;
}

.store-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-option {
  position: relative;
  cursor: pointer;
}

.store-input,
.rating-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.store-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--color-neutral-300);
  border-radius: 999px;
  background: #fff;
  color: var(--color-neutral-800);
  font-size: .91rem;
  font-weight: 600;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.store-option:hover span {
  border-color: var(--color-olive);
  transform: translateY(-1px);
}

.store-input:focus-visible + span,
.rating-input:focus-visible + .rating-option {
  outline: 3px solid rgba(47, 107, 79, .4);
  outline-offset: 3px;
}

.store-input:checked + span {
  border-color: var(--color-olive);
  background: var(--color-olive);
  color: #fff;
}

.store-input:checked + span::before {
  content: "✓";
  margin-right: 6px;
}

.was-validated .store-input:invalid ~ span {
  border-color: var(--color-danger);
}

.was-validated .store-options:has(.store-input:invalid) + .group-error {
  display: block;
}

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rating-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-medium);
  background: #fff;
  transition: border-color .18s ease, background-color .18s ease;
}

.rating-card.has-selection {
  border-color: #b9d9c5;
  background: var(--color-olive-soft);
}

.rating-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.rating-heading p {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
}

.rating-heading p span {
  color: var(--color-neutral-600);
  font-size: .72rem;
  font-weight: 400;
}

.rating-hint {
  flex: 0 0 auto;
  color: var(--color-olive-dark);
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}

.rating-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 6px;
}

.rating-option {
  display: grid;
  min-width: 0;
  min-height: 49px;
  place-items: center;
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-small);
  background: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease, opacity .15s ease;
}

.rating-option:hover {
  transform: scale(1.06);
  border-color: var(--color-olive);
}

.rating-card.has-selection .rating-option {
  opacity: .72;
}

.rating-card.has-selection .rating-input:checked + .rating-option {
  transform: scale(1.03);
  border-color: var(--color-olive);
  background: var(--color-olive-soft);
  opacity: 1;
}

.was-validated .rating-card:has(.rating-input:invalid) {
  border-color: var(--color-danger);
}

.was-validated .rating-card:has(.rating-input:invalid) .group-error {
  display: block;
}

.feedback-field {
  min-height: 86px;
  border-radius: var(--radius-medium);
  resize: vertical;
}

.character-count {
  display: block;
  margin-top: 5px;
  color: var(--color-neutral-600);
  text-align: right;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 4px 0;
}

.form-error-summary {
  padding: 13px 17px;
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-medium);
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(33, 78, 58, .2);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  background: var(--color-accent-dark);
  box-shadow: 0 4px 10px rgba(33, 78, 58, .24);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: wait;
  opacity: .7;
}

.privacy-note,
.survey-footer {
  color: var(--color-neutral-600);
  font-size: .75rem;
  text-align: center;
}

.privacy-note {
  margin: -2px 0 0;
}

.survey-footer {
  margin-top: 25px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

@media (max-width: 560px) {
  .survey-page {
    min-height: auto;
    padding: 14px 10px 10px;
  }

  .brand-logo-frame {
    width: 56px;
    height: 56px;
  }

  .hero-copy h1 {
    font-size: 1.55rem;
  }

  .tag {
    font-size: .68rem;
  }

  .survey-progress {
    top: 6px;
    padding: 8px 12px;
  }

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

  .survey-section {
    padding: 16px 14px;
    border-radius: 23px;
  }

  .section-header {
    align-items: flex-start;
  }

  .section-header h2 > span {
    display: block;
    margin-top: 2px;
  }

  .store-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-option span {
    width: 100%;
    padding-inline: 10px;
  }

  .rating-group {
    gap: 5px;
  }

  .rating-option {
    min-height: 48px;
    font-size: 1.45rem;
  }

  .survey-footer {
    margin-top: 12px;
  }
}

@media (max-width: 390px) {
  .brand-lockup {
    gap: 10px;
  }

  .hero-copy h1 {
    font-size: 1.4rem;
  }

  .hero-copy p {
    font-size: .83rem;
  }

  .hero-tags {
    gap: 6px;
  }

  .tag {
    padding-inline: 8px;
  }

  .progress-copy {
    font-size: .72rem;
  }

  .rating-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .rating-option {
    min-height: 45px;
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
