* {
  box-sizing: border-box;
}

:root {
  --primary: #ff4d6d;
  --primary-soft: #ff8fa3;
  --secondary: #7c83fd;
  --text: #2d2d2d;
  --muted: #777;
  --surface: rgba(255, 255, 255, 0.88);
  --border: rgba(255, 255, 255, 0.45);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #ffe0e6 0%, #eef0ff 50%, #e4ecff 100%);
}

body {
  position: relative;
  overflow-x: hidden;
}

.bg-decoration {
  position: fixed;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.bg-decoration-1 {
  width: 260px;
  height: 260px;
  background: rgba(255, 77, 109, 0.14);
  top: -60px;
  left: -60px;
}

.bg-decoration-2 {
  width: 300px;
  height: 300px;
  background: rgba(124, 131, 253, 0.16);
  bottom: -100px;
  right: -80px;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 24px;
}

.hidden {
  display: none;
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 30px 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(255, 77, 109, 0.1);
  border-radius: 999px;
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.3;
  color: var(--primary);
}

.sub-text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #444;
}

input,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
  background: #f6f7fb;
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s ease;
}

input::placeholder {
  color: #aaa;
}

input:focus,
select:focus {
  background: #fff;
  border-color: rgba(255, 77, 109, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.phone-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f7fb;
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.phone-box:focus-within {
  background: #fff;
  border-color: rgba(255, 77, 109, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.phone-box span {
  font-weight: 700;
  color: #555;
  flex-shrink: 0;
}

.phone-box input {
  margin: 0;
  padding: 14px 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.phone-box input:focus {
  background: transparent;
  border: none;
  box-shadow: none;
}

.hint {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: #8a8a8a;
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 77, 109, 0.3);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.back-btn {
  background: #ececf3;
  color: #333;
  box-shadow: none;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
  .page {
    padding: 16px;
  }

  .card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  h1 {
    font-size: 24px;
  }
}