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

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

.cf {
  width: min(320px, 92vw);
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
}

.cf__title {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: clamp(13px, 3.8vw, 15px);
  line-height: 1.2;
  font-family: inherit;
  color: #17141a;
}

.cf__field {
  display: block;
  margin: 0 0 8px;
}

.cf__label-text {
  display: block;
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 9px;
  line-height: 1.3;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
}

.cf__input {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(23, 20, 26, 0.18);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.6;
  font-family: inherit;
  color: #17141a;
}

.cf__input.is-shake {
  animation: cf-shake 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes cf-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.cf__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 16px;
  border: 0;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.6;
  font-family: inherit;
  cursor: pointer;
  transition: background 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
  animation: cf-glow 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes cf-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(47, 109, 246, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(47, 109, 246, 0);
  }
}
.cf.is-done .cf__submit {
  animation: none;
}

.cf__check {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke-dashoffset 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cf.is-done .cf__submit {
  background: #51a474;
}

.cf.is-done .cf__check {
  stroke-dashoffset: 0;
}

.cf__status {
  min-height: 14px;
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 9px;
  line-height: 1.4;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
}

@media (max-width: 340px), (max-height: 220px) {
  .cf {
    padding: 12px;
  }
  .cf__title {
    margin-bottom: 8px;
  }
  .cf__field {
    margin-bottom: 4px;
  }
  .cf__label-text {
    margin-bottom: 0;
  }
  .cf__input {
    padding: 4px 8px;
    line-height: 1.3;
  }
  .cf__submit {
    padding: 4px 12px;
    line-height: 1.3;
    margin-top: 0;
  }
  .cf__status {
    min-height: 12px;
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf__input.is-shake {
    animation: none !important;
  }
  .cf__submit {
    animation: none !important;
    transition: none;
  }
  .cf__check {
    transition: none;
  }
}
