.layout {
  width: 100%;
  min-height: 100vh;
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  padding: 0 26px;
  background: var(--color-bg);
}

.progress-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 44px;
  padding-bottom: 24px;
}

/* header */
.progress-header {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-button {
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-button span {
  display: block;
  width: 9px;
  height: 9px;
  border-left: 2px solid #111111;
  border-bottom: 2px solid #111111;
  transform: rotate(45deg);
}

.page-title {
  font-size: var(--font-md);
  font-weight: 500;
  line-height: 1;
  color: var(--color-black);
}

/* progress */
.progress-bar-wrap {
  width: 100%;
  margin-top: 28px;
}

.progress-bar {
  width: 100%;
  display: flex;
  gap: 15px;
}

.progress-step {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #d9d9d9;
}

.progress-step-active {
  background: var(--color-primary);
}

/* content */
.progress-content {
  width: 100%;
  margin-top: 46px;
}

.title-wrap {
  margin-bottom: 26px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.section-desc {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #8e8e8e;
}

/* list */
.interest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.interest-card {
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 1.5px solid #c9c9c9;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.interest-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

.interest-desc {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: #8e8e8e;
  word-break: keep-all;
}

.interest-card.is-selected {
  border-color: var(--color-primary);
  background: #fff3ee;
}

.interest-card.is-selected .interest-title {
  color: var(--color-primary);
}

/* next button */
.next-button-wrap {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
}

.next-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--font-md);
  font-weight: 5s00;
  text-decoration: none;
}

/* 376 이상부터는 계속 같이 커짐 */
@media (min-width: 376px) {
  .container {
    max-width: 767px;
    padding: 0 26px;
  }

  .progress-header,
  .progress-bar-wrap,
  .progress-content,
  .next-button-wrap {
    width: 100%;
  }

  .progress-bar {
    width: 100%;
    gap: 15px;
  }

  .progress-step {
    flex: 1;
    width: auto;
    height: 6px;
  }

  .interest-card,
  .next-button {
    width: 100%;
  }

  .interest-card {
    min-height: 72px;
  }
}
