/* ============================================
   expert-reg.css — Expert Registration Page
   Matches join-team.php design exactly
============================================ */

/* FA icon fix */
body { background: #f0f4f8; }
i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.er-hero {
  position: relative;
  background: linear-gradient(135deg, #062141 0%, #0a4d4d 100%);
  color: white;
  padding: 130px 25px 70px;
  text-align: center;
  overflow: hidden;
}
.hero-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.05); animation: floatShape 20s infinite ease-in-out; }
.shape-1 { width: 400px; height: 400px; top: -150px; right: -100px; }
.shape-2 { width: 250px; height: 250px; bottom: -80px; left: 15%; animation-delay: 7s; }
.shape-3 { width: 180px; height: 180px; top: 40%; left: -50px; animation-delay: 14s; }
@keyframes floatShape {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: .3; }
  50%      { transform: translateY(-40px) rotate(180deg); opacity: .6; }
}

.er-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.back-to-chooser {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: white; text-decoration: none; border-radius: 10px;
  padding: 8px 18px; font-size: 14px; font-weight: 700;
  margin-bottom: 28px; transition: all .3s ease;
  animation: fadeUp .6s ease both;
}
.back-to-chooser:hover { background: rgba(255,255,255,0.22); transform: translateX(4px); }

.hero-icon-wrap {
  width: 88px; height: 88px; border-radius: 24px;
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: white; margin: 0 auto 24px;
  animation: fadeUp .6s .1s ease both;
}
.er-hero-inner h1 {
  font-size: 46px; font-weight: 800; margin-bottom: 16px;
  line-height: 1.2; animation: fadeUp .7s .2s ease both;
}
.er-hero-inner p {
  font-size: 18px; opacity: .88; line-height: 1.75;
  max-width: 620px; margin: 0 auto;
  animation: fadeUp .7s .3s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* NOTIFICATION */
#notifWrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.er-notif {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 28px; border-radius: 16px; margin-top: 28px;
  color: white; font-family: 'Tajawal', sans-serif;
  opacity: 0; transform: translateY(-16px);
  transition: all .4s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.er-notif.notif-show { opacity: 1; transform: translateY(0); }
.notif-success { background: linear-gradient(135deg,#10b981,#059669); }
.notif-error   { background: linear-gradient(135deg,#ef4444,#dc2626); }
.er-notif .notif-icon { font-size: 36px; flex-shrink: 0; }
.er-notif .notif-body { flex: 1; }
.er-notif .notif-body strong { display: block; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.er-notif .notif-body p { font-size: 14px; opacity: .92; margin: 0; }
.er-notif .notif-close {
  background: rgba(255,255,255,0.2); border: none; width: 32px; height: 32px;
  border-radius: 8px; color: white; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s;
}
.er-notif .notif-close:hover { background: rgba(255,255,255,0.35); }

/* FORM SECTION */
.er-section { background: #f0f4f8; padding: 60px 20px 80px; }
.er-wrap { max-width: 860px; margin: 0 auto; }

/* FORM CARDS — identical to .jt-card */
.er-card {
  background: white; border-radius: 20px; padding: 40px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid rgba(6,33,65,0.07);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.er-card.visible { opacity: 1; transform: translateY(0); }

.er-section-title {
  font-size: 22px; font-weight: 800; color: #062141;
  margin-bottom: 26px; display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 2px solid #f1f5f9;
}
.er-section-title i { color: #0a4d4d; font-size: 20px; }

.er-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #64748b; margin-bottom: 14px; font-style: italic;
}
.er-hint i { color: #0a4d4d; }

/* Form groups */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 15px; font-weight: 700; color: #062141; margin-bottom: 9px; }
.req { color: #dc2626; font-weight: 800; }

.form-input {
  width: 100%; padding: 13px 17px;
  border: 2px solid rgba(6,33,65,0.12); border-radius: 12px;
  font-size: 15px; font-family: 'Tajawal', sans-serif;
  background: white; color: #1f2937;
  transition: all .3s ease;
  appearance: none;
}
.form-input:focus {
  outline: none; border-color: #0a4d4d;
  box-shadow: 0 0 0 4px rgba(10,77,77,0.1);
}
.form-input::placeholder { color: #94a3b8; }
textarea.form-input { resize: vertical; min-height: 140px; line-height: 1.8; }
select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%23062141' d='M7 10L0 3l1.5-1.5L7 7 12.5 1.5 14 3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center; padding-left: 42px;
}

.char-counter { display: block; text-align: left; font-size: 13px; color: #94a3b8; margin-top: 6px; }

/* Social inputs */
.social-inputs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.social-input-group { display: flex; align-items: center; gap: 12px; }
.social-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; font-size: 19px; transition: all .3s ease; }
.social-icon.twitter  { background: #000000; }
.social-icon.linkedin { background: linear-gradient(135deg,#0077B5,#006399); }
.social-icon.github   { background: linear-gradient(135deg,#333,#1a1a1a); }
.social-icon.scholar  { background: linear-gradient(135deg,#4285F4,#357ae8); }
.social-input { flex: 1; }

/* Checkbox row (inline label+input) */
.er-checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; background: rgba(10,77,77,0.04);
  border-radius: 12px; border: 1.5px solid rgba(10,77,77,0.12);
  cursor: pointer; transition: all .3s ease; margin-top: 14px;
  font-size: 14px; color: #374151; font-weight: 500; line-height: 1.6;
}
.er-checkbox-row:hover { background: rgba(10,77,77,0.07); border-color: rgba(10,77,77,0.2); }
.er-checkbox-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: #0a4d4d; flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.terms-row { background: rgba(6,33,65,0.04); border-color: rgba(6,33,65,0.15); font-weight: 600; color: #062141; }

/* Keyword tags */
.keyword-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 4px; }
.kw-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px; border: 2px solid rgba(10,77,77,0.25); background: #f8fafc; color: #0a4d4d; font-size: 13px; font-weight: 600; font-family: 'Tajawal',sans-serif; cursor: pointer; transition: all .22s ease; }
.kw-tag:hover { border-color: #0a4d4d; background: rgba(10,77,77,0.07); transform: translateY(-2px); }
.kw-tag.selected { background: linear-gradient(135deg,#062141,#0a4d4d); color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(10,77,77,0.28); }
.kw-tag.selected::after { content: ' ✓'; font-size: 12px; }
.kw-other-toggle { background: transparent; border: 2px dashed rgba(10,77,77,0.4); color: #0a4d4d; }
.kw-other-toggle:hover { border-style: solid; background: rgba(10,77,77,0.05); }
.kw-add-btn { padding: 9px 20px; border-radius: 8px; border: none; background: linear-gradient(135deg,#062141,#0a4d4d); color: white; font-family: 'Tajawal',sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.kw-add-btn:hover { opacity: .88; }
.kw-selected-preview { padding: 10px 14px; background: rgba(10,77,77,0.06); border-radius: 8px; font-size: 13px; color: #374151; line-height: 1.7; }
.kw-custom-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: #0a4d4d; color: white; border-radius: 999px; font-size: 12px; margin: 2px; }
.kw-custom-chip button { background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer; font-size: 13px; padding: 0 2px; line-height: 1; }
.kw-custom-chip button:hover { color: white; }

/* Actions */
.er-actions { display: flex; gap: 14px; margin-top: 24px; }
.er-submit {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; background: linear-gradient(135deg,#062141,#0a4d4d);
  color: white; border: none; border-radius: 14px;
  font-size: 18px; font-weight: 800; font-family: 'Tajawal',sans-serif;
  cursor: pointer; transition: all .3s ease;
  box-shadow: 0 6px 22px rgba(6,33,65,0.25);
  position: relative; overflow: hidden;
}
.er-submit::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.18); transform: translate(-50%,-50%);
  transition: width .5s, height .5s;
}
.er-submit:hover::before { width: 420px; height: 420px; }
.er-submit:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(6,33,65,0.34); }

.er-reset {
  padding: 17px 30px; background: white; color: #64748b;
  border: 2px solid rgba(6,33,65,0.15); border-radius: 14px;
  font-size: 17px; font-weight: 700; font-family: 'Tajawal',sans-serif;
  cursor: pointer; transition: all .3s ease;
  display: flex; align-items: center; gap: 10px;
}
.er-reset:hover { background: rgba(6,33,65,0.04); border-color: rgba(6,33,65,0.25); color: #374151; }

/* Error states */
.form-input.field-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.field-error-msg { color: #ef4444; font-size: 13px; margin-top: 6px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
@keyframes shake { 0%,100%{transform:translateX(0);}25%{transform:translateX(-8px);}75%{transform:translateX(8px);} }

/* RESPONSIVE */
@media (max-width: 768px) {
  .er-hero { padding: 115px 20px 55px; }
  .er-hero-inner h1 { font-size: 30px; }
  .er-hero-inner p  { font-size: 16px; }
  .er-section { padding: 40px 14px 60px; }
  .er-card { padding: 28px 22px; }
  .er-actions { flex-direction: column; }
  .er-submit, .er-reset { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .er-hero-inner h1 { font-size: 26px; }
  .er-card { padding: 22px 16px; }
  .er-section-title { font-size: 19px; }
}
