/*
 * 在线填表引导页样式
 * 布局对齐预览站：浅灰主区 + 单张白卡片（蓝标题在卡内顶部，正文分区在卡内）。
 * 色值取 base.css 设计变量字面量：#07316c 深蓝 / #0756ad 主蓝 / #f2b900 金色。
 */

.form-guide-page-body .page-shell {
  background: rgba(248, 250, 252, .7);
}

.form-guide-page {
  width: 100%;
  min-width: 0;
  color: #1f2630;
}

.form-guide-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

@media (min-width: 640px) {
  .form-guide-shell { padding: 28px 24px 56px; }
}

@media (min-width: 1024px) {
  .form-guide-shell { padding: 32px 30px 64px; }
}

/* ---------- 单白卡片容器 ---------- */
.form-guide-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 39, 77, .06);
}

/* ---------- 卡内蓝标题区 ----------
   与 .form-guide-body 共用同一水平内边距，保证标题与正文左缘对齐。 */
.form-guide-hero {
  padding: 28px 24px;
  background: linear-gradient(90deg, #07316c 0%, #0756ad 100%);
  color: #fff;
}

@media (min-width: 640px) {
  .form-guide-hero { padding: 32px 28px; }
}

@media (min-width: 1024px) {
  .form-guide-hero { padding: 36px; }
}

/* keep body horizontal padding in sync with hero at each breakpoint */

.form-guide-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
@media (min-width: 640px) {
  .form-guide-hero h1 { font-size: 30px; }
}
.form-guide-hero__summary {
  max-width: 42rem;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 卡内正文（水平 padding 与 hero 保持一致） ---------- */
.form-guide-body {
  padding: 20px 24px 28px;
}

@media (min-width: 640px) {
  .form-guide-body { padding: 28px; }
}

@media (min-width: 1024px) {
  .form-guide-body { padding: 32px 36px 36px; }
}

.form-guide-body > * + * { margin-top: 32px; }

/* ---------- 区块标题 ---------- */
.form-guide-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.form-guide-heading__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #0756ad;
}
.form-guide-heading__icon .svg-icon { width: 20px; height: 20px; }
.form-guide-heading__text { min-width: 0; }
.form-guide-heading__eyebrow {
  margin: 0;
  color: rgba(7, 86, 173, .7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.form-guide-heading h2 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.form-guide-heading__note {
  margin-left: auto;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- CMS 富文本（办公地址，直接铺在白卡内） ---------- */
.form-guide-office { min-width: 0; }
.form-guide-rich {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.form-guide-rich > :first-child { margin-top: 0; }
.form-guide-rich > :last-child { margin-bottom: 0; }
.form-guide-rich--empty {
  color: #94a3b8;
  font-size: 14px;
}
/* 后台编辑器常带 text-indent:2em，会把地址行顶到蓝标题右侧；清掉以对齐左缘。
   不覆盖 table 单元格，放假安排表仍保持居中。 */
.form-guide-rich p,
.form-guide-rich div:not([align]),
.form-guide-rich span {
  text-indent: 0 !important;
}
.form-guide-rich > p,
.form-guide-rich p {
  margin: 0 0 14px;
  padding-left: 0 !important;
  text-align: left !important;
}
.form-guide-rich h1,
.form-guide-rich h2,
.form-guide-rich h3,
.form-guide-rich h4 {
  margin: 24px 0 12px;
  color: #172033;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.form-guide-rich h1 { font-size: 22px; }
.form-guide-rich h2 { font-size: 19px; }
.form-guide-rich strong { color: #273245; font-weight: 700; }
.form-guide-rich a { color: #0756ad; text-decoration: underline; text-underline-offset: 3px; }
.form-guide-rich a:hover { color: #07316c; }
.form-guide-rich img { max-width: 100%; height: auto; margin: 14px 0; border-radius: 10px; }
.form-guide-rich ul,
.form-guide-rich ol { margin: 0 0 14px; padding-left: 22px; }
.form-guide-rich li { margin-bottom: 6px; }
.form-guide-rich table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.form-guide-rich caption {
  margin-bottom: 10px;
  color: #273245;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.form-guide-rich th,
.form-guide-rich td {
  padding: 10px 12px;
  border: 1px solid #dfe5ef;
  text-align: center !important;
  text-indent: 0 !important;
  vertical-align: middle;
}
.form-guide-rich th { background: #f4f8fd; color: #273245; font-weight: 700; }
.form-guide-rich tbody tr:nth-child(even) { background: #fafcff; }

/* ---------- 办理步骤 ---------- */
.form-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-guide-step {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 39, 77, .04);
}
.form-guide-step__number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.form-guide-step--done .form-guide-step__number { background: #0756ad; }
.form-guide-step--current .form-guide-step__number { background: #f2b900; }
.form-guide-step--pending .form-guide-step__number { background: #cbd5e1; }
.form-guide-step h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
.form-guide-step h3 .svg-icon { width: 17px; height: 17px; flex: 0 0 auto; }
/* 图标由 .svg-icon::before 的 background-color: var(--svg-icon-color) 上色，
   仅写 color 不会生效（三步会全部回落成默认蓝），故三态需同时给 --svg-icon-color。 */
.form-guide-step--done h3 .svg-icon { color: #0756ad; --svg-icon-color: #0756ad; }
.form-guide-step--current h3 .svg-icon { color: #f2b900; --svg-icon-color: #f2b900; }
.form-guide-step--pending h3 .svg-icon { color: #94a3b8; --svg-icon-color: #94a3b8; }
.form-guide-step p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 延伸服务（复用 VIP extended-services 卡片，仅收紧引导页内栅格） ---------- */
.form-guide-services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.form-guide-section .extended-services-grid__empty {
  padding: 56px 24px;
}

/* ---------- 开始填表 ---------- */
.form-guide-cta {
  padding: 28px 20px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 100%);
  text-align: center;
}
@media (min-width: 640px) {
  .form-guide-cta { padding: 28px 32px; }
}
.form-guide-cta h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
}
.form-guide-cta p {
  max-width: 36rem;
  margin: 8px auto 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}
.form-guide-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 32px;
  border: 1px solid #f2b900;
  border-radius: 8px;
  background: #f2b900;
  box-shadow: 0 8px 18px rgba(242, 185, 0, .2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .1s ease;
}
.form-guide-cta__button:hover { background: #d9a600; border-color: #d9a600; }
.form-guide-cta__button:active { transform: scale(.98); }
.form-guide-cta__button:focus-visible { outline: 2px solid #0756ad; outline-offset: 2px; }
.form-guide-cta__button .svg-icon { width: 16px; height: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .form-guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-guide-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .form-guide-shell { padding: 16px 12px 40px; }
  .form-guide-hero { padding: 24px 20px; }
  .form-guide-hero h1 { font-size: 24px; }
  .form-guide-body { padding: 20px 16px; }
  .form-guide-body > * + * { margin-top: 28px; }
  .form-guide-heading__note { display: none; }
  .form-guide-rich { font-size: 14px; }
  .form-guide-rich th,
  .form-guide-rich td { padding: 8px 6px; font-size: 13px; }
  .form-guide-steps,
  .form-guide-services-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-guide-step { padding: 18px; }
  .form-guide-cta { padding: 24px 16px; }
  .form-guide-cta h2 { font-size: 18px; }
  .form-guide-cta__button { width: 100%; justify-content: center; }
}
