@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #E8F4FD 0%, #F8FBFE 100%);
  min-height: 100vh;
  padding: 20px;
}

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.02)} }
@keyframes slideIn { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:translateX(0)} }

.container { max-width: 440px; width: 100%; margin: 0 auto; }
.screen { display: none; animation: fadeIn 0.5s ease; }
.screen.active { display: block; }

.card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(26,54,93,0.06);
  margin-bottom: 1rem;
}

.intro { text-align: center; }
.logo { width: 80%; max-width: 280px; margin-bottom: 0.5rem; animation: pulse 3s ease-in-out infinite; }
.mascot-intro { width: 130px; height: 130px; object-fit: contain; animation: float 3s ease-in-out infinite; margin-bottom: 1rem; }
.intro h1 { font-size: 20px; font-weight: 700; color: #1A365D; margin-bottom: 0.5rem; line-height: 1.4; }
.intro .sub { font-size: 14px; color: #6B7C93; margin-bottom: 1.5rem; }

.btn-primary {
  background: #3B82C4; color: white; border: none;
  padding: 16px 48px; border-radius: 50px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; width: 100%;
}
.btn-primary:hover { background: #2B6BA8; }
.btn-primary:active { transform: scale(0.98); }

.survey-progress { margin-bottom: 1.5rem; }
.survey-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: #6B7C93; margin-bottom: 0.5rem; }
.survey-progress-bar { height: 6px; background: #E8EFF5; border-radius: 3px; overflow: hidden; }
.survey-progress-fill { height: 100%; background: linear-gradient(90deg, #3B82C4 0%, #60A5FA 100%); border-radius: 3px; }

.form-title { font-size: 17px; font-weight: 700; color: #1A365D; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1.5px solid #E8EFF5; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #4A5E78; margin-bottom: 0.4rem; }
.form-label .required { color: #E24B4A; margin-left: 2px; }
.form-input {
  width: 100%; padding: 13px 15px; border: 1.5px solid #DDE5EE; border-radius: 10px;
  font-size: 14px; color: #1A365D; transition: all 0.2s; font-family: inherit;
}
.form-input:focus { outline: none; border-color: #3B82C4; }
.form-input::placeholder { color: #A0B0C0; }
.form-input.error { border-color: #E24B4A; background: #FEF2F2; }

.option-group { display: flex; flex-direction: column; gap: 8px; }
.option-item {
  display: flex; align-items: center; padding: 13px 15px;
  background: #F8FAFC; border: 1.5px solid #E0E8F0; border-radius: 10px;
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.option-item:hover { border-color: #3B82C4; background: #fff; }
.option-item.selected { border-color: #3B82C4; background: #EBF4FC; }
.option-radio {
  width: 18px; height: 18px; border: 2px solid #B0BCC8; border-radius: 50%;
  margin-right: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.option-item.selected .option-radio { border-color: #3B82C4; }
.option-item.selected .option-radio::after { content: ''; width: 9px; height: 9px; background: #3B82C4; border-radius: 50%; }
.option-check {
  width: 18px; height: 18px; border: 2px solid #B0BCC8; border-radius: 5px;
  margin-right: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.option-item.selected .option-check { border-color: #3B82C4; background: #3B82C4; }
.option-item.selected .option-check::after { content: '✓'; color: white; font-size: 11px; font-weight: 700; }
.option-text { font-size: 13px; color: #3A4A5E; line-height: 1.4; }

.consent-group { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #E8EFF5; }
.consent-item { display: flex; align-items: flex-start; margin-bottom: 0.8rem; cursor: pointer; }
.consent-check {
  width: 20px; height: 20px; border: 2px solid #B0BCC8; border-radius: 5px;
  margin-right: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.consent-item.checked .consent-check { border-color: #3B82C4; background: #3B82C4; }
.consent-item.checked .consent-check::after { content: '✓'; color: white; font-size: 12px; font-weight: 700; }
.consent-text { font-size: 12px; color: #5A6A7E; line-height: 1.5; }
.consent-text .tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; margin-right: 5px; }
.consent-text .required-tag { background: #FDEAEA; color: #C53030; }
.consent-text .optional-tag { background: #EDF2F7; color: #5A6A7E; }
.consent-link { color: #3B82C4; text-decoration: underline; cursor: pointer; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal-content { background: #fff; border-radius: 16px; max-width: 400px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 1.5rem; }
.modal-title { font-size: 16px; font-weight: 700; color: #1A365D; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #E8EFF5; }
.modal-body { font-size: 13px; color: #4A5E78; line-height: 1.7; }
.modal-body strong { color: #1A365D; }
.modal-body p { margin-bottom: 0.75rem; }
.modal-close { margin-top: 1.25rem; width: 100%; padding: 12px; background: #3B82C4; color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }

.progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; }
.progress-bar { flex: 1; height: 6px; background: #E8EFF5; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #3B82C4 0%, #60A5FA 100%); border-radius: 3px; transition: width 0.4s ease; }
.progress-text { font-size: 13px; color: #6B7C93; font-weight: 600; min-width: 45px; text-align: right; }
.q-box { background: linear-gradient(135deg, #F0F7FC 0%, #E8F4FD 100%); border-radius: 16px; padding: 1.25rem; margin-bottom: 1rem; }
.q-num { display: inline-block; background: #3B82C4; color: white; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 15px; margin-bottom: 0.6rem; }
.q-text { font-size: 16px; font-weight: 600; color: #1A365D; line-height: 1.5; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  background: #fff; border: 1.5px solid #DDE5EE; border-radius: 12px;
  padding: 15px 16px; font-size: 14px; color: #3A4A5E; text-align: left;
  cursor: pointer; transition: all 0.2s; line-height: 1.45;
}
.opt:hover { border-color: #3B82C4; background: #F8FAFC; transform: translateX(4px); }
.opt.sel { border-color: #3B82C4; background: #EBF4FC; color: #1A365D; font-weight: 500; }

.result-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,54,93,0.06);
}
.result-image { width: 100%; height: auto; display: block; }
.result-content { padding: 1.5rem; text-align: center; }
.r-type { font-size: 24px; font-weight: 800; color: #1A365D; margin-bottom: 0.75rem; }
.r-sum { font-size: 15px; color: #5A6A7E; line-height: 1.6; margin-bottom: 1.25rem; padding: 0 0.5rem; }
.r-cloud-box { background: #F5F8FB; border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; text-align: left; }
.r-cloud-title { font-size: 13px; color: #4A5E78; font-weight: 600; margin-bottom: 0.5rem; }
.r-cloud-text { font-size: 13px; color: #5A6A7E; line-height: 1.55; }
.service-tags { display: flex; gap: 10px; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tag-filled { background: #3B82C4; color: white; padding: 10px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.tag-outline { background: white; color: #3B82C4; padding: 10px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1.5px solid #3B82C4; text-decoration: none; }
.tag-outline:hover { background: #EBF4FC; }
.staff-notice { background: linear-gradient(135deg, #EBF4FC 0%, #E0EFFA 100%); border-radius: 14px; padding: 1.25rem; margin-bottom: 1.25rem; }
.staff-notice-text { font-size: 16px; font-weight: 700; color: #1A365D; line-height: 1.5; }
.staff-notice-sub { font-size: 12px; color: #5A6A7E; margin-top: 0.4rem; }
.share-btn { display: inline-block; background: #3B82C4; color: white; border: none; padding: 14px 36px; border-radius: 50px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.retry-link { display: block; margin-top: 1rem; font-size: 13px; color: #6B7C93; text-decoration: underline; cursor: pointer; }

.conditional { display: none; margin-top: 0.75rem; padding: 1rem; background: #F8FAFC; border-radius: 10px; border-left: 3px solid #3B82C4; }
.conditional.show { display: block; }

.footer { text-align: center; margin-top: 0.75rem; padding: 0.75rem; }
.footer-logo { width: 90px; opacity: 0.4; }
.footer-text { font-size: 10px; color: #A0B0C0; margin-top: 0.3rem; }
