@charset "utf-8";
:root {
  --surface: #ffffff;
  --text: #1f3225;
  --accent: #046FD9;
  --accent-2: #0454a3;
  --text-main: #111827;
  --text-sub: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --secondary-line: #ddd;
  --ok-bg: #e8f0f6;
}
* {
  box-sizing: border-box;
}
.inner {
  width: 1200px;
  position: relative;
  margin: 0px auto;
  padding: 0 15px;
}
body {
  font-family: "pretendard", sans-serif;
  color: var(--text);
}

html.notscroll, body.notscroll { overflow: hidden !important; touch-action: none; height: 100%; }


header {
  background: #fff;
  padding: 22px 0;
  border-bottom: 1px solid #ccc;
  width: 100%;
  z-index: 9999;
}
header h1 a{
  font-weight: 700;
  font-size: 24px;

}
header h1 a img {
  width: 175px;
}
.top_section {
  /* margin-top: 74px; */
  width: 100%;
  height: calc(100dvh - 74px);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top_section .inner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 460px) 1fr;
  gap: 28px;
  align-items: stretch;
}

/* 왼쪽 카드 */
.top_section .left_box {
  position: relative;
  padding: 32px 30px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 32px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.left_head {
  width: 100%;
  margin-bottom: 26px;
}

.left_box h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.6px;
  margin: 0;
}

/* 점수 원형 */
.score_circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(
    from 210deg,
    rgba(1, 78, 155, 0.95) 0deg,
    rgba(70, 155, 235, 0.9) 110deg,
    rgba(160, 210, 255, 0.95) 220deg,
    rgba(226, 232, 240, 0.9) 220deg,
    rgba(237, 237, 237, 0.9) 360deg
  );
  margin-bottom: 30px;
}
.score_circle_inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f7feff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 8px 20px rgba(15, 23, 42, 0.04);
  text-align: center;
  padding: 20px;
}

.score_circle p {
  font-size: 18px;
  color: var(--accent-2);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.5;
}

.score_circle h4 {
  font-size: 34px;
  color: var(--text-main);
  line-height: 1.35;
  letter-spacing: -0.8px;
  margin: 0;
  font-weight: 800;
}

.score_circle .point {
  color: var(--accent-2);
  font-weight: 800;
}

/* 요약 정보 */
.info_summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.info_item {
  background: linear-gradient(180deg, #ffffff 0%, #f7feff 100%);
  border: 1px solid #e8eef6;
  border-radius: 22px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.info_label {
  font-size: 16px;
  color: var(--text-sub);
  margin: 0 0 10px;
  font-weight: 600;
}

.info_value {
  font-size: 30px;
  font-weight: 800;
  color: #ef4444;
  margin: 0;
  letter-spacing: -0.8px;
}

.info_value span {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
}

/* 버튼 */
.btn_check {
  width: 100%;
  height: 62px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* 오른쪽 영역 */
.right_box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgb(245 251 255 / 96%) 100%);
  border: 1px solid #ccc;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.right_box::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(4, 111, 217, 0.45); /* 메인 블루 */
}

.right_box::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(4, 111, 217, 0.12); /* 연한 블루 */
}

.right_box_inner {
  position: relative;
  z-index: 1;
  padding: 60px 56px;
}

.right_box h2 {
  font-size: 56px;
  line-height: 1.16;
  color: var(--text-main);
  letter-spacing: -1.6px;
  margin: 0 0 24px;
  font-weight: 800;
}

