*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Segoe UI', Arial, sans-serif;
      background: #fff7f7;
      color: #1a202c;
      min-height: 100vh;
      padding: 24px 16px;
    }

    .container {
      max-width: 780px;
      margin: 0 auto;
    }

    /* Header */
    .header {
      position: relative;
      background: linear-gradient(135deg, #7f1d1d 0%, #b71c1c 100%);
      color: white;
      border-radius: 16px 16px 0 0;
      padding: 32px 32px 24px;
      text-align: center;
    }

    .banner{
      max-width: 100px;
      border-radius:8px;
    }

    .btn-back {
      position: absolute;
      top: 20px;
      left: 20px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border: 1px solid rgba(255, 255, 255, .55);
      border-radius: 9px;
      background: rgba(255, 255, 255, .12);
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      line-height: 1;
      text-decoration: none;
      transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
    }
    .btn-back span:first-child { font-size: 18px; }
    .btn-back:hover {
      background: rgba(255, 255, 255, .23);
      box-shadow: 0 4px 12px rgba(60, 0, 0, .18);
      transform: translateY(-1px);
    }
    .btn-back:focus-visible {
      outline: 3px solid #fff;
      outline-offset: 3px;
    }

    .header .logo-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-bottom: 16px;
    }
    .header .logo-circle {
      width: 64px; height: 64px;
      background: white;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-weight: 900; font-size: 18px; color: #7f1d1d;
      letter-spacing: -1px;
      flex-shrink: 0;
    }
    .header h1 {
      font-size: clamp(16px, 3.5vw, 22px);
      font-weight: 700;
      line-height: 1.3;
    }
    .header p {
      font-size: 13px;
      opacity: .85;
      margin-top: 6px;
    }

    /* Progress */
    .progress-wrap {
      background: #fde8e8;
      padding: 14px 24px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .progress-bar-bg {
      flex: 1;
      height: 8px;
      background: #f8b4b4;
      border-radius: 99px;
      overflow: hidden;
    }
    .progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #b71c1c, #ef5350);
      border-radius: 99px;
      transition: width .4s ease;
      width: 0%;
    }
    .progress-label {
      font-size: 12px;
      color: #991b1b;
      font-weight: 600;
      white-space: nowrap;
    }

    /* Card */
    .card {
      background: white;
      padding: 28px 32px;
      border-left: 4px solid #b71c1c;
      margin-bottom: 20px;
    }
    .card:last-of-type { border-radius: 0 0 16px 16px; }

    .section-title {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #b71c1c;
      margin-bottom: 20px;
      padding-bottom: 8px;
      border-bottom: 2px solid #e2e8f0;
    }

    /* Field groups */
    .field-group { margin-bottom: 22px; }
    .field-group:last-child { margin-bottom: 0; }

    label.field-label {
      display: block;
      font-weight: 600;
      font-size: 14px;
      margin-bottom: 10px;
      color: #2d3748;
    }
    label.field-label .req { color: #e53e3e; margin-left: 2px; }

    /* Checkbox / Radio grid */
    .option-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .option-grid.col1 { flex-direction: column; }

    .chip-label {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border: 1.5px solid #cbd5e0;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13.5px;
      background: #f7fafc;
      transition: all .18s;
      user-select: none;
    }
    .chip-label:hover { border-color: #b71c1c; background: #fff1f1; }
    .chip-label input[type="radio"],
    .chip-label input[type="checkbox"] { accent-color: #b71c1c; width: 16px; height: 16px; flex-shrink: 0; }
    .chip-label.selected { border-color: #b71c1c; background: #fff1f1; font-weight: 600; }

    /* Likert scale */
    .likert-wrap { display: flex; flex-direction: column; gap: 6px; }
    .likert-option {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 14px;
      border: 1.5px solid #e2e8f0;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13.5px;
      transition: all .18s;
    }
    .likert-option:hover { border-color: #b71c1c; background: #fff1f1; }
    .likert-option input { accent-color: #b71c1c; width: 16px; height: 16px; }
    .likert-option.scale-1 { --accent: #e53e3e; }
    .likert-option.scale-2 { --accent: #ed8936; }
    .likert-option.scale-3 { --accent: #48bb78; }
    .likert-option.scale-4 { --accent: #b71c1c; }
    .likert-option input { accent-color: var(--accent, #b71c1c); }
    .likert-option.selected { border-color: var(--accent, #b71c1c); background: #fff1f1; font-weight: 600; }

    /* Q number badge */
    .q-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px; height: 26px;
      background: #b71c1c;
      color: white;
      border-radius: 50%;
      font-size: 12px;
      font-weight: 700;
      margin-right: 8px;
      flex-shrink: 0;
    }
    .q-text {
      font-weight: 600;
      font-size: 14px;
      color: #2d3748;
      display: flex;
      align-items: flex-start;
      gap: 6px;
      margin-bottom: 12px;
      line-height: 1.45;
    }

    /* Two-column questions */
    .q-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    @media (max-width: 580px) { .q-columns { grid-template-columns: 1fr; } }

    @media (max-width: 580px) {
      .header { padding-top: 58px; }
      .btn-back { top: 12px; left: 12px; padding: 8px 11px; font-size: 12px; }
    }

    .q-card {
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 16px;
      background: #fafafa;
    }
    .q-card-title {
      font-size: 13px;
      font-weight: 600;
      color: #2d3748;
      margin-bottom: 10px;
      line-height: 1.4;
    }

    /* Textarea */
    textarea {
      width: 100%;
      border: 1.5px solid #cbd5e0;
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 14px;
      font-family: inherit;
      resize: vertical;
      min-height: 110px;
      color: #2d3748;
      transition: border-color .2s;
    }
    textarea:focus { outline: none; border-color: #b71c1c; box-shadow: 0 0 0 3px #f8b4b4; }

    /* Hidden */
    .hidden { display: none !important; }

    /* Submit */
    .submit-wrap { text-align: center; padding: 8px 0 16px; }
    .btn-submit {
      background: linear-gradient(135deg, #7f1d1d 0%, #b71c1c 100%);
      color: white;
      border: none;
      padding: 14px 48px;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: transform .15s, box-shadow .15s;
      box-shadow: 0 4px 14px rgba(183,28,28,.35);
    }
    .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(183,28,28,.45); }
    .btn-submit:active { transform: translateY(0); }

    /* Success screen */
    #success-screen {
      display: none;
      text-align: center;
      padding: 60px 32px;
      background: white;
      border-radius: 16px;
      box-shadow: 0 4px 24px rgba(0,0,0,.07);
    }
    .checkmark {
      width: 80px; height: 80px;
      background: #dcfce7;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 20px;
      font-size: 40px;
    }
    #success-screen h2 { color: #16a34a; font-size: 22px; margin-bottom: 10px; }
    #success-screen p { color: #4a5568; font-size: 15px; }

    /* Validation */
    .error-msg {
      color: #e53e3e;
      font-size: 12px;
      margin-top: 6px;
      display: none;
    }
    .field-group.has-error .error-msg { display: block; }
    .field-group.has-error .chip-label,
    .field-group.has-error .likert-option,
    .field-group.has-error textarea { border-color: #e53e3e; }

    /* Date input */
    input[type="date"] {
      border: 1.5px solid #cbd5e0;
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 14px;
      font-family: inherit;
      color: #2d3748;
      width: 100%;
      max-width: 240px;
    }
    input[type="date"]:focus { outline: none; border-color: #b71c1c; }

    /* Select dropdown */
    .form-select {
      width: 100%;
      border: 1.5px solid #cbd5e0;
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 14px;
      font-family: inherit;
      color: #2d3748;
      background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b71c1c' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
      background-size: 16px;
      padding-right: 36px;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      transition: all .18s;
    }
    .form-select:hover {
      border-color: #b71c1c;
      background-color: #f7fafc;
    }
    .form-select:focus {
      outline: none;
      border-color: #b71c1c;
      box-shadow: 0 0 0 3px #f8b4b4;
    }
    .form-select option {
      color: #2d3748;
      background: white;
      padding: 8px;
    }

    .info-note {
      background: #fff1f1;
      border-left: 3px solid #b71c1c;
      padding: 10px 14px;
      border-radius: 0 8px 8px 0;
      font-size: 13px;
      color: #991b1b;
      margin-bottom: 20px;
    }

    .flex-2{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap:10px
    }
