form {
  display: grid;
  gap: 0.9rem;
}

label,
legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.checkbox-item input {
  width: auto;
  margin-top: 0;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  background: #22a6de;
  color: #FFFFFF;
}

.btn-primary {
  background: #22a6de;
  color: #FFFFFF;
}

.btn-secondary {
  background: #22a6de;
  color: #FFFFFF;
}

.btn-danger {
  background: #22a6de;
  color: #FFFFFF;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feedback {
  min-height: 1.25rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.step-panel {
  display: grid;
  gap: 0.9rem;
}

.step-panel[hidden] {
  display: none;
}

.step-panel.is-active {
  animation: stepFadeIn 0.2s ease;
}

.stage-option[aria-pressed="true"],
.timeline-option[aria-pressed="true"] {
  outline: 2px solid rgba(34, 166, 222, 0.4);
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem;
}

@media (max-width: 700px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
}
