/* ============ 志愿者注册表单 · 完整信息登记表 ============ */

/* Hero */
.vr-hero {
  background: linear-gradient(135deg, var(--red-light) 0%, var(--bg-alt) 100%);
  padding: 60px 0 40px;
  text-align: center;
}
.vr-hero-inner { max-width: 820px; margin: 0 auto; }
.vr-kicker {
  display: inline-block;
  font-size: 12px; letter-spacing: 3px; font-weight: 600;
  color: var(--red); background: #fff; border-radius: 999px;
  padding: 6px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.vr-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink); margin-bottom: 14px;
}
.vr-lead {
  font-size: 15px; line-height: 1.8; color: var(--ink-2);
  max-width: 620px; margin: 0 auto;
}

/* 进度条 */
.vr-progress {
  margin-top: 28px; background: #fff; border-radius: 14px; padding: 18px 22px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 16px;
}
.vr-progress-bar {
  flex: 1; height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden;
}
.vr-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--red), var(--red-deep));
  border-radius: 999px; width: 0%; transition: width .4s ease;
}
.vr-progress-text {
  font-size: 13px; color: var(--muted); font-weight: 600; flex-shrink: 0;
  white-space: nowrap;
}
.vr-progress-text span { color: var(--red); font-weight: 700; }

/* 登录提示条 */
.vr-loginbar {
  background: var(--bg-soft); border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0; padding: 14px 18px;
  color: var(--muted); font-size: 14px; line-height: 1.7;
  margin: 24px auto 0; max-width: 820px;
}
.vr-loginbar.ok { border-left-color: #2e7d32; background: #eef7ee; color: #2e7d32; }
.vr-loginbar b { color: var(--ink); }
.vr-loginbar .bf-btn { margin-left: 8px; padding: 4px 14px; font-size: 13px; }

/* 表单主区域 */
.vr-main { padding: 32px 0 60px; max-width: 860px; }

/* Section 卡片 */
.vr-section {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px 30px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(58,40,38,0.05);
}
.vr-section-head {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px;
  padding-bottom: 16px; border-bottom: 1px dashed #e8e0d5;
}
.vr-section-num {
  width: 40px; height: 40px; line-height: 40px; text-align: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; border-radius: 12px; font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}
.vr-section-head h2 {
  font-size: 18px; margin: 0 0 4px; color: var(--ink);
}
.vr-section-head p {
  font-size: 13px; color: var(--muted); margin: 0;
}

/* 必填标记 */
.req { color: var(--red); font-weight: 700; font-style: normal; }

/* Grid */
.vr-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px;
}
.vr-field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .vr-grid { grid-template-columns: 1fr; }
}

/* 字段 */
.vr-field { display: flex; flex-direction: column; }
.vr-field > label {
  font-size: 13px; color: var(--ink); font-weight: 600;
  margin-bottom: 8px; display: flex; align-items: center; gap: 2px;
}
.vr-field input[type="text"],
.vr-field input[type="tel"],
.vr-field input[type="email"],
.vr-field input[type="date"],
.vr-field select,
.vr-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px; font-size: 14px; color: var(--ink);
  background: #fafaf7; border: 1.5px solid #e8e0d5; border-radius: 10px;
  transition: all .15s; font-family: var(--font-sans);
}
.vr-field input:focus,
.vr-field select:focus,
.vr-field textarea:focus {
  outline: none; border-color: var(--red);
  background: #fff; box-shadow: 0 0 0 3px rgba(231,111,81,.12);
}
.vr-field input:invalid:not(:placeholder-shown),
.vr-field select:invalid,
.vr-field textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c; background: #fdf5f4;
}
.vr-field textarea { resize: vertical; min-height: 60px; }

/* 地址三字段 */
.vr-address-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vr-address-3 input {
  padding: 8px 10px; font-size: 13px; background: #fafaf7;
  border: 1.5px solid #e8e0d5; border-radius: 8px;
}
.vr-address-3 input:focus {
  outline: none; border-color: var(--red); background: #fff;
}

/* Radio / Checkbox */
.vr-radio-group {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 2px;
}
.vr-radio, .vr-check {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 13px; color: var(--ink);
  background: #fafaf7; border: 1.5px solid #e8e0d5; border-radius: 10px;
  cursor: pointer; transition: all .15s; user-select: none;
}
.vr-radio:hover, .vr-check:hover {
  background: var(--red-light); border-color: var(--red);
}
.vr-radio input, .vr-check input {
  accent-color: var(--red); width: 16px; height: 16px;
}
.vr-radio input:checked + span,
.vr-check input:checked + span {
  color: var(--red); font-weight: 600;
}
.vr-radio:has(input:checked), .vr-check:has(input:checked) {
  background: var(--red-light); border-color: var(--red);
}

