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

    :root {
      --teal:       #0d9488;
      --teal-light: #14b8a6;
      --teal-dark:  #0f766e;
      --teal-xl:    #ccfbf1;
      --ink:        #0f2027;
      --ink2:       #1e3a3a;
      --muted:      #64748b;
      --border:     #e2e8f0;
      --bg:         #f0fdfa;
      --error:      #ef4444;
      --success:    #10b981;
      --r:          14px;
    }

    body {
      margin: 0; padding: 0;
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--bg);
      color: var(--ink);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ── Page main ── */
    .page-main {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 32px 16px 48px;
    }

    /* ── Form card ── */
    .form-card {
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 8px 48px rgba(13,148,136,.14);
      padding: 40px 36px;
      width: 100%;
      max-width: 560px;
      position: relative;
      overflow: hidden;
      animation: fadeUp .45s ease both;
    }
    .form-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 4px;
      background: linear-gradient(90deg, var(--teal-dark), var(--teal-light), #06b6d4);
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @media (max-width: 600px) {
      .form-card { padding: 24px 16px; border-radius: 14px; }
      .page-main { padding: 16px 10px 40px; }
    }

    /* ── Header ── */
    .form-header { text-align: center; margin-bottom: 28px; }
    .form-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--teal-xl); color: var(--teal-dark);
      font-size: 11px; font-weight: 700; letter-spacing: .06em;
      text-transform: uppercase; padding: 4px 12px;
      border-radius: 20px; margin-bottom: 12px;
    }
    .form-title {
      font-family: 'Syne', sans-serif;
      font-size: 26px; font-weight: 800;
      color: var(--ink2); line-height: 1.2; margin-bottom: 6px;
    }
    .form-title span { color: var(--teal); }
    .form-sub { font-size: 13px; color: var(--muted); }

    /* ── Fields ── */
    .field { margin-bottom: 18px; }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    @media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

    .field label {
      display: block; font-size: 13px; font-weight: 600;
      color: var(--ink2); margin-bottom: 6px;
    }
    .field label .req { color: var(--error); margin-left: 2px; }

    .field input, .field select, .field textarea {
      width: 100%; padding: 11px 13px;
      border: 2px solid var(--border); border-radius: var(--r);
      font-family: 'DM Sans', sans-serif; font-size: 14px;
      color: var(--ink); background: #fafafa;
      transition: border-color .2s, box-shadow .2s, background .2s;
      outline: none;
    }
    .field input:focus, .field select:focus, .field textarea:focus {
      border-color: var(--teal-light);
      box-shadow: 0 0 0 4px rgba(20,184,166,.1);
      background: #fff;
    }
    .field textarea { resize: vertical; min-height: 88px; }

    /* ── Upload zone ── */
    .upload-zone {
      border: 2px dashed var(--border); border-radius: var(--r);
      padding: 28px 16px; text-align: center; cursor: pointer;
      background: #fafafa; position: relative; transition: all .2s;
    }
    .upload-zone:hover, .upload-zone.drag { border-color: var(--teal-light); background: #f0fdfa; }
    .upload-zone.has-files { border-color: var(--success); background: #f0fdf4; padding: 16px; }
    .upload-zone input[type="file"] {
      position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
    }
    .uz-icon  { font-size: 32px; margin-bottom: 8px; display: block; transition: transform .3s; }
    .upload-zone:hover .uz-icon { transform: translateY(-3px); }
    .uz-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink2); }
    .uz-sub   { font-size: 11px; color: var(--muted); margin-top: 3px; }

    /* ── Progress ── */
    .prog-wrap { margin-top: 12px; display: none; }
    .prog-wrap.show { display: block; }
    .prog-top  { display: flex; justify-content: space-between; margin-bottom: 5px; }
    .prog-label{ font-size: 12px; font-weight: 600; color: var(--ink2); }
    .prog-pct  { font-size: 12px; font-weight: 700; color: var(--teal); }
    .prog-track{ height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; }
    .prog-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--teal-dark), var(--teal-light));
      border-radius: 6px; transition: width .35s ease; width: 0%;
    }
    .prog-sub  { font-size: 11px; color: var(--muted); margin-top: 4px; }

    /* ── File pills ── */
    .file-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
    .pill {
      display: inline-flex; align-items: center; gap: 4px;
      background: #fff; border: 1px solid var(--border);
      border-radius: 20px; padding: 3px 9px;
      font-size: 11px; color: var(--ink2); transition: all .2s;
    }
    .pill.uploading { border-color: var(--teal-light); color: var(--teal-dark); }
    .pill.done      { border-color: var(--success); color: #065f46; background: #f0fdf4; }
    .pill.error     { border-color: var(--error);   color: #991b1b; background: #fef2f2; }
    .pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
    .uploading .pill-dot { background: var(--teal); animation: blink 1s infinite; }
    .done      .pill-dot { background: var(--success); }
    .error     .pill-dot { background: var(--error); }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

    /* ── Status msg ── */
    .status-msg {
      padding: 10px 13px; border-radius: 10px;
      font-size: 13px; font-weight: 500; margin-top: 6px; display: none;
    }
    .status-msg.show   { display: block; }
    .status-msg.error  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
    .status-msg.success{ background: #f0fdf4; color: #065f46; border: 1px solid #bbf7d0; }
    .status-msg.info   { background: #f0fdfa; color: var(--teal-dark); border: 1px solid #99f6e4; }

    /* ── Submit btn ── */
    .submit-btn {
      width: 100%; padding: 14px 20px; margin-top: 6px;
      background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
      color: #fff; border: none; border-radius: var(--r);
      font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700;
      cursor: pointer; transition: all .25s;
    }
    .submit-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(13,148,136,.32);
    }
    .submit-btn:disabled {
      background: linear-gradient(135deg, #94a3b8, #cbd5e1);
      cursor: not-allowed; transform: none; box-shadow: none;
    }
    .btn-note { font-size: 11px; font-weight: 400; opacity: .8; display: block; margin-top: 2px; }

    /* ── Processing overlay ── */
    .proc-overlay {
      position: fixed; inset: 0;
      background: rgba(15,32,39,.72);
      backdrop-filter: blur(5px);
      z-index: 9999;
      display: none; align-items: center; justify-content: center;
    }
    .proc-overlay.show { display: flex; }
    .proc-card {
      background: #fff; border-radius: 18px;
      padding: 36px 32px; text-align: center;
      max-width: 320px; width: 90%;
      box-shadow: 0 8px 48px rgba(0,0,0,.18);
    }
    .proc-spinner {
      width: 52px; height: 52px;
      border: 4px solid var(--teal-xl);
      border-top-color: var(--teal);
      border-radius: 50%;
      animation: spin .9s linear infinite;
      margin: 0 auto 18px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .proc-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--ink2); margin-bottom: 6px; }
    .proc-sub   { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
    .proc-track { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
    .proc-fill  { height: 100%; background: linear-gradient(90deg, var(--teal-dark), var(--teal-light)); border-radius: 6px; transition: width .6s ease; }
    .proc-step  { font-size: 12px; color: var(--muted); }

    /* ── Semester row ── */
    .sem-row { display: flex; gap: 8px; }
    .sem-row select { flex: 1; }
    .sem-other { width: 90px !important; flex-shrink: 0; }
    .hidden { display: none !important; }

    /* ── Footer ── */
    .site-footer {
      text-align: center; padding: 16px 20px;
      font-size: 14px; color: #555;
      border-top: 1px solid var(--border); background: #fff;
    }
    .site-footer .disclaimer {
      margin-top: 8px; font-size: 13px; color: #777; line-height: 1.5;
      max-width: 900px; margin-left: auto; margin-right: auto;
    }

        /* ✅ Upload zone click fix */
    .upload-zone {
      cursor: pointer;
      position: relative;
    }