:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f7f8;
  color: #202124;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.v2-page {
  --v2-primary: #d64f2a;
  --v2-primary-dark: #b93f1f;
  --v2-warm: #fff4ec;
  --v2-text: #202124;
  --v2-muted: #6f747c;
  --v2-border: #e5e8ec;
  --v2-surface: #ffffff;
  --v2-field: #fbfcfd;
  --v2-danger: #d93025;
  max-width: 1160px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 120px;
}

.v2-hero {
  min-height: 224px;
  padding: 20px;
  border-radius: 24px;
  color: #2d1c13;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 218, 181, .95), transparent 26%),
    linear-gradient(135deg, #fffaf6 0%, #fff1e7 46%, #ffd7bb 100%);
  box-shadow: 0 18px 44px rgba(126, 69, 32, .13);
  overflow: hidden;
}

.v2-hero__topline,
.v2-hero__content,
.v2-hero__benefits,
.v2-hero__notice {
  display: flex;
}

.v2-hero__topline {
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
}

.v2-hero__topline strong {
  padding: 6px 10px;
  border: 1px solid rgba(185, 63, 31, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #9d3a1f;
  font-size: 13px;
}

.v2-hero__content {
  min-height: 128px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.v2-hero__copy {
  width: min(50%, 520px);
  position: relative;
  z-index: 2;
}

.v2-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.v2-hero h1 span,
.v2-hero h1 em {
  display: inline;
}

.v2-hero h1 em {
  color: var(--v2-primary);
  font-style: normal;
}

.v2-hero__subtitle {
  max-width: 500px;
  margin: 12px 0 0;
  color: #5f6975;
  font-size: 16px;
  line-height: 1.55;
}

.v2-hero__visual {
  width: min(48%, 520px);
  height: 150px;
  min-height: 150px;
  align-self: stretch;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(126, 69, 32, .16);
}

.v2-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.v2-hero__benefits {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.v2-hero__benefit {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon text";
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 224, 202, .82);
}

.v2-hero__benefit-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v2-primary);
  color: #fff;
}

.v2-hero__benefit-icon svg,
.v2-hero__notice svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v2-hero__benefit strong {
  grid-area: title;
  color: var(--v2-text);
  font-size: 15px;
  line-height: 1.25;
}

.v2-hero__benefit small {
  grid-area: text;
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.35;
}

.v2-hero__notice {
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #ffe0ca;
  border-radius: 14px;
  background: rgba(255, 248, 243, .88);
  color: #7a3a24;
}

.v2-hero__notice span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(214, 79, 42, .1);
  color: var(--v2-primary);
}

.v2-hero__notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.v2-progress {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 10px;
  border: 1px solid rgba(229, 232, 236, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(22, 27, 32, .08);
}

.v2-progress__step {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--v2-muted);
  font: inherit;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.v2-progress__step span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #edf0f3;
  font-size: 13px;
}

.v2-progress__step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.v2-progress__step.is-active,
.v2-progress__step.is-complete {
  background: var(--v2-warm);
  color: var(--v2-primary-dark);
}

.v2-progress__step.is-locked {
  cursor: not-allowed;
  opacity: .58;
}

.v2-progress__step.has-error {
  color: var(--v2-danger);
}

.v2-progress__step.is-active span,
.v2-progress__step.is-complete span {
  background: var(--v2-primary);
  color: #fff;
}

.v2-form {
  display: grid;
  gap: 16px;
}

.v2-form-note,
.v2-info-box,
.v2-finish p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 14px;
  line-height: 1.65;
}

.v2-form-note {
  padding: 12px 14px;
  border: 1px solid #ffe0ca;
  border-radius: 14px;
  background: #fff8f3;
  color: #8b3a20;
}

.v2-card {
  scroll-margin-top: 96px;
  padding: 20px;
  border: 1px solid var(--v2-border);
  border-radius: 22px;
  background: var(--v2-surface);
  box-shadow: 0 16px 38px rgba(27, 34, 43, .07);
}

.v2-step-panel {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.v2-step-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.v2-step-panel[hidden] {
  display: none;
}

.v2-step-panel.has-error {
  border-color: rgba(217, 48, 37, .38);
}

.v2-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.v2-card__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: 0;
}

.v2-card__header p {
  margin: 6px 0 0;
  color: var(--v2-muted);
  font-size: 14px;
}

.v2-card__tag {
  width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f1f3f5;
  color: #8a9098;
  font-weight: 700;
}

.v2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.v2-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.v2-field[hidden] {
  display: none;
}

.v2-field--wide {
  grid-column: 1 / -1;
}

.v2-field > span,
.v2-check span {
  color: var(--v2-text);
  font-size: 15px;
  font-weight: 650;
}

.v2-field em,
.v2-check em {
  color: var(--v2-danger);
  font-style: normal;
}

.v2-field input,
.v2-field select,
.v2-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  background: var(--v2-field);
  color: var(--v2-text);
  font: inherit;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.v2-field input,
