.join-page {
  background: #05050a;
  color: #fff;
}

.site-header__link.is-active {
  color: #ffb36b;
}

.join-main {
  padding-bottom: 2.5rem;
}

.join-hero {
  position: relative;
  min-height: min(62dvh, 640px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82) 64%),
    url("../assets/images/HERO-MCING.jpg") center/cover no-repeat;
}

.join-hero__layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.join-hero__content {
  position: relative;
  z-index: 1;
  width: min(1150px, 100% - 2rem);
  margin-inline: auto;
  text-align: center;
}

.join-hero__logo {
  width: min(420px, 68vw);
  margin: 0 auto;
  filter: drop-shadow(0 15px 28px rgba(0, 0, 0, 0.45));
}

.join-hero__divider {
  width: min(900px, 90%);
  height: 10px;
  margin: 0.35rem auto 0.85rem;
  background: #fbd00f;
}

.join-hero__title {
  margin: 0;
  font-family: var(--title-font);
  letter-spacing: 0.06em;
  font-size: clamp(2.3rem, 8vw, 4.2rem);
}

.join-hero__subtitle {
  margin: 0.7rem auto 0;
  max-width: 78ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.94rem, 1.75vw, 1.08rem);
}

.join-why,
.join-paths,
.join-apply {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
  margin-top: 1.3rem;
}

.join-why__container {
  display: grid;
  gap: 1rem;
}

.join-why__content,
.join-apply__container,
.join-paths__container {
  border: 1px solid #2f3850;
  border-radius: 14px;
  background:
    radial-gradient(900px 450px at 0% -20%, rgba(255, 122, 0, 0.15), transparent 58%),
    linear-gradient(145deg, #131928, #0d1320);
  padding: 1rem;
}

.join-why__content h2,
.join-paths__container h2,
.join-apply__container h2 {
  margin: 0 0 0.72rem;
  font-family: var(--title-font);
  letter-spacing: 0.05em;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.join-feature-list {
  display: grid;
  gap: 0.85rem;
}

.join-feature {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.join-feature__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid #4f5f8a;
  background: #121b30;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbd00f;
}

.join-feature__body h3 {
  margin: 0;
  color: #f5f7fc;
  font-size: 1rem;
}

.join-feature__body p {
  margin: 0.34rem 0 0;
  color: #c9d1e4;
  line-height: 1.58;
  font-size: 0.93rem;
}

.join-why__media {
  margin: 0;
  border: 1px solid #2f3850;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #121827, #0d131f);
  display: grid;
  place-items: center;
}

.join-why__media img {
  width: min(560px, 92%);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.48));
}

.join-paths__container > p {
  margin: 0;
  color: #c7cfe2;
  line-height: 1.62;
}

.join-paths__grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.join-paths__card {
  border: 1px solid #344060;
  border-radius: 12px;
  background: linear-gradient(145deg, #151f32, #101726);
  padding: 0.78rem;
}

.join-paths__card h3 {
  margin: 0;
  color: #f6f8fe;
  font-size: 1.02rem;
}

.join-paths__card p {
  margin: 0.42rem 0 0;
  color: #c8d0e4;
  line-height: 1.55;
  font-size: 0.92rem;
}

.join-apply__layout {
  display: grid;
  gap: 1rem;
  margin-top: 0.9rem;
}

.join-apply__tips {
  display: grid;
  gap: 0.95rem;
}

.join-tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.join-tip__icon {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffa541, #ff8b13);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.join-tip__content h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: 0.02em;
  color: #ff8f1f;
}

.join-tip__content p {
  margin: 0.32rem 0 0;
  color: #eceff7;
  line-height: 1.6;
  font-size: 0.98rem;
}

.join-panel--form {
  border: 1px solid #2f3850;
  border-radius: 12px;
  background: #050509;
  padding: 0.95rem;
}

.join-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0 0.4rem 0.9rem;
}

.join-stepper::before {
  content: "";
  position: absolute;
  top: 1.22rem;
  left: 0.4rem;
  right: 0.4rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.52);
}

.join-stepper::after {
  content: "";
  position: absolute;
  top: 1.22rem;
  left: 0.4rem;
  width: calc((100% - 0.8rem) / 2);
  height: 2px;
  background: #ffa444;
  transition: width 0.25s ease;
}

.join-stepper[data-step="2"]::after {
  width: calc(100% - 0.8rem);
}

.join-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.68);
}

.join-step__dot {
  margin-top: 0.84rem;
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 999px;
  border: 2px solid #ffa444;
  background: #050509;
  z-index: 1;
}

.join-step--active,
.join-step--done {
  color: #f2f3f8;
}

