* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f1e8;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.w {
  width: 100%;
  max-width: 560px;
}

.logo {
  margin-bottom: 2.5rem;
}

.logo-img {
  height: 52px;
  width: auto;
}

.intro h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #2d1208;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.intro p {
  font-size: 14px;
  color: #7a6a5a;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.progress {
  height: 2px;
  background: #e0d8cc;
  border-radius: 999px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: #2d1208;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b0a090;
  margin-bottom: 8px;
}

.step-q {
  font-size: 20px;
  font-weight: 600;
  color: #2d1208;
  margin: 0 0 6px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.step-hint {
  font-size: 13px;
  color: #8a7a6a;
  margin: 0 0 20px;
  line-height: 1.6;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.75rem;
}

.tile-grid > div {
  display: flex;
}

.tile-inp {
  display: none;
}

.tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px;
  border: 1.5px solid #e0d8cc;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.tile-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.tile-title {
  font-size: 13px;
  font-weight: 600;
  color: #2d1208;
  line-height: 1.3;
}

.tile-desc {
  font-size: 12px;
  color: #9a8a7a;
  line-height: 1.5;
}

.tile-inp:checked + .tile {
  border-color: #2d1208;
  background: #faf7f2;
  box-shadow: 0 0 0 1px #2d1208;
}

.tile-inp:checked + .tile .tile-title {
  color: #2d1208;
}

.tile-inp:checked + .tile .tile-desc {
  color: #6a5a4a;
}

.pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1.75rem;
}

.p-inp {
  display: none;
}

.pill {
  display: block;
  padding: 9px 12px;
  border: 1.5px solid #e0d8cc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #5a4a3a;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  background: #fff;
  line-height: 1.3;
}

.p-inp:checked + .pill {
  background: #2d1208;
  border-color: #2d1208;
  color: #fff;
}

textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0d8cc;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #2d1208;
  outline: none;
  margin-bottom: 1.25rem;
}

textarea:focus,
input:focus {
  border-color: #2d1208;
  box-shadow: 0 0 0 3px rgba(45, 18, 8, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.others-box {
  margin-bottom: 1rem;
}

.mood-label {
  font-size: 14px;
  font-weight: 600;
  color: #2d1208;
  margin-bottom: 12px;
}

.mood-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 1.75rem;
}

.mood-inp {
  display: none;
}

.mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border: 1.5px solid #e0d8cc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.mood-emoji {
  font-size: 22px;
}

.mood-lbl {
  font-size: 10px;
  font-weight: 500;
  color: #b0a090;
  text-align: center;
  line-height: 1.3;
}

.mood-inp:checked + .mood {
  border-color: #2d1208;
  background: #faf7f2;
}

.mood-inp:checked + .mood .mood-lbl {
  color: #2d1208;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.btn-back {
  background: none;
  border: none;
  font-size: 13px;
  color: #9a8a7a;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-weight: 500;
}

.btn-back:hover {
  color: #2d1208;
}

.btn-next {
  padding: 11px 30px;
  background: #2d1208;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-next:hover {
  background: #1a0a04;
}

.btn-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.follow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.fw-inp {
  display: none;
}

.fw-lbl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px;
  border: 1.5px solid #e0d8cc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #5a4a3a;
  transition: all 0.15s;
  background: #fff;
}

.fw-inp:checked + .fw-lbl {
  border-color: #2d1208;
  background: #2d1208;
  color: #fff;
}

.contact {
  margin-bottom: 1.25rem;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #7a6a5a;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-pair input {
  margin-bottom: 0;
}

.form-error {
  font-size: 13px;
  color: #b3261e;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.success {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
}

.success.active {
  display: block;
}

.success-icon {
  font-size: 44px;
  margin-bottom: 20px;
}

.success h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #2d1208;
  letter-spacing: -0.2px;
}

.success p {
  font-size: 14px;
  color: #7a6a5a;
  margin: 0;
  line-height: 1.7;
}

[hidden] {
  display: none !important;
}
