form {
  display: grid;
  gap: 22px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full,
.form-section-heading.full {
  grid-column: 1 / -1;
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid #e4e4e7;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.10), rgba(109, 40, 217, 0.05)),
    #fafafa;
}

.form-section-heading:first-child {
  margin-top: 0;
}

.form-section-heading h2,
.form-section-heading p {
  margin: 0;
}

.form-section-heading h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.form-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-section-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 11px;
  background: #18181b;
  color: #facc15;
  font-size: 14px;
  font-weight: 900;
}

label {
  font-weight: 800;
  color: var(--text);
  font-size: 14px;
}

.tcg-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tcg-fieldset legend {
  margin-bottom: 7px;
  padding: 0;
  font-weight: 800;
  color: var(--text);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.20);
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.featured-field {
  padding: 16px;
  border: 1px solid #fde68a;
  border-radius: 18px;
  background: #fffdf2;
}

.featured-field input {
  background: #ffffff;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checkbox-pill input {
  width: auto;
  accent-color: #6d28d9;
}

.checkbox-pill:has(input:checked) {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.hidden {
  display: none;
}

.submit-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.24);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.submit-form-button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.28);
}

.notice-box {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #fde68a;
  border-radius: 18px;
  background: #fffbeb;
  color: #92400e;
}

.notice-box p {
  color: #92400e;
}

.event-agenda-box {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.event-agenda-box p {
  color: #1e3a8a;
}

.event-agenda-box strong {
  color: #1e40af;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section-heading {
    padding: 15px;
  }
}
