:root {
  --join-navy: #2b3a4a;
  --join-accent: #f2e8b0;
  --join-soft: #f4f1eb;
  --join-card: #ffffff;
  --join-border: #e7e1d8;
  --join-text-muted: #7d8791;
  --join-success: #7aaf84;
  --join-error: #d45f5f;
}

.join-page {
  background: var(--join-soft);
}

.join-shell {
  min-height: 100vh;
}

.join-progress-wrap {
  background: #fff;
  border-bottom: 1px solid #ece7df;
  padding: 18px 24px;
}

.join-progress {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 110px;
}

.join-progress__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9e2d8;
  color: #8c8c8c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.join-progress__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.join-progress__item.is-current .join-progress__dot,
.join-progress__item.is-complete .join-progress__dot {
  background: var(--join-navy);
  color: #fff;
}

.join-progress__item.is-current .join-progress__label,
.join-progress__item.is-complete .join-progress__label {
  color: var(--join-navy);
}

.join-progress__line {
  height: 2px;
  flex: 1 1 auto;
  background: #e9e2d8;
  margin: 0 10px 18px;
}

.join-progress__line.is-complete {
  background: var(--join-navy);
}

.join-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 84px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.join-summary-card,
.join-panel,
.join-context-card,
.join-review-card,
.join-membership-card,
.join-total-card,
.join-confirm-card {
  background: var(--join-card);
  box-shadow: 0 2px 16px rgba(43, 58, 74, 0.06);
}

.join-summary-card {
  border-radius: 24px;
  padding: 28px 28px 22px;
  position: sticky;
  top: 96px;
}

.join-summary-card__eyebrow,
.join-panel__eyebrow,
.join-review-card__label,
.join-context-card__label,
.join-confirm-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.join-summary-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--join-navy);
  margin-top: 8px;
}

.join-summary-card__meta {
  margin-top: 10px;
  color: #66717b;
  line-height: 1.65;
  font-size: 15px;
}

.join-summary-card__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0ebe5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.join-summary-card__facilitator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--join-navy);
  font-weight: 600;
}

.join-summary-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 16px;
}

.join-summary-card__price {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--join-navy);
}

.join-panel {
  border-radius: 28px;
  padding: 34px 36px;
}

.join-panel--centered {
  text-align: center;
}

.join-panel__eyebrow {
  color: rgba(43, 58, 74, .5);
  margin-bottom: 8px;
}

.join-panel__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--join-navy);
  margin: 0;
}

.join-panel__subtitle {
  margin-top: 10px;
  font-size: 16px;
  color: #7b858f;
  line-height: 1.7;
  max-width: 760px;
}

.join-auth-tabs {
  display: inline-flex;
  background: #f5f1eb;
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
  margin: 28px 0 24px;
}

.join-auth-tabs__btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #7b858f;
}

.join-auth-tabs__btn.is-active {
  background: var(--join-navy);
  color: #fff;
}

.join-auth-panels {
  width: 100%;
}

.join-auth-panel {
  display: none;
}

.join-auth-panel.is-active {
  display: block;
}

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

.join-form__grid {
  display: grid;
  gap: 16px;
}

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

.join-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.join-field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(43, 58, 74, .78);
}

.join-field input,
.join-field select,
.join-stripe-element {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d8d0c5;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  color: var(--join-navy);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.join-field input:focus,
.join-field select:focus,
.join-stripe-element.is-focus {
  outline: none;
  border-color: var(--join-navy);
  box-shadow: 0 0 0 3px rgba(43, 58, 74, 0.08);
}

.join-field__error,
.join-form__error-box {
  color: var(--join-error);
  font-size: 12px;
}

.join-form__error-box {
  background: #fff0f0;
  border: 1px solid #f4cccc;
  border-radius: 12px;
  padding: 12px 14px;
}

.join-btn {
  width: 100%;
  border-radius: 999px;
  padding: 16px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.join-btn:hover {
  transform: translateY(-1px);
}

.join-btn--primary {
  background: var(--join-navy);
  color: #fff;
}

.join-btn--secondary {
  background: transparent;
  color: var(--join-navy);
  border-color: var(--join-navy);
}

.join-password-strength {
  display: flex;
  align-items: center;
  gap: 6px;
}

.join-password-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #ece7df;
}

.join-password-strength__label {
  font-size: 11px;
  color: #9aa2a9;
  min-width: 118px;
  text-align: right;
}

.join-password-strength.is-weak .join-password-strength__bar:nth-child(-n+1) { background: var(--join-error); }
.join-password-strength.is-medium .join-password-strength__bar:nth-child(-n+2) { background: #d89a2b; }
.join-password-strength.is-strong .join-password-strength__bar:nth-child(-n+3) { background: var(--join-success); }
.join-password-strength.is-weak .join-password-strength__label { color: var(--join-error); }
.join-password-strength.is-medium .join-password-strength__label { color: #b97a0c; }
.join-password-strength.is-strong .join-password-strength__label { color: var(--join-success); }

.join-review-card {
  border-radius: 20px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
}

.join-review-card__value {
  margin-top: 8px;
  color: var(--join-navy);
  font-size: 17px;
  font-weight: 600;
}

.join-context-card,
.join-membership-card,
.join-total-card,
.join-confirm-card {
  border-radius: 20px;
  padding: 20px 22px;
}

.join-context-card {
  margin-bottom: 18px;
}

.join-context-card p,
.join-membership-card__text,
.join-confirm-card__text {
  margin: 10px 0 0;
  color: #5e6974;
  line-height: 1.75;
  font-size: 14px;
}

.join-membership-card {
  background: #eaf4ec;
  margin-bottom: 18px;
}

.join-membership-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #2d5436;
}

.join-credit-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7f4ef;
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  margin-bottom: 18px;
}

.join-credit-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--join-navy);
  margin-top: 3px;
}

