/* ReadWithUs tutor signup gate — scoped to /apply-to-teach/start only. */
body.applytoteach-start { overflow: hidden !important; }
.rwu-ts-overlay, .rwu-ts-overlay * { box-sizing: border-box; }
.rwu-ts-overlay {
  position: fixed; z-index: 2147482000; inset: 0;
  display: flex; align-items: center; justify-content: center;
  width: 100%; width: 100vw;
  height: 100vh; height: 100dvh;
  padding: 20px;
  background: rgba(5, 20, 52, .76);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.rwu-ts-dialog {
  position: relative; flex: none; width: min(100%, 492px);
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  border: 1px solid rgba(215, 228, 250, .94);
  border-radius: 22px; background: #fff;
  box-shadow: 0 28px 90px rgba(0, 13, 46, .33);
  color: #102551; margin: auto;
}
.rwu-ts-card-content { padding: 28px 37px 27px; }
.rwu-ts-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: grid; place-items: center; width: 34px; height: 34px;
  background: #f1f6ff; border: 1px solid #e1eafa;
  border-radius: 50%; color: #314a72; text-decoration: none;
  font-size: 25px; line-height: 1; font-weight: 400;
}
.rwu-ts-close:hover, .rwu-ts-close:focus-visible { background: #e5efff; color: #0565ef; outline: 2px solid #74aaff; outline-offset: 2px; }
.rwu-ts-logo { display: flex; align-items: center; height: 54px; max-width: 170px; margin: 0 0 18px; }
.rwu-ts-logo img { display: block; width: 100%; max-width: 165px; max-height: 52px; object-fit: contain; object-position: left center; }
.rwu-ts-eyebrow { display:block; color: #0667e9; font-size: 11px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; margin-bottom: 7px; }
.rwu-ts-dialog h1 { color: #091f55; font-weight: 800; font-size: clamp(23px, 3vw, 29px); line-height: 1.19; letter-spacing: -.035em; margin: 0 0 9px; }
.rwu-ts-description { margin: 0; color: #5d7191; font-size: 13px; line-height: 1.65; max-width: 380px; }
.rwu-ts-step { display: flex; align-items: center; gap: 8px; margin: 17px 0 18px; padding: 9px 12px; border-radius: 10px; background: #f0f6ff; color: #436282; font-size: 11px; font-weight: 650; }
.rwu-ts-step-dot { background: #0b6ffc; border-radius: 50%; width: 8px; height: 8px; flex: none; }
.rwu-ts-form { width: 100%; margin: 0; }
.rwu-ts-field { margin-bottom: 16px; }
.rwu-ts-field label { display: block; margin: 0 0 7px; color: #142e5b; font-size: 12px; font-weight: 750; }
.rwu-ts-field label span { color: #ef4169; }
.rwu-ts-field input:not([type="hidden"]):not([type="checkbox"]) {
  display: block; width: 100%; height: 46px; padding: 0 14px; margin: 0;
  background: #f8fbff; border: 1px solid #d7e3f4; border-radius: 10px;
  color: #152b56; font-family: inherit; font-size: 14px;
  outline: none; box-shadow: none;
}
.rwu-ts-field input:not([type="hidden"]):not([type="checkbox"]):focus { border-color: #1175fa; box-shadow: 0 0 0 3px rgba(25,113,245,.13); background: #fff; }
.rwu-ts-field input::placeholder { color: #899bb5; opacity: 1; }
.rwu-ts-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rwu-ts-label-row label { margin-bottom: 7px; }
.rwu-ts-toggle { color: #0b69f6; background: transparent; border: 0; padding: 0 0 6px; cursor: pointer; font-size: 11px; font-weight: 700; font-family: inherit; line-height: 1.4; white-space: nowrap; }
.rwu-ts-password-hint { color: #8293aa; font-size: 11px; line-height: 1.5; margin: 7px 0 0; }
.rwu-ts-submit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 47px; margin-top: 21px; padding: 11px 16px;
  border: 0; border-radius: 11px; cursor: pointer;
  background: #0768f6; color: #fff; box-shadow: 0 9px 20px rgba(14, 99, 235, .17);
  font-family: inherit; font-size: 14px; font-weight: 800; text-align: center;
}
.rwu-ts-submit:hover, .rwu-ts-submit:focus-visible { background: #0357d2; color: #fff; }
.rwu-ts-submit span { font-size: 17px; }
.rwu-ts-terms { margin: 17px 0 0; color: #687f9e; font-size: 11px; text-align: center; line-height: 1.65; }
.rwu-ts-terms a { color: #086cf4; font-weight: 700; text-decoration: none; }
.rwu-ts-terms a:hover { text-decoration: underline; }
.rwu-ts-footnote { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #e5ecf7; font-size: 11px; text-align: center; color: #8293ab; line-height: 1.45; }
@media (max-width: 560px) {
  .rwu-ts-overlay { padding: 12px; }
  .rwu-ts-dialog { width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 17px; }
  .rwu-ts-card-content { padding: 22px 21px 19px; }
  .rwu-ts-logo { margin-bottom: 14px; }
  .rwu-ts-close { top: 13px; right: 13px; }
  .rwu-ts-step { margin: 13px 0 15px; }
}
@media (max-height: 650px) {
  .rwu-ts-overlay { padding-top: 8px; padding-bottom: 8px; }
  .rwu-ts-dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .rwu-ts-card-content { padding-top: 18px; padding-bottom: 17px; }
  .rwu-ts-logo { height: 44px; margin-bottom: 8px; }
  .rwu-ts-logo img { max-height: 43px; }
  .rwu-ts-step { margin: 9px 0 11px; }
  .rwu-ts-field { margin-bottom: 10px; }
  .rwu-ts-submit { margin-top: 13px; }
  .rwu-ts-footnote { margin-top: 10px; padding-top: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rwu-ts-dialog { animation: rwuTsEnter .2s ease-out both; }
  @keyframes rwuTsEnter { from { opacity: .7; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
