@charset "UTF-8";

/* =========================================================
   ASM 도입 문의 페이지 (asm-apply.php)
   참고 원본: domain.whois.co.kr/edns/tpl/apply_form.htm (Super DNS 신청)
   - 원본의 이미지 테두리 표(b_tl.gif 등)·이미지 버튼(btn_prev/next.gif)은
     CSS로 대체해 이미지 파일 없이 동작하도록 정리
   - 클래스는 BEM 규칙, 괄호 안은 원본 클래스
   ========================================================= */

/* 페이지 제목 서체 (domain.whois.co.kr /img/fonts/Chosun_ilbo_myungjottf.woff2 복사) */
@font-face {
  font-family: 'Chosunilbo_myungjo';
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Chosunilbo_myungjo.woff2') format('woff2');
}

.apply {
  --c-apply-blue: #2a63bf;        /* 진행 단계 강조, 접수 버튼 */
  --c-apply-blue-soft: #839eca;   /* 지난 단계 */
  --c-apply-gray: #bebebe;        /* 남은 단계 */
  --c-apply-label: #1e5ba6;       /* 표 항목명 */
  --c-apply-line: #bccfec;        /* 표 구분선 */
  --c-apply-frame: #85a6de;       /* 둥근 테두리 */
  --c-apply-input-bg: #edf1fb;
  --c-apply-input-text: #102e56;
  --c-apply-placeholder: #7b90c3;
  --c-apply-required: #e8422f;
  padding-top: 20px;
}

/* ---------- 페이지 제목 (#page_title) ---------- */
.apply-title {
  position: relative;
  height: 55px;
  margin-bottom: 30px;
  background: linear-gradient(to right, #b5b5b5 1px, transparent 1px) left bottom / 3px 1px repeat-x;
}

.apply-title__name {
  position: absolute;
  top: 8px;
  left: 0;
  color: #000;
  font-family: 'Chosunilbo_myungjo', 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}

.apply-title__location {
  position: absolute;
  top: 5px;
  right: 10px;
  color: #595959;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.apply-title__location ol {
  display: flex;
  gap: 6px;
}

.apply-title__location li + li::before {
  content: ">";
  margin-right: 6px;
  color: #a0a0a0;
}

.apply-title__location a {
  color: inherit;
}

.apply-title__location a:hover {
  color: var(--c-link);
  text-decoration: underline;
}

.apply-title__location [aria-current="page"] {
  color: #333;
  font-weight: 700;
}

/* ---------- 진행 단계 (.process_bar) ---------- */
.apply-process {
  display: flex;
  padding: 20px 0 10px 15px;
}

.apply-process__step {
  position: relative;
  box-sizing: border-box;
  padding: 0 20px 5px 18px;
  border-bottom: 4px solid var(--c-apply-gray);
  color: #7d7d7d;
  font-size: 16px;
  font-weight: 700;
}

.apply-process__step::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  width: 1px;
  height: 18px;
  background: var(--c-apply-gray);
}

.apply-process__step:first-child::before,
.apply-process__step--done::before,
.apply-process__step--current::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 1px;
  height: 18px;
  background: var(--c-apply-blue);
}

.apply-process__step--done {
  border-bottom-color: var(--c-apply-blue);
  color: var(--c-apply-blue-soft);
}

.apply-process__step--current {
  border-bottom-color: var(--c-apply-blue);
  color: var(--c-apply-blue);
}

.apply-process__step--current::after {
  content: "▶";
  right: 3px;
  bottom: -11px;
  z-index: 1;
  width: 0;
  height: auto;
  background: none;
  color: var(--c-apply-blue);
  font-size: 12px;
  line-height: 18px;
}

/* ---------- 안내 문구 ---------- */
.apply-guide {
  position: relative;
  margin: 35px 0 30px;
  padding-left: 22px;
  color: #444;
  font-size: 16px;
}

.apply-guide::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 4px;
  height: 4px;
  background: #999;
}

/* ---------- 입력 묶음 (.sTitle + .tbl_border) ---------- */
.apply-box + .apply-box {
  margin-top: 40px;
}

/* 소제목 띠: 테두리 위에 틈 없이 붙이고 왼쪽에서 20px 안쪽 (원본 .sTitle.ml20) */
.apply-box__label {
  display: flex;
  align-items: stretch;
  width: fit-content;
  min-width: 250px;
  margin: 0 0 0 20px;
  background: #4570a3;
}

.apply-box__label::before {
  content: "";
  width: 6px;
  background: #6992c6;
}

.apply-box__label span {
  padding: 7px 5px 7px 15px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -1px;
}

.apply-box__frame {
  border: 3px solid var(--c-apply-frame);
  border-radius: 10px;
}

.apply-table {
  width: calc(100% - 20px);
  margin: 7px 10px;
  border-collapse: collapse;
  table-layout: fixed;
}

.apply-table__head-col {
  width: 210px;
}

.apply-table tr + tr > * {
  border-top: 1px solid var(--c-apply-line);
}

