/*
 * "Đăng ký thẻ thành viên trên ứng dụng ALADDIN" (module app-signup) on the G.Master Thành viên page: what the page
 * changes without touching the module's own stylesheet (public/modules/app-signup, shared by the Aladdin brands).
 * #dang-ky is the id the page gives the section (site/pages/page, Thành viên).
 *
 * - On the black of the page, between the tier cards and the FAQ, with the look of the tier cards: brown to black, a
 *   copper edge fading to black, gold (colours in config/app-signup.php).
 * - The same width as the other blocks of the website: the 1200 px .container (1160 px of content, 20 px gutters),
 *   16 px gutters on phones.
 * - The step numbers in round gold-edged discs, the figure centred in them, on the line of the step's title (the
 *   description under the title), without the dotted line behind them.
 */
#dang-ky.as-signup {
  --as-max-width: 1160px;
  --as-gutter: 20px;
  --as-radius: 40px;
  background: #000;
}

@media (max-width: 767px) {
  #dang-ky.as-signup {
    --as-gutter: 16px;
    --as-radius: 24px;
  }
}

/* The panel as a tier card: its gradient, a 3 px copper edge fading to black, the card's shadow; no inner line. */
#dang-ky .as-signup__panel::before {
  border: 3px solid transparent;
  background:
    linear-gradient(160deg, var(--as-panel-from) 0%, var(--as-panel-to) 100%) padding-box,
    linear-gradient(180deg, #783f29 0%, #2a160f 70%, #000 100%) border-box;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

#dang-ky .as-signup__panel::after {
  display: none;
}

/* ------------------------------------------------------------------ steps */
#dang-ky .as-signup__steps::before {
  display: none;
}

/* Number | title on one row (both centred on it), then the description and the progress line under the title. */
#dang-ky .as-signup__step-btn {
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 0;
  align-items: start;
}

#dang-ky .as-signup__step-text {
  display: contents;
}

/* The disc fills the number's box, the figure centred in it (no lift: the module's 3 px suits another font). */
#dang-ky .as-signup__num {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 40px;
  height: 40px;
  margin-block: -8px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

#dang-ky .as-signup__num::before {
  inset: 0;
  border-width: 1.5px;
  border-radius: 50%;
}

#dang-ky .as-signup__step.is-on .as-signup__num::before {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--as-accent) 22%, transparent), 0 6px 14px -4px rgba(0, 0, 0, 0.6);
  transform: scale(1.06);
}

#dang-ky .as-signup__step-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin-top: 0;
}

#dang-ky .as-signup__step-desc,
#dang-ky .as-signup__progress {
  grid-column: 2;
}

@media (max-width: 767px) {
  #dang-ky .as-signup__step-btn {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
  }

  #dang-ky .as-signup__num {
    width: 32px;
    height: 32px;
    margin-block: -4px;
    font-size: 14px;
  }
}

/* Desktop: the title keeps the lines typed in the admin (Enter = new line), never wrapped on its own. */
@media (min-width: 1200px) {
  #dang-ky .as-signup__title {
    white-space: nowrap;
    font-size: min(var(--as-title-size, 46px), 3.3vw);
  }
}
