/* ═══════════════════════════════════════
   CAREERS.CSS — HMC GROUP
═══════════════════════════════════════ */

/* ── PAGE HEADER ── */
.page-header {
  margin-top: 88px;
  height: 280px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,32,88,0.72) 0%, rgba(8,40,120,0.45) 100%);
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 3;
  animation: fadeUp 0.9s ease both;
}

.page-header-h1 {
  font-size: 46px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-header-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.7;
}

/* ── INTRO ── */
.careers-intro-section {
  padding: 96px 80px 56px;
  background: var(--white);
}

.careers-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.careers-intro-text {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.85;
  margin-top: 16px;
}

/* ── TEAMS ── */
.careers-teams-section {
  padding: 0 80px 96px;
  background: var(--white);
}

.careers-teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.team-item:hover {
  border-color: var(--navy);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-item:hover .team-icon { background: var(--navy); }
.team-item:hover .team-icon svg { color: var(--gold); }
.team-item:hover span { color: var(--navy); }

.team-icon {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}

.team-icon svg {
  width: 22px; height: 22px;
  color: var(--navy);
  transition: color 0.3s ease;
}

.team-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  transition: color 0.3s ease;
}

/* ── FORM SECTION ── */
.careers-form-section {
  padding: 96px 80px;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

/* دوائر الباكقراوند — 5 دوايير */
.careers-form-section::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border: 50px solid rgba(8,40,120,0.03);
  border-radius: 50%;
  top: -120px; left: -100px;
  pointer-events: none;
  z-index: 0;
}

.careers-form-section::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border: 40px solid rgba(216,160,48,0.04);
  border-radius: 50%;
  bottom: -60px; right: -60px;
  pointer-events: none;
  z-index: 0;
}

.careers-form-c3 {
  position: absolute;
  width: 180px; height: 180px;
  border: 30px solid rgba(8,40,120,0.03);
  border-radius: 50%;
  top: 40px; right: 15%;
  pointer-events: none;
  z-index: 0;
}

.careers-form-c4 {
  position: absolute;
  width: 300px; height: 300px;
  border: 40px solid rgba(216,160,48,0.03);
  border-radius: 50%;
  bottom: -80px; left: 30%;
  pointer-events: none;
  z-index: 0;
}

.careers-form-c5 {
  position: absolute;
  width: 140px; height: 140px;
  border: 25px solid rgba(8,40,120,0.04);
  border-radius: 50%;
  top: 50%; left: 5%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.careers-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.careers-form-header {
  margin-bottom: 48px;
}

.careers-form-sub {
  font-size: 14px;
  color: var(--charcoal);
  margin-top: 8px;
  line-height: 1.7;
}

/* ── FORM ELEMENTS ── */
.careers-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.form-input {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--near-black);
  background: var(--white);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
}

.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(8,40,120,0.08);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ── UPLOAD ── */
.form-upload {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  position: relative;
}

.form-upload:hover {
  border-color: var(--navy);
  background: rgba(8,40,120,0.02);
}

.form-upload.drag-over {
  border-color: var(--gold);
  background: rgba(216,160,48,0.04);
}

.form-upload svg {
  width: 32px; height: 32px;
  color: var(--navy);
  opacity: 0.5;
  margin-bottom: 4px;
}

.upload-text {
  font-size: 14px;
  color: var(--charcoal);
}

.upload-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.upload-hint {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
}

.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ── SUBMIT ── */
.form-submit {
  display: flex;
  justify-content: flex-start;
}

.form-btn {
  padding: 14px 40px;
  font-size: 15px;
}

.form-input::placeholder {
  color: rgba(0,0,0,0.45);
}

.btn-primary-navy {
  display: inline-block;
  padding: 13px 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary-navy:hover {
  background: #0a3296;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── TEAM ICON IMAGES ── */
.team-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease;
}

.team-item:hover .team-icon img {
  filter: brightness(0) saturate(100%) invert(68%) sepia(55%) saturate(600%) hue-rotate(5deg) brightness(100%);
}