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

/* ═══════════════════════════════════════
   Color Palette (from poster)
   ─────────────────────────────────────
   Teal Primary:   #5CC8BE
   Teal Dark:      #42A396
   Coral Accent:   #EF6351
   Yellow Accent:  #FFE44D
   Light Teal BG:  #E8F6F4
   Light Coral BG: #FFF0EE
   ═══════════════════════════════════════ */

*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;
  background:#f0f7f6;color:#333;line-height:1.6;
  text-underline-offset:20%;
  -webkit-font-smoothing:antialiased;
}
.app{
  max-width:430px;margin:0 auto;background:#fff;
  min-height:100vh;position:relative;overflow-x:hidden;
}

/* ── Top Nav ── */
.top-nav{
  background:linear-gradient(135deg,#5CC8BE,#42A396);
  color:#fff;padding:12px 16px;display:flex;
  justify-content:center;align-items:center;
}
.top-nav .title{font-size:15px;font-weight:600;letter-spacing:.5px;}

/* ── Header with gradient ── */
.header-gradient{
  background:linear-gradient(180deg,#5CC8BE 0%,#42A396 100%);
  color:#fff;padding:20px 20px 28px;text-align:center;
}
.header-gradient h1{font-size:20px;font-weight:700;margin-bottom:4px;}
.header-gradient .sub{font-size:13px;opacity:.9;font-weight:300;}
.header-curve{display:block;width:100%;height:18px;background:#fff;border-radius:18px 18px 0 0;}

/* ── Logos ── */
.logo-row{
  display:flex;justify-content:center;align-items:center;
  gap:14px;padding:18px 0 10px;
}
.logo-row img{height:22px;object-fit:contain;}
.logo-divider{width:1px;height:18px;background:#ddd;}

/* ── Content ── */
.content{padding:0 20px 100px;}

/* ── Cards ── */
.card{
  background:#fff;border:1px solid #e8f0ef;border-radius:14px;
  padding:20px;margin-bottom:14px;box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.card.accent{
  background:linear-gradient(135deg,#E8F6F4,#D8F0ED);
  border:1px solid rgba(92,200,190,.2);
}
.card.teal-bg{
  background:linear-gradient(135deg,#E8F6F4,#D8F0ED);
  border:1px solid rgba(92,200,190,.15);
}
.card.dark-teal{
  background:linear-gradient(135deg,#42A396,#358A7E);
  color:#fff;border:none;
}
.card.coral-bg{
  background:linear-gradient(135deg,#FFF0EE,#FFE8E4);
  border:1px solid rgba(239,99,81,.12);
}

/* ── Info Box ── */
.info-box{
  background:#E8F6F4;border-left:3px solid #5CC8BE;
  border-radius:0 10px 10px 0;padding:14px 16px;margin-bottom:14px;
  font-size:13px;color:#2a5e58;line-height:1.75;
}
.info-box.coral{background:#FFF0EE;border-left-color:#EF6351;color:#7a3b30;}
.info-box.gray{background:#F8F8F8;border-left-color:#ccc;color:#777;}

/* ── Notice Banner ── */
.notice-banner{
  background:#E8F6F4;border-radius:10px;padding:12px 16px;margin-bottom:14px;
  display:flex;align-items:flex-start;gap:10px;
  font-size:12.5px;color:#2a5e58;line-height:1.65;
}
.notice-banner .ico{font-size:18px;flex-shrink:0;margin-top:1px;}
.notice-banner.muted{background:#F5F5F5;color:#888;}
.notice-banner.yellow{
  background:linear-gradient(135deg,#FFF8D6,#FFEFAA);
  color:#6b5a10;border:1px solid rgba(255,228,77,.3);
}

/* ── Section Title ── */
.sec-title{
  font-size:13px;font-weight:600;color:#42A396;margin-bottom:10px;
  display:flex;align-items:center;gap:6px;
}
.sec-title::before{
  content:'';width:4px;height:14px;
  background:linear-gradient(180deg,#5CC8BE,#42A396);border-radius:2px;
}

/* ── Question Label ── */
.q-label{font-size:15px;font-weight:600;color:#333;margin-bottom:14px;}
.q-label .num{color:#EF6351;font-weight:700;margin-right:4px;}

/* ── Checkbox Cards (multiple select) ── */
.chk-group{display:flex;flex-direction:column;gap:10px;}
.chk-card{
  display:flex;align-items:center;gap:12px;padding:14px 16px;
  border:2px solid #eee;border-radius:12px;cursor:pointer;
  transition:all .2s;-webkit-tap-highlight-color:transparent;
  background:#fff;
}
.chk-card:active,.chk-card.on{border-color:#42A396;background:#f4fbfa;}
.chk-card .box{
  width:22px;height:22px;border:2px solid #ccc;border-radius:6px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition:all .2s;
}
.chk-card.on .box{border-color:#42A396;background:#42A396;}
.chk-card.on .box::after{
  content:'';width:6px;height:11px;
  border:solid #fff;border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg);margin-top:-2px;
}
.chk-card .txt{font-size:14px;color:#444;line-height:1.5;}
.chk-card.on .txt{color:#2a5e58;font-weight:500;}
/* exclusive: "모두 없다" 선택 시 다른 항목 해제 */
.chk-card.exclusive.on{border-color:#bbb;background:#f8f8f8;}
.chk-card.exclusive.on .box{background:#aaa;border-color:#aaa;}

/* ── Option Cards ── */
.opt-group{display:flex;flex-direction:column;gap:10px;}
.opt-card{
  display:flex;align-items:center;gap:12px;padding:14px 16px;
  border:2px solid #eee;border-radius:12px;cursor:pointer;
  transition:all .2s;-webkit-tap-highlight-color:transparent;
  background:#fff;
}
.opt-card:active,.opt-card.on{border-color:#42A396;background:#f4fbfa;}
.opt-card .dot{
  width:22px;height:22px;border:2px solid #ccc;border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition:all .2s;
}
.opt-card.on .dot{border-color:#42A396;}
.opt-card.on .dot::after{
  content:'';width:12px;height:12px;
  background:#42A396;border-radius:50%;
}
.opt-card .txt{font-size:14px;color:#444;line-height:1.5;}
.opt-card.on .txt{color:#2a5e58;font-weight:500;}

/* ── Gender Buttons ── */
.gender-row{display:flex;gap:10px;}
.gender-btn{
  flex:1;padding:14px;border:2px solid #eee;border-radius:12px;
  text-align:center;font-size:15px;font-weight:500;cursor:pointer;
  transition:all .2s;-webkit-tap-highlight-color:transparent;
  background:#fff;color:#555;
}
.gender-btn:active,.gender-btn.on{
  border-color:#42A396;background:#f4fbfa;color:#42A396;font-weight:600;
}

/* ── Bottom CTA ── */
.bottom-cta{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:430px;padding:12px 20px;
  padding-bottom:max(12px,env(safe-area-inset-bottom));
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-top:1px solid #e8f0ef;z-index:100;
}
.btn-cta{
  display:block;width:100%;padding:16px;
  background:linear-gradient(135deg,#5CC8BE,#42A396);
  color:#fff;border:none;border-radius:12px;
  font-size:16px;font-weight:600;font-family:inherit;
  cursor:pointer;transition:opacity .2s;
  -webkit-tap-highlight-color:transparent;
}
.btn-cta:active{opacity:.85;}
.btn-cta:disabled{background:#ccc;color:#999;cursor:not-allowed;}
.btn-cta.coral{background:linear-gradient(135deg,#EF6351,#D94E3E);}

/* ── Steps ── */
.step-list{margin:16px 0;}
.step-item{display:flex;gap:14px;margin-bottom:16px;align-items:flex-start;}
.step-num{
  width:30px;height:30px;border-radius:50%;
  background:linear-gradient(135deg,#EF6351,#D94E3E);
  color:#fff;font-size:13px;font-weight:700;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.step-text{flex:1;}
.step-text strong{display:block;font-size:14px;font-weight:600;color:#333;margin-bottom:2px;}
.step-text span{font-size:13px;color:#777;line-height:1.6;}

.period-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:#FFE44D;
  color:#5a4800;padding:8px 16px;border-radius:8px;
  font-size:13px;font-weight:600;
}

/* ── Footer ── */
.footer-notice{
  font-size:11px;color:#aaa;text-align:center;line-height:1.7;
  padding:14px 10px;border-top:1px solid #e8f0ef;margin-top:20px;
}

/* ── Misc ── */
.divider{height:1px;background:linear-gradient(90deg,transparent,#c8ddd9 20%,#c8ddd9 80%,transparent);margin:24px 0;}
.divider.major{height:6px;background:#f0f7f6;margin:4px -20px 20px;border-radius:0;}

/* ── Conditional Show/Hide ── */
.section-hidden{display:none;}
.section-show{display:block;animation:fadeIn .35s ease;}

/* ── Modal Overlay ── */
.modal-overlay{
  display:none;position:fixed;top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,.45);z-index:999;
  justify-content:center;align-items:center;
}
.modal-overlay.show{display:flex;}
.modal-box{
  background:#fff;border-radius:16px;padding:28px 24px;
  width:calc(100% - 48px);max-width:340px;text-align:center;
  box-shadow:0 8px 30px rgba(0,0,0,.18);
}
.modal-box .modal-msg{
  font-size:15px;font-weight:600;color:#333;line-height:1.6;
  margin-bottom:24px;
}
.modal-box .modal-btns{display:flex;flex-direction:column;gap:10px;}
.modal-box .modal-btns button{
  flex:1;padding:12px 0;border-radius:10px;font-size:14px;
  font-weight:600;cursor:pointer;border:none;
}
.modal-box .btn-cancel{background:#f0f0f0;color:#666;}
.modal-box .btn-confirm{background:#42A396;color:#fff;}

/* ── Animation ── */
@keyframes fadeIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.fade-in{animation:fadeIn .35s ease;}

/* ── Title area on landing ── */
.hero-title-area{
  background:linear-gradient(180deg,#5CC8BE 0%,#42A396 100%);
  border-radius:14px;padding:18px 20px;margin-bottom:16px;
  text-align:center;color:#fff;
}
.hero-badge{
  display:inline-block;font-size:11px;font-weight:500;
  background:rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.4);border-radius:20px;
  padding:3px 14px;margin-bottom:8px;letter-spacing:.5px;
}
.hero-title{font-size:22px;font-weight:700;margin-bottom:6px;}
.hero-sub{font-size:13px;opacity:.9;line-height:1.5;}

/* ── Coral badge (poster style) ── */
.coral-badge{
  display:inline-block;font-size:11px;font-weight:600;
  background:#EF6351;color:#fff;border-radius:20px;
  padding:4px 14px;letter-spacing:.5px;
}

/* ── Text content styles ── */
.text-body{font-size:14px;color:#555;line-height:1.8;margin-bottom:16px;}
.text-body strong{color:#333;}
.text-center{text-align:center;}

/* ── Highlight box (coral border for warnings) ── */
.highlight-box{
  background:#FFF0EE;border:1.5px solid #EF6351;border-radius:12px;
  padding:16px 18px;margin-bottom:14px;font-size:13.5px;
  color:#7a3b30;line-height:1.75;
}

/* ═══════════════════════════════════════
   Survey-specific Components
   ═══════════════════════════════════════ */

/* ── Section Header (blue bar in PDF) ── */
.section-bar{
  background:#FFF0EE;border-left:3px solid #EF6351;
  color:#7a3b30;padding:12px 18px;border-radius:0 10px 10px 0;
  font-size:15px;font-weight:600;margin-bottom:16px;
  text-align:left;
}
.section-bar.sub{
  background:#FFF5F3;border-left-color:#F09080;
  font-size:14px;padding:10px 16px;
}

/* ── 5-Point Likert Scale ── */
.likert-wrap{margin-bottom:18px;}
.likert-label{font-size:14px;font-weight:500;color:#333;margin-bottom:10px;}
.likert-items{
  display:flex;flex-direction:column;gap:6px;margin-bottom:8px;
  font-size:13px;color:#555;padding-left:4px;
}
.likert-items li{list-style:none;display:flex;align-items:center;gap:6px;}
.likert-items li::before{content:'';width:5px;height:5px;border-radius:50%;background:#5CC8BE;flex-shrink:0;}
.likert-row{
  display:flex;gap:4px;margin-top:8px;
}
.likert-btn{
  flex:1;display:flex;flex-direction:column;align-items:center;
  gap:4px;padding:10px 2px;border:1.5px solid #eee;border-radius:10px;
  cursor:pointer;transition:all .2s;background:#fff;
  -webkit-tap-highlight-color:transparent;
}
.likert-btn .asprcle{
  width:22px;height:22px;border:2px solid #ccc;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:all .2s;
}
.likert-btn .lbl{font-size:11px;color:#555;text-align:center;line-height:1.3;word-break:keep-all;}
.likert-btn:active,.likert-btn.on{border-color:#42A396;background:#f4fbfa;}
.likert-btn.on .asprcle{border-color:#42A396;}
.likert-btn.on .asprcle::after{
  content:'';width:12px;height:12px;
  background:#42A396;border-radius:50%;
}
.likert-btn.on .lbl{color:#2a5e58;font-weight:500;}
/* 해당없음 variant */
.likert-btn.na:active,.likert-btn.na.on{border-color:#aaa;background:#f5f5f5;}
.likert-btn.na.on .asprcle{border-color:#999;}
.likert-btn.na.on .asprcle::after{
  content:'';width:12px;height:12px;
  background:#999;border-radius:50%;
}

/* ── Textarea ── */
.form-textarea{
  width:100%;padding:12px 14px;border:1.5px solid #e0e0e0;
  border-radius:10px;font-size:14px;font-family:inherit;
  color:#333;background:#fafafa;min-height:80px;resize:vertical;
  transition:border-color .2s;outline:none;line-height:1.6;
}
.form-textarea:focus{border-color:#5CC8BE;background:#fff;}
.form-textarea::placeholder{color:#bbb;}

/* ── Date Input ── */
.date-row{display:flex;gap:6px;align-items:center;}
.date-input{
  width:80px;padding:10px 8px;border:1.5px solid #e0e0e0;
  border-radius:8px;font-size:15px;font-family:inherit;
  text-align:center;background:#fafafa;outline:none;
}
.date-input:focus{border-color:#5CC8BE;background:#fff;}
.date-sep{font-size:14px;color:#999;}

/* ── Amount Input ── */
.amount-row{display:flex;gap:8px;align-items:center;}
.amount-input{
  flex:1;padding:12px 14px;border:1.5px solid #e0e0e0;
  border-radius:10px;font-size:15px;font-family:inherit;
  text-align:right;background:#fafafa;outline:none;
}
.amount-input:focus{border-color:#5CC8BE;background:#fff;}
.amount-unit{font-size:14px;color:#777;flex-shrink:0;}

/* ── Simple Table ── */
.s-table{
  width:100%;border-collapse:collapse;margin-bottom:14px;
  font-size:13px;border-radius:10px;overflow:hidden;
  border:1px solid #e8f0ef;
}
.s-table th{
  background:#E8F6F4;color:#2a5e58;font-weight:600;
  padding:10px 8px;border:1px solid #d8ede9;text-align:center;
}
.s-table td{
  padding:10px 8px;border:1px solid #e8f0ef;text-align:center;
  background:#fff;
}
.s-table input{
  width:100%;padding:6px;border:1px solid #ddd;border-radius:6px;
  font-size:13px;font-family:inherit;text-align:center;outline:none;
}
.s-table input:focus{border-color:#5CC8BE;}

/* ── Photo Upload Area ── */
.upload-area{
  border:2px dashed #ccc;border-radius:14px;padding:28px 20px;
  text-align:center;cursor:pointer;transition:border-color .2s;
  margin-bottom:14px;
}
.upload-area:active{border-color:#5CC8BE;}
.upload-icon{font-size:32px;margin-bottom:6px;}
.upload-text{font-size:13px;color:#999;font-weight:500;}
.upload-sub{font-size:11px;color:#bbb;margin-top:3px;}

/* ── Toggle Switch (for consent) ── */
.toggle-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;}
.toggle-row label{font-size:14px;font-weight:500;color:#444;}
.toggle{
  width:46px;height:26px;background:#ddd;border-radius:13px;
  position:relative;cursor:pointer;transition:background .3s;
}
.toggle.on{background:linear-gradient(135deg,#5CC8BE,#42A396);}
.toggle::after{
  content:'';width:22px;height:22px;background:#fff;border-radius:50%;
  position:absolute;top:2px;left:2px;transition:transform .3s;
  box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.toggle.on::after{transform:translateX(20px);}

/* ── Consent Items ── */
.consent-item{border-bottom:1px solid #f0f0f0;padding:12px 0;}
.consent-head{display:flex;justify-content:space-between;align-items:center;cursor:pointer;}
.consent-head .title{font-size:14px;font-weight:500;color:#444;display:flex;align-items:center;gap:6px;}
.consent-head .req{color:#EF6351;font-weight:700;font-size:13px;}
.consent-detail{font-size:12px;color:#999;margin-top:6px;line-height:1.65;}

/* ── Inline helper ── */
.helper{font-size:12px;color:#999;margin-top:4px;line-height:1.5;}
.helper.coral{color:#EF6351;}
.q-sub{font-size:13px;color:#777;font-weight:400;margin-top:2px;line-height:1.6;}
.spacer{height:20px;}

/* ── Compact option (inline radio for 2 options) ── */
.opt-inline{display:flex;gap:10px;flex-wrap:wrap;}
.opt-inline .opt-card{flex:1;min-width:120px;}

/* ── Grid options (for multi-column layouts) ── */
.opt-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.opt-grid .opt-card{padding:12px 14px;}
.opt-grid .opt-card .txt{font-size:13px;}

/* ── Form input (existing enhancement) ── */
.form-group{margin-bottom:16px;}
.form-label{font-size:13px;font-weight:500;color:#666;margin-bottom:6px;display:block;}
.form-input{
  width:100%;padding:12px 14px;border:1.5px solid #e0e0e0;border-radius:10px;
  font-size:15px;font-family:inherit;color:#333;background:#fafafa;
  transition:border-color .2s;outline:none;
}
.form-input:focus{border-color:#5CC8BE;background:#fff;}
.form-input::placeholder{color:#bbb;}
.input-row{display:flex;gap:8px;align-items:center;}
.input-row .form-input{flex:1;}
.btn-sm{
  padding:12px 16px;background:linear-gradient(135deg,#5CC8BE,#42A396);
  color:#fff;border:none;border-radius:10px;font-size:13px;font-weight:600;
  white-space:nowrap;cursor:pointer;flex-shrink:0;
}
.btn-sm.dark{background:#555;}
