:root {
  color-scheme: light;
  --ink: #14213a;
  --ink-soft: #526078;
  --paper: #ffffff;
  --page: #f4f6f1;
  --line: #dfe5dc;
  --green: #8fbd32;
  --green-dark: #658f16;
  --blue: #4d79b8;
  --shadow: 0 22px 70px rgba(32, 50, 73, 0.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(149, 196, 61, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 32%, rgba(78, 121, 184, 0.09), transparent 32rem),
    var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

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

.page-glow {
  position: fixed;
  z-index: -1;
  width: 25rem;
  height: 25rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.page-glow--one {
  top: 22rem;
  left: -17rem;
  background: #a7cb62;
}

.page-glow--two {
  right: -16rem;
  bottom: 4rem;
  background: #7fa5d6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
}

.brand:focus-visible {
  outline: 3px solid rgba(78, 121, 184, 0.32);
  outline-offset: 2px;
}

.brand img {
  display: block;
  width: 57px;
  height: 57px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.privacy-pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 15px;
  color: #48641c;
  border: 1px solid rgba(124, 167, 43, 0.24);
  border-radius: 999px;
  background: rgba(245, 250, 235, 0.88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.privacy-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(143, 189, 50, 0.14);
}

.page-shell {
  width: min(920px, calc(100% - 40px));
  margin: 26px auto 0;
  padding-bottom: 40px;
}

.hero {
  margin-bottom: 40px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.45;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.hero > p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.3vw, 20px);
  line-height: 1.55;
  text-wrap: balance;
}

.hero strong {
  color: var(--ink);
}

.anonymous-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 670px;
  margin-top: 24px;
  padding: 13px 18px 13px 13px;
  color: #486078;
  border: 1px solid rgba(78, 121, 184, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  backdrop-filter: blur(10px);
}

.anonymous-note__icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: white;
  border-radius: 50%;
  background: var(--blue);
  font-weight: 900;
  place-items: center;
}

.survey-form {
  display: grid;
  gap: 22px;
}

.form-card,
.submit-card,
.success-panel {
  border: 1px solid rgba(31, 53, 73, 0.07);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.form-card {
  padding: clamp(24px, 4.8vw, 44px);
}

.section-heading {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 33, 58, 0.16);
  font-size: 16px;
  font-weight: 800;
  place-items: center;
}

.section-heading h2,
.submit-card h2,
.success-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.submit-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.select-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 9px;
}

.field__label {
  color: #39465c;
  font-size: 13px;
  font-weight: 750;
}

.required-mark {
  color: #d44c4c;
}

.optional-mark {
  margin-left: 6px;
  color: #8a95a5;
  font-size: 11px;
  font-weight: 550;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6d7786;
  border-bottom: 2px solid #6d7786;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

select {
  width: 100%;
  min-height: 58px;
  padding: 0 52px 0 17px;
  color: var(--ink);
  border: 1px solid #d8dfe6;
  border-radius: 16px;
  outline: none;
  background: #f9faf8;
  cursor: pointer;
  appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

select:hover {
  border-color: #b7c2cd;
  background: white;
}

select:focus-visible {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(78, 121, 184, 0.12);
}

select.is-invalid {
  border-color: #d85a5a;
  box-shadow: 0 0 0 4px rgba(216, 90, 90, 0.1);
}

.field-error,
.emotion-error {
  min-height: 18px;
  color: #bd3838;
  font-size: 12px;
  line-height: 1.4;
}

.selection-box {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid #dce3e8;
  border-radius: 20px;
  background: #f7f9fa;
}

.selection-box__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  color: #5f6b7d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selection-counter {
  padding: 5px 9px;
  color: #697484;
  border-radius: 999px;
  background: #e8edf0;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.selection-counter.is-complete {
  color: #426414;
  background: #e5f2ca;
}

.selected-emotions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 44px;
  align-items: center;
}

.selection-placeholder {
  margin: 0;
  color: #9099a6;
  font-size: 14px;
}

.emotion-chip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 6px 7px 6px 14px;
  border: 1px solid color-mix(in srgb, var(--chip-color), #000 7%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-color), #fff 66%);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--chip-color), transparent 75%);
  font-size: 13px;
  font-weight: 750;
  animation: chip-in 180ms ease-out both;
}

.emotion-chip button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #536070;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  place-items: center;
}