.join-step--done .join-step__dot,
.join-step--active .join-step__dot {
  background: #ffa444;
}

.join-form {
  display: grid;
  gap: 0.7rem;
}

.join-form__step {
  display: grid;
  gap: 0.78rem;
}

.join-form [hidden] {
  display: none !important;
}

.join-form__row {
  display: grid;
  gap: 0.78rem;
}

.join-form__group {
  display: grid;
  gap: 0.28rem;
}

.join-form__group legend,
.join-form__group label {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: #d0d2dc;
}

.join-form__group legend span,
.join-form__group label span {
  color: #ff4f4f;
}

.join-form input:not([type="radio"]):not([type="checkbox"]),
.join-form select {
  min-height: 3rem;
  width: 100%;
  border: 1px solid #d73f3f;
  border-radius: 2px;
  background: #d8d8db;
  color: #1b1c22;
  padding: 0 0.7rem;
}

.join-form input:not([type="radio"]):not([type="checkbox"])::placeholder {
  color: #757987;
}

.join-form input:not([type="radio"]):not([type="checkbox"]):focus,
.join-form select:focus {
  outline: 0;
  border-color: #ff7e2f;
  box-shadow: 0 0 0 2px rgba(255, 126, 47, 0.25);
}

.join-form input:not([type="radio"]):not([type="checkbox"]).is-invalid,
.join-form select.is-invalid,
.join-radio-group.is-invalid {
  border-color: #ff3e3e;
}

.join-form__group--radios {
  margin: 0;
  padding: 0;
  border: 0;
}

.join-form__group--profile {
  margin: 0;
  padding: 0;
  border: 0;
}

.join-profile-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
}

.join-profile-group.is-invalid {
  border-color: #ff3e3e;
}

.join-profile-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0 0.62rem;
  border: 1px solid #5f6476;
  border-radius: 2px;
  background: #12131a;
  color: #f4f5f9;
  font-weight: 600;
}

.join-profile-option input {
  width: 1rem;
  height: 1rem;
  min-height: 1rem;
  margin: 0;
  accent-color: #ff9f47;
}

.join-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.2rem 0;
}

.join-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  font-weight: 600;
}

.join-radio input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 1.25rem;
  accent-color: #ff6e3a;
  margin: 0;
}

.join-form__check {
  margin-top: 0.2rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.join-form__check input {
  min-height: 1rem;
  width: 1rem;
  margin-top: 0.15rem;
}

.join-form__check input.is-invalid {
  outline: 2px solid #ff3e3e;
  outline-offset: 2px;
}

.join-form__check span {
  color: #f0f2f8;
  font-size: 0.92rem;
  line-height: 1.45;
}

.join-form__legal-link {
  color: #ffb16a;
  text-decoration: underline;
}

.join-form__legal-link:hover {
  color: #ffc891;
}

.join-form__readonly {
  min-height: 3rem;
  margin: 0;
  border: 1px solid #d73f3f;
  border-radius: 2px;
  background: #d8d8db;
  color: #1b1c22;
  padding: 0.82rem 0.7rem 0;
  font-weight: 700;
}

.join-turnstile {
  min-height: 66px;
  margin-top: 0.16rem;
}

.join-form__error {
  display: none;
  margin: 0.06rem 0 0;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  border: 1px solid transparent;
  background: #e6d5d8;
  color: #2f2225;
  font-size: 0.85rem;
}

.join-form__error.is-visible {
  display: block;
  border-color: #d7bcc1;
}

.join-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.join-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.join-form__btn {
  min-height: 2.9rem;
  min-width: 7.7rem;
  border: 1px solid #ff9d43;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #111216;
  background: linear-gradient(180deg, #f8b15c, #f39b3d);
}

.join-form__btn--ghost {
  border-color: #4f5568;
  color: #f6f6fa;
  background: #13151e;
}

.join-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.join-status {
  margin: 0.3rem 0 0;
  min-height: 2.2rem;
  border: 1px solid #2f3850;
  border-left: 4px solid #72aee6;
  border-radius: 4px;
  background: #0f1119;
  color: #e2e7f3;
  padding: 0.55rem 0.7rem;
  display: none;
}

.join-status.is-visible {
  display: block;
}

.join-status.is-error {
  border-left-color: #d63638;
}

.join-status.is-success {
  border-left-color: #2ea44f;
}

@media (min-width: 960px) {
  .join-why__container {
    grid-template-columns: 1fr 0.9fr;
  }

  .join-paths__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .join-apply__layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
    gap: 1.4rem;
    align-items: start;
  }

  .join-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
