/* Registration wizard modal — styled per the provided mockups. */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-modal);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }

.modal-title { text-align: center; margin: 0 0 6px; font-size: 1.6rem; }
.modal-sub { text-align: center; color: var(--text-muted); margin: 0 0 28px; }

/* Step 1: big role buttons (DEVELOPER / CLIENT) */
.role-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
  padding: 20px 0 10px;
}
.role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 320px;
  max-width: 100%;
  padding: 22px 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--role-grad-from), var(--role-grad-to));
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.08s ease, filter 0.12s ease;
}
.role-btn-label {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.role-btn-sub {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}
.role-btn:hover { filter: brightness(1.12); }
.role-btn:active { transform: translateY(1px); }

/* Step 2: multi-select option grid (skills / needs) */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 24px;
}
@media (max-width: 480px) { .option-grid { grid-template-columns: 1fr; } }

.option-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--gray-600);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: var(--shadow-1);
}
.option-chip:hover { border-color: var(--gray-500); }
.option-chip.selected {
  border-color: var(--accent-cyan);
  background: rgba(127,212,245,0.12);
}
.option-chip .check {
  width: 18px; height: 18px; flex: none;
  border-radius: 4px;
  border: 1px solid var(--gray-500);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--accent-cyan-ink);
}
.option-chip.selected .check { background: var(--accent-cyan); border-color: var(--accent-cyan); }

/* Wizard footer nav */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.wizard-steps {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 18px;
}

/* Client project info block (budget / timeline / deadline) */
.project-info {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-700);
}
.project-info-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

/* Contact step: two-column field grid */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 480px) { .field-grid { grid-template-columns: 1fr; } }
.field-grid .field.span2 { grid-column: 1 / -1; }

/* Honeypot: visually removed but kept in the DOM off-screen.
   Not display:none, since some bots skip hidden fields. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
