:root {
  --color-white: #ffffff;
  --color-black: #000000;

  --color-blue01: #0064FF;
  --color-blue02: #0648b6;
  --color-dark-blue01: #202632;
  --color-gray01: #ABB6CC;
  --color-gray02: #969FB2;
  --color-gray03: #526180;
  --color-gray04: #4B5466;
  --color-gray05: #293040;
  --color-gray06: #21242C;

  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --radius-xlarge: 120px;

  --layout-max-wid: 93%;
  --layout-pdx: 7%;
}

/*layout*/
body {
  background-color: var(--color-dark-blue01);
  color: var(--color-white);
}

.pc {
  display: block;
}

.mb {
  display: none;
}

.main {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  height: 56px;
  padding: 0 var(--layout-pdx);

  display: none;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.section {
  flex: 1;
  overflow-y: auto;
}

.footer {
  width: 100%;
  flex: none;
}

.container {
  width: var(--layout-max-wid);
  max-width: 1120px;
  margin: 0 auto;
}


/*close*/
.close {
  position: relative;
  width: 24px;
  height: 24px;
}

.close:before,
.close:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;

  margin: 0 0 -10px -10px;
  display: block;
  width: 20px;
  height: 2px;

  background: var(--color-white);
  transform-origin: 50% 50%;
  rotate: 45deg;
}

.close:after {
  rotate: 135deg;
}


/*checkbox*/
.cb {
  position: relative;
}

.cb input {
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cb span {
  display: inline-flex;
  align-items: center;
  column-gap: 16px;
}

.cb span:after {
  content: '';
  margin-top: -2px;
  width: 28px;
  height: 28px;
  display: block;
  border: 1px solid var(--color-gray03);
  border-radius: 50%;
}

.cb input:checked + span {
  color: var(--color-blue01);
  font-weight: 500;
}

.cb input:checked + span:after {
  border-width: 6px;
  border-color: var(--color-blue01);
}


/*textFiled*/
input[type=text] {
  width: 100%;
  height: 66px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: #f5f5f5;
  border: 1px solid #D9D9D9;
  border-radius: var(--radius-medium);
  outline: none;

  color: #000000;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  transition: all .2s;
}

input[type=text]:focus {
  background-color: rgba(0, 100, 255, 0.1);
  border-color: var(--color-blue01);
}

input[type=text]::placeholder{
  color: #D9D9D9;
  font-weight: 400;
}


/*popup*/
.backdrop {
  position: fixed;
  top:0;
  left:0;
  z-index: 999;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,.7);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s;
}

.backdrop.on {
  visibility: visible;
  opacity: 1;
}

.popup {
  width: 580px;
  padding: 36px 0 24px;
  display: none;
  flex-direction: column;

  background-color: var(--color-white);
  border-radius: var(--radius-medium);
  color: var(--color-gray03);
  font-size: 24px;
  font-weight: 400;
}

.popup.on {
  display: block;
}

.popup .header {
  padding: 0 16px;
}

.popup .close:before,
.popup .close:after {
  background: #000;
}

.popup .content {
  padding: 0 36px;
  text-align: center;
}

.popup .buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  column-gap: 8px;
}

.popup .buttons button {
  height: 41px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--radius-medium);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
}

.popup .buttons button.cancel {
  background-color: var(--color-gray04);
}

.popup .buttons button.submit {
  background-color: var(--color-blue01);
}

.popup .buttons button:disabled {
  background-color: #D9D9D9;
}

.popup-open * {
  pointer-events: none;
}


/*loading*/
.loading {
  position: fixed;
  top:0;
  left:0;
  z-index: 9999;

  width: 100vw;
  height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 1);
}

.spinner01 {
  display: flex;
  justify-content: center;
}

@keyframes bounce {
  to {
    opacity: 0.3;
    transform: translate3d(0, -1rem, 0);
  }
}

.spinner01 i {
  width: 1rem;
  height: 1rem;
  margin: 2rem 0.3rem;
  background: var(--color-blue01);
  border-radius: 50%;
  animation: 0.9s bounce infinite alternate;
}

.spinner01 i:nth-of-type(2) {
  animation-delay: 0.3s;
}
.spinner01 i:nth-of-type(3) {
  animation-delay: 0.6s;
}

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

.spinner02 {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0.3rem solid rgba(0, 100, 255, 0.3);
  border-top-color: var(--color-blue01);
  animation: 1.5s spin infinite linear;
}

@media (max-width: 1000px) {
  .pc {
    display: none;
  }

  .mb {
    display: block;
  }

  .main {
    height: 100dvh;
  }

  .header {
    display: flex;
  }

  .popup {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
  }

  .popup .content {
    padding: 36px 16px 0;
  }

  .popup .buttons {
    position: absolute;
    left: 0;
    bottom:0;
    width: 100%;
  }

  .popup .buttons button {
    width: 100%;
    height: 54px;
    border-radius: 0;
    font-size: 16px;
  }

  .popup .buttons button.cancel {
    display: none;
  }

  input[type=text] {
    height: 54px;
    font-size: 16px;
  }

  .cb span {
    column-gap: 10px;
  }

  .cb span:after {
    margin-top: 0;
    width: 20px;
    height: 20px;
  }
}

/* ===== 검사 시작 패스워드 모달 ===== */
.pw-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(20, 20, 20, 0.55);
}

.pw-backdrop.on { display: flex; }

.pw-modal {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 28px;

  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.pw-modal h2 {
  color: #161616;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pw-desc {
  margin-top: 12px;
  color: #6b6b6b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.pw-modal input {
  width: 100%;
  height: 56px;
  margin-top: 22px;
  padding: 0 18px;

  background: #f6f6f6;
  border: 2px solid #e6e6e6;
  border-radius: 14px;

  color: #202020;
  font-size: 17px;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color .2s;
}

.pw-modal input:focus { border-color: #202020; }

.pw-error {
  min-height: 20px;
  margin-top: 10px;
  color: #e5484d;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pw-help {
  margin-top: 2px;
  color: #6b6b6b;
  font-size: 13px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.pw-help a { color: var(--color-blue01, #0064ff); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.pw-btns {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.pw-btns button {
  flex: 1;
  height: 54px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity .2s, background-color .2s;
}

.pw-cancel {
  background: #f1f1f1;
  border: none;
  color: #555555;
}

.pw-cancel:hover { background: #e6e6e6; }

.pw-submit {
  background: #202020;
  border: none;
  color: #ffffff;
}

.pw-submit:hover { opacity: .88; }
.pw-submit:disabled { opacity: .5; cursor: default; }

@media (max-width: 1000px) {
  .pw-modal { padding: 30px 22px 22px; border-radius: 20px; }
  .pw-modal h2 { font-size: 21px; }
}

