:root {
  --teal: #0D9488;
  --teal-dark: #0b7d73;
  --gold: #F59E0B;
  --ink: #111827;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --bg-soft: #F0FDFA;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Syne', 'Inter', sans-serif; margin: 0 0 .5em; }
a { color: var(--teal); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 50;
}
.logo { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; color: var(--teal); }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.lang-toggle {
  border: 1px solid var(--teal); color: var(--teal); background: none;
  padding: 6px 14px; border-radius: 20px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 16px; border-bottom: 1px solid #eee; display: none; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-soft), #fff);
  padding: 70px 20px 60px; text-align: center;
}
.hero h1 { font-size: clamp(28px, 5vw, 46px); max-width: 800px; margin: 0 auto 16px; }
.hero p.tagline { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; border: none;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-outline { background: none; border: 2px solid var(--teal); color: var(--teal); }

/* Sections */
section { padding: 60px 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; }
.section-title p { color: var(--muted); }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.price-card {
  border: 2px solid #eee; border-radius: 16px; padding: 28px; text-align: center; transition: .2s;
}
.price-card.featured { border-color: var(--gold); position: relative; }
.price-card.featured::before {
  content: "Most Popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 12px; font-weight: 700;
}
.price-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-4px); }
.price { font-size: 30px; font-weight: 800; color: var(--teal); margin: 12px 0; }
.price-card ul { list-style: none; padding: 0; text-align: left; margin: 20px 0; }
.price-card li { padding: 6px 0; }
.price-card li::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.step { text-align: center; }
.step .num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 14px; font-size: 20px;
}

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.testimonial { background: var(--bg-soft); border-radius: 12px; padding: 24px; }
.testimonial .name { font-weight: 700; margin-top: 12px; color: var(--teal); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }

/* Form */
.form-card { max-width: 640px; margin: 0 auto; background: var(--bg-soft); border-radius: 16px; padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 15px;
}
.form-row.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-row.checkbox input { width: auto; margin-top: 4px; }
#form-status { margin-top: 16px; font-weight: 600; }

/* Legal pages */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-top: 28px; }
.legal-content p { margin-top: 10px; line-height: 1.7; }

