:root {
  --bg-cream: #f4f1ea;
  --brand-brown: #5d4037;
  --brand-brown-dark: #3e2723;
  --brand-gold: #bcaaa4;
  --brand-gold-dark: #8d6e63;
  --card-bg: #ffffff;
  --border-color: #d7ccc8;
  --text-main: #202020;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: 'Tajawal', sans-serif; 
}

body { 
  background-color: var(--bg-cream); 
  color: var(--text-main); 
  direction: rtl; 
  text-align: right; 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
}

/* الهيدر والخطوات */
header { 
  position: relative;
  background: var(--card-bg); 
  border-bottom: 4px solid var(--brand-brown); 
  padding: 1.5rem 2rem; 
  text-align: center; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.return-home-button {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 1;
  padding: 0.7rem 1rem;
  border: 2px solid var(--brand-brown);
  border-radius: 8px;
  background: var(--brand-brown);
  color: var(--bg-cream);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.return-home-button:hover {
  background: var(--brand-brown-dark);
  border-color: var(--brand-brown-dark);
  transform: translateY(-1px);
}

.return-home-button:focus-visible {
  outline: 3px solid var(--brand-gold-dark);
  outline-offset: 3px;
}

.header-content { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 0.8rem; 
  cursor: pointer; 
}

.logo-img { 
  max-height: 110px; 
  width: auto; 
  object-fit: contain; 
}

.brand-title { 
  font-size: 1.6rem; 
  font-weight: 800; 
  color: var(--brand-brown-dark); 
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05); 
}

.wizard-bar { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  background: var(--card-bg); 
  padding: 1.2rem; 
  border-bottom: 1px solid var(--border-color); 
  gap: 2rem; 
  flex-wrap: wrap; 
}

.step { 
  font-weight: 600; 
  color: #b0bec5; 
  font-size: 1rem; 
  transition: all 0.3s; 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
}

.step.active { 
  color: var(--brand-brown-dark); 
  font-weight: 800; 
  border-bottom: 3px solid var(--brand-brown); 
  padding-bottom: 5px; 
}

.step-num { 
  background: #eceff1; 
  color: #78909c; 
  width: 24px; 
  height: 24px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 0.85rem; 
}

.step.active .step-num { 
  background: var(--brand-brown); 
  color: #fff; 
}

/* الحاوية والبطاقات */
.container { 
  max-width: 900px; 
  width: 95%; 
  margin: 2.5rem auto; 
  flex: 1; 
}

.card { 
  background: var(--card-bg); 
  border-radius: 16px; 
  border: 1px solid var(--border-color); 
  padding: 2.5rem; 
  box-shadow: 0 10px 30px rgba(93, 64, 55, 0.08); 
  animation: fadeIn 0.4s ease-out; 
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(10px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.card-title { 
  font-size: 1.5rem; 
  font-weight: 800; 
  color: var(--brand-brown-dark); 
  margin-bottom: 1.5rem; 
  border-right: 5px solid var(--brand-brown); 
  padding-right: 15px; 
  display: flex; 
}

.step-desc { 
  margin-bottom: 2rem; 
  color: #666; 
  font-size: 1.05rem; 
}

/* بطاقات الخدمات والنماذج */
.services-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem; 
}

.service-card { 
  background: var(--bg-cream); 
  border: 2px solid transparent; 
  border-radius: 12px; 
  padding: 3.25rem 1.5rem 2rem; 
  text-align: center; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  position: relative; 
  overflow: hidden; 
}

.service-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; left: 0; right: 0; 
  height: 4px; 
  background: var(--border-color); 
  transition: all 0.3s ease; 
}

.service-card:hover { 
  border-color: var(--brand-brown); 
  background: #ffffff; 
  transform: translateY(-5px); 
  box-shadow: 0 10px 20px rgba(93, 64, 55, 0.12); 
}

.service-card:hover::before { 
  background: var(--brand-brown); 
}

.service-card h3 { 
  color: var(--brand-brown-dark); 
  font-size: 1.4rem; 
  font-weight: 800; 
  margin-bottom: 0.8rem; 
}

.service-card p { 
  color: #5d4037; 
  font-size: 1rem; 
  line-height: 1.6; 
}

.service-card-icon {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(93, 64, 55, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-brown);
  pointer-events: none;
}

.service-card-icon svg {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.service-card-icon-bottom-left svg {
  width: 2.1rem;
  height: 2.1rem;
}

.service-card-icon-top-left {
  top: 0.65rem;
  left: 0.65rem;
}

.service-card-icon-top-right {
  top: 0.65rem;
  right: 0.65rem;
}

.service-card-icon-bottom-left {
  bottom: 0.65rem;
  left: 0.65rem;
}

.service-card-icon-bottom-right {
  bottom: 0.65rem;
  right: 0.65rem;
}

.service-card-illustrated {
  padding-bottom: 3.25rem;
}

.terms-page-link {
  margin-top: 1.25rem;
  text-align: center;
}

.terms-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-brown-dark);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline;
  cursor: pointer;
}

