/* MOA BOHUM - 메인 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --primary-dark: #0d1757;
  --accent: #c8a96e;
  --accent-light: #e8d4a4;
  --bg: #f8f9fc;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(26,35,126,0.08);
  --shadow-lg: 0 12px 48px rgba(26,35,126,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── 헤더 ─────────────────────────────── */
.moa-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,35,126,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,169,110,0.3);
}
.moa-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.moa-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}
.logo-moa    { color: var(--accent); }
.logo-bohum  { color: var(--white); }
.moa-company-info { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 300; }

/* ── 히어로 ───────────────────────────── */
.moa-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1757 0%, #1a237e 40%, #283593 70%, #1a237e 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(200,169,110,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(57,73,171,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}
.hero-sub {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 300;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 8vw, 72px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
}
.scroll-arrow {
  font-size: 20px;
  animation: bounceDown 2s ease-in-out infinite;
  margin-top: 4px;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── 폼 섹션 ──────────────────────────── */
.moa-form-section {
  padding: 80px 24px;
  background: var(--bg);
}
.form-container {
  max-width: 720px;
  margin: 0 auto;
}
.form-header {
  text-align: center;
  margin-bottom: 48px;
}
.form-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.form-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.form-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

/* 알림 */
.alert-success, .alert-error {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.6;
}
.alert-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
}
.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}
.alert-icon {
  font-size: 18px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.alert-success .alert-icon { background: #16a34a; color: #fff; }
.alert-error   .alert-icon { background: #dc2626; color: #fff; }

/* 폼 섹션 그룹 */
.form-group-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent-light);
}
.label-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.multi-hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

/* 폼 행 */
.form-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.form-row:last-child { margin-bottom: 0; }
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding-top: 12px;
}
.required { color: var(--error); }
.form-input-wrap { width: 100%; }
.form-input, .form-select {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}
.form-input::placeholder { color: #b0b8c8; }

/* 성별 */
.gender-wrap {
  display: flex;
  gap: 12px;
}
.gender-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
  font-weight: 500;
  background: var(--white);
}
.gender-btn input { display: none; }
.gender-btn:hover { border-color: var(--primary-light); }
.gender-btn.selected, .gender-btn:has(input:checked) {
  border-color: var(--primary);
  background: rgba(26,35,126,0.05);
  color: var(--primary);
  font-weight: 700;
}
.gender-icon { font-size: 18px; }

/* 생년월일 */
.birth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.birth-wrap .form-select {
  padding: 11px 10px;
}

/* 전화번호 */
.phone-wrap .form-input {
  letter-spacing: 1px;
}

/* 서비스 그리드 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.service-card {
  position: relative;
  cursor: pointer;
  display: block;
}
.service-card input { display: none; }
.service-card-inner {
  padding: 20px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.25s;
  background: var(--white);
}
.service-card:hover .service-card-inner {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,35,126,0.1);
}
.service-card:has(input:checked) .service-card-inner {
  border-color: var(--primary);
  background: rgba(26,35,126,0.04);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.12), 0 8px 24px rgba(26,35,126,0.12);
}
.service-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.service-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.service-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* 약관 */
.terms-wrap {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.terms-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(26,35,126,0.03);
}
.terms-divider {
  height: 1px;
  background: var(--border);
}
.terms-item {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.terms-item:first-of-type { border-top: none; }

.check-all-label, .check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.check-all-label input[type="checkbox"],
.check-label input[type="checkbox"] { display: none; }

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background: var(--white);
}
.checkmark::after {
  content: '';
  width: 12px;
  height: 7px;
  border-left: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transform: rotate(-45deg) translateY(-2px);
  transition: all 0.15s;
}
input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
input:checked + .checkmark::after {
  border-color: var(--white);
}

.check-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.check-all-label .check-text { font-weight: 700; }

.optional { color: var(--text-muted); font-size: 13px; font-weight: 400; }

.terms-view-btn {
  padding: 6px 16px;
  border: 1.5px solid var(--primary);
  background: transparent;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
}
.terms-view-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* 제출 버튼 */
.form-submit-wrap {
  text-align: center;
  margin-top: 12px;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(26,35,126,0.35);
  letter-spacing: 0.5px;
}
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(26,35,126,0.45);
}
.submit-btn:active { transform: translateY(-1px); }
.btn-arrow {
  font-size: 20px;
  transition: transform 0.3s;
}
.submit-btn:hover .btn-arrow { transform: translateX(4px); }
.submit-notice {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── 연락처 섹션 ──────────────────────── */
.moa-contact-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 24px;
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 4px;
  padding: 4px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.contact-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 40px;
}
.contact-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 24px 32px;
  text-align: left;
}
.contact-icon { font-size: 28px; }
.contact-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
}
a.contact-value:hover { text-decoration: underline; }

/* ── 푸터 ─────────────────────────────── */
.moa-footer {
  background: #0a0e2e;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-company {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.footer-notice {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ── 팝업 ─────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.popup-container {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.popup-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.popup-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
}
.popup-close:hover { background: rgba(0,0,0,0.12); }
.popup-body {
  overflow-y: auto;
  flex: 1;
  padding: 24px 28px;
}
.popup-all-wrap {
  padding: 16px 20px;
  background: rgba(26,35,126,0.04);
  border-radius: 10px;
  margin-bottom: 16px;
}
.popup-check-all {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.popup-check-all input { display: none; }
.pop-checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background: var(--white);
}
.pop-checkmark::after {
  content: '';
  width: 12px;
  height: 7px;
  border-left: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transform: rotate(-45deg) translateY(-2px);
  transition: all 0.15s;
}
input:checked + .pop-checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
input:checked + .pop-checkmark::after {
  border-color: var(--white);
}
.pop-check-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.pop-check-text.bold { font-weight: 700; font-size: 16px; }
.popup-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.popup-terms-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.popup-terms-item:last-child { border-bottom: none; }
.popup-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}
.popup-check-label input { display: none; }
.popup-terms-content {
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  max-height: 180px;
  overflow-y: auto;
  margin-top: 8px;
}
.popup-terms-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 10px;
}
.terms-table th, .terms-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.terms-table th {
  background: rgba(26,35,126,0.05);
  font-weight: 600;
  color: var(--primary);
}
.terms-notice-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.popup-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
}
.popup-confirm-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.popup-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,35,126,0.35);
}

/* ── 반응형 ───────────────────────────── */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .form-label { padding-top: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .birth-wrap { grid-template-columns: 1fr 1fr 1fr; }
  .contact-items { flex-direction: column; align-items: center; }
  .contact-item { width: 100%; max-width: 320px; }
  .form-group-section { padding: 24px 20px; }
  .submit-btn { padding: 16px 40px; font-size: 15px; }
  .moa-company-info { display: none; }
}
@media (max-width: 400px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gender-wrap { flex-direction: row; }
}
