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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
  background: #f5f6fa;
  line-height: 1.6;
}

/* Nav */
header { background: #0f3460; padding: 1rem 2rem; }
nav { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; }
.logo { color: #e94560; font-size: 1.4rem; font-weight: 700; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav ul a { color: #eee; text-decoration: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, #0f3460, #16213e);
  color: #fff;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.hero p  { font-size: 1.1rem; opacity: .85; max-width: 640px; margin: 0 auto; }

/* Questionnaire */
.questionnaire {
  max-width: 720px;
  margin: -2rem auto 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2.5rem 2rem;
}
.questionnaire h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #0f3460;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #16213e;
}
.form-group .hint {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.4rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e94560;
  box-shadow: 0 0 0 3px rgba(233,69,96,.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio / Checkbox groups */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.options-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.options-group input[type="radio"],
.options-group input[type="checkbox"] {
  accent-color: #e94560;
}

/* Submit */
.btn-submit {
  display: inline-block;
  background: #e94560;
  color: #fff;
  border: none;
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #d63a54; }
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success / Error messages */
.form-message {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}
.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
}
.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
}

/* Footer */
footer { text-align: center; padding: 2rem; background: #0f3460; color: #aaa; font-size: .875rem; }

/* Responsive */
@media (max-width: 600px) {
  .questionnaire { margin: -1rem 1rem 2rem; padding: 1.5rem 1rem; }
  .hero h1 { font-size: 1.8rem; }
}