.apply-table th {
  width: 210px;
  box-sizing: border-box;
  padding: 14px 15px;
  border-right: 1px solid var(--c-apply-line);
  color: var(--c-apply-label);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
}

.apply-table td {
  padding: 12px 15px;
  vertical-align: middle;
}

.apply-req {
  margin-left: 4px;
  color: var(--c-apply-required);
  font-style: normal;
}

/* 입력창 (.f_reg4) */
.apply-input {
  box-sizing: border-box;
  width: 400px;
  height: 40px;
  padding: 7px 10px 6px;
  border: 1px solid;
  border-color: #808080 #bac7e3 #bac7e3 #808080;
  background: var(--c-apply-input-bg);
  color: var(--c-apply-input-text);
  font-family: inherit;
  font-size: 16px;
}

.apply-input--wide {
  width: 100%;
}

textarea.apply-input {
  height: 160px;
  resize: vertical;
  line-height: 1.5;
}

.apply-input::placeholder {
  color: var(--c-apply-placeholder);
}

/* 원본 common.css 'input, textarea, select { outline-style:none; }' 기준: 포커스·오류 시 모양 변화 없음 */
.apply-input:focus,
.apply-check input:focus {
  outline: none;
}

.apply-help {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
}

/* 이메일 도메인 추천 목록 (원본 css/layout_wide.css .mail-autocomplete / .autocomplete-items 그대로) */
.mail-autocomplete { position: relative; display: inline-block; vertical-align: top; }
.autocomplete-items { position: absolute; border: 1px solid #808080; border-bottom: none; border-top: none; z-index: 99; top: 100%; left: 0; right: 0; }
.autocomplete-items div { padding: 8px 10px 8px 10px; font-weight: bold; cursor: pointer; color: #2065d1; background-color: #EDF1FB; border-bottom: 1px solid #BAC7E3; }
.autocomplete-items div:last-child { border-bottom: 1px solid #808080; }
.autocomplete-items div:hover { background-color: #fff; }
.autocomplete-items div strong { color: #102E56; }
.autocomplete-active { background-color: #347adc !important; color: #ffffff !important; }

/* 관심 서비스 체크박스 */
.apply-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.apply-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  cursor: pointer;
}

/* 원본 common.css input[type=checkbox] 기준 */
.apply-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: rgb(0 117 255);
  cursor: pointer;
}

/* 표 안 일반 글자·링크 (개인정보 안내 행) */
.apply-table td {
  color: #444;
  font-size: 16px;
}

.apply-link {
  color: #333;
  text-decoration: underline;
}

/* 개인정보 수집 및 이용 안내 (문의 내용 표 마지막 행) */
.apply-privacy {
  font-size: 15px;
  line-height: 1.8;
}

.apply-privacy__etc {
  margin-top: 14px;
  padding-left: 8px;
}

.apply-privacy__agree {
  margin-top: 12px;
}

/* ---------- 버튼 (원본 btn_prev.gif / btn_next.gif → 기존 .btn_gray_con16 / .btn_yellow_con16) ---------- */
.apply-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 40px;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 150px;
  padding: 16px 35px;
  border: 0;
  border-radius: 50px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

/* 이전 (.btn_gray_con16) */
.apply-btn--prev {
  background: #ececec;
  color: #222;
}

.apply-btn--prev:hover {
  background: #4b4b4b;
  color: #fff;
}

/* 문의하기 (.btn_yellow_con16 = asm.php .btn--cta), 주 버튼이라 더 넓게 */
.apply-btn--submit {
  min-width: 250px;
  background: var(--c-cta);
  color: var(--c-cta-text);
}

.apply-btn--submit:hover {
  background: var(--c-cta-hover);
  color: #fff;
}

.apply-btn:focus-visible {
  outline: 3px solid #9cc2ff;
  outline-offset: 3px;
}

/* =========================================================
   접수 완료 (asm-apply-result.html)
   참고 원본: edns/tpl/inquiry_result.htm (.inquiry_result)
   - 원본 아이콘 /img/edns/ico_ok_tit.png 는 로컬 소스에 없어 SVG로 새로 제작
   ========================================================= */
.apply-result {
  margin-top: 30px;
  padding: 3px;
  border: 1px solid #5e92c7;
  background: #f5faff;
}

.apply-result__inner {
  padding: 60px 0;
  text-align: center;
}

.apply-result__title {
  margin-bottom: 20px;
  padding-top: 110px;
  background: url('../images/security/ico-complete.svg') center top / 90px no-repeat;
  color: #222;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -1px;
}

.apply-result__title strong {
  color: #2964d7;
}

.apply-result__desc {
  color: #444;
  font-size: 16px;
  line-height: 1.6;
}

.apply-result__desc + .apply-result__desc {
  margin-top: 20px;
}

.apply-result__contact {
  color: #0038b7;
}

.apply-result__link {
  border-bottom: 1px solid #222;
  color: #222;
}

.apply-result__link:hover {
  border-bottom-color: #075bff;
  color: #075bff;
}

.apply-result__btns {
  margin-top: 50px;
}
