/* ============================================================
   Reset & Base
   ============================================================ */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR",
    "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #f3f1ef;
  color: #1c1c1c;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

input, button {
  font-family: inherit;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding-bottom: 160px; /* 给底部 fixed CTA 让位 */
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  width: 100%;
  line-height: 0;
}

.hero__img {
  width: 100%;
  display: block;
}

/* ============================================================
   Course Info Card
   ============================================================ */
.info {
  background: #e9e4f5;
  padding: 28px 22px 34px;
}

.info__card {
  background: #ffffff;
  border: 2px solid #8a7ddc;
  border-radius: 18px;
  padding: 6px 22px;
  box-shadow: 0 4px 0 rgba(138, 125, 220, 0.18);
}

.info__row {
  display: flex;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid #d8d3e5;
  gap: 18px;
}

.info__row--last {
  border-bottom: none;
  align-items: flex-start;
}

.info__label {
  flex: 0 0 90px;
  font-weight: 800;
  color: #1c1c1c;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.info__sub {
  font-weight: 500;
  font-size: 13px;
  color: #555;
}

.info__value {
  flex: 1;
  font-size: 19px;
  font-weight: 500;
  color: #1c1c1c;
  letter-spacing: -0.02em;
}

.info__value--small {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.badge-free {
  display: inline-block;
  background: linear-gradient(135deg, #ff8a3d, #ff5e5e);
  color: #fff;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 6px;
  margin-right: 4px;
  font-size: 16px;
}

/* ============================================================
   Form Section
   ============================================================ */
.form-section {
  background: #15171c;
  color: #ffffff;
  padding: 34px 22px 30px;
  position: relative;
}

.form-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffb347, #ffd97a, #ffb347);
}

.form-title {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 22px;
  color: #f1f1f1;
  letter-spacing: -0.02em;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  color: #1c1c1c;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: #9a9a9a;
}

.field input:focus {
  border-color: #ffb347;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.25);
}

/* Groups (radios) */
.group {
  margin-top: 6px;
}

.group__label {
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #ffffff;
  user-select: none;
}

.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: transparent;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.radio input:checked + .radio__dot {
  background: #ffffff;
  border-color: #ffffff;
}

.radio input:checked + .radio__dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #15171c;
  transform: translate(-50%, -50%);
}

/* Agreements */
.agree {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #ffffff;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.check input:checked + .check__box {
  background: #ffb347;
  border-color: #ffb347;
}

.check input:checked + .check__box::after {
  content: "";
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 9px;
  border-right: 2px solid #15171c;
  border-bottom: 2px solid #15171c;
  transform: rotate(45deg);
}

.check__txt {
  letter-spacing: -0.02em;
}

.check__link {
  color: #ffd97a;
  text-decoration: underline;
  font-size: 12px;
}

/* CTA Button */
.cta-btn {
  margin-top: 12px;
  width: 100%;
  display: block;
  transition: transform 0.15s ease, opacity 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 6px 12px rgba(255, 179, 71, 0.35));
}

.cta-btn img {
  width: 100%;
  display: block;
  border-radius: 50px;
}

.cta-btn:not(.is-disabled):hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(255, 179, 71, 0.5));
}

.cta-btn:not(.is-disabled):active {
  transform: translateY(1px);
}

.cta-btn.is-disabled {
  opacity: 0.78;
  filter: saturate(0.85) brightness(0.95);
  cursor: not-allowed;
}

/* Pulse animation for active button */
.cta-btn.is-ready {
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ============================================================
   Profile
   ============================================================ */
.profile {
  background: #ffffff;
  padding: 36px 22px 28px;
  position: relative;
}

.profile__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.profile__img {
  width: 42%;
  max-width: 200px;
  flex-shrink: 0;
}

.profile__intro {
  flex: 1;
  padding-top: 6px;
}

.profile__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #1c1c1c;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.profile__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #ffb347;
  margin-top: 6px;
  border-radius: 2px;
}

.profile__lead {
  font-size: 13px;
  line-height: 1.65;
  color: #333;
  margin: 0;
  letter-spacing: -0.02em;
}

.profile__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  letter-spacing: -0.02em;
}

.profile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: #1c1c1c;
  border-radius: 50%;
}

.profile__list--style li::before {
  background: #ffb347;
}

.profile__sub {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #1c1c1c;
  letter-spacing: -0.02em;
  border-left: 4px solid #ffb347;
  padding-left: 8px;
}

/* ============================================================
   Red CTA text
   ============================================================ */
.red-cta {
  background: #fff;
  padding: 14px 22px 26px;
  text-align: center;
}

.red-cta__line {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #e60012;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.red-cta__sub {
  margin: 14px 0 0;
  font-size: 14px;
  color: #e60012;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ============================================================
   Bottom CTA
   ============================================================ */
.bottom-cta {
  background: #15171c;
  padding: 16px 22px 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  z-index: 50;
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.35);
}

.bottom-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffb347, #ffd97a, #ffb347);
}

.bottom-cta__note {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.bottom-cta__note strong {
  color: #ffd97a;
  font-weight: 800;
}

.cta-btn--bottom {
  max-width: 100%;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(20, 20, 20, 0.92);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: -0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 380px) {
  .info__label   { font-size: 15px; flex-basis: 78px; }
  .info__value   { font-size: 16px; }
  .info__value--small { font-size: 13px; }
  .red-cta__line { font-size: 17px; }
  .profile__title { font-size: 20px; }
  .radio-row { gap: 10px 14px; }
}
