/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #000;
  background-color: #fce7ec; /* light pink */
  min-height: 100vh;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.lang-btn {
  background: transparent;
  border: 1px solid #c79aa6;
  color: #555;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.lang-btn:hover { background: rgba(0, 0, 0, 0.04); color: #000; }
.lang-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Intro */
.intro {
  margin-bottom: 40px;
}
.intro h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.intro p {
  margin: 0 0 16px;
}
.intro strong { font-weight: 600; }
.intro .thanks { margin-top: 24px; margin-bottom: 4px; }
.intro .thanks + .thanks { margin-top: 0; }

/* Sections */
form section {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
form h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}

/* Fields */
.field {
  display: block;
  margin-bottom: 18px;
}
.field:last-child { margin-bottom: 0; }

.field .label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.field .label em {
  font-style: normal;
  font-weight: 400;
  color: #555;
  font-size: 13px;
}
.field .hint {
  display: block;
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4a8b1;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: #000;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

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

/* Word cards */
.word-card {
  background: #fff;
  border: 1px solid #e8b9c4;
  border-radius: 8px;
  padding: 18px 18px 6px;
  margin-bottom: 14px;
  position: relative;
}
.word-card.has-error {
  border-color: #c62828;
  background: #fff5f6;
}

.word-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.word-number {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.remove-word {
  background: transparent;
  border: none;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  font: inherit;
  font-size: 13px;
}
.remove-word:hover { color: #000; text-decoration: underline; }
.word-card.is-only .remove-word { display: none; }

/* Answer status (live duplicate check) */
.answer-status {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  min-height: 18px;
}
.answer-status[data-state="checking"] { color: #777; }
.answer-status[data-state="ok"] { color: #7c3aed; }
.answer-status[data-state="duplicate"] { color: #c62828; font-weight: 500; }
.answer-status[data-state="duplicate-in-form"] { color: #c62828; font-weight: 500; }

.word-card.has-duplicate input.answer-input {
  border-color: #c62828;
  background: #fff5f6;
}

/* Add another word */
.add-button {
  display: inline-block;
  background: transparent;
  border: 1px dashed #000;
  color: #000;
  padding: 10px 18px;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  margin-top: 4px;
}
.add-button:hover { background: rgba(0,0,0,0.04); }

/* Consent */
.consent-section { padding: 18px 24px; }
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}
.checkbox-field input { margin-top: 4px; }

.privacy-note {
  margin: 12px 0 0;
  padding-left: 28px;
  font-size: 13px;
  color: #555;
  line-height: 1.45;
}

/* Honeypot — must be unreachable visually but not display:none
   (some bots skip display:none fields). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit */
.submit-button {
  display: block;
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 8px;
}
.submit-button:hover { background: #222; }
.submit-button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Status messages below submit */
.status {
  margin-top: 18px;
  font-size: 15px;
  min-height: 22px;
}
.status.success {
  color: #7c3aed;
  font-weight: 500;
}
.status.error {
  color: #c62828;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
  .page { padding: 32px 16px 64px; }
  .intro h1 { font-size: 22px; }
  form section { padding: 18px; }
}