/* 子板块（技能等多选分组） */
.vr-sub-block { margin-bottom: 18px; }
.vr-sub-block:last-child { margin-bottom: 0; }
.vr-sub-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 10px; padding-left: 10px;
  border-left: 3px solid var(--red);
}
.vr-check-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.vr-sub-input {
  margin-top: 10px; padding: 8px 12px; font-size: 13px;
  background: #fafaf7; border: 1.5px solid #e8e0d5; border-radius: 8px;
  width: 100%; box-sizing: border-box;
}
.vr-sub-input:focus {
  outline: none; border-color: var(--red); background: #fff;
}

/* 承诺区 */
.vr-commit-box {
  background: var(--bg-alt); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 18px;
  border: 1px solid #e8dcc7;
}
.vr-commit-box p {
  font-size: 14px; color: var(--ink); line-height: 1.8; margin: 0 0 12px;
}
.vr-commit-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: commit;
}
.vr-commit-list li {
  font-size: 13.5px; line-height: 1.9; color: var(--ink-2);
  padding: 8px 0 8px 32px; position: relative;
  border-bottom: 1px dashed #e8dcc7;
  counter-increment: commit;
}
.vr-commit-list li:last-child { border-bottom: none; }
.vr-commit-list li::before {
  content: counter(commit);
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 50%;
}
.vr-commit-list li strong { color: var(--ink); }
.vr-commit-sign {
  font-weight: 600; text-align: center; margin-top: 14px !important;
  color: var(--red-deep);
}

.vr-agree {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: var(--red-light);
  border-radius: 10px; border: 1.5px dashed var(--red);
  cursor: pointer; font-size: 14px; color: var(--ink);
}
.vr-agree input { accent-color: var(--red); width: 18px; height: 18px; }

/* 提交区 */
.vr-submit-bar {
  text-align: center; padding: 30px 0 10px;
}
.vr-btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 42px; font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; border: none; border-radius: 999px;
  cursor: pointer; box-shadow: 0 6px 20px rgba(231,111,81,.3);
  transition: all .2s; font-family: var(--font-sans);
}
.vr-btn-submit:hover:not(:disabled) {
  transform: translateY(-2px); box-shadow: 0 10px 28px rgba(231,111,81,.38);
}
.vr-btn-submit:active:not(:disabled) { transform: translateY(0); }
.vr-btn-submit:disabled {
  opacity: .7; cursor: not-allowed;
}
.vr-btn-submit svg { transition: transform .2s; }
.vr-btn-submit:hover:not(:disabled) svg { transform: translateX(4px); }
.vr-btn-submit.loading span, .vr-btn-submit.loading svg { opacity: 0; }
.vr-btn-submit.loading::after {
  content: ''; position: absolute;
  width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: vr-spin .7s linear infinite;
}
@keyframes vr-spin { to { transform: rotate(360deg); } }

.vr-submit-tip {
  margin-top: 14px; font-size: 13px; color: var(--muted);
}