.terms-intro {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
}

.terms-list {
  list-style: none;
  padding-right: 0;
  margin: 0;
  line-height: 1.8;
}

.terms-list li {
  list-style: none;
  padding-right: 0;
  margin-bottom: 1.25rem;
}

.terms-list h3 {
  color: var(--brand-brown-dark);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.terms-list p {
  color: #555;
}

.terms-back {
  max-width: 320px;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.form-section-title { 
  font-size: 1.15rem; 
  color: var(--brand-brown); 
  font-weight: 800; 
  margin: 1.8rem 0 1rem 0; 
  padding-bottom: 0.5rem; 
  border-bottom: 2px dashed var(--border-color); 
}

.form-group { margin-bottom: 1.2rem; }

.form-group label { 
  display: block; 
  margin-bottom: 0.5rem; 
  font-weight: 700; 
  font-size: 1rem; 
  color: var(--brand-brown-dark); 
}

.description-required-note {
  display: inline-block;
  color: #c62828;
  animation: description-note-pulse 1.2s ease-in-out infinite;
}

@keyframes description-note-pulse {
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .description-required-note {
    animation: none;
  }
}

.form-control { 
  width: 100%; 
  padding: 0.9rem 1rem; 
  border: 2px solid var(--border-color); 
  border-radius: 8px; 
  font-size: 1rem; 
  background: #FAFAFA; 
  transition: all 0.3s; 
  font-family: inherit; 
  direction: rtl;
  text-align: right;
}

.form-control:focus { 
  outline: none; 
  border-color: var(--brand-brown); 
  background: #FFFFFF; 
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.1); 
}

.contract-description {
  min-height: 8rem;
  resize: vertical;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }

/* الأزرار */
.btn { 
  background: var(--brand-brown); 
  color: #FFFFFF; 
  border: none; 
  padding: 1rem 2rem; 
  font-size: 1.15rem; 
  font-weight: 800; 
  border-radius: 8px; 
  cursor: pointer; 
  width: 100%; 
  margin-top: 1.5rem; 
  transition: all 0.3s; 
  box-shadow: 0 4px 15px rgba(93, 64, 55, 0.25); 
}

.btn:hover { 
  background: var(--brand-brown-dark); 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(93, 64, 55, 0.3); 
}

.btn-pay { 
  background-color: #004d40; 
  box-shadow: 0 4px 15px rgba(0,77,64,0.3); 
}

.btn-download { 
  background: #2e7d32; 
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.25); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  text-decoration: none; 
}

