* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f1ff;
  color: #06172f;
}

.page {
  min-height: 100vh;
  padding: 28px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.form-card {
  width: 100%;
  max-width: 1040px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(50, 30, 100, 0.12);
}

.form-header {
  margin-bottom: 26px;
}

.form-header h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.form-header p {
  margin: 0;
  color: #667085;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.field,
.question {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.full {
  grid-column: 1 / -1;
}

label {
  font-size: 16px;
  font-weight: 700;
}

.required {
  color: #dc2626;
}

input,
select {
  width: 100%;
  height: 58px;
  border: 1px solid #d5dae5;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 17px;
  color: #06172f;
  background: #ffffff;
  outline: none;
}

input:focus,
select:focus {
  border-color: #6d28d9;
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

input:disabled,
select:disabled {
  background: #f3f4f7;
  color: #7b8495;
}

small {
  color: #667085;
  font-size: 14px;
}

.question {
  margin-top: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips label {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #d5dae5;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #ffffff;
  font-size: 16px;
}

.chips input {
  width: auto;
  height: auto;
}

.chips label:has(input:checked) {
  border-color: #7c3aed;
  background: #f1e8ff;
  color: #5417b8;
}

.other-input {
  display: none;
  max-width: 420px;
  margin-top: 8px;
}

button {
  margin-top: 34px;
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  padding: 0 30px;
  background: #5f22c8;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(95, 34, 200, 0.22);
}

button:hover {
  background: #4c1ba3;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.message {
  margin: 18px 0 0;
  font-weight: 700;
  min-height: 22px;
}

.message.success {
  color: #047857;
}

.message.error {
  color: #dc2626;
}

.message.info {
  color: #5f22c8;
}

@media (max-width: 760px) {
  .page {
    padding: 16px 10px;
  }

  .form-card {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .form-header h1 {
    font-size: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  input,
  select {
    height: 54px;
    font-size: 16px;
  }

  button {
    width: 100%;
  }
}
