/* ============================================================
   보험 상담 랜딩 페이지 - 공통 베이스 스타일
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ── Form Elements ── */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  background: #fff;
  color: #1e293b;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: #a0aec0; }
.form-select {
  cursor: pointer;
  background-color: #fff;
}
.form-textarea {
  resize: none;
  min-height: 120px;
  line-height: 1.6;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}
.form-group { margin-bottom: 20px; }

/* ── Submit Button ── */
.submit-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Checkbox ── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent, #3b82f6);
  flex-shrink: 0;
}
.checkbox-group label { cursor: pointer; }
.view-privacy {
  color: #9ca3af;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  margin-left: 3px;
  transition: color 0.2s;
}
.view-privacy:hover { color: #6b7280; }

/* ── Privacy Modal ── */
.privacy-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.privacy-modal-overlay.active { display: flex; }
.privacy-modal-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  max-width: 480px;
  width: 100%;
  color: #333;
  animation: modalSlideIn 0.3s ease;
}
.privacy-body {
  max-height: 55vh;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #555;
  padding: 15px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin: 15px 0;
  background: #fafafa;
}
.privacy-body h4 {
  color: #1e293b;
  margin: 15px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--accent, #3b82f6);
  font-size: 0.9rem;
}
.privacy-body h4:first-child { margin-top: 0; }
.privacy-body p { margin-bottom: 8px; }
.privacy-body ul { padding-left: 0; margin-bottom: 12px; }
.privacy-body li { padding: 3px 0; }
.close-modal-btn {
  padding: 14px;
  background: var(--accent, #3b82f6);
  color: white;
  border: none;
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s;
}
.close-modal-btn:hover { filter: brightness(1.1); }

/* ── Success Modal ── */
.success-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.success-modal-content {
  background: white;
  padding: 45px 35px;
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.4s ease;
}
.success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34,197,94,0.35);
}
.success-modal-content h3 {
  color: #1e293b;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.success-modal-content p {
  color: #6b7280;
  margin-bottom: 28px;
  line-height: 1.7;
}
.success-close-btn {
  padding: 14px 48px;
  background: var(--accent, #3b82f6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.success-close-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .submit-btn { padding: 16px; font-size: 1.05rem; }
  .form-input, .form-select, .form-textarea { padding: 13px 15px; font-size: 14px; }
  .privacy-modal-content { padding: 24px 20px; border-radius: 16px; }
  .success-modal-content { padding: 35px 25px; }
}
