:root {
  --primary: #424492;
  --primary-light: #4e5686;
  --primary-dark: #37387b;
  --secondary: #2c4f72;
  --success: #4e8654;
  --bg: #f9fafb;
  --text: #334155;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(66, 68, 146, 0.12), transparent),
    linear-gradient(180deg, #eef0f7 0%, var(--bg) 40%, var(--bg) 100%);
}

.wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

header {
  text-align: center;
  margin-bottom: 1.75rem;
  animation: slideUp 0.5s ease-out;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: var(--secondary);
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand span {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

header p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.55;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  animation: slideUp 0.55s ease-out 0.05s both;
}

@media (min-width: 640px) {
  .card {
    padding: 2rem 2.25rem;
  }
}

.section-title {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.section + .section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
}

label .req {
  color: #dc2626;
  margin-left: 0.15rem;
}

.hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.925rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 68, 146, 0.18);
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choices.inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .choices.inline.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.choice:hover {
  border-color: #c7c9dc;
  background: rgba(78, 86, 134, 0.04);
}

.choice:has(input:checked) {
  border-color: var(--primary);
  background: rgba(66, 68, 146, 0.06);
}

.choice input {
  margin-top: 0.15rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.choice span {
  font-size: 0.9rem;
  line-height: 1.4;
}

.scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.3rem;
}

.scale label {
  margin: 0;
  text-align: center;
  padding: 0.55rem 0.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.scale label:hover {
  border-color: var(--primary-light);
}

.scale label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

button[type="submit"] {
  appearance: none;
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border-radius: 16px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(66, 68, 146, 0.25);
}

button[type="submit"]:hover:not(:disabled) {
  background: var(--primary-dark);
}

button[type="submit"]:active:not(:disabled) {
  transform: scale(0.99);
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.success,
.error-banner {
  display: none;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  animation: slideUp 0.4s ease-out;
}

.success {
  background: var(--white);
  border: 1px solid #c6dfc9;
  box-shadow: var(--shadow);
}

.success.visible,
.error-banner.visible {
  display: block;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(78, 134, 84, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.success h2 {
  margin: 0 0 0.5rem;
  color: #1f2937;
  font-size: 1.35rem;
}

.success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.form-hidden {
  display: none !important;
}

.honey {
  display: none;
}

@keyframes slideUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
