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

html, body {
    font-family: 'Pretendard', sans-serif;
    background: #f4f4f4;
    color: #222;
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    height: 100vh;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 20px;
    padding-bottom: 0;
}

.header::after {
    content: '';
    display: block;
    height: 2px;
    background: #00AEEF;
    margin: 30px auto 0;
    width: 80%;
   
    border-radius: 2px;
}

.logo {
    width: 180px;
}

/* Title */
.title-section {
    text-align: center;
    padding: 32px 20px;
}

.light {
    color: #00AEEF;
    font-size: 36px;
    font-weight: 700;
}

.bold {
    font-size: 36px;
    color: #004B9C;
    font-weight: 800;
}

/* Visual */
.visual-wrap {
    overflow: hidden;
}

.visual-img {
    width: 100%;
}

/* Consent */
.consent-section {
    background: #fff;
    text-align: center;
    padding: 32px 20px 140px; /* ✅ 하단 고정 버튼 여백 */
}

.consent-section p {
    color: #333;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
}

.detail {
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

/* Button */
.agree-btn {
    font-family: 'Pretendard';

    position: fixed; /* ✅ 고정 */
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 520px;

    padding: 20px;
    border-radius: 14px;
    background: #004B9C;
    border: none;
    cursor: pointer;
    z-index: 1000;

    color: #FFF;
    text-align: center;
    font-size: 24px;
    font-weight: 700;

    transition: all 0.3s;


      display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* 밑줄 제거 */


}
.pb{
    padding-bottom: 20px;
}
.ptext{
  color: #333;
text-align: center;

font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 28px; /* 158.333% */
}

.agree-btn:hover {
    transform: translateX(-50%) translateY(-3px); /* ✅ 위치 유지 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal.active {
    display: flex;
}

/* 실제 모달 카드 */
.modal-inner {
    width: 100%;
    max-width: 560px;
    max-height: 95vh;
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 헤더 */
.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 본문 스크롤 */
.modal-body {
    padding: 25px 20px;
    overflow-y: auto;
    flex: 1;
}

.policy-box {
    margin-bottom: 30px;
}

.policy-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #0d4d92;
}

.policy-box ul,
.policy-box ol {
    padding-left: 18px;
    font-size: 16px;
    line-height: 1.7;
}

.warning {
    margin-top: 10px;
    font-size: 14px;
    color: #c0392b;
}

/* 푸터 */
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
}
.footer{
      color: #333;
    text-align: center;

    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.modal-btn {
    width: 100%;
    height: 56px;
    background: #004B9C;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 20px;
}

.policy-content {
    font-size: 15px;
    line-height: 1.8;
}

.policy-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #0d4d92;
}

.policy-content h4 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.policy-content p {
    margin-bottom: 10px;
}

.highlight {
    margin-top: 15px;
    font-weight: 600;
    color: #c0392b;
}

/* 닫기 버튼 */
.modal-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close img {
    width: 24px;
    height: 24px;
}

.modal-close:focus,
.modal-close:active {
    outline: none;
    box-shadow: none;
}


.black{
  color: #333;
}

/* Q1 페이지 버튼 그룹 */
.page-q1 .agree-btn-group {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 520px;

    display: flex;
    gap: 20px;
    z-index: 1000;
}

/* 공통 버튼 스타일 덮어쓰기 */
.page-q1 .agree-btn {
    position: static;       /* fixed 완전 해제 */
    left: auto;
    bottom: auto;
    transform: none;

    width: 100%;            /* ❗ 85% 무효화 */
    margin-top: 0;          /* ❗ 겹침 원인 제거 */
    flex: 1;                /* 50%씩 */
}

/* hover 보정 */
.page-q1 .agree-btn:hover {
    transform: translateY(-3px);
}
@media (max-width: 490px) {

  .light {

    font-size: 26px;
  }

  .bold {
    font-size: 26px;
  }

  .consent-section p {

    font-size: 22px;

  }

  .header::after {

    width: 100%;

  }

  .ptext {


    font-size: 16px;

  }

  .footer {
    font-size: 14px;
  }
}
/* 폼 영역 */
.consult-section {
    padding: 32px 20px;
    background: #fff;
}

/* 인풋 감싸는 박스 */
.input-wrap {
  font-family: 'Pretendard';
  position: relative;
  margin-bottom: 20px;
}

/* 인풋 */
.input-wrap input {
  width: 100%;
  height: 72px;
  padding: 0 24px;


  font-size: 22px;
  font-weight: 700;
  line-height: 72px;   /* ⭐⭐⭐ 핵심 */

  color: #333;
  background: #fff;

  border: 1.5px solid #ccc;
  border-radius: 14px;

  outline: none;
  box-sizing: border-box;
}

/* 포커스 시 */
.input-wrap input:focus {
  border-color: #00AEEF;
}

/* 가짜 placeholder */
.fake-placeholder {
  position: absolute;
  left: 24px;
  top:36px;
  transform: translateY(-50%);

  font-size: 22px;
  font-weight: 700;
  color: #333;

  pointer-events: none;
  transition: 0.2s ease;
}

/* 별표 */
.fake-placeholder em {
  color: #00AEEF;
  font-style: normal;
}

/* 값 입력되면 placeholder 숨김 */
.input-wrap input:focus + .fake-placeholder,
.input-wrap input:not(:placeholder-shown) + .fake-placeholder {
  display: none;
}
.input-wrap input {
  line-height: normal;   /* baseline 고정 */
}
/* 에러 상태 */
.input-wrap.error input {
  border-color: #e53935; /* ⭐ 색상만 변경 */
}

/* 에러 메시지 */
.error-msg {
  display: none;
  color: #e53935;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}

.input-wrap.error .error-msg {
  display: block;
}
