/* ============================================================
   صفحة التوظيف «اعمل معنا» — أفق التقنية (كحلي + ذهبي، Zain)
   ============================================================ */
.careers-hero {
  position: relative; text-align: center; overflow: hidden; color: #fff;
  padding: clamp(120px, 16vh, 200px) 0 clamp(56px, 8vh, 100px);
  background: radial-gradient(120% 120% at 18% 8%, #294364 0%, #1F334E 46%, #16273b 100%);
}
.careers-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 46px 46px;
}
.careers-hero .container { position: relative; z-index: 2; }
.careers-hero .eyebrow {
  display: inline-block; color: var(--secondary-color); font-weight: 800; font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: .5px; margin-bottom: 14px; border: 1.5px solid rgba(242,177,0,.4);
  padding: 6px 18px; border-radius: 999px; background: rgba(242,177,0,.08);
}
.careers-hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; line-height: 1.2; margin: 0 0 18px; }
.careers-hero h1 .accent { color: var(--secondary-color); }
.careers-hero p { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.9; max-width: 800px; margin: 0 auto 30px; color: rgba(255,255,255,.82); }
.careers-hero .hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.careers-hero .hero-ctas a { padding: 13px 28px; border-radius: 999px; font-weight: 800; font-size: 16px; transition: var(--transition); }
.careers-hero .hero-ctas .primary { background: linear-gradient(135deg, var(--secondary-color), #ffcb3d); color: var(--primary-color); }
.careers-hero .hero-ctas .primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(242,177,0,.4); }
.careers-hero .hero-ctas .ghost { border: 2px solid rgba(255,255,255,.4); color: #fff; }
.careers-hero .hero-ctas .ghost:hover { border-color: var(--secondary-color); color: var(--secondary-color); }

/* شريط مزايا العمل الحر */
.perks { background: var(--white); }
.perks .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -44px; position: relative; z-index: 5; }
.perk {
  background: #fff; border-radius: 18px; padding: 24px 18px; text-align: center;
  box-shadow: 0 14px 40px rgba(31,51,78,.12); border: 1px solid rgba(31,51,78,.06);
}
.perk .ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(242,177,0,.15); color: var(--secondary-color); }
.perk .ico svg { width: 28px; height: 28px; }
.perk h3 { font-size: 17px; font-weight: 800; color: var(--primary-color); margin: 0 0 6px; }
.perk p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* أقسام */
.careers-section { padding: clamp(56px, 8vh, 96px) 0; }
.careers-section.alt { background: var(--light-bg); }
.careers-section .section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.careers-section .section-head .kicker { color: var(--secondary-color); font-weight: 800; font-size: 16px; letter-spacing: .4px; }
.careers-section .section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; color: var(--primary-color); margin: 8px 0 14px; line-height: 1.3; }
.careers-section .section-head p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.9; color: var(--text-light); }

/* بطاقات التخصصات */
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role-card {
  background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: 0 10px 34px rgba(0,0,0,.06);
  border: 1px solid rgba(31,51,78,.06); transition: var(--transition); display: flex; flex-direction: column;
}
.role-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(31,51,78,.14); }
.role-card.featured { border: 2px solid var(--secondary-color); box-shadow: 0 16px 44px rgba(242,177,0,.18); }
.role-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.role-ico { flex-shrink: 0; width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-color), #16273b); color: var(--secondary-color); }
.role-ico svg { width: 28px; height: 28px; }
.role-card h3 { font-size: 20px; font-weight: 800; color: var(--primary-color); margin: 0; line-height: 1.35; }
.role-badge { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.role-badge.commission { background: rgba(242,177,0,.18); color: #b47d00; }
.role-badge.freelance { background: rgba(31,51,78,.09); color: var(--primary-color); }
.role-card p { font-size: 15.5px; line-height: 1.8; color: var(--text-light); margin: 0 0 18px; flex: 1; }
.role-apply {
  align-self: flex-start; font-weight: 800; font-size: 15px; color: var(--primary-color);
  border: 2px solid rgba(31,51,78,.18); border-radius: 999px; padding: 8px 20px; cursor: pointer;
  background: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 7px;
}
.role-apply:hover { border-color: var(--secondary-color); background: #fffdf5; color: #b47d00; }

/* كيف تنضم — خطوات */
.join-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.join-step { text-align: center; }
.join-step .step-num {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--secondary-color), #ffcb3d); color: var(--primary-color);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; box-shadow: 0 8px 22px rgba(242,177,0,.35);
}
.join-step h3 { font-size: 18px; font-weight: 800; color: var(--primary-color); margin: 0 0 8px; }
.join-step p { font-size: 15px; line-height: 1.7; color: var(--text-light); margin: 0; }

/* نموذج التقديم */
.apply-section { padding: clamp(56px, 8vh, 96px) 0; background: var(--light-bg); }
.apply-wrap { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 48px); box-shadow: 0 20px 60px rgba(31,51,78,.12); }
.apply-wrap .section-head { text-align: center; margin-bottom: 30px; }
.careers-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.careers-form .field { margin-bottom: 18px; }
.careers-form label { display: block; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; font-size: 15px; }
.careers-form label .req { color: #e0483d; }
.careers-form input, .careers-form select, .careers-form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid rgba(31,51,78,.15); border-radius: 12px;
  font-family: inherit; font-size: 16px; color: var(--primary-color); background: var(--light-bg); transition: var(--transition);
}
.careers-form input:focus, .careers-form select:focus, .careers-form textarea:focus { outline: none; border-color: var(--secondary-color); background: #fff; }
.careers-form textarea { resize: vertical; min-height: 110px; }
.careers-form .btn-submit {
  width: 100%; padding: 16px; border: none; border-radius: 12px; cursor: pointer; margin-top: 6px;
  background: linear-gradient(135deg, var(--secondary-color), #ffcb3d); color: var(--primary-color);
  font-family: inherit; font-size: 18px; font-weight: 800; transition: var(--transition);
}
.careers-form .btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(242,177,0,.4); }
.careers-form .btn-submit:disabled { opacity: .7; cursor: default; }
.careers-form .btn-loader { display: none; width: 22px; height: 22px; border: 3px solid rgba(31,51,78,.3); border-top-color: var(--primary-color); border-radius: 50%; margin: 0 auto; animation: careerspin .8s linear infinite; }
@keyframes careerspin { to { transform: rotate(360deg); } }
.careers-form .form-message { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 700; font-size: 15px; }
.careers-form .form-message.success { background: rgba(46,160,90,.12); color: #1e7a44; border: 1px solid rgba(46,160,90,.3); }
.careers-form .form-message.error { background: rgba(224,72,61,.1); color: #c0392b; border: 1px solid rgba(224,72,61,.3); }
.apply-wa { text-align: center; margin-top: 20px; font-size: 15px; color: var(--text-light); }
.apply-wa a { color: #25D366; font-weight: 800; }

/* استجابة */
@media (max-width: 992px) {
  .perks .container { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .perks .container { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .roles-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .careers-form .form-row { grid-template-columns: 1fr; }
}
