:root{
      --bg:#f6f8fc;
      --card:#ffffff;
      --text:#1f2937;
      --muted:#6b7280;
      --primary:#2563eb;
      --primary-600:#1d4ed8;
      --border:#e5e7eb;
      --danger:#dc2626;
      --shadow:0 10px 30px rgba(17,24,39,.08);
      --radius:16px;
  }
  
  *{ box-sizing:border-box; }
  
  body{
      margin:0;
      font-family: "Vazirmatn", Tahoma, sans-serif;
      background:
          radial-gradient(1200px 500px at 100% -10%, #dbeafe 0%, transparent 60%),
          radial-gradient(1000px 500px at -10% 0%, #e0e7ff 0%, transparent 55%),
          var(--bg);
      color:var(--text);
      line-height:1.9;
  }
  
  .container{
      max-width: 980px;
      margin: 36px auto;
      padding: 0 16px;
  }
  
  .page-header{
      background: linear-gradient(135deg, #1d4ed8, #2563eb 45%, #3b82f6);
      color:#fff;
      border-radius: var(--radius);
      padding: 26px 22px;
      box-shadow: var(--shadow);
      margin-bottom: 20px;
  }
  
  .page-header h1{
      margin:0 0 6px;
      font-size: 1.5rem;
      font-weight: 800;
  }
  
  .page-header p{
      margin:0;
      opacity:.95;
      font-size:.95rem;
  }
  
  .card{
      background: var(--card);
      border:1px solid #eef2ff;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow:hidden;
  }
  
  form{
      padding: 18px;
  }
  
  fieldset{
      margin: 0 0 18px;
      padding: 14px;
      border:1px solid var(--border);
      border-radius: 14px;
      background:#fff;
  }
  
  legend{
      padding: 0 10px;
      font-weight: 800;
      color:#111827;
      font-size: .98rem;
  }
  
  /* گرید فیلدها */
  .grid{
      display:grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap:14px;
  }
  
  .field{
      display:flex;
      flex-direction:column;
      gap:6px;
  }
  
  .field label{
      font-size:.9rem;
      color:#374151;
      font-weight:600;
  }
  
  input, select, textarea{
      width:100%;
      border:1px solid var(--border);
      background:#fff;
      color:var(--text);
      border-radius: 10px;
      padding: 10px 12px;
      font-size: .95rem;
      outline:none;
      transition: .2s border-color, .2s box-shadow, .2s background;
  }
  
  textarea{
      min-height: 96px;
      resize: vertical;
  }
  
  input:focus, select:focus, textarea:focus{
      border-color:#93c5fd;
      box-shadow:0 0 0 4px rgba(37,99,235,.14);
      background:#fcfdff;
  }
  
  .helptext{
      color:var(--muted);
      font-size:.8rem;
      margin-top:2px;
  }
  
  .errorlist{
      list-style:none;
      margin:4px 0 0;
      padding:0;
      color:var(--danger);
      font-size:.85rem;
      font-weight:600;
  }
  
  .non-field-errors{
      margin-bottom:10px;
      padding:10px 12px;
      border:1px solid #fecaca;
      background:#fef2f2;
      color:#991b1b;
      border-radius:10px;
      font-size:.9rem;
  }
  
  /* فرم‌ست */
  .formset-wrap{
      display:grid;
      gap:10px;
  }
  
  .formset-item{
      border:1px dashed #c7d2fe;
      background: #f8faff;
      border-radius:12px;
      padding:12px;
  }
  
  .section-actions{
      margin-top:10px;
  }
  
  .btn{
      border:none;
      border-radius:10px;
      padding:10px 14px;
      font-size:.92rem;
      font-weight:700;
      cursor:pointer;
      transition:.2s transform, .2s box-shadow, .2s background;
  }
  
  .btn:active{
      transform: translateY(1px);
  }
  
  .btn-add{
      background:#eef2ff;
      color:#1e40af;
      border:1px solid #c7d2fe;
  }
  
  .btn-add:hover{
      background:#e0e7ff;
      box-shadow:0 6px 16px rgba(30,64,175,.12);
  }
  
  .submit-bar{
      display:flex;
      justify-content:flex-end;
      margin-top:18px;
  }
  
  .btn-submit{
      background: linear-gradient(135deg,var(--primary),var(--primary-600));
      color:#fff;
      padding:11px 20px;
      min-width: 160px;
      box-shadow:0 10px 20px rgba(37,99,235,.25);
  }
  
  .btn-submit:hover{
      filter: brightness(1.03);
  }
  
  @media (max-width: 860px){
      .grid{ grid-template-columns: 1fr; }
      form{ padding:14px; }
      .page-header h1{ font-size:1.25rem; }
  }
.employment-page .employment-options { margin: 0; }
.employment-options > div { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.employment-page input[type="checkbox"] { width: auto; margin-inline-end: .25rem; }
.employment-page .required-label { font-size: .75rem; color: #9f1239; }
.employment-page .employment-error { color: #9f1239; font-weight: bold; }
.employment-page .employment-extra-skills { margin-top: 1rem; }
.employment-page .employment-cert { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .employment-page .employment-cert { grid-template-columns: minmax(0, 1fr); }
}
