.bp-join-body {
  margin: 0;
  background: #f4f7fb;
  color: #102a43;
}

.bp-join-page {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.bp-join-intro {
  border-radius: 24px;
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(145deg, #123a66, #0f2947);
  box-shadow: 0 20px 50px rgba(15, 42, 71, .14);
}

.bp-join-intro h1 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: .98;
}

.bp-join-lead {
  max-width: 470px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.84);
}

.bp-join-steps-info {
  margin-top: 34px;
  display: grid;
  gap: 24px;
}

.bp-join-steps-info article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
}

.bp-join-steps-info article > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  color: #ffd54a;
  font-weight: 800;
}

.bp-join-steps-info p,
.bp-join-privacy p {
  margin: 5px 0 0;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
}

.bp-join-privacy {
  margin-top: 40px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0,0,0,.15);
}

.bp-join-privacy strong {
  color: #ffd54a;
}

.bp-join-card {
  background: #fff;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 20px 50px rgba(15, 42, 71, .10);
}

.bp-join-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.bp-join-heading h2 {
  margin: 6px 0 7px;
  font-size: 28px;
}

.bp-join-heading p {
  margin: 0;
  color: #66788a;
}

.bp-join-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4bf;
  font-size: 22px;
}

.bp-join-badge {
  height: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: #eef4fa;
  color: #34506a;
  font-size: 13px;
  font-weight: 700;
}

.bp-join-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 700;
}

.bp-join-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #ccd6e0;
  border-radius: 12px;
  font: inherit;
}

.bp-join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.bp-join-main-button,
.bp-join-back {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  margin-top: 8px;
}

.bp-join-note {
  margin-top: 26px;
  padding: 17px;
  border-radius: 14px;
  background: #f2f6fa;
  color: #385168;
}

.bp-join-error {
  min-height: 22px;
  color: #b42318;
  font-weight: 700;
}

.bp-selected-student {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid #dce5ed;
  border-radius: 15px;
  background: #f8fafc;
}

.bp-student-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #dce8f4;
  font-size: 26px;
}

.bp-student-photo-large {
  width: 88px;
  height: 88px;
}

.bp-student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-join-modal[hidden] {
  display: none;
}

.bp-join-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.bp-join-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 21, 37, .62);
  backdrop-filter: blur(3px);
}

.bp-join-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  box-sizing: border-box;
  border-radius: 22px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
}

.bp-join-modal-close {
  position: absolute;
  top: 14px;
  right: 17px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

.bp-modal-student {
  margin: 25px 0 20px;
  padding: 20px;
  border: 1px solid #dce5ed;
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}

.bp-modal-student .bp-student-photo {
  margin: 0 auto 13px;
}

.bp-modal-question {
  text-align: center;
  font-weight: 800;
  font-size: 17px;
}

.bp-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.bp-join-modal-note {
  margin-top: 20px;
  padding: 13px;
  border-radius: 12px;
  text-align: center;
  background: #f2f6fa;
  color: #607589;
  font-size: 13px;
}

@media (max-width: 850px) {
  .bp-join-page {
    grid-template-columns: 1fr;
  }

  .bp-join-card {
    padding: 28px 20px;
  }
}

@media (max-width: 560px) {
  .bp-join-grid,
  .bp-modal-actions {
    grid-template-columns: 1fr;
  }

  .bp-join-heading {
    flex-direction: column;
  }
}
