* {
  box-sizing: border-box;
}

:root {
  --bg1: #fff8fb;
  --bg2: #fffdfd;
  --card: rgba(255, 255, 255, 0.92);
  --text: #2f2430;
  --subtext: #7d6674;
  --point: #f48fb1;
  --point-dark: #e9799f;
  --line: #f3dbe5;
  --shadow: 0 20px 50px rgba(233, 150, 180, 0.16);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #ffe7f0 0%, transparent 28%),
    radial-gradient(circle at bottom right, #ffe9f6 0%, transparent 24%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

body {
  position: relative;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 18px 60px;
}

.bg-deco {
  display: none;
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bg-deco-1 {
  width: 220px;
  height: 220px;
  top: 40px;
  right: 30px;
  background: #ffd6e5;
}

.bg-deco-2 {
  width: 180px;
  height: 180px;
  left: 20px;
  bottom: 40px;
  background: #ffe5f1;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
}

.main-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 28px 24px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.top-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(231, 168, 192, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(231, 168, 192, 0.2);
}

.brand-link-image {
  padding: 10px 18px;
}

.brand-image {
  display: block;
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.hero-simple {
  text-align: center;
  margin-bottom: 22px;
}

.hero-simple h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.desc {
  margin: 0;
  color: var(--subtext);
  font-size: 15px;
  line-height: 1.6;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 1.5px solid #f4d7e2;
  border-radius: 18px;
  padding: 0 18px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box input:focus {
  border-color: #f5a8c3;
  box-shadow: 0 0 0 4px rgba(244, 143, 177, 0.12);
}

.search-box input::placeholder {
  color: #b79aa8;
}

.search-box button {
  flex: 0 0 120px;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--point) 0%, var(--point-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(244, 143, 177, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(244, 143, 177, 0.35);
}

.search-box button:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.message {
  min-height: 22px;
  margin-bottom: 10px;
  color: #d14e7d;
  font-size: 14px;
  font-weight: 600;
}

.result.hidden {
  display: none;
}

.card {
  margin-top: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  padding: 16px 18px 18px;
}

.info-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f5e5ec;
}

.info-row:last-child {
  border-bottom: 0;
}

.label {
  width: auto;
  min-width: 0;
  font-weight: 600;
  color: #7b6a73;
  font-size: 15px;
  line-height: 1.4;
}

.value {
  min-width: 0;
  word-break: break-all;
  font-weight: 700;
  color: #40333e;
  font-size: 18px;
  line-height: 1.45;
}

.steps {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
  overflow: hidden;
}

.step {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 10px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid #d9d3d7;
  background: #ece8eb;
  color: #8f858b;
  transition: all 0.18s ease;
}

.step.active,
.step.current {
  background: linear-gradient(135deg, #f29cbc 0%, #e777a2 100%);
  border-color: #e777a2;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(231, 119, 162, 0.2);
}

.footer-note {
  margin-top: 18px;
  text-align: center;
  color: #9a8692;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page {
    align-items: center;
    padding: 20px 14px;
  }

  .main-card {
    border-radius: 24px;
    padding: 22px 18px 18px;
  }

  .brand-image {
    height: 46px;
    max-width: 220px;
  }

  .hero-simple {
    margin-bottom: 18px;
  }

  .hero-simple h1 {
    font-size: 24px;
  }

  .desc {
    font-size: 14px;
  }

  .search-box {
    flex-direction: column;
    gap: 10px;
  }

  .search-box input,
  .search-box button {
    width: 100%;
    min-height: 62px;
    border-radius: 18px;
    font-size: 16px;
  }

  .search-box input {
    padding: 0 20px;
  }

  .search-box button {
    flex: none;
    padding: 0 20px;
  }

  .card {
    padding: 14px 14px 16px;
  }

  .info-row {
    grid-template-columns: 78px 1fr;
    column-gap: 10px;
    padding: 12px 0;
  }

  .label {
    font-size: 14px;
    font-weight: 600;
  }

  .value {
    font-size: 16px;
  }

  .steps {
    gap: 6px;
  }

  .step {
    font-size: 11px;
    padding: 9px 4px;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 16px 12px;
  }

  .main-card {
    border-radius: 22px;
    padding: 18px 14px 16px;
  }

  .brand-link-image {
    padding: 8px 14px;
  }

  .brand-image {
    height: 40px;
    max-width: 190px;
  }

  .hero-simple h1 {
    font-size: 22px;
  }

  .search-box input,
  .search-box button {
    min-height: 66px;
    border-radius: 18px;
    font-size: 16px;
  }

  .search-box input {
    padding: 0 22px;
  }

  .search-box button {
    padding: 0 20px;
  }

  .card {
    padding: 12px 12px 14px;
    border-radius: 20px;
  }

  .info-row {
    grid-template-columns: 72px 1fr;
    column-gap: 8px;
    padding: 11px 0;
  }

  .label {
    font-size: 13px;
  }

  .value {
    font-size: 15px;
  }

  .steps {
    gap: 5px;
    margin-top: 16px;
  }

  .step {
    font-size: 10px;
    padding: 9px 3px;
    letter-spacing: -0.02em;
  }
}