
    :root {
      --bg: #f3f5f8;
      --card-bg: #ffffff;
      --primary: #1f3a5f;
      --primary-soft: #e7edf7;
      --accent: #27ae60;
      --border-soft: #dde3ec;
      --text-main: #2f3542;
      --muted: #7f8c8d;
      --danger: #e74c3c;
      --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
      --radius-lg: 14px;
      --radius-md: 10px;
      --radius-sm: 6px;
    }

    * {
      box-sizing: border-box;
      font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    body {
      margin: 0;
      padding: 24px;
      background: radial-gradient(circle at top, #eef3ff 0, #f8fafc 42%, #edf1f7 100%);
      color: var(--text-main);
    }

    .page {
      max-width: 1200px;
      margin: 0 auto;
    }

    .container {
      background: var(--card-bg);
      border-radius: 24px;
      box-shadow: var(--shadow-soft);
      overflow: hidden;
      border: 1px solid rgba(148, 163, 184, 0.25);
    }

    /* ---------- HEADER ---------- */
    .header {
      display: flex;
      gap: 24px;
      align-items: center;
      padding: 24px 28px;
      background: linear-gradient(135deg, #1f3a5f 0%, #314f7c 60%, #425c86 100%);
      color: #ffffff;
    }

    .header-text h1 {
      margin: 0 0 6px;
      font-size: 22px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .header-sub {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      font-size: 12px;
      opacity: 0.9;
    }

    .confidential-pill {
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(239, 68, 68, 0.12);
      border: 1px solid rgba(239, 68, 68, 0.7);
      color: #fee2e2;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 500;
    }

    /* ---------- UTIL ---------- */
    .hidden { display: none !important; } /* IMPORTANT: your code had this commented out */

    .no-print { } /* used in print css */

    /* ---------- INSTRUCTIONS + IMAGE UPLOAD ---------- */
    .instructions {
      background: #f9fafb;
      padding: 14px 24px;
      border-left: 4px solid #3b82f6;
      font-size: 13px;
      color: var(--muted);
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      align-items: stretch;
    }

    .instructions-text {
      flex: 1 1 520px;
      min-width: 0;
    }

    .top-row {
      display: grid;
      grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
      gap: 16px;
      align-items: start;
    }

    .top-fields {
      background: #fff;
      border: 1px solid rgba(203, 213, 225, 0.65);
      border-radius: var(--radius-lg);
      padding: 16px;
      display: grid;
      gap: 14px;
    }

    .photo-upload-card {
      width: 260px;
      max-width: 100%;
      min-height: 260px;
      background: #ffffff;
      border-radius: var(--radius-md);
      border: 1px dashed #cbd5f5;
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-self: stretch;
    }

    .photo-upload-title {
      font-size: 12px;
      font-weight: 600;
      color: #1f2933;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .photo-upload-drop {
      border-radius: var(--radius-sm);
      border: 1px dashed #9ca3af;
      padding: 10px;
      text-align: center;
      cursor: pointer;
      background: #f9fafb;
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 12px;
      align-items: center;
      justify-content: center;
    }

    .photo-upload-drop span {
      font-weight: 500;
      color: #111827;
    }

    .photo-input { display: none; }

    .photo-preview-wrapper {
      margin-top: 6px;
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 1px solid #e5e7eb;
      background: #f3f4f6;
    }

    .photo-preview-wrapper img {
      display: block;
      width: 100%;
      height: 250px;
      object-fit: cover;
    }

    /* ---------- FORM LAYOUT ---------- */
    form {
      padding: 18px 24px 26px;
      display: grid;
      gap: 22px;
    }

    .section {
      background: #fdfefe;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-soft);
      padding: 20px 18px 18px;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
      gap: 8px;
    }

    .section-title {
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .section-tag {
      font-size: 11px;
      padding: 3px 9px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .section-body {
      display: grid;
      gap: 14px;
    }

    /* ---------- FORM ELEMENTS ---------- */
    .form-group { display: grid; gap: 6px; }

    label {
      font-size: 13px;
      font-weight: 500;
      color: #4b5563;
    }

    .label-sub {
      font-size: 12px;
      color: var(--muted);
      font-weight: 400;
    }

    input[type="text"],
    input[type="date"],
    input[type="tel"],
    input[type="number"],
    input[type="month"],
    textarea,
    select {
      width: 100%;
      padding: 9px 11px;
      border-radius: 9px;
      border: 1px solid #d0d7e2;
      font-size: 13px;
      outline: none;
      background: #f9fafb;
      transition: 0.16s ease;
    }

    input:focus,
    textarea:focus,
    select:focus {
      border-color: #2563eb;
      background: #ffffff;
      box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
    }

    textarea { resize: vertical; min-height: 70px; }

    /* ---------- GRID HELPERS ---------- */
    .grid-2 {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    /* ---------- TABLES ---------- */
    .table-responsive {
      overflow-x: auto;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-soft);
      background: #f9fafb;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
      min-width: 600px;
    }

    thead { background: #e5edfb; }

    th, td {
      padding: 8px 9px;
      border-bottom: 1px solid #e3e7f0;
      text-align: left;
      vertical-align: top;
    }

    th {
      font-weight: 600;
      color: #475569;
      font-size: 12px;
    }

    tbody tr:nth-child(even) { background: #f8fafc; }
    tbody tr:last-child td { border-bottom: none; }

    td input, td select {
      font-size: 12px;
      padding: 7px 8px;
      border-radius: 7px;
      background: #ffffff;
    }

    .lang-table td { text-align: center; }
    .lang-table td:first-child { text-align: left; font-weight: 500; }

    /* ---------- FOOTER BUTTONS ---------- */
    .footer-buttons {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .btn {
      border: none;
      border-radius: 999px;
      padding: 10px 22px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      transition: 0.18s ease;
      white-space: nowrap;
    }

    .btn-print { background: #e5e7eb; color: #111827; }
    .btn-print:hover { background: #d1d5db; }

    .btn-submit {
      background: var(--accent);
      color: #ffffff;
      box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
    }
    .btn-submit:hover {
      background: #1f9a54;
      transform: translateY(-1px);
      box-shadow: 0 14px 32px rgba(16, 185, 129, 0.45);
    }

    /* ================= PRINT (PDF) ================= */
    @media print {
      /* ensure backgrounds and colors print */
      * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      body { background: #fff !important; padding: 0 !important; }
      .container { box-shadow: none !important; border: none !important; border-radius: 0 !important; }

      /* Hide buttons and upload click area (but keep image preview) */
      .no-print,
      .photo-upload-drop,
      input[type="file"] {
        display: none !important;
      }

      /* make tables fit nicer */
      table { min-width: 0 !important; }

      /* This is key: we show "print-value" text and hide real inputs during print */
      .print-value {
        display: block !important;
        border-bottom: 1px solid #cbd5e1;
        padding: 2px 0 3px;
        font-size: 12.5px;
        color: #000;
        min-height: 16px;
        white-space: pre-wrap;
      }

      .print-hide {
        display: none !important;
      }

      /* Keep photo visible and sized */
      .photo-upload-card {
        border: 1px solid #cbd5e1 !important;
      }
      .photo-preview-wrapper img {
        height: 240px !important;
      }
    }

    /* ---------- RESPONSIVE ---------- */
    @media (max-width: 900px) {
      body { padding: 12px; }
      .header { flex-direction: column; align-items: flex-start; }
      .top-row { grid-template-columns: 1fr; }
      .photo-upload-card { width: 100%; }
    }

    @media (max-width: 768px) {
      form { padding: 18px 14px 20px; }
      .header-text h1 { font-size: 18px; letter-spacing: 0.06em; }
      .header-sub { font-size: 11px; }
      .section { padding: 16px 12px 14px; }
      .grid-2, .grid-3 { grid-template-columns: 1fr; }
      .section-header { flex-direction: column; align-items: flex-start; }
      .instructions { padding: 10px 14px; font-size: 12px; }
    }

    @media (max-width: 480px) {
      body { padding: 8px; }
      .header { padding: 16px 14px; gap: 12px; }
      .header-text h1 { font-size: 16px; }
      label { font-size: 12px; }
      input, textarea, select { font-size: 12px; padding: 8px 9px; }
      table { min-width: 520px; }
    }
.btn {
  justify-content: center;
  text-align: center;
}