.join-credit-option__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #67717c;
}

.join-total-card__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
  color: #5c6772;
  padding: 6px 0;
}

.join-total-card__row.is-discount {
  color: var(--join-success);
}

.join-total-card__row.is-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #eee7dc;
  font-weight: 700;
  color: var(--join-navy);
}

.join-total-card__row.is-total span:last-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
}

.join-stripe-element {
  padding: 16px;
  min-height: 54px;
}

.join-checkmark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #e8f5ec;
  color: #2d5436;
  font-size: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.join-confirm-card {
  text-align: left;
  margin-top: 16px;
}

.join-confirm-card__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--join-navy);
  font-weight: 600;
  word-break: break-all;
}

.join-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .join-content {
    grid-template-columns: 1fr;
  }

  .join-summary-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .join-progress {
    gap: 4px;
  }

  .join-progress__item {
    min-width: 0;
    flex: 1 1 0;
  }

  .join-progress__label {
    font-size: 9px;
  }

  .join-progress__line {
    margin: 0 4px 18px;
  }

  .join-content,
  .join-panel,
  .join-summary-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .join-panel,
  .join-summary-card {
    border-radius: 22px;
  }

  .join-form__grid--2,
  .join-review-card {
    grid-template-columns: 1fr;
  }
}


.join-plan-choices {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.join-plan-choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 2px solid var(--join-border);
  border-radius: 18px;
  background: #fff;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.join-plan-choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43, 58, 74, 0.07);
}

.join-plan-choice.is-selected {
  border-color: var(--join-navy);
  box-shadow: 0 0 0 3px rgba(43, 58, 74, 0.07);
}

.join-plan-choice input {
  margin-top: 4px;
}

.join-plan-choice__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.join-plan-choice__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--join-navy);
}

.join-plan-choice__text {
  color: #6f7983;
  font-size: 13px;
  line-height: 1.6;
}

.join-plan-choice__price {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--join-navy);
  line-height: 1;
  white-space: nowrap;
}

.join-plan-choice__subprice {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: var(--join-text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.join-membership-highlight,
.join-pending-card {
  background: #f9f6f0;
  border: 1px solid var(--join-border);
  border-radius: 18px;
  padding: 18px 20px;
}

.join-membership-highlight {
  margin-bottom: 18px;
}

.join-membership-highlight__title,
.join-pending-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--join-navy);
}

.join-membership-highlight__text,
.join-pending-card__text {
  margin-top: 6px;
  color: #6f7983;
  font-size: 13px;
  line-height: 1.7;
}

.join-pending-card {
  margin-top: 22px;
  background: #fff;
}

.join-pending-card__spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(43, 58, 74, 0.14);
  border-top-color: var(--join-navy);
  animation: join-spin .8s linear infinite;
}

@keyframes join-spin {
  to { transform: rotate(360deg); }
}

.join-stripe-note {
  text-align: center;
  color: var(--join-text-muted);
  font-size: 12px;
  margin-top: -4px;
}

.join-stripe-note strong {
  color: #6772e5;
}

.join-field__hint {
  display: block;
  font-size: 12px;
  color: var(--join-text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .join-plan-choice {
    flex-direction: column;
  }

  .join-plan-choice__price {
    font-size: 26px;
  }
}

/* Back link on each step */
.join-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  padding: 4px 0;
  color: #9aa2a9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .15s ease;
}

.join-back-link:hover {
  color: var(--join-navy);
}

/* Clickable progress steps */
.join-progress__item.is-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity .15s ease;
}

.join-progress__item.is-clickable:hover {
  opacity: 0.7;
}

.join-progress__item.is-clickable:hover .join-progress__dot {
  box-shadow: 0 0 0 3px rgba(43, 58, 74, 0.12);
}
