html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

@property --i {
  syntax: "<number>";
  inherits: true;
  initial-value: 3;
}
.ir {
  --i: 3;
  box-sizing: border-box;
  width: min(320px, 92vw);
  padding: 8px 12px;
  border: 1px solid rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 20, 26, 0.07);
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.ir__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ir__step {
  display: grid;
  gap: 4px;
}

.ir__bar {
  height: 4px;
  border-radius: 999px;
  background: rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
}

.ir__cap {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(23, 20, 26, 0.72);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.ir__warn {
  display: inline-flex;
  width: 11px;
  height: 11px;
  color: #c2361a;
  opacity: 0;
  transform: scale(0.4);
}

.ir__step.is-now .ir__bar {
  background: #2f6df6;
}

.ir__step.is-now .ir__cap {
  color: #17141a;
}

.ir__step.is-bad .ir__bar {
  background: #c2361a;
}

.ir__step.is-bad .ir__cap {
  color: #c2361a;
}

.ir__step.is-bad .ir__warn {
  opacity: 1;
  transform: scale(1);
}

.ir__view {
  overflow: hidden;
  height: 44px;
  margin-top: 8px;
}

.ir__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  transform: translateX(calc(var(--i) * -100%));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ir__panel {
  min-width: 0;
}

.ir__title {
  display: inline-block;
  margin: 0 0 4px;
  padding: 0 4px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  color: rgba(23, 20, 26, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.ir__title:focus {
  outline-color: #2f6df6;
}

.ir__field {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 8px;
}

.ir__lab {
  color: rgba(23, 20, 26, 0.72);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}

.ir__in {
  box-sizing: border-box;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  border-radius: 8px;
  background: rgb(95.4509803922%, 95.3921568627%, 95.5098039216%);
  color: #17141a;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.3;
}

.ir__in:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: -2px;
}

.ir__in[aria-invalid=true] {
  border-color: #c2361a;
  background: #ffe0d8;
}

.ir__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ir__msg {
  position: relative;
  min-height: 15px;
  margin: 0;
  font-size: 10px;
}

.ir__msg-a, .ir__msg-b {
  position: absolute;
  inset: 0;
  line-height: 1.4;
}

.ir__msg-a {
  color: rgba(23, 20, 26, 0.72);
}

.ir__msg-b {
  color: #c2361a;
  opacity: 0;
}

.ir.is-bad .ir__msg-a {
  opacity: 0;
}

.ir.is-bad .ir__msg-b {
  opacity: 1;
}

.ir__submit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.ir__submit:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.ir__send {
  display: inline-flex;
  width: 12px;
  height: 12px;
}

@keyframes ir-slide {
  0%, 33.4% {
    transform: translateX(-300%);
  }
  37.5%, 83.4% {
    transform: translateX(-200%);
  }
  87.5%, 100% {
    transform: translateX(-300%);
  }
}
@keyframes ir-press {
  0%, 20% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(2px);
  }
  31%, 100% {
    transform: translateY(0);
  }
}
@keyframes ir-nudge {
  0%, 41% {
    transform: translateX(0);
  }
  46% {
    transform: translateX(4px);
  }
  52% {
    transform: translateX(-2px);
  }
  58%, 100% {
    transform: translateX(0);
  }
}
@keyframes ir-bar-3 {
  0%, 33.9% {
    background: rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  }
  34%, 87.9% {
    background: #c2361a;
  }
  88%, 100% {
    background: rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  }
}
@keyframes ir-bar-4 {
  0%, 33.9% {
    background: #2f6df6;
  }
  34%, 87.9% {
    background: rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  }
  88%, 100% {
    background: #2f6df6;
  }
}
@keyframes ir-cap-3 {
  0%, 33.9% {
    color: rgba(23, 20, 26, 0.72);
  }
  34%, 87.9% {
    color: #c2361a;
  }
  88%, 100% {
    color: rgba(23, 20, 26, 0.72);
  }
}
@keyframes ir-cap-4 {
  0%, 33.9% {
    color: #17141a;
  }
  34%, 87.9% {
    color: rgba(23, 20, 26, 0.72);
  }
  88%, 100% {
    color: #17141a;
  }
}
@keyframes ir-warn {
  0%, 33.9% {
    opacity: 0;
    transform: scale(0.4);
  }
  34%, 87.9% {
    opacity: 1;
    transform: scale(1);
  }
  88%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes ir-bad-in {
  0%, 33.9% {
    border-color: rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
    background: rgb(95.4509803922%, 95.3921568627%, 95.5098039216%);
  }
  34%, 87.9% {
    border-color: #c2361a;
    background: #ffe0d8;
  }
  88%, 100% {
    border-color: rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
    background: rgb(95.4509803922%, 95.3921568627%, 95.5098039216%);
  }
}
@keyframes ir-focus {
  0%, 33.9% {
    outline-color: transparent;
  }
  34%, 87.9% {
    outline-color: #2f6df6;
  }
  88%, 100% {
    outline-color: transparent;
  }
}
@keyframes ir-msg-a {
  0%, 33.9% {
    opacity: 1;
  }
  34%, 87.9% {
    opacity: 0;
  }
  88%, 100% {
    opacity: 1;
  }
}
@keyframes ir-msg-b {
  0%, 33.9% {
    opacity: 0;
  }
  34%, 87.9% {
    opacity: 1;
  }
  88%, 100% {
    opacity: 0;
  }
}
.ir.is-demo .ir__track {
  animation-name: ir-slide;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__submit {
  animation-name: ir-press;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__step:nth-child(3) .ir__bar {
  animation-name: ir-bar-3;
}
.ir.is-demo .ir__step:nth-child(4) .ir__bar {
  animation-name: ir-bar-4;
}
.ir.is-demo .ir__step .ir__bar {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__step:nth-child(3) .ir__cap {
  animation-name: ir-cap-3;
}
.ir.is-demo .ir__step:nth-child(4) .ir__cap {
  animation-name: ir-cap-4;
}
.ir.is-demo .ir__step .ir__cap {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__step:nth-child(3) .ir__warn {
  animation-name: ir-warn;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__panel:nth-child(3) .ir__field {
  animation-name: ir-nudge;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__panel:nth-child(3) .ir__in {
  animation-name: ir-bad-in;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__panel:nth-child(3) .ir__title {
  animation-name: ir-focus;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__msg-a {
  animation-name: ir-msg-a;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ir.is-demo .ir__msg-b {
  animation-name: ir-msg-b;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .ir {
    padding: 4px 8px;
    font-size: 11px;
  }
  .ir__view {
    height: 40px;
    margin-top: 4px;
  }
  .ir__field {
    grid-template-columns: 48px 1fr;
    gap: 4px;
  }
  .ir__in {
    height: 22px;
  }
  .ir__foot {
    margin-top: 4px;
  }
  .ir__submit {
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ir.is-demo .ir__track,
  .ir.is-demo .ir__submit,
  .ir.is-demo .ir__bar,
  .ir.is-demo .ir__cap,
  .ir.is-demo .ir__warn,
  .ir.is-demo .ir__field,
  .ir.is-demo .ir__in,
  .ir.is-demo .ir__title,
  .ir.is-demo .ir__msg-a,
  .ir.is-demo .ir__msg-b {
    animation: none !important;
  }
  .ir.is-demo .ir__track {
    transform: translateX(-200%) !important;
  }
  .ir.is-demo .ir__step:nth-child(3) .ir__bar {
    background: #c2361a !important;
  }
  .ir.is-demo .ir__step:nth-child(3) .ir__cap {
    color: #c2361a !important;
  }
  .ir.is-demo .ir__step:nth-child(4) .ir__cap {
    color: rgba(23, 20, 26, 0.72) !important;
  }
  .ir.is-demo .ir__step:nth-child(3) .ir__warn {
    opacity: 1 !important;
    transform: none !important;
  }
  .ir.is-demo .ir__panel:nth-child(3) .ir__in {
    border-color: #c2361a !important;
    background: #ffe0d8 !important;
  }
  .ir.is-demo .ir__panel:nth-child(3) .ir__title {
    outline-color: #2f6df6 !important;
  }
  .ir.is-demo .ir__msg-a {
    opacity: 0 !important;
  }
  .ir.is-demo .ir__msg-b {
    opacity: 1 !important;
  }
}