/* Footer */
footer { background: var(--ink); color: #ccc; padding: 40px 20px; text-align: center; }
footer a { color: var(--gold); }
footer p + p { margin-top: 8px; }

/* CV upload field */
.form-row.file-upload input[type="file"] { padding: 8px; background: #fff; }
.form-row .field-hint { display: block; font-size: 12px; color: #888; margin-top: 4px; font-weight: 400; }
.package-fields { display: none; border-left: 3px solid var(--gold); padding-left: 14px; margin-bottom: 18px; }
.package-fields.active { display: block; }
[dir="rtl"] .package-fields { border-left: none; border-right: 3px solid var(--gold); padding-left: 0; padding-right: 14px; }

/* Fixed single-package display (order.html Step 1) */
.package-display {
  background: #fff; border: 1.5px solid #d1fae5; border-radius: 10px; padding: 14px 16px;
}
.package-display strong { display: block; font-size: 16px; color: var(--ink); }
.package-display span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.package-price-badge {
  display: inline-block !important; margin-top: 8px !important; background: var(--bg-soft); color: var(--teal-dark);
  font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 12px;
}

/* Repeat-user payment gate (order.html verify step) */
.payment-gate {
  background: #fff; border: 1.5px solid #fde68a; border-radius: 12px; padding: 24px; text-align: center;
}
.payment-gate h3 { color: #92400e; margin-top: 0; }
.payment-gate p { color: var(--muted); }
.payment-gate .btn { margin-top: 10px; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; background: #25D366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); font-size: 28px; z-index: 100; text-decoration: none;
}
[dir="rtl"] .whatsapp-float { right: auto; left: 22px; }

[dir="rtl"] body { font-family: 'Tajawal', 'Inter', sans-serif; }
[dir="rtl"] .price-card ul { text-align: right; }

/* Progressive form: step indicator + chip multi-select */
.step-indicator {
  background: #fff; border: 1px solid #d1fae5; color: var(--teal);
  padding: 8px 14px; border-radius: 20px; font-weight: 700; font-size: 13px;
  display: inline-block; margin-bottom: 20px;
}
.multi-select-row { background: #fff; border: 1px solid #d1fae5; border-radius: 12px; padding: 16px; }
.multi-select-row .chip-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.chip {
  background: var(--bg-soft); border: 1.5px solid #99e6dd; color: var(--teal-dark);
  padding: 9px 16px; border-radius: 24px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
  font-family: inherit; box-shadow: 0 1px 2px rgba(17,24,39,.04);
}
.chip:hover { border-color: var(--teal); background: #d9f9f4; transform: translateY(-1px); }
.chip.on {
  background: var(--teal); color: #fff; border-color: var(--teal-dark);
  box-shadow: 0 4px 12px rgba(13,148,136,.35);
}
.chip.on:hover { background: var(--teal-dark); }
.chip:active { transform: translateY(0); }
.multi-select-row .other-input { margin-top: 4px; }
.cv-upload-note {
  background: #d1fae5; color: #065f46; padding: 12px 14px;
  border-radius: 8px; margin-bottom: 20px; font-weight: 500;
}

/* Review page */
.review-loading { text-align: center; padding: 60px 20px; }
.spinner {
  width: 42px; height: 42px; border: 4px solid #e5e7eb; border-top-color: var(--teal);
  border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.review-error { text-align: center; padding: 40px 20px; color: #b91c1c; }
.edits-remaining { color: var(--muted); font-size: 14px; margin-top: 8px; }

.review-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb; padding-bottom: 0;
}
.review-tab {
  background: none; border: none; padding: 10px 18px; font-weight: 600;
  cursor: pointer; color: var(--muted); font-size: 15px; border-bottom: 3px solid transparent;
  font-family: inherit; transition: .15s;
}
.review-tab:hover { color: var(--ink); }
.review-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.review-panel { display: none; }
.review-panel.active { display: block; }

.cv-preview {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 36px; box-shadow: 0 2px 8px rgba(0,0,0,.04); line-height: 1.6;
}
.cv-preview header h2 { margin: 0; font-size: 26px; }
.cv-preview .cv-title { color: var(--teal); font-weight: 600; margin: 4px 0; }
.cv-preview .cv-contact { color: var(--muted); font-size: 14px; margin: 4px 0 24px; }
.cv-preview section { margin-top: 22px; }
.cv-preview section h3 {
  color: var(--teal); font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb; padding-bottom: 6px; margin-bottom: 10px;
}
.cv-preview ul { padding-left: 20px; margin: 6px 0; }
[dir="rtl"] .cv-preview ul { padding-left: 0; padding-right: 20px; }
.cv-job { margin-bottom: 16px; }
.cv-job-header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cv-dates { color: var(--muted); font-size: 13px; font-style: italic; }
.jobs-text {
  white-space: pre-wrap; font-family: 'Inter', sans-serif; font-size: 14px; margin: 0;
}
[dir="rtl"] .jobs-text { font-family: 'Tajawal', 'Inter', sans-serif; }

.review-actions {
  display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid #e5e7eb;
}
#action-status { margin-top: 14px; font-weight: 600; text-align: right; }
[dir="rtl"] #action-status { text-align: left; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000;
}
.modal-card {
  background: #fff; border-radius: 16px; padding: 28px; max-width: 520px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-card h3 { margin-top: 0; }
.modal-card textarea {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
  font-family: inherit; font-size: 15px; resize: vertical;
}
.modal-card select {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px;
  font-family: inherit; font-size: 15px; margin-top: 4px;
}
#edit-status { margin-top: 12px; font-weight: 600; font-size: 14px; }

@media (max-width: 720px) {
  .review-actions { flex-direction: column-reverse; }
  .review-actions .btn { width: 100%; }
  .cv-preview { padding: 20px; }
}

/* Checkout page */
.order-summary {
  max-width: 640px; margin: 0 auto 24px; background: #fff; border: 1px solid #d1fae5;
  border-radius: 12px; padding: 20px 24px;
}
.order-summary-row {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 0;
}
.order-summary-row + .order-summary-row { border-top: 1px solid #f0fdfa; }
.order-summary-row span { color: var(--muted); font-weight: 600; }
.order-summary-row strong { color: var(--teal-dark); font-size: 18px; }
.payment-iframe-wrap {
  max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.payment-iframe-wrap iframe { width: 100%; height: 720px; border: none; display: block; }
@media (max-width: 720px) {
  .payment-iframe-wrap iframe { height: 640px; }
}

