:root {
  --bg: #ffffff;
  --max: 1080px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  background: var(--bg);
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onepage {
  margin: 0;
  width: 100%;
  max-width: var(--max);
  position: relative;
}

.onepage__img {
  width: 100%;
  height: auto;
  display: block;
}

/* 실제 클릭 영역: 좌표대로 배치하는 역할 */
.click-target {
  position: absolute;    
  z-index: 999;          
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; 
}

/* 안쪽 버튼 영역: 투명도 유지 */
.glass-button {
  width: 100%;
  height: 100%;
  background: transparent; 
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;  
}

/* -------------------------------------------------- */
/* ✅ 신청 팝업(모달) 전체 레이아웃 (스크롤 지원, 아이폰 대응) */
/* -------------------------------------------------- */

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); 
  z-index: 1000;
  display: none; 
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 100%; 
  max-width: 360px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

  /* ✅ 아이폰 잘림 해결: 모달 내 스크롤 활성화 (원본 유지) */
  max-height: 85vh;        
  overflow-y: auto;       
  -webkit-overflow-scrolling: touch; 
  /* ✅ 우측 상단 X 버튼 배치를 위한 상대적 위치 설정 (필수 추가) */
  position: relative;
}

  /* -------------------------------------------------- */
/* ✅ 우측 상단 X 버튼 스타일 (새로 추가) */
  /* -------------------------------------------------- */
.modal-close-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #888;
  cursor: pointer;
  padding: 10px; /* 터치 영역 확보 */
  line-height: 1;
  /* 버튼이 내용물에 가려지지 않도록 높은 z-index 설정 */
  z-index: 1100;
}

.modal-close-icon:hover {
  color: #000;
}

.modal-box h3 { margin: 0 0 10px 0; font-size: 20px; color: #333; }
.modal-box p { font-size: 13px; color: #666; margin-bottom: 20px; }

.modal-box input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

.modal-box button#submitBtn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
}

.modal-box button#closeBtn {
  margin-top: 15px;
  margin-bottom: 10px; 
  background: none;
  border: none;
  color: #aaa;
  text-decoration: underline;
  cursor: pointer;
}

/* -------------------------------------------------- */
/* ✅ 새로 추가된 개인정보 동의 영역 스타일 (원본 유지) */
/* -------------------------------------------------- */

.privacy-policy-container {
  width: 100%;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f9f9f9;
  padding: 10px;
}

.privacy-policy-text {
  width: 100%;
  height: 80px; 
  overflow-y: auto; 
  font-size: 11px; 
  color: #888;
  text-align: left; 
  line-height: 1.6;
  white-space: pre-line; 
  word-break: keep-all;
}

.agree-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 16px 0;
  font-size: 13px;
  color: #555;
}

.agree-wrapper input[type="checkbox"] {
  width: auto; 
  margin: 0 8px 0 0; 
  cursor: pointer;
}

.agree-wrapper label {
  cursor: pointer;
  margin: 0;
}

/* -------------------------------------------------- */
/* ✅ 결과 안내 모달 전용 스타일 (원본 유지) */
/* -------------------------------------------------- */

#resultModal .modal-box {
  max-width: 420px; 
  border: 3px solid #000; 
}

#resultText {
  font-size: 22px;      
  font-weight: 800;     
  line-height: 1.6;     
  color: #000;
  padding: 20px 0;
  white-space: pre-line; 
  word-break: keep-all;  
  text-align: center;
}

#resultCloseBtn {
  width: 100%; padding: 16px; background: #000; color: #fff;
  border: none; border-radius: 12px; font-weight: 900; font-size: 18px; cursor: pointer;
}

/* 디버그용 */
body.debug .click-target { outline: 2px dashed red; }