/* 成功弹窗 */
.vr-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.vr-modal-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
.vr-modal-card {
  position: relative; background: #fff; border-radius: 18px;
  padding: 36px 32px; max-width: 420px; width: 90%;
  text-align: center; box-shadow: var(--shadow-lg);
  animation: vr-modal-in .25s ease;
}
@keyframes vr-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.vr-modal-icon { margin-bottom: 16px; }
.vr-modal-card h3 { font-size: 20px; margin: 0 0 12px; color: var(--ink); }
.vr-modal-card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 22px; }
.vr-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.vr-btn-modal {
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
}
.vr-btn-primary { background: var(--red); color: #fff; }
.vr-btn-ghost { background: #fff; color: var(--red); border: 1.5px solid var(--red); }

/* 响应式 */
@media (max-width: 640px) {
  .vr-section { padding: 22px 18px; }
  .vr-section-num { width: 34px; height: 34px; line-height: 34px; font-size: 15px; }
  .vr-section-head h2 { font-size: 16px; }
  .vr-hero { padding: 44px 0 28px; }
  .vr-btn-submit { width: 100%; justify-content: center; }
}

/* ======== 错误展示（页面内摘要 + 字段高亮） ======== */
.vr-error-box {
  background: #fdf5f4;
  border: 1.5px solid #f5c6c6;
  border-left: 4px solid #e74c3c;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0 0;
}
.vr-error-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: #c0392b;
  margin-bottom: 10px;
}
.vr-error-head b { color: #e74c3c; font-size: 16px; }
.vr-error-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px;
}
@media (max-width: 640px) {
  .vr-error-list { grid-template-columns: 1fr; }
}
.vr-error-list li {
  font-size: 13px; color: #c0392b;
  padding: 4px 0;
}
.vr-error-list a {
  color: #e74c3c; text-decoration: none; cursor: pointer;
  border-bottom: 1px dashed #e74c3c;
}
.vr-error-list a:hover { color: #c0392b; border-bottom-style: solid; }

/* 登录提示（表单已填完但未登录） */
.vr-login-hint {
  background: #e8f0fe; border-color: #bbdefb;
  border-left-color: #1976d2;
}
.vr-error-head-login { color: #1565c0; }
.vr-error-head-login b { color: #1976d2; }
.vr-login-hint-btn {
  margin-left: auto; padding: 4px 14px;
  background: #1976d2; color: #fff; border: none;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--font-sans);
}
.vr-login-hint-btn:hover { background: #1565c0; }

/* 字段级红色高亮 */
.vr-field.vr-invalid > label { color: #c0392b; }
.vr-field.vr-invalid input,
.vr-field.vr-invalid select,
.vr-field.vr-invalid textarea {
  border-color: #e74c3c !important;
  background: #fdf5f4 !important;
}
.vr-radio-group.vr-invalid { border: 1.5px dashed #e74c3c; border-radius: 10px; padding: 8px; }
.vr-radio.vr-invalid, .vr-check.vr-invalid {
  border-color: #e74c3c; background: #fdf5f4;
}
input.vr-field-error {
  border-color: #e74c3c !important;
  background: #fdf5f4 !important;
}

/* ============ 多步骤流程 · 步骤导航条 ============ */
.vr-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 8px auto 28px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(180,60,40,.06);
  max-width: 820px;
}
.vr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all .2s ease;
}
.vr-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f0e4e0;
  color: #b8988c;
  font-weight: 600;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
  border: 2px solid transparent;
}
.vr-step-label {
  font-size: 12px;
  color: #b8988c;
  white-space: nowrap;
  transition: color .2s ease;
}
.vr-step-line {
  width: 60px;
  height: 2px;
  background: #f0e4e0;
  margin: 0 4px;
  margin-bottom: 26px;
  transition: background .25s ease;
}
/* 已完成 */
.vr-step.done .vr-step-num {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}
.vr-step.done .vr-step-label { color: #2e7d32; }
/* 当前 */
.vr-step.active .vr-step-num {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(var(--red-rgb, 220,60,40), .35);
}
.vr-step.active .vr-step-label {
  color: var(--red);
  font-weight: 600;
}
/* 连线已完成 */
.vr-step-line.done { background: #2e7d32; }

/* ============ 多步骤流程 · 底栏 ============ */
.vr-step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 28px;
  margin-top: 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 -2px 16px rgba(180,60,40,.08);
  position: sticky;
  bottom: 0;
  z-index: 20;
}
.vr-step-info {
  color: #888;
  font-size: 14px;
  flex: 1;
  text-align: center;
}
.vr-step-info b { color: var(--red); font-weight: 600; }
.vr-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.vr-step-btn:disabled { opacity: .5; cursor: not-allowed; }
.vr-prev {
  background: #f5f0ee;
  color: #666;
}
.vr-prev:hover:not(:disabled) { background: #ece3e0; }
.vr-next {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--red-rgb, 220,60,40), .3);
}
.vr-next:hover:not(:disabled) {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--red-rgb, 220,60,40), .4);
}
.vr-submit {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46,125,50,.3);
}
.vr-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46,125,50,.4);
}

/* 草稿提示 */
.vr-draft-saved {
  position: fixed;
  top: 90px;
  right: 20px;
  background: #2e7d32;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all .3s ease;
  z-index: 999;
  pointer-events: none;
}
.vr-draft-saved.show {
  opacity: 1;
  transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 600px) {
  .vr-steps { padding: 14px 10px; gap: 0; }
  .vr-step-num { width: 28px; height: 28px; font-size: 13px; }
  .vr-step-label { font-size: 10px; }
  .vr-step-line { width: 24px; margin-bottom: 20px; }
  .vr-step-bar { padding: 14px 12px; gap: 10px; flex-wrap: wrap; }
  .vr-step-info { order: -1; width: 100%; text-align: center; font-size: 13px; }
  .vr-step-btn { padding: 9px 16px; font-size: 14px; }
}