.v2-field select {
  padding: 0 14px;
}

.v2-field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.55;
}

.v2-field input:focus,
.v2-field select:focus,
.v2-field textarea:focus {
  border-color: var(--v2-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(214, 79, 42, .12);
}

.v2-field.is-error input,
.v2-field.is-error select,
.v2-field.is-error textarea {
  border-color: var(--v2-danger);
}

.v2-error {
  min-height: 18px;
  color: var(--v2-danger);
  font-size: 13px;
  line-height: 1.35;
}

.v2-error.is-warning {
  color: #b45309;
}

.v2-hint {
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.45;
}

.v2-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v2-choice {
  min-height: 50px;
  border: 1px solid var(--v2-border);
  border-radius: 14px;
  background: var(--v2-field);
  color: var(--v2-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.v2-choice[aria-pressed="true"] {
  border-color: var(--v2-primary);
  background: var(--v2-warm);
  color: var(--v2-primary-dark);
  box-shadow: 0 0 0 4px rgba(214, 79, 42, .1);
}

.v2-employee-type-dynamic {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: -2px;
  padding: 14px 16px;
  border: 1px solid #ffe0ca;
  border-radius: 14px;
  background: #fff8f3;
  color: var(--v2-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.v2-employee-type-dynamic[hidden] {
  display: none;
}

.v2-employee-type-dynamic.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.v2-employee-type-dynamic-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-employee-type-dynamic-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  border: 1.5px solid var(--v2-primary);
  border-radius: 50%;
  position: relative;
}

.v2-employee-type-dynamic-icon::after {
  content: "";
  width: 2px;
  height: 6px;
  position: absolute;
  left: 6px;
  top: 6px;
  border-radius: 999px;
  background: var(--v2-primary);
  box-shadow: 0 -4px 0 var(--v2-primary);
}

.v2-employee-type-dynamic h3 {
  margin: 0;
  color: #8b3a20;
  font-size: 15px;
  line-height: 1.35;
}

.v2-employee-type-dynamic ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.v2-employee-type-dynamic li {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.65;
}

.v2-info-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #ffe0ca;
  border-radius: 16px;
  background: #fff8f3;
}

.v2-info-box strong {
  display: block;
  margin-bottom: 4px;
  color: #8b3a20;
}

.v2-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--v2-border);
  border-radius: 14px;
  background: var(--v2-field);
}

.v2-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--v2-primary);
}

.v2-submit-space {
  height: 14px;
}

.v2-footer-note {
  margin: 2px 0 0;
  color: var(--v2-muted);
  font-size: 13px;
  text-align: center;
}

.v2-finish-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.v2-finish-summary__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--v2-border);
  border-radius: 14px;
  background: var(--v2-field);
}

.v2-finish-summary__item strong {
  font-size: 14px;
}

.v2-finish-summary__item span {
  color: var(--v2-muted);
  font-size: 13px;
}

.v2-finish-summary__item.is-complete span {
  color: var(--v2-primary-dark);
  font-weight: 700;
}

.v2-finish-tip {
  margin-top: 12px;
}

.v2-date-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  padding: 0;
}

.v2-date-picker[hidden] {
  display: none;
}

.v2-date-picker__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .38);
}

.v2-date-picker__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -18px 50px rgba(15, 23, 42, .22);
}

.v2-date-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--v2-border);
}

.v2-date-picker__header h2 {
  margin: 0;
  color: var(--v2-text);
  font-size: 17px;
}

.v2-date-picker__text-btn {
  min-width: 54px;
  border: 0;
  background: transparent;
  color: var(--v2-muted);
  font: inherit;
  font-weight: 700;
}

.v2-date-picker__text-btn.is-primary {
  color: var(--v2-primary);
}

.v2-date-picker__wheels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 216px;
  overflow: hidden;
}

.v2-date-picker__indicator {
  position: absolute;
  top: 88px;
  left: 0;
  right: 0;
  height: 40px;
  border-block: 1px solid rgba(214, 79, 42, .22);
  background: rgba(214, 79, 42, .06);
  pointer-events: none;
}

.v2-date-picker__wheel {
  position: relative;
  z-index: 1;
  height: 216px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.v2-date-picker__wheel::-webkit-scrollbar {
  display: none;
}

.v2-date-picker__option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: var(--v2-muted);
  font-size: 16px;
  font-weight: 700;
  scroll-snap-align: center;
  user-select: none;
}

.v2-date-picker__option:first-child {
  margin-top: 88px;
}

.v2-date-picker__option:last-child {
  margin-bottom: 88px;
}

.v2-date-picker__option.is-selected {
  color: var(--v2-primary);
}

.v2-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  margin-inline: -16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--v2-border);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.v2-actionbar span {
  display: grid;
  gap: 2px;
  color: var(--v2-muted);
  font-size: 13px;
}

.v2-actionbar small {
  color: #8b3a20;
  font-size: 12px;
}

