* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: #f7f1f9;
  margin: 0;
  padding: 14px 10px;
  display: flex;
  justify-content: center;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.12);
  border: 1px solid #ebdcf5;
}

.brand-tag {
  display: inline-block;
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

h2 {
  font-size: 20px;
  color: #581c87;
  text-align: center;
  margin: 0 0 4px 0;
  font-weight: 800;
}

p.subtitle {
  font-size: 13px;
  color: #93739e;
  text-align: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #6b21a8;
  margin: 16px 0 8px 2px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.option-btn {
  border: 1.5px solid #ebd5ff;
  background: #faf5ff;
  padding: 10px 4px;
  border-radius: 12px;
  font-size: 13px;
  color: #6b21a8;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease-in-out;
  user-select: none;
  font-weight: 600;
}

.option-btn.selected {
  border-color: #a855f7;
  background-color: #f3e8ff;
  color: #581c87;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.option-btn small {
  display: block;
  font-size: 11px;
  color: #9333ea;
  margin-top: 2px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdfaff;
  border: 1px solid #ebd5ff;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #581c87;
  cursor: pointer;
  line-height: 1.4;
}

.check-item input {
  margin-top: 2px;
  accent-color: #a855f7;
}

.preview-box {
  background: #faf5ff;
  border: 1.5px dashed #d8b4fe;
  border-radius: 12px;
  padding: 14px;
  margin-top: 18px;
  font-size: 12px;
  color: #581c87;
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 220px;
  overflow-y: auto;
}

.submit-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 14px;
  margin-top: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.35);
  transition: opacity 0.2s;
}

.submit-btn:active {
  opacity: 0.85;
}

.status-msg {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 8px;
}