.btn-download:hover { background: #1b5e20; }

.hidden { display: none !important; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.border-none { border: none; }
.fee-text { margin: 1.5rem 0; font-size: 1.2rem; color: #5d4037; }
.fee-text strong { color: var(--brand-brown-dark); font-size: 1.5rem; }
.payment-box { max-width: 350px; margin: 2rem auto; }
.payment-note { margin-top: 15px; font-size: 0.9rem; color: #888; }
.success-icon { font-size: 4rem; color: #2e7d32; margin-bottom: 10px; }
.success-title { color: #2e7d32; border: none; justify-content: center; }
.success-desc { margin: 1.5rem 0; color: #555; font-size: 1.1rem; line-height: 1.6; }

/* الشاشة الضبابية للتحميل */
.loader-overlay { 
  position: fixed; 
  inset: 0; 
  background: #ffffff; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  z-index: 1000; 
}

.spinner { 
  border: 5px solid #f3f3f3; 
  border-top: 5px solid var(--brand-brown); 
  border-radius: 50%; 
  width: 50px; 
  height: 50px; 
  animation: spin 1s linear infinite; 
  margin-bottom: 15px; 
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ================= ================= ================= */
/* تنسيق مستند PDF والطباعة الرسمية الصارمة */
/* ================= ================= ================= */

.pdf-render-container { 
  position: fixed; 
  top: 0; 
  left: -9999px; 
  right: auto; 
  width: 210mm; 
}

#pdf-template {
  width: 210mm;
  min-width: 210mm;
  max-width: 210mm;
  position: fixed;
  top: 0;
  left: -10000px;
  background: #ffffff;
  color: #202020;
  direction: rtl;
  text-align: right;
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-weight: 400;
}

.pdf-page {
  width: 210mm;
  height: 296.8mm;
  padding: 9mm;
  box-sizing: border-box;
  background: #ffffff;
  direction: rtl;
}

#pdf-template > .pdf-page:only-child .page-number {
  display: none;
}

.doc-outer-border { 
  width: 100%; 
  height: 100%; 
  padding: 2px; 
  box-sizing: border-box; 
  border: 2px solid #8d7448;
}

.doc-inner-border { 
  width: 100%; 
  height: 100%; 
  padding: 7mm 9mm 5mm; 
  box-sizing: border-box; 
  border: 1px solid #d6c9a7;
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
}

.doc-header { 
  display: flex;
  justify-content: space-between;
  align-items: center; 
  direction: rtl; 
  gap: 3mm; 
  text-align: center; 
  border-bottom: 2px solid #263b36;
  padding-bottom: 3.5mm;
  margin-bottom: 4mm;
  position: relative; 
}

.doc-header::after { 
  content: ''; 
  position: absolute; 
  bottom: -4px;
  right: 15%; 
  left: 15%; 
  border-bottom: 1px solid #8d7448; 
}

.doc-header img { 
  order: 3;
  display: block; 
  max-height: 29mm;
  max-width: 36mm;
  width: auto; 
  object-fit: contain; 
  margin: 0 auto; 
}

.doc-title-block {
  order: 2;
  flex: 1;
  direction: rtl;
  text-align: center;
}

.doc-header .office-name { 
  order: 1;
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
  direction: rtl; 
  text-align: right; 
  color: #263b36; 
  line-height: 1.4; 
  min-width: 34mm;
}

.doc-header .office-name strong { 
  font-size: 17pt; 
  font-weight: 700; 
  font-family: 'Tajawal', sans-serif; 
}

.doc-header .office-name span { 
  font-size: 10pt; 
  font-weight: 700; 
  font-family: 'Tajawal', sans-serif; 
}

.doc-header .doc-title { 
  color: #263b36; 
  font-size: 22pt; 
  font-weight: bold; 
  font-family: 'Tajawal', sans-serif; 
}

.doc-page-label { 
  color: #806d48; 
  font-size: 9pt;
  margin-top: 1.5mm;
  font-family: 'Tajawal', sans-serif; 
}

/* تنسيق متناسق لبنود العقد يمنع تداخل الرموز */
.doc-body { 
  direction: rtl; 
  unicode-bidi: isolate; 
  font-size: 13pt;
  line-height: 1.7;
  text-align: right;
  text-align-last: right;
  word-spacing: normal;
  letter-spacing: normal;
  overflow-wrap: anywhere;
  color: #111111; 
}

.contract-intro {
  margin-bottom: 3mm;
  font-size: 13pt;
}

.parties-table { 
  width: 100%; 
  margin: 1mm 0 3mm;
  border-collapse: collapse; 
  direction: rtl; 
  table-layout: fixed;
}

.parties-table td { 
  padding: 2mm 1mm;
  vertical-align: top; 
  border-bottom: 1px solid #ddd5c5; 
  font-size: 12.5pt;
  overflow-wrap: anywhere;
}

.parties-table td.party-role { width: 25%; }
.parties-table td.party-name { width: 37%; }
.parties-table td.id-col { width: 38%; }

.party-role,
.party-name,
.id-col {
  text-align: right;
  direction: rtl;
}

.party-role strong,
.party-name strong,
.id-col strong {
  display: block;
  color: #263b36;
  font-size: 10pt;
  font-family: 'Tajawal', sans-serif;
  margin-bottom: 1mm;
}

.party-role span,
.party-name span {
  display: block;
}

.parties-table td.id-col {
  white-space: nowrap;
}

.num-span {
  direction: ltr;
  display: inline-block;
  font-family: 'Tajawal', sans-serif;
  font-weight: bold;
  margin-inline-start: 2mm;
}

.preamble {
  margin: 2mm 0 3mm;
  font-weight: bold;
  color: #263b36;
}

.clauses-heading { 
  color: #263b36; 
  font-weight: bold; 
  font-size: 14pt; 
  margin-bottom: 3mm; 
  padding-bottom: 1mm; 
  border-bottom: 1px solid #c6b792; 
  font-family: 'Tajawal', sans-serif; 
}

.clauses-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5mm;
  direction: rtl;
}

.clause-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3mm;
  direction: rtl;
  text-align: right;
}

.clause-num {
  font-weight: bold;
  color: #263b36;
  font-size: 12.5pt;
  min-width: 11mm;
  flex-shrink: 0;
  font-family: 'Tajawal', sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
}

.clause-content {
  flex: 1;
  min-width: 0;
}

.clause-title {
  margin: 0 0 0.5mm;
}

.clause-body {
  margin: 0;
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
  text-align-last: right;
  word-spacing: normal;
  letter-spacing: normal;
}

.clause-title strong {
  color: #263b36;
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
}

.clause-period {
  display: inline-block;
  direction: rtl;
  unicode-bidi: isolate;
  margin-inline-start: 0.5mm;
  font-weight: 800;
  font-size: 15pt;
  line-height: 1;
}

.pdf-template--sale .doc-body {
  font-size: 13pt;
  line-height: 1.7;
}

.pdf-template--sale .contract-intro {
  margin-bottom: 2mm;
  font-size: 13pt;
}

.pdf-template--sale .parties-table {
  margin-bottom: 2mm;
}

.pdf-template--sale .parties-table td {
  padding: 1mm;
  font-size: 12.5pt;
}

.pdf-template--sale .preamble {
  margin: 1.5mm 0 2mm;
}

.pdf-template--sale .clauses-wrapper {
  gap: 1.3mm;
}

.pdf-template--sale .clause-num,
.pdf-template--sale .clause-body {
  font-size: 13pt;
}

.pdf-template--sale .clause-num {
  font-size: 12.5pt;
}

.pdf-template--sale .contract-closing {
  margin-top: 1.5mm;
  font-size: 12.5pt;
  line-height: 1.65;
}

.pdf-template--sale .doc-signatures {
  gap: 5mm;
  padding-top: 2mm;
  margin-bottom: 2mm;
  font-size: 11.5pt;
}

.pdf-template--sale .signature-party > strong {
  font-size: 12pt;
}

.pdf-template--sale .signature-line {
  margin-top: 5mm;
}

.pdf-template--new-contract .doc-body {
  font-size: 9.5pt;
  line-height: 1.25;
}

.pdf-template--new-contract .new-contract-intro,
.pdf-template--new-contract .new-contract-preamble {
  margin: 0 0 1mm;
}

.pdf-template--new-contract .new-contract-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2mm;
  margin: 0 0 1mm;
}

.pdf-template--new-contract .new-contract-parties section {
  border: 1px solid #ddd5c5;
  padding: 1.5mm 2mm;
  overflow-wrap: anywhere;
}

.pdf-template--new-contract .new-contract-parties h3 {
  margin: 0 0 1mm;
  color: #263b36;
  font-family: 'Tajawal', sans-serif;
  font-size: 10pt;
}

.pdf-template--new-contract .new-contract-parties p {
  margin: 0;
  line-height: 1.3;
}

.pdf-template--new-contract .clauses-wrapper {
  gap: 1mm;
}

.pdf-template--new-contract .clause-num {
  font-size: 9.5pt;
  min-width: 8mm;
}

.pdf-template--new-contract .clause-title strong,
.pdf-template--new-contract .clause-body {
  font-size: 9.5pt;
}

.pdf-template--new-contract .contract-closing {
  margin-top: 2mm;
  font-size: 9.5pt;
}

.pdf-template--new-contract .doc-signatures {
  gap: 5mm;
  padding-top: 2mm;
  margin-bottom: 2mm;
}

.contract-closing {
  margin-top: 3mm;
  font-size: 12.5pt;
  line-height: 1.65;
  text-align: right;
}

/* التواقيع والتذييل */
.doc-footer-wrapper { margin-top: 3mm; }

.doc-signatures { 
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  direction: rtl;
  gap: 8mm;
  border-top: 1px solid #c6b792;
  padding-top: 3mm;
  margin-bottom: 3mm;
  font-size: 11.5pt;
}

.signature-party { 
  min-width: 0;
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
}

.signature-party > strong { 
  color: #263b36; 
  font-size: 12pt; 
  font-family: 'Tajawal', sans-serif; 
}

.role-span { 
  color: #555; 
  font-size: 10.5pt; 
  font-weight: normal; 
}

.signature-line { 
  width: 85%;
  border-bottom: 1px solid #777;
  margin-top: 8mm;
}

.signature-label { 
  color: #555; 
  font-size: 10pt; 
  margin-top: 2mm; 
  font-family: 'Tajawal', sans-serif; 
}

.doc-footer { 
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2mm 4mm;
  border-top: 1px solid #8d7448;
  padding-top: 2mm;
  color: #4c4c4c; 
  text-align: right; 
  font-size: 8.5pt;
  line-height: 1.45;
  font-family: 'Tajawal', sans-serif; 
}

.doc-footer strong { color: #263b36; }

.doc-footer > div {
  grid-column: 1;
}

.pdf-contact-details {
  display: inline-flex;
  direction: ltr;
  column-gap: 7ch;
  white-space: nowrap;
}

.page-number { 
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8mm;
  height: 8mm;
  border: 1px solid #c6b792;
  border-radius: 50%;
  color: #263b36;
  font-size: 9pt;
  font-weight: bold; 
}

.pdf-template--employment .doc-body {
  font-size: 9.5pt;
  line-height: 1.25;
}

.pdf-template--employment .doc-title {
  display: flex;
  flex-direction: column;
  gap: 0.5mm;
  font-size: 15pt;
  line-height: 1.15;
}

.pdf-template--employment .doc-title span[dir="ltr"] {
  font-family: Arial, 'Times New Roman', sans-serif;
  font-size: 12pt;
}

.pdf-template--employment .doc-page-label {
  display: none;
}

.pdf-template--employment .employment-intro,
.pdf-template--employment .preamble {
  margin: 1mm 0 2mm;
}

.pdf-template--employment .bilingual-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  direction: ltr;
  gap: 1mm 5mm;
}

.pdf-template--employment .bilingual-pair > [dir="rtl"] {
  grid-column: 2;
}

.pdf-template--employment .bilingual-pair > [dir="ltr"] {
  grid-column: 1;
  direction: ltr;
  text-align: left;
  text-align-last: left;
  unicode-bidi: plaintext;
}

.pdf-template--employment .clauses-heading.bilingual-pair {
  align-items: center;
  gap: 1mm 5mm;
  margin: 0 0 1.2mm;
}

.pdf-template--employment .clauses-heading.bilingual-pair p {
  margin: 0;
}

.pdf-template--employment .clauses-heading.bilingual-pair > [dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.pdf-template--employment .clauses-heading.bilingual-pair > [dir="ltr"] {
  font-family: Arial, 'Times New Roman', sans-serif;
}

.pdf-template--employment .employment-intro p,
.pdf-template--employment .preamble p {
  margin: 0;
}

.pdf-template--employment .employment-parties {
  margin: 1mm 0 2mm;
  gap: 1mm 5mm;
}

.pdf-template--employment .employment-parties section {
  border: 1px solid #ddd5c5;
  padding: 1mm 1.5mm;
  overflow-wrap: anywhere;
}

.pdf-template--employment .employment-parties h3 {
  margin: 0 0 1mm;
  color: #263b36;
  font-family: 'Tajawal', sans-serif;
  font-size: 9pt;
}

.pdf-template--employment .employment-parties p {
  margin: 0;
  line-height: 1.2;
}

.pdf-template--employment .employment-parties section[dir="ltr"] {
  text-align: left;
  font-family: Arial, 'Times New Roman', sans-serif;
}

.pdf-template--employment .employment-parties bdi {
  unicode-bidi: isolate;
}

.pdf-template--employment .contract-closing {
  margin-top: 2mm;
  font-size: 9pt;
  line-height: 1.3;
}

.pdf-template--employment .clauses-wrapper {
  gap: 1.2mm;
}

.pdf-template--employment .clause-num {
  font-size: 8.5pt;
  min-width: 8mm;
}

.pdf-template--employment .clause-title strong {
  font-size: 9pt;
}

.pdf-template--employment .bilingual-clause-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  direction: ltr;
  gap: 0 5mm;
}

.pdf-template--employment .clause-side-ar {
  grid-column: 2;
  text-align: right;
  direction: rtl;
}

.pdf-template--employment .clause-side-en {
  grid-column: 1;
  text-align: left;
  direction: ltr;
  font-family: Arial, 'Times New Roman', sans-serif;
}

.pdf-template--employment .bilingual-clause .clause-title {
  margin: 0 0 0.5mm;
}

.pdf-template--employment .bilingual-clause .clause-body {
  font-size: 9pt;
  line-height: 1.25;
  text-align: inherit;
  text-align-last: inherit;
  overflow-wrap: anywhere;
}

.pdf-template--employment .clause-side-en .clause-title,
.pdf-template--employment .clause-side-en .clause-body {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
  text-align-last: left;
  font-family: Arial, 'Times New Roman', sans-serif;
}

.pdf-template--employment .english-clause-body {
  margin: 0;
}

@media (max-width: 768px) {
  .row, .row-3 { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 1.5rem; }
  .brand-title { font-size: 1.2rem; }
  .wizard-bar { gap: 1rem; }
  .step { font-size: 0.85rem; }
  .return-home-button {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
  }
  header { padding-top: 4.5rem; }
}