/* Multi-step membership registration */
.membership-page {
  padding: 28px 0 60px;
  background: transparent;
}
.membership-card {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border, #f0d5d5);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(120, 30, 40, 0.08);
  padding: 28px 28px 32px;
}
.ms-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ms-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  color: #8a8a8a;
}
.ms-step .ms-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 20px;
}
.ms-step.active .ms-icon {
  border-color: #c62828;
  color: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}
.ms-step.done .ms-icon {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #2e7d32;
}
.ms-label {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  max-width: 130px;
  line-height: 1.3;
}
.ms-line {
  width: 56px;
  height: 2px;
  background: #e5e5e5;
  margin-bottom: 28px;
}
.ms-panel { display: none; }
.ms-panel.active { display: block; }
.ms-grid.step1 {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.ms-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ms-fields { display: flex; flex-direction: column; gap: 12px; }
.membership-card .field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}
.membership-card .field input,
.membership-card .field select,
.membership-card .field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  background: #fff;
  color: #1a1a1a;
}
.membership-card .field input:focus,
.membership-card .field select:focus,
.membership-card .field textarea:focus {
  outline: 2px solid rgba(198, 40, 40, 0.25);
  border-color: #c62828;
}
.membership-card .field.invalid input,
.membership-card .field.invalid select,
.membership-card .field.invalid textarea {
  border-color: #c62828;
  background: #fff5f5;
}
.photo-box { text-align: center; }
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 130px;
  height: 150px;
  border: 2px dashed #ccc;
  border-radius: 14px;
  cursor: pointer;
  background: #fafafa;
  overflow: hidden;
}
.photo-upload:hover { border-color: #c62828; }
.photo-placeholder { font-size: 34px; }
.photo-hint { font-size: 12px; color: #777; font-weight: 700; }
#photoPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ms-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-dark {
  background: #2b2b2b;
  color: #fff;
  border-radius: 999px;
  border: none;
  padding: 12px 28px;
  font-weight: 800;
}
.btn-dark:hover { background: #111; }
.btn-danger {
  background: #c62828;
  color: #fff;
  border-radius: 999px;
  border: none;
  padding: 12px 28px;
  font-weight: 800;
}
.btn-success {
  background: #2e7d32;
  color: #fff;
  border-radius: 999px;
  border: none;
  padding: 12px 28px;
  font-weight: 800;
}
.btn-success:hover { background: #1b5e20; }
.success-card { text-align: center; padding: 40px 28px; }
.success-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}
.success-card h1 { margin: 0 0 8px; font-size: 28px; }
.success-card .lead { color: #666; margin: 0; }
.membership-id {
  display: inline-block;
  margin: 14px 0 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff5f5;
  color: #c62828;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .06em;
}
@media (max-width: 860px) {
  .ms-grid.step1,
  .ms-grid.two-col { grid-template-columns: 1fr; }
  .photo-box { display: flex; justify-content: center; }
  .ms-line { width: 28px; }
}
