/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 관리자 톱니바퀴 버튼 ===== */
#admin-gear-btn {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9000;
  background: rgba(200,200,200,0.25);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(120,120,120,0.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
#admin-gear-btn:hover {
  background: rgba(180,180,180,0.45);
  color: rgba(80,80,80,0.9);
  transform: rotate(30deg);
}

/* ===== 모달 공통 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none !important; }

.modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.modal-close-btn:hover { color: #555; }

/* 관리자 로그인 모달 */
.modal-header { text-align: center; margin-bottom: 24px; }
.modal-icon { font-size: 36px; color: #4a90d9; margin-bottom: 10px; display: block; }
.modal-header h2 { font-size: 20px; font-weight: 700; color: #222; margin-bottom: 4px; }
.modal-header p { font-size: 13px; color: #888; }

#admin-login-form .form-field { margin-bottom: 16px; }
#admin-login-form label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
#admin-login-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dde3ee;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
#admin-login-form input:focus { border-color: #4a90d9; }
.login-error { font-size: 13px; color: #e74c3c; text-align: center; margin-bottom: 12px; }
.login-submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #4a90d9, #2d6abf);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.login-submit-btn:hover { opacity: 0.9; }

/* ===== 메인 레이아웃 ===== */
.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   광고 배너 섹션
   ============================================================ */
.banner-section {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.banner-section.hidden { display: none !important; }

/* 이미지 배너 */
.banner-link { display: block; width: 100%; text-decoration: none; }
.banner-img  { width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════
   기본 HTML 배너 (원본 이미지 디자인 재현)
   ══════════════════════════════════════════ */
.default-banner {
  display: block;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ① 상단 주황 섹션 */
.db-top {
  background: #FF4D25;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}
.db-top-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.db-left { flex: 1; min-width: 0; }

/* 병원 배지 */
.db-badge-loc {
  display: inline-block;
  background: #fff;
  color: #006C5B;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* 헤드라인 */
.db-headline1 {
  font-size: 40px;
  font-weight: 900;
  color: #FDF6C7;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 4px;
}
.db-headline2 {
  font-size: 14px;
  font-weight: 700;
  color: #0E1724;
  line-height: 1.4;
  margin-bottom: 8px;
}
.db-headline2 em {
  font-style: normal;
  font-size: 26px;
  font-weight: 900;
  color: #0E1724;
}
.db-desc {
  font-size: 10.5px;
  color: #fff;
  opacity: 0.92;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* 체크리스트 */
.db-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.db-checklist li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.db-check-icon {
  width: 17px;
  height: 17px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  color: #fff;
}

/* 우측 피부 원형 */
.db-right {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  margin-top: 10px;
}
.db-skin-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ② 가격 띠 */
.db-price-bar {
  background: #fff;
  text-align: center;
  padding: 11px 10px;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #f0f0f0;
}
.db-price-bar strong {
  color: #FF4D25;
  font-size: 22px;
  font-weight: 900;
}

/* ③ 하단 민트 섹션 */
.db-bottom {
  background: #EAF6F4;
  padding: 16px 18px 14px;
}
.db-bottom-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

/* CTA 타이틀 */
.db-cta-title { flex: 1; }
.db-cta-t1 {
  font-size: 22px;
  font-weight: 700;
  color: #006C5B;
  line-height: 1.1;
}
.db-cta-t2 {
  font-size: 28px;
  font-weight: 900;
  color: #006C5B;
  line-height: 1.1;
  margin-bottom: 6px;
}
.db-cta-t3 {
  font-size: 11px;
  color: #555;
  line-height: 1.5;
}

/* 모델 + 말풍선 */
.db-model-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.db-speech-bubble {
  background: #fff;
  border-radius: 12px 12px 12px 2px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 4px;
  white-space: nowrap;
}
.db-model-img {
  display: flex;
  justify-content: center;
}

/* 입력 폼 미리보기 */
.db-form-preview {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 8px;
}
.db-form-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.db-form-field:last-child { border-bottom: none; padding-bottom: 0; }
.db-field-badge {
  background: #00A38E;
  color: #fff;
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.db-field-line {
  flex: 1;
  height: 1px;
  background: #ddd;
}

/* 스크롤 힌트 */
.db-scroll-hint {
  text-align: center;
  font-size: 11.5px;
  color: #006C5B;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ===== 히어로 섹션 ===== */
.hero-section {
  width: 100%;
  background: linear-gradient(145deg, #0f4c81 0%, #1a73b5 55%, #27a58c 100%);
  padding: 36px 24px 32px;
  display: flex;
  justify-content: center;
}
.hero-content {
  max-width: 480px;
  width: 100%;
  text-align: center;
  color: #fff;
}
.hero-badge { display: none; }
.hero-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hero-subtitle { font-size: clamp(14px, 3.5vw, 17px); font-weight: 400; opacity: 0.92; margin-bottom: 6px; }
.hero-subtitle strong { font-weight: 700; }
.hero-desc { font-size: 13px; opacity: 0.78; margin-bottom: 28px; }

/* 신뢰 지표 */
.trust-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.trust-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 90px;
}
.trust-badge i { font-size: 20px; opacity: 0.9; }
.trust-num { font-size: 15px; font-weight: 700; }
.trust-label { font-size: 11px; opacity: 0.82; }

/* ===== 폼 섹션 ===== */
.form-section { width: 100%; max-width: 520px; padding: 28px 16px 40px; }
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.08);
}
.form-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a73b5;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #444; margin-bottom: 8px; }
.required { color: #e74c3c; margin-left: 2px; }
.hint { font-size: 12px; font-weight: 400; color: #999; margin-left: 4px; }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dde3ee;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fafbfc;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1a73b5;
  box-shadow: 0 0 0 3px rgba(26,115,181,0.1);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }

.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: #444; line-height: 1.4; }
.check-label input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 1px; accent-color: #1a73b5; cursor: pointer; }

.privacy-group { background: #f5f8fd; border-radius: 12px; padding: 14px 16px; border: 1px solid #dde3ee; }
.privacy-check-label { font-size: 13.5px; }
.privacy-detail-link {
  background: none; border: none; color: #1a73b5; font-size: 12px; cursor: pointer;
  text-decoration: underline; padding: 0; margin-left: 6px; font-family: inherit;
}
.field-error { font-size: 12px; color: #e74c3c; margin-top: 5px; }

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1a73b5, #0f4c81);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(26,115,181,0.35);
}
.submit-btn:hover { opacity: 0.92; }
.submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* 성공 메시지 */
.success-message { text-align: center; padding: 20px 0; }
.success-icon { font-size: 56px; color: #27a58c; margin-bottom: 16px; }
.success-message h3 { font-size: 20px; font-weight: 700; color: #222; margin-bottom: 8px; }
.success-message p { font-size: 14px; color: #666; margin-bottom: 24px; }
.reset-btn {
  padding: 12px 28px;
  background: #f0f5fb;
  color: #1a73b5;
  border: 1.5px solid #c8daf0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.reset-btn:hover { background: #e0ecf8; }

/* 개인정보 모달 */
.privacy-modal-box { max-width: 440px; max-height: 80vh; overflow-y: auto; }
.privacy-modal-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 18px; padding-right: 24px; }
.privacy-content { font-size: 13.5px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.privacy-content p { margin-bottom: 8px; }
.privacy-agree-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1a73b5, #0f4c81);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.privacy-agree-btn:hover { opacity: 0.9; }

/* ===== 푸터 ===== */
.site-footer {
  text-align: center;
  padding: 20px 16px 24px;
  background: #1a1a2e;
  border-top: 3px solid #2a2a4e;
  color: #aab;
}
.footer-info {
  margin-bottom: 8px;
}
.footer-addr {
  font-size: 13px;
  color: #ccd;
  font-weight: 500;
  margin-bottom: 6px;
}
.footer-biz {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 12px;
  color: #99a;
}
.footer-biz span {
  white-space: nowrap;
}
.footer-copy {
  font-size: 11px;
  color: #667;
  margin-top: 10px;
}

/* ===== 유틸리티 ===== */
.hidden { display: none !important; }

/* ===== 반응형 ===== */
@media (max-width: 480px) {
  .form-card { padding: 24px 18px; border-radius: 16px; }
  .hero-section { padding: 40px 18px 36px; }
  .modal-box { padding: 28px 20px; }
  .trust-badges { gap: 8px; }
  .trust-badge { padding: 10px 12px; min-width: 78px; }
  .db-big { font-size: 30px; }
  .db-circle { width: 70px; height: 70px; }
  .db-circle-inner { font-size: 28px; }
}
