:root { --brand:#901a1e; --brand-dark:#6d1417; --text:#333; }
    * { box-sizing: border-box; }
    body {
      margin: 0; font-family: 'Poppins', sans-serif;
      min-height: 100vh; display: flex; justify-content: center; align-items: center;
      background: #f4f4f4; color: var(--text);
    }
    .video-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
    .overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: -1; }

    .quiz-container {
      background: #fff; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,.18);
      width: 100%; max-width: 720px; padding: 28px; text-align: center; position: relative;
      display: flex; flex-direction: column; align-items: center; margin: 16px;
    }
    .quiz-logo img { max-width: 220px; margin-bottom: 14px; display: block; }
    h1 { font-size: 1.6rem; margin: 6px 0 12px; font-weight: 600; color: #222; }
    p { margin-bottom: 16px; color: #555; }

    .btn { padding: 12px 22px; border-radius: 12px; border: none; cursor: pointer; font-weight: 600; font-size: 1rem; margin: 6px; }
    .btn-primary { background: var(--brand); color: #fff; }
    .btn-primary:hover { background: var(--brand-dark); }
    .btn-secondary { background: #e4e4e4; color: #333; }
    .btn-secondary:hover { background: #d6d6d6; }

    .back-btn {
      position: absolute; left: 16px; top: 16px;
      background: #fff; border: 2px solid var(--brand); color: var(--brand);
      border-radius: 50%; width: 36px; height: 36px;
      display: flex; justify-content: center; align-items: center;
      cursor: pointer; font-weight: bold; transition: all .2s;
    }
    .back-btn:hover { background: var(--brand); color:#fff; }

    /* Progress */
    .progress-wrap {
      width: 70%; max-width: 100%;
      background: #eee; border-radius: 10px;
      height: 12px; margin: 16px auto 6px auto;
      overflow: hidden;
    }
    .progress-bar {
      height: 100%; width: 0%; background: var(--brand);
      border-radius: 10px; transition: width .3s ease;
    }
    .progress-text {
      text-align: center; font-size: 0.9rem; color: #555;
      margin-bottom: 12px; font-weight: 600;
    }

    .dropdown-container { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
    .search-box { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid #ccc; font-size: 1rem; outline: none; }
    .dropdown-list {
      position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
      width: 100%; background: #fff; border: 1px solid #ddd; border-radius: 10px;
      box-shadow: 0 8px 20px rgba(0,0,0,.08);
      max-height: 220px; overflow-y: auto; z-index: 20; display: none;
    }
    .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
    .dropdown-item img { width: 36px; height: 36px; object-fit: contain; }
    .dropdown-item:hover { background: var(--brand); color: #fff; }

    /* Registration */
    #registration-screen { display: none; width: 100%; }
    form { display: flex; flex-direction: column; gap: 14px; text-align: left; width: 100%; max-width: 640px; margin: 0 auto; }
    .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
    .form-row input { flex: 1 1 240px; }
    input, select { padding: 10px; border-radius: 8px; border: 1px solid #ccc; font-size: 1rem; width: 100%; }

    .checkbox-group, .radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
    .checkbox-group label, .radio-group label {
      display: inline-flex; align-items: center; gap: 8px; background: #fafafa;
      padding: 8px 10px; border-radius: 10px; border: 1px solid #eee; cursor: pointer;
    }
    .checkbox-group input, .radio-group input { width: 18px; height: 18px; }

    /* Preview */
    #preview-screen { display: none; width: 100%; }
    #docPreview { width: 100%; height: 420px; border: 1px solid #ccc; border-radius: 10px; margin-top: 14px; background: #fff; padding: 16px; text-align: left; white-space: pre-wrap; }

    .popup { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); justify-content: center; align-items: center; z-index: 999; }
    .popup-content { background: #fff; padding: 26px; border-radius: 12px; max-width: 480px; width: 100%; text-align: center; }
    .popup-content h2 { color: var(--brand); margin-bottom: 10px; }
    .close-btn { margin-top: 12px; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 9px; border: none; cursor: pointer; }
 