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);
}

.cf {
  display: flex;
  width: min(420px, 94vw);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.cf__info {
  flex: 0 0 38%;
  background: #17141a;
  color: #ffffff;
  padding: 16px;
}

.cf__info-t {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  font-family: inherit;
}

.cf__info-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.3;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.72);
}

.cf__info-row span {
  color: #2f6df6;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.cf__form {
  flex: 1 1 auto;
  background: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cf__field {
  position: relative;
  display: block;
}

.cf__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 8px 4px;
  border: 0;
  border-bottom: 1.5px solid rgba(23, 20, 26, 0.2);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  color: #17141a;
  background: transparent;
}

.cf__field input:focus-visible {
  outline: none;
  border-color: #2f6df6;
}

.cf__field span {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 12px;
  color: rgba(23, 20, 26, 0.45);
  font-family: inherit;
  transform-origin: left top;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.cf__field input:focus + span,
.cf__field input:not(:placeholder-shown) + span {
  transform: translateY(-14px) scale(0.8);
  color: #2f6df6;
}

.cf__field input.is-shake {
  animation: cf-shake 0.32s ease-out;
}

@keyframes cf-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.cf__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: #2f6df6;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.cf__plane {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cf__form.is-sent .cf__plane {
  transform: translate(6px, -4px);
  opacity: 0;
}

.cf__form.is-sent .cf__send {
  background: #50a26e;
}

.cf__msg {
  margin: 0;
  min-height: 14px;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.6);
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .cf__field span, .cf__field input.is-shake, .cf__plane {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .cf {
    width: min(290px, 92vw);
  }
  .cf__info {
    padding: 8px;
  }
  .cf__info-t {
    margin: 0 0 4px;
    font-size: 10px;
  }
  .cf__info-row {
    margin: 0 0 4px;
    font-size: 8px;
    gap: 4px;
  }
  .cf__form {
    padding: 8px;
    gap: 8px;
  }
  .cf__field input {
    padding: 4px 4px 4px;
    font-size: 10px;
  }
  .cf__field span {
    left: 4px;
    top: 4px;
    font-size: 10px;
  }
  .cf__send {
    padding: 4px 8px;
    font-size: 10px;
  }
  .cf__msg {
    min-height: 0;
    font-size: 8px;
  }
}