.right_box h2 span {
  background: linear-gradient(
    -135deg,
    #4da3ff 0%,
    #046FD9 55%,
    #024ea2 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.right_box .desc {
  font-size: 22px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}


.form_section {
  height: calc(100dvh - 0px);
  padding: 80px 0 ;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

.form_section .inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

.form_section .head {
  padding: 25px 30px;
  border-bottom: 1px solid var(--line);
}

.form_section .head h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: -0.4px;
  line-height: 1.35;
}

.desc {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.6;
}

.form_section .body {
  padding: 32px 30px;
}

.form_section .panel {
  padding: 0;
}

.form_section .panel.hidden {
  display: none !important;
}
.form_section .reset-panel {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.form_section .panel h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 20px;
  padding-left: 12px;
  position: relative;
  line-height: 1.4;
}

.form_section .panel h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.form_section .panel label {
  display: block;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.form_section .panel input,
.form_section .panel select {
  width: 100%;
  height: 56px;
  border: 1px solid var(--secondary-line);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 17px;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;

}

.form_section .panel input::placeholder {
  color: #a3b2a7;
}

.form_section .panel input:focus,
.form_section .panel select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17, 109, 101, 0.12);
  background: #fff;
}
.form_section .panel select.select_box {
  position: relative;
  width: 100%;
  position: relative;
  background: #fff url(../../img/arrow_down.svg) no-repeat right 15px center / 15px 15px;
  padding-right: 40px;
}
.form_section .panel select.select_box::-ms-expand {
  display: none;
}

.form_section .phone-panel .field, .form_section .codeNumber-panel .field {
  margin-bottom: 20px;
}
.form_section .phone-panel .field .phone_wrap {
  display:flex; 
  align-items: center;
  gap:8px;
}
#prepare_form {
  display: none;
}
#prepare_form .checkbox-line {
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

#prepare_form .checkbox-line input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
}

#prepare_form .checkbox-line label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.form_section .row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 20px 0;
  position: relative;
}
.form_section .row::before {
  content: "-";
  display: block;
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.form_section .row .field {
  flex: 1;
}

.button-row {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.button-row form,
.button-row button {
  margin: 0;
}

.form_section .next_btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form_section .next_btn {
  background: var(--accent);
  color: #fff;
}

.form_section .next_btn:hover {
  background: var(--accent-2);
}

.form_section .secondary {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--accent);
}

.form_section .secondary:hover {
  background: var(--ok-bg);
  border-color:var(--accent);
}

.form_section button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.timer {
  margin-bottom: 5px;
  font-size: 14px;
  color: #c24141;
  font-weight: 700;
}

.timer.expired {
  color: #c24141;
}

.msg,
.err {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.msg {
  background: #edf8f1;
  border: 1px solid #cde8d4;
  color: #166534;
}

.err {
  background: #fff4f4;
  border: 1px solid #f1c9c9;
  color: #b42318;
}

pre {
  margin: 12px 0 0;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-box {
  min-width: 240px;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  padding: 22px 24px;
  text-align: center;
  color: #1f2937;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.loading-overlay.hidden {
  display: none;
}


/* 모달 레이어 배경 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
}

.modal-overlay.hidden {
  display: none;
}

/* 모달 본체 */
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 460px;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  animation: modalAppear 0.3s ease-out;
  display: block; /* 기본적으로 보임 */
}

.modal-result-content {
  display: none !important; 
}

.modal-result-content.on {
  display: block !important;
}
@keyframes modalAppear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 아이콘 영역 */
.modal-icon {
  margin-bottom: 20px;
}
.modal-icon img {
  width: 80px;
  height: auto;
}

/* 타이틀 및 텍스트 */
.modal-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #333;
}
.modal-title img {
  width: 60px;
  margin: 0 auto;
}
.modal-title span {
  color: var(--accent); 
}

.modal-desc {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* 버튼 영역 */
.modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-btns button {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.modal-btns .btn-confirm {
  background-color: var(--accent);
  color: #fff;
}

.modal-btns .btn-cancel {
  background-color: #e5e5e5;
  color: #333;
}


@media (max-width: 700px) {
  .form_section {
    padding: 24px 0 40px;
  }

  .form_section .inner {
    border-radius: 16px;
  }

  .form_section .head {
    padding: 22px 20px 18px;
  }

  .form_section .head h3 {
    font-size: 22px;
  }

  .form_section .body {
    padding: 22px 20px 26px;
  }

  .form_section .panel {
    margin-top: 24px;
  }

  .form_section .panel h2 {
    font-size: 19px;
    margin-bottom: 16px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .button-row {
    flex-direction: column;
  }

  .form_section input,
  .form_section select,
  .form_section button {
    font-size: 16px;
  }
}