.v2-actionbar__buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.v2-primary-btn,
.v2-secondary-btn {
  min-width: 128px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.v2-primary-btn {
  background: var(--v2-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(214, 79, 42, .22);
}

.v2-secondary-btn {
  min-width: 88px;
  border: 1px solid var(--v2-border);
  background: #fff;
  color: var(--v2-text);
}

.v2-primary-btn:active,
.v2-secondary-btn:active {
  transform: translateY(1px);
}

.v2-primary-btn:disabled,
.v2-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.v2-primary-btn.is-loading {
  background: var(--v2-primary-dark);
}

.v2-dialog {
  width: min(360px, calc(100vw - 32px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.v2-dialog::backdrop {
  background: rgba(21, 24, 28, .48);
}

.v2-dialog__body {
  padding: 28px 22px 22px;
  text-align: center;
}

.v2-dialog__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--v2-warm);
  color: var(--v2-primary);
  font-size: 30px;
  font-weight: 800;
}

.v2-dialog h2 {
  margin: 0;
  font-size: 22px;
}

.v2-dialog p {
  margin: 10px 0 20px;
  color: var(--v2-muted);
  line-height: 1.6;
}

.v2-success-copy {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--v2-border);
  box-sizing: border-box;
}

.v2-success-copy__content {
  min-width: 0;
}

.v2-success-copy__content strong {
  display: block;
  color: var(--v2-text);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}

.v2-success-copy__button {
  width: 100%;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.v2-success-copy__button:focus,
.v2-success-copy__button:active {
  outline: none;
  box-shadow: none;
}

.v2-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  min-height: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .v2-page {
    padding: 12px 12px 116px;
  }

  .v2-hero {
    min-height: 0;
    padding: 14px;
    border-radius: 22px;
  }

  .v2-hero__content {
    min-height: 132px;
    gap: 10px;
  }

  .v2-hero__copy {
    width: 58%;
  }

  .v2-hero__topline {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .v2-hero__topline strong {
    padding: 5px 8px;
    font-size: 12px;
  }

  .v2-hero h1 {
    font-size: 29px;
    line-height: 1.08;
  }

  .v2-hero h1 span,
  .v2-hero h1 em {
    display: block;
  }

  .v2-hero__subtitle {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .v2-hero__visual {
    width: 42%;
    height: 118px;
    min-height: 118px;
    border-radius: 16px;
  }

  .v2-hero__visual img {
    object-position: center;
  }

  .v2-hero__benefits {
    gap: 6px;
    margin-top: 12px;
  }

  .v2-hero__benefit {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "title"
      "text";
    justify-items: center;
    gap: 4px;
    padding: 8px 5px;
    text-align: center;
  }

  .v2-hero__benefit-icon {
    width: 30px;
    height: 30px;
  }

  .v2-hero__benefit-icon svg,
  .v2-hero__notice svg {
    width: 17px;
    height: 17px;
  }

  .v2-hero__benefit strong {
    font-size: 12px;
  }

  .v2-hero__benefit small {
    font-size: 11px;
    line-height: 1.3;
  }

  .v2-hero__notice {
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .v2-hero__notice span {
    width: 22px;
    height: 22px;
  }

  .v2-hero__notice p {
    font-size: 12px;
    line-height: 1.45;
  }

  .v2-progress {
    gap: 6px;
    margin: 12px 0;
    padding: 8px;
    border-radius: 18px;
  }

  .v2-progress__step {
    min-height: 56px;
    display: grid;
    gap: 4px;
    padding: 6px 2px;
  }

  .v2-progress__step strong {
    max-width: 100%;
    font-size: 12px;
  }

  .v2-card {
    padding: 18px;
    border-radius: 20px;
  }

  .v2-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .v2-actionbar {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .v2-actionbar__buttons {
    gap: 8px;
  }

  .v2-primary-btn {
    min-width: 112px;
  }

  .v2-secondary-btn {
    min-width: 72px;
    padding-inline: 10px;
  }
}

@media (min-width: 900px) {
  .v2-page {
    padding-top: 24px;
  }

  .v2-hero {
    min-height: 256px;
    padding: 26px;
  }

  .v2-card {
    padding: 26px;
  }

  .v2-actionbar {
    position: static;
    max-width: 560px;
    margin: 20px auto 0;
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(27, 34, 43, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-step-panel,
  .v2-employee-type-dynamic {
    transition: none;
  }
}


.v2-legal-footer {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding-bottom: 4px;
  color: var(--v2-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.v2-legal-footer p {
  margin: 0;
}

.v2-dialog-confirm {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: var(--v2-field);
}

.v2-dialog-confirm[hidden] {
  display: none;
}

.v2-dialog-confirm p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 13px;
}

.v2-dialog-confirm__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.v2-dialog-confirm__buttons .v2-primary-btn,
.v2-dialog-confirm__buttons .v2-secondary-btn {
  min-width: 0;
}


.v2-date-native-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.v2-field.is-native-date-enabled {
  position: relative;
}

.v2-field.is-native-date-enabled .v2-date-native-fallback {
  pointer-events: auto;
}
