/* After the form is sent: the screen of the source site's /recruit/thanks (an overlay here, shown by js/main.js),
   and the form's messages (errors) readable on the dark page. */
.recruit-thanks {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column;
  padding: 120px 16px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.91);
  font-family: "Zen Maru Gothic", sans-serif;
  color: #289fc6; text-align: center;
}
.recruit-thanks[hidden] { display: none; }
.recruit-thanks:focus { outline: none; }
html.recruit-thanks-open, html.recruit-thanks-open body { overflow: hidden; }

.recruit-thanks__close {
  position: absolute; top: 48px; right: 15.1vw;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: #fff; font-family: "Quicksand", sans-serif; font-weight: 400;
  font-size: 1.2vw; letter-spacing: 0.16em; line-height: 1.4;
}
.recruit-thanks__close img { display: block; width: 3.9vw; height: 3.9vw; }
.recruit-thanks__close:hover { opacity: 0.7; }

.recruit-thanks__body { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.recruit-thanks__title { margin: 0; font-size: 2.5vw; font-weight: 600; letter-spacing: 0.1em; line-height: 1.8; }
.recruit-thanks__text { margin: 0; font-size: 1.25vw; font-weight: 600; letter-spacing: 0.1em; line-height: 1.8; }
.recruit-thanks__box {
  box-sizing: border-box; width: 35vw; padding: 20px; border-radius: 12px; background: #273137;
  font-size: 1.1vw; font-weight: 500; letter-spacing: 0.1em; line-height: 1.8;
}
.recruit-thanks__box p { margin: 0; }
.recruit-thanks__steps { display: inline-block; margin-top: 10px !important; text-align: left; }

@media screen and (max-width: 840px) {
  .recruit-thanks__close { top: 70px; right: 10.2vw; font-size: 2vw; }
  .recruit-thanks__close img { width: 6.4vw; height: 6.4vw; }
  .recruit-thanks__title { font-size: 4vw; }
  .recruit-thanks__text { font-size: 2.3vw; }
  .recruit-thanks__box { width: 72vw; font-size: 2vw; letter-spacing: normal; }
}
@media screen and (max-width: 540px) {
  .recruit-thanks__close { top: 69px; right: 3.7vw; font-size: 3vw; }
  .recruit-thanks__close img { width: 7.2vw; height: 7.2vw; }
  .recruit-thanks__title { font-size: 6vw; }
  .recruit-thanks__text { font-size: 3.6vw; }
  .recruit-thanks__box { width: 85.6vw; font-size: 3.6vw; }
}

/* the form's messages (a failed send …): white, apart from the button */
.section-2__form[hidden] { display: none !important; }
.vsm-form-message {
  margin: 24px 0 0; color: #fff; text-align: left;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.1em; line-height: 1.8;
}
.vsm-form-message[hidden] { display: none; }