.emotion-chip button:hover {
  color: #b53333;
  background: white;
}

.emotion-chip button:focus-visible {
  outline: 3px solid rgba(78, 121, 184, 0.3);
  outline-offset: 2px;
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }
}

.wheel-panel {
  position: relative;
  overflow: hidden;
  padding: 25px 20px 15px;
  border: 1px solid rgba(59, 77, 97, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98), rgba(242, 245, 242, 0.88) 68%),
    #f5f7f4;
}

.wheel-panel__hint {
  position: absolute;
  z-index: 10;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 11px;
  color: #5f6b78;
  border: 1px solid #e1e6e3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(30, 44, 60, 0.06);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.wheel-panel__hint span {
  color: var(--green-dark);
  font-size: 15px;
}

.wheel-scroll {
  display: grid;
  width: 100%;
  min-height: 600px;
  place-items: center;
}

.emotion-wheel {
  --wheel-size: min(600px, 74vw);
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  isolation: isolate;
}

.wheel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: conic-gradient(
    from -22.5deg,
    #f2c84b 0deg 44.6deg,
    #a6cf4a 45deg 89.6deg,
    #49b779 90deg 134.6deg,
    #3eb7c2 135deg 179.6deg,
    #5683ca 180deg 224.6deg,
    #8067b7 225deg 269.6deg,
    #df5b55 270deg 314.6deg,
    #ed913e 315deg 359.6deg,
    #f2c84b 360deg
  );
  box-shadow: 0 18px 45px rgba(37, 59, 72, 0.1);
  transform: translate(-50%, -50%);
}

.wheel-ring--outer {
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.28;
}

.wheel-ring--middle {
  z-index: -2;
  width: 70%;
  height: 70%;
  filter: saturate(1.15);
  opacity: 0.48;
}

.wheel-ring--inner {
  z-index: -1;
  width: 42%;
  height: 42%;
  filter: saturate(1.28);
  opacity: 0.7;
}

.wheel-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 19%;
  height: 19%;
  color: white;
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(20, 33, 58, 0.2);
  text-align: center;
  transform: translate(-50%, -50%);
  place-content: center;
}

.wheel-center span {
  font-size: clamp(9px, 1.35vw, 13px);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.wheel-center small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.67);
  font-size: clamp(7px, 1.1vw, 10px);
}

.emotion-button {
  position: absolute;
  z-index: 4;
  top: var(--emotion-y);
  left: var(--emotion-x);
  display: grid;
  width: var(--emotion-width);
  min-width: 42px;
  height: var(--emotion-height);
  min-height: 29px;
  padding: 2px 5px;
  color: #1d2c3d;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  outline: none;
  background: color-mix(in srgb, var(--emotion-color), #fff var(--emotion-lightness));
  box-shadow: 0 3px 9px rgba(35, 52, 66, 0.1);
  cursor: pointer;
  font-size: clamp(7px, 1.24vw, 10px);
  font-weight: 800;
  line-height: 1.03;
  text-align: center;
  text-wrap: balance;
  transform: translate(-50%, -50%);
  transition: transform 150ms ease, box-shadow 150ms ease, color 150ms ease, background 150ms ease;
  place-items: center;
}

.emotion-button[data-ring="outer"] {
  --emotion-width: 21%;
  --emotion-height: 8.6%;
  --emotion-lightness: 46%;
}

.emotion-button[data-ring="middle"] {
  --emotion-width: 18.5%;
  --emotion-height: 8.8%;
  --emotion-lightness: 30%;
}

.emotion-button[data-ring="inner"] {
  --emotion-width: 15%;
  --emotion-height: 9%;
  --emotion-lightness: 15%;
  font-size: clamp(6.5px, 1.05vw, 9px);
}

.emotion-button:hover {
  z-index: 6;
  box-shadow: 0 8px 18px rgba(30, 45, 60, 0.18);
  transform: translate(-50%, -50%) scale(1.08);
}

.emotion-button:focus-visible {
  z-index: 7;
  box-shadow: 0 0 0 4px white, 0 0 0 7px rgba(78, 121, 184, 0.54);
}

.emotion-button.is-selected {
  z-index: 8;
  color: white;
  border-color: white;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--emotion-color), 0 9px 20px rgba(20, 33, 58, 0.28);
  transform: translate(-50%, -50%) scale(1.08);
}

