/* Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Base */
html {
  overflow-x: hidden;
  background-color: #040b25;
  scroll-behavior: smooth;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
}

.container {
  width: 820px;
  margin: 0 auto;
  position: relative;
}

img {
  width: 100%;
  display: block;
}
#invest1 .form_section .inputForm-wrapper .inputForm-flex-wrap > div {
  width: 100%;
}
#invest1 .form_section .inputForm-wrapper .inputForm-flex-wrap {
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
}

#invest1 .form_section .inputForm-wrapper .inputForm-flex-wrap input[type='text'] {
  width: 100%;
}

#invest1 .graphLineWrap {
  position: static;
  margin: -20px auto 50px;
  transform: translate(0px, 0px);
}

#invest1 .form_section #form {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  margin: 0px auto 10px;
  color: #000;
}

#invest1 .linkBtn {
  width: 90%;
  background: #040b25;
  display: block;
  margin: 0px auto 40px;
  position: static;
  transform: none;
  border-radius: 0;
  overflow: visible;
}

.linkBtn {
  position: absolute;
  width: 90%;
  left: 50%;
  bottom: 0%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  overflow: hidden;
}

.graphLineWrap {
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0);
  border-radius: 50px;
  height: 60px;
  width: 90%;
  position: absolute;
  left: 50%;
  bottom: 14.5%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.line {
  width: 0%; /* 초기값 0% */
  height: 100%;
  background: #68e8ff;
  background: linear-gradient(90deg, rgba(104, 232, 255, 1) 0%, rgba(73, 116, 234, 1) 100%);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  box-sizing: border-box;
  border-radius: 50px;
  transition: width 2s ease;
}

.countNum {
  font-weight: bold;
  color: #fff;
  font-size: 25px;
  font-family: 'Gmarket Sans';
  padding: 5px 10px 0 0;
}

footer {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 20px;
  font-size: 15px;
  background: #001855;
}

.form_section {
  background-color: #001568;
  color: #fff;
  font-weight: bold;
  padding: 30px;
}
.form_section .inputForm-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form_section .inputForm-wrapper > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.form_section label {
  word-break: keep-all;
}
.form_section input[type='text'] {
  height: 50px;
  border-radius: 10px;
  width: 100%;
  border: none;
  padding: 10px;
}

/* Modal 스타일링 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s ease-out;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #000;
  font-size: 20px;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}

.close:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.modal-content-inner {
  padding: 10px 20px;
}

.modal-content h3 {
  margin: 0;
  padding: 15px 30px;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

#invest1 .modal-content p {
  padding: 0 20px;
}

.modal-content p {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  word-break: keep-all;
  overflow-y: auto;
  max-height: 60vh;
}

/* Modal 애니메이션 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .form_section input[type='text'] {
    height: 40px;
  }
  .form_section .inputForm-wrapper {
    font-size: 14px;
  }
  .form_section {
    padding: 15px;
  }

  .container {
    width: 100%;
  }

  .graphLineWrap {
    height: 35px;
    bottom: 13.2%;
    width: 85%;
  }

  .graphLineWrap .line .countNum {
    font-size: 20px;
  }

  #invest1 .form_section #form {
    padding: 15px 15px 20px;
  }
  #invest1 .form_section input[type='text'] {
    height: 50px;
  }
}

/* 상담 신청 폼 (index.html 의 .verify-form) — 글꼴·크기·여백 정리. fact.html 등 같은 #invest1 페이지에는 적용 안 됨 */
/* --cv-* 변수는 landing_verify.js 인증 UI(버튼·인증번호 칸)도 같이 씀 */
#invest1 .verify-form {
  --cv-h: 52px;
  --cv-radius: 10px;
  --cv-border: 1px solid #d5d8e0;
}
#invest1 .verify-form #form {
  padding: 28px;
}
/* 줄 간격 — 인증번호 줄과 확인 버튼 사이(8px)와 같게 */
#invest1 .verify-form .inputForm-flex-wrap {
  gap: 8px;
}
#invest1 .verify-form .input-row {
  display: flex;
  align-items: center;
}
#invest1 .verify-form .input-row > label {
  flex: none;
  min-width: 64px;
  margin: 0 12px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
/* 글자색은 지정하지 않음 — 인증 후 잠금(.cv-locked)의 회색 글자가 적용되도록 */
#invest1 .verify-form .input-row > input[type='text'] {
  flex: 1;
  min-width: 0;
  height: var(--cv-h);
  padding: 0 16px;
  border: var(--cv-border);
  border-radius: var(--cv-radius);
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
#invest1 .verify-form .input-row > input[type='text']::placeholder {
  color: #9aa0ad;
}
#invest1 .verify-form .input-row > input[type='text']:focus {
  border-color: #2c2bb8;
  box-shadow: 0 0 0 3px rgba(44, 43, 184, 0.15);
}
/* 연락처 앞 010 배지 — 오른쪽 입력칸과 붙여 한 칸처럼 */
#invest1 .verify-form .hp-prefix {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: var(--cv-h);
  padding: 0 16px;
  border-radius: var(--cv-radius) 0 0 var(--cv-radius);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: #2c2bb8;
}
#invest1 .verify-form .input-row > .hp-prefix + input[type='text'] {
  border-left: none;
  border-radius: 0 var(--cv-radius) var(--cv-radius) 0;
}
/* 인증번호 칸 — 모바일의 #invest1 .form_section input[type='text'] 높이(50px)보다 우선해 다른 칸과 같은 높이 */
#invest1 .verify-form .cv-box input.cv-code {
  height: var(--cv-h);
}
#invest1 .verify-form .privacy_box label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
#invest1 .verify-form .privacy_box input[type='checkbox'] {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: #2c2bb8;
}
#invest1 .verify-form .privacy_box .agreeText {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
#invest1 .verify-form .privacy_box .agreeText.cursor {
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  #invest1 .verify-form {
    --cv-h: 48px;
  }
  #invest1 .verify-form #form {
    padding: 20px;
  }
  #invest1 .verify-form .input-row > label {
    min-width: 56px;
    font-size: 14px;
  }
}

/* 인증 UI(landing_verify.js) 높이를 이 파일의 기본 입력칸(.form_section input[type='text'])과 같게 — 50px, 모바일 40px */
/* index 는 #invest1 .verify-form 에서 52·48px 로 따로 지정(우선순위가 더 높음) */
.form_section {
  --cv-h: 50px;
}
@media screen and (max-width: 768px) {
  .form_section {
    --cv-h: 40px;
  }
}

/* invest2·invest4 동의 문구 가운데 정렬 — 같은 antshouse.css 를 쓰는 다른 페이지에 영향 없게 클래스로 한정 */
.form_section .privacy_box.privacy_center {
  justify-content: center;
}
