<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: 'Quicksand', sans-serif; background: #fff; -webkit-font-smoothing: antialiased; }
  .quiz-container { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; overflow-y: auto; }
  .top-accent { height: 4px; background: linear-gradient(90deg, #F5DB2F, #EAA236, #DD602D, #34A6F3, #1D60A4); }
  .header { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #F0F4F8; }
  .header-logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #F5DB2F, #F4C42D); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; color: #1D60A4; }
  .header-text { font-size: 16px; font-weight: 800; color: #1D60A4; letter-spacing: 0.5px; }
  .content { padding: 24px 20px 40px; }

  /* Animations */
  @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
  @keyframes spin { 100% { transform: rotate(360deg); } }
  @keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 300px; } }
  @keyframes barGrow { from { width: 0%; } }
  .fade-in { animation: fadeInUp 0.6s cubic-bezier(.4,0,.2,1) forwards; }

  /* Screen: hidden by default */
  .screen { display: none; }
  .screen.active { display: block; }

  /* Welcome */
  .welcome-emoji { font-size: 72px; margin-bottom: 16px; }
  .welcome-title { font-size: clamp(24px, 5vw, 36px); font-weight: 800; color: #1D60A4; line-height: 1.3; margin-bottom: 12px; }
  .welcome-title span { background: linear-gradient(135deg, #EAA236, #DD602D); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .welcome-desc { font-size: clamp(14px, 3vw, 17px); color: #5A6B7B; max-width: 420px; margin: 0 auto 32px; line-height: 1.7; }
  .badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
  .badge { background: #F8FAFC; border-radius: 40px; padding: 8px 18px; font-size: 14px; color: #1D60A4; font-weight: 600; display: flex; align-items: center; gap: 6px; }
  .btn-start { background: linear-gradient(135deg, #F5DB2F, #F4C42D); color: #1D60A4; border: none; border-radius: 60px; padding: 16px 48px; font-size: 18px; font-weight: 800; cursor: pointer; font-family: 'Quicksand', sans-serif; box-shadow: 0 4px 20px #F5DB2F66; transition: all 0.3s; letter-spacing: 0.5px; }
  .btn-start:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px #F5DB2F88; }
  .welcome-footer { font-size: 12px; color: #94A3B8; margin-top: 16px; }
  .welcome-footer strong { color: #1D60A4; }

  /* Lead Form */
  .form-header { text-align: center; margin-bottom: 28px; }
  .form-header-emoji { font-size: 42px; margin-bottom: 8px; }
  .form-title { font-size: 22px; font-weight: 800; color: #1D60A4; margin-bottom: 8px; }
  .form-subtitle { font-size: 14px; color: #7A8B9C; }
  .form-fields { display: flex; flex-direction: column; gap: 16px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-label { font-size: 13px; font-weight: 700; color: #1D60A4; margin-bottom: 6px; display: block; }
  .form-input, .form-select { width: 100%; padding: 14px 18px; border-radius: 14px; border: 2px solid #E8EDF2; font-size: 15px; font-family: 'Quicksand', sans-serif; font-weight: 500; color: #1D60A4; outline: none; transition: all 0.3s; background: #FAFBFC; box-sizing: border-box; }
  .form-input:focus, .form-select:focus { border-color: #34A6F3; background: #fff; }
  .form-input.error, .form-select.error { border-color: #DD602D; }
  .form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D60A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
  .btn-continue { width: 100%; margin-top: 24px; background: linear-gradient(135deg, #1D60A4, #34A6F3); color: #fff; border: none; border-radius: 14px; padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: 'Quicksand', sans-serif; box-shadow: 0 4px 20px #1D60A433; transition: all 0.3s; }
  .btn-continue:hover { transform: translateY(-1px); }
  .form-privacy { font-size: 11px; color: #B0BEC5; text-align: center; margin-top: 12px; }

  /* Quiz Questions */
  .progress-bar { width: 100%; background: #F0F4F8; border-radius: 20px; height: 8px; overflow: hidden; }
  .progress-fill { height: 100%; background: linear-gradient(90deg, #F5DB2F, #EAA236); border-radius: 20px; transition: width 0.5s cubic-bezier(.4,0,.2,1); }
  .q-counter { font-size: 13px; color: #94A3B8; margin-top: 8px; font-weight: 600; }
  .q-title { font-size: clamp(17px, 4vw, 21px); font-weight: 800; color: #1D60A4; line-height: 1.5; margin: 20px 0 24px; }
  .options { display: flex; flex-direction: column; gap: 10px; }
  .option-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 16px; border: 2px solid #E8EDF2; background: #FAFBFC; cursor: pointer; text-align: left; transition: all 0.3s cubic-bezier(.4,0,.2,1); font-family: 'Quicksand', sans-serif; }
  .option-btn:hover { border-color: #ABE9FF; background: #F8FAFC; transform: translateX(4px); }
  .option-btn.selected { border-color: #34A6F3; background: #ABE9FF33; transform: scale(0.98); }
  .option-icon { width: 44px; height: 44px; border-radius: 12px; background: #EEF2F7; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; transition: all 0.3s; }
  .option-btn.selected .option-icon { background: #34A6F3; }
  .option-text { font-size: 15px; font-weight: 600; color: #4A5568; line-height: 1.4; }
  .option-btn.selected .option-text { color: #1D60A4; }

  /* Other option */
  .option-other { border: 2px dashed #CBD5E1; background: transparent; }
  .option-other:hover { border-color: #EAA236; background: #EAA23608; }
  .option-other.selected { border-color: #EAA236; border-style: solid; background: #EAA2360D; }
  .option-other .option-icon { background: #F1F5F9; }
  .option-other.selected .option-icon { background: #EAA236; }
  .option-other .option-text { color: #94A3B8; font-style: italic; }
  .option-other.selected .option-text { color: #1D60A4; font-style: normal; }

  .other-input-area { animation: slideDown 0.3s ease; overflow: hidden; margin-top: 10px; }
  .other-input-box { background: #EAA23608; border-radius: 16px; padding: 16px; border: 1px solid #EAA23622; }
  .other-input-label { font-size: 13px; color: #1D60A4; font-weight: 600; margin-bottom: 10px; }
  .other-textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #EAA23633; font-size: 14px; font-family: 'Quicksand', sans-serif; font-weight: 500; color: #1D60A4; outline: none; resize: vertical; min-height: 70px; max-height: 120px; background: #fff; box-sizing: border-box; line-height: 1.5; }
  .other-textarea:focus { border-color: #EAA236; }
  .btn-other-submit { margin-top: 10px; width: 100%; background: #E2E8F0; color: #94A3B8; border: none; border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 700; cursor: default; font-family: 'Quicksand', sans-serif; transition: all 0.3s; }
  .btn-other-submit.active { background: linear-gradient(135deg, #EAA236, #DD602D); color: #fff; cursor: pointer; }

  /* Loading */
  .loading-icon { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #F5DB2F, #EAA236); margin: 0 auto 28px; display: flex; align-items: center; justify-content: center; font-size: 36px; animation: pulse 1.5s ease-in-out infinite; }
  .loading-steps { display: flex; flex-direction: column; gap: 12px; max-width: 300px; margin: 0 auto; }
  .loading-step { display: flex; align-items: center; gap: 10px; opacity: 0.25; transform: translateX(-10px); transition: all 0.5s cubic-bezier(.4,0,.2,1); }
  .loading-step.active { opacity: 1; transform: translateX(0); }
  .step-dot { width: 24px; height: 24px; border-radius: 50%; background: #E2E8F0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; flex-shrink: 0; transition: all 0.3s; }
  .step-dot.done { background: #22C55E; }
  .step-dot.current { background: #34A6F3; }
  .step-dot .spinner { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; animation: spin 0.8s linear infinite; }
  .step-text { font-size: 13px; color: #94A3B8; text-align: left; }
  .loading-step.active .step-text { color: #1D60A4; font-weight: 700; }

  /* Result */
  .result-badge { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 50px; }
  .result-subtitle { font-size: 13px; color: #7A8B9C; font-weight: 600; margin-bottom: 4px; }
  .result-type-name { font-size: clamp(22px, 5vw, 28px); font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
  .result-desc { font-size: 14px; color: #5A6B7B; line-height: 1.6; max-width: 380px; margin: 0 auto; }
  .card { border-radius: 20px; padding: 20px; margin-bottom: 16px; }
  .card-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
  .score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .score-emoji { font-size: 18px; width: 28px; text-align: center; }
  .score-bar-bg { height: 8px; border-radius: 10px; background: #E8EDF2; overflow: hidden; }
  .score-bar-fill { height: 100%; border-radius: 10px; transition: width 1.2s cubic-bezier(.4,0,.2,1); }
  .trait-tag { background: #fff; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; display: inline-block; margin: 0 4px 4px 0; }
  .ai-card { background: linear-gradient(135deg, #1D60A4, #2575B8); color: #E8F4FF; }
  .ai-card .card-title { color: #F5DB2F; }
  .ai-card p { font-size: 14px; line-height: 1.7; }
  .cta-card { text-align: center; border: 1px solid #F4C42D33; }
  .cta-gift { font-size: 15px; font-weight: 700; color: #1D60A4; margin-bottom: 6px; }
  .cta-title { font-size: 21px; font-weight: 800; color: #DD602D; margin-bottom: 4px; }
  .cta-subtitle { font-size: 13px; color: #7A8B9C; margin-bottom: 18px; }
  .btn-zalo { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #0068FF, #0055D4); color: #fff; border: none; border-radius: 60px; padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Quicksand', sans-serif; text-decoration: none; box-shadow: 0 4px 20px rgba(0,104,255,0.3); transition: all 0.3s; }
  .btn-zalo:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,104,255,0.4); }
  .cta-note { font-size: 11px; color: #94A3B8; margin-top: 10px; }
  .btn-restart { background: none; border: 1px solid #E2E8F0; border-radius: 30px; padding: 10px 24px; font-size: 13px; font-weight: 600; cursor: pointer; color: #94A3B8; font-family: 'Quicksand', sans-serif; }
</style>