/* ═══ 보험플랜온 공통 CSS ═══ */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Pretendard Variable',-apple-system,BlinkMacSystemFont,sans-serif; line-height:1.75; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
.container { max-width:1080px; margin:0 auto; padding:0 24px; }

/* ── Form Elements ── */
.f-group { display:flex; flex-direction:column; gap:8px; max-width:100%; margin:0 auto 18px; text-align:left; }
.f-group label { font-size:14px; font-weight:600; }
.f-group label span { color:#FF6259; }
.f-group input, .f-group select { width:100%; padding:16px; border:1px solid rgba(255,255,255,0.1); border-radius:12px; font-size:16px; font-family:inherit; outline:none; transition:border-color .3s; -webkit-appearance:none; }
.f-group input::placeholder { opacity:0.65; }
.f-check { display:flex; align-items:flex-start; gap:10px; margin-bottom:24px; text-align:left; }
.f-check input[type="checkbox"] { margin-top:4px; width:18px; height:18px; flex-shrink:0; }
.f-check label { font-size:14px; line-height:1.6; word-break:keep-all; }
.f-check a { text-decoration:underline; cursor:pointer; }
.f-submit { width:100%; padding:20px; font-size:18px; font-weight:700; border:none; border-radius:14px; cursor:pointer; font-family:inherit; transition:all .3s; }
.f-submit:disabled { opacity:0.4; cursor:not-allowed; transform:none; }
.f-note { margin-top:16px; font-size:13px; opacity:0.5; text-align:center; }
/* 인증 UI */
.f-phone-row { display:flex; gap:8px; }
.f-phone-row input { flex:1; }
.f-verify-btn { padding:16px 18px; border:none; border-radius:12px; background:#1B6EF3; color:#fff; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; white-space:nowrap; flex-shrink:0; transition:background .3s; }
.f-verify-btn:hover { background:#1558C5; }
.f-verify-btn:disabled { opacity:0.4; cursor:not-allowed; }
.f-verify-msg { font-size:13px; margin-top:6px; font-weight:600; }
.f-verify-msg.success { color:#00C9A7; }
.f-verify-msg.fail { color:#FF6259; }
.f-verify-timer { font-size:12px; color:#8C9AB5; margin-top:4px; }

/* ── Popup ── */
.popup-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:9999; display:none; align-items:flex-end; justify-content:center; backdrop-filter:blur(4px); }
.popup-overlay.active { display:flex; }
.popup-sheet { border-radius:20px 20px 0 0; width:100%; max-width:640px; max-height:80vh; overflow-y:auto; }
.popup-handle { width:40px; height:4px; border-radius:2px; margin:12px auto 0; }
.popup-header { display:flex; justify-content:space-between; align-items:center; padding:20px 24px 12px; }
.popup-header h3 { font-size:18px; font-weight:700; }
.popup-close { border:none; font-size:18px; width:36px; height:36px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.popup-body { padding:24px; font-size:14px; line-height:1.8; }
.popup-body h4 { font-size:15px; font-weight:700; margin:20px 0 8px; }
.popup-body h4:first-child { margin-top:0; }
.popup-body table { width:100%; border-collapse:collapse; margin:12px 0; font-size:13px; }
.popup-body table th, .popup-body table td { padding:10px 12px; text-align:left; }
.popup-body ul { padding-left:20px; margin:8px 0; }
.popup-footer { padding:16px 24px 28px; }
.popup-confirm-btn { width:100%; padding:16px; font-weight:700; font-size:16px; border:none; border-radius:12px; cursor:pointer; font-family:inherit; }

/* ── Toast ── */
.toast { position:fixed; bottom:80px; left:50%; transform:translateX(-50%) translateY(100px); padding:16px 28px; border-radius:14px; font-weight:700; font-size:15px; z-index:1000; transition:transform .4s; white-space:nowrap; box-shadow:0 8px 32px rgba(0,0,0,0.15); }
.toast.show { transform:translateX(-50%) translateY(0); }

/* ── Floating CTA ── */
.floating-cta { position:fixed; bottom:0; left:0; right:0; padding:12px 20px; padding-bottom:calc(12px + env(safe-area-inset-bottom,0px)); z-index:100; text-align:center; pointer-events:none; opacity:0; transition:opacity .3s; }

/* ── Animations ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.fade-in { opacity:0; transform:translateY(24px); transition:opacity .6s ease,transform .6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ═══ Navigation (공통) ═══ */
nav { position:fixed; top:0; left:0; right:0; z-index:100; padding:0 24px; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); transition:box-shadow .3s; }
nav.scrolled { box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.nav-inner { max-width:1080px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; height:64px; }
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo-mark { width:36px; height:36px; background:linear-gradient(135deg,#1B6EF3,#4A90F7); border-radius:10px; display:flex; align-items:center; justify-content:center; color:white; font-family:'Outfit',sans-serif; font-weight:800; font-size:16px; letter-spacing:-1px; }
.logo-text { font-weight:800; font-size:18px; letter-spacing:-0.5px; text-decoration:none; }
.logo-text em { font-style:normal; font-family:'Outfit',sans-serif; font-weight:600; font-size:11px; letter-spacing:1.5px; display:block; margin-top:-4px; text-transform:uppercase; }
.nav-menu { display:flex; align-items:center; gap:8px; }
.nav-link { padding:8px 16px; font-size:14px; font-weight:600; text-decoration:none; border-radius:8px; transition:all .2s; }
.nav-link.active { font-weight:700; }
.nav-cta { padding:10px 24px; font-size:14px; font-weight:600; border:none; border-radius:10px; cursor:pointer; font-family:inherit; transition:all .3s; text-decoration:none; margin-left:4px; }
.nav-hamburger { display:none; background:none; border:none; font-size:22px; cursor:pointer; padding:8px; }
@media(max-width:640px) {
  .nav-inner { height:56px; }
  .logo-text { font-size:16px; } .logo-text em { font-size:10px; }
  .nav-menu { position:fixed; top:56px; left:0; right:0; background:inherit; flex-direction:column; padding:16px 24px; gap:8px; display:none; border-bottom:1px solid rgba(0,0,0,0.06); backdrop-filter:blur(20px); }
  .nav-menu.open { display:flex; }
  .nav-link { width:100%; text-align:center; padding:12px; }
  .nav-cta { width:100%; text-align:center; }
  .nav-hamburger { display:block; }
}

/* ═══ Disclaimer (공통) ═══ */
.disclaimer { padding:36px 0; background:#0E1B30; }
.disclaimer .container { max-width:1080px; }
.disc-white { font-size:12px; line-height:2; word-break:keep-all; color:#fff; }
.disc-red { font-size:12px; line-height:2; word-break:keep-all; color:#FF4757; font-weight:600; }
.disc-company { margin-top:8px; opacity:0.7; }

/* ═══ Footer (공통 - 메인 기준) ═══ */
footer { background:#0E1B30; color:rgba(255,255,255,0.4); padding:48px 0 40px; }
.footer-top { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:32px; padding-bottom:32px; border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:24px; }
.footer-brand .logo-text { color:white; text-decoration:none; display:block; font-weight:800; font-size:18px; }
.footer-brand .logo-text em { color:#00C9A7; font-style:normal; font-family:'Outfit',sans-serif; font-weight:600; font-size:11px; letter-spacing:1.5px; display:block; margin-top:-4px; text-transform:uppercase; }
.footer-brand p { margin-top:8px; font-size:13px; }
.footer-links { display:flex; gap:32px; }
.footer-links a { color:rgba(255,255,255,0.4); text-decoration:none; font-size:13px; transition:color .3s; cursor:pointer; }
.footer-links a:hover { color:white; }
.footer-biz { font-size:12px; line-height:2; }
.footer-biz a { color:#00C9A7; text-decoration:underline; }
@media(max-width:640px) { .footer-top{flex-direction:column} .footer-links{gap:20px} }

/* ═══ Floating CTA (공통) ═══ */
.floating-cta { background:none; }
.float-btn { display:inline-block; width:100%; max-width:400px; padding:18px; font-size:17px; font-weight:700; border:none; border-radius:14px; cursor:pointer; font-family:inherit; pointer-events:all; }

/* 성별 선택 버튼 */
.f-gender-row { display:flex; gap:10px; }
.f-gender-btn { flex:1; padding:14px; border:1.5px solid #E5E9F0; border-radius:12px; background:#fff; color:#5C6B85; font-size:15px; font-weight:600; cursor:pointer; font-family:inherit; transition:all .2s; }
.f-gender-btn:hover { border-color:#1B6EF3; color:#1B6EF3; }
.f-gender-btn.on { background:#1B6EF3; border-color:#1B6EF3; color:#fff; }

/* ═══ 선물 이벤트 박스 ═══ */
.gift-event { background:rgba(255,176,32,0.08); border:1px solid rgba(255,176,32,0.4); border-radius:12px; padding:14px 14px 12px; margin-bottom:22px; text-align:center; }
.gift-img { width:100%; max-width:100%; height:auto; display:block; margin:0 auto; border-radius:8px; }
.gift-title { font-size:17px; font-weight:800; color:#FFB020; margin:10px 0 4px; }
.gift-desc { font-size:13px; color:rgba(255,255,255,0.85); margin-bottom:10px; line-height:1.5; }
.gift-notice { background:rgba(0,0,0,0.2); border-radius:8px; padding:9px 11px; text-align:left; font-size:11.5px; color:rgba(255,255,255,0.7); line-height:1.55; }
.gift-notice strong { display:block; margin-bottom:4px; font-weight:700; color:rgba(255,255,255,0.9); }
.gift-notice ol { margin:0; padding-left:18px; }
.gift-notice li { margin-bottom:1px; }

/* ═══ 가로 2열 (생년월일+성별) ═══ */
.f-row-2 { display:flex; gap:12px; margin-bottom:0; }
.f-row-2 .f-col { flex:1; min-width:0; }
.f-row-2 .f-group { margin-bottom:18px; }

/* ═══ 가이드 텍스트 색상 (잘 보이게) ═══ */
.f-hint { display:inline-block; font-size:12px; color:#7B8AA6; margin-top:2px; line-height:1.5; }