.emotion-button.is-unavailable:not(.is-selected) {
  opacity: 0.56;
}

.emotion-error {
  min-height: 20px;
  margin: 8px 0 0;
  text-align: center;
}

.submit-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
  align-items: center;
  padding: 28px clamp(24px, 4.8vw, 42px);
  background: var(--ink);
}

.submit-card__copy {
  display: flex;
  gap: 15px;
  align-items: center;
}

.step-number--small {
  width: 38px;
  height: 38px;
  color: var(--ink);
  border-radius: 12px;
  background: var(--green);
  box-shadow: none;
}

.submit-card h2 {
  color: white;
  font-size: 23px;
}

.submit-card p {
  color: #aeb9c8;
  font-size: 13px;
}

.submit-button {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 58px;
  padding: 0 14px 0 25px;
  color: #17233a;
  border: 0;
  border-radius: 17px;
  outline: none;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(143, 189, 50, 0.24);
  cursor: pointer;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.submit-button__arrow {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 21px;
  place-items: center;
}

.submit-button:not(:disabled):hover {
  background: #9dcc40;
  transform: translateY(-2px);
}

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

.submit-button:focus-visible {
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px rgba(143, 189, 50, 0.75);
}

.submit-button:disabled {
  color: #8a94a3;
  background: #38465c;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.submit-button.is-loading .submit-button__arrow {
  color: transparent;
}

.submit-button.is-loading .submit-button__arrow::after {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(23, 35, 58, 0.24);
  border-top-color: #17233a;
  border-radius: 50%;
  content: "";
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: -5px 0 0 !important;
  color: #ffb4b4 !important;
  font-size: 12px !important;
  text-align: right;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.success-panel {
  padding: clamp(42px, 8vw, 76px) 28px;
  text-align: center;
}

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

.success-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  color: white;
  border: 8px solid #edf5df;
  border-radius: 50%;
  background: var(--green);
  font-size: 27px;
  font-weight: 900;
  place-items: center;
}

.success-panel__eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.success-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 42px);
}

.success-panel > p:last-child {
  max-width: 570px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  color: #7e8897;
  font-size: 12px;
}

.site-footer img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  padding: 16px;
  color: white;
  border-radius: 12px;
  background: #b73838;
  text-align: center;
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 28px, 920px);
    min-height: 76px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .privacy-pill {
    padding: 9px 12px;
    font-size: 11px;
  }

  .page-shell {
    width: min(100% - 24px, 920px);
    margin-top: 18px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(34px, 10.6vw, 52px);
    line-height: 1.02;
  }

  .anonymous-note {
    max-width: 560px;
  }

  .form-card,
  .submit-card {
    border-radius: 23px;
  }

  .form-card {
    padding: 24px 18px;
  }

  .section-heading {
    gap: 13px;
    margin-bottom: 24px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .select-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field-error {
    min-height: 0;
  }

  .selection-box {
    padding: 15px;
  }

  .wheel-panel {
    margin-right: -8px;
    margin-left: -8px;
    padding: 28px 0 9px;
    border-radius: 19px;
  }

  .wheel-panel__hint {
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    font-size: 9px;
  }

  .wheel-scroll {
    min-height: auto;
  }

  .emotion-wheel {
    --wheel-size: min(560px, calc(100vw - 42px));
  }

  .emotion-button {
    min-width: 34px;
    min-height: 25px;
    padding: 1px 3px;
    font-size: clamp(6px, 2vw, 8px);
  }

  .emotion-button[data-ring="inner"] {
    font-size: clamp(5.3px, 1.68vw, 7px);
  }

  .wheel-center {
    border-width: 3px;
  }

  .submit-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .submit-button {
    width: 100%;
  }

  .form-status {
    text-align: center;
  }
}

@media (max-width: 400px) {
  .privacy-pill__dot {
    display: none;
  }

  .hero__eyebrow {
    font-size: 10px;
  }

  .hero > p {
    font-size: 16px;
  }

  .anonymous-note {
    align-items: flex-start;
    padding-right: 14px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .section-heading p {
    font-size: 13px;
  }

  .selection-box__topline {
    margin-bottom: 10px;
  }

  .emotion-chip {
    min-height: 38px;
    padding-left: 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
