/* ============================================
   join-team.css — Join Team Form Page
   join-team.php
============================================ */

/* FA icon fix inside all elements */
i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.join-team-hero {
  position: relative;
  background: linear-gradient(135deg, #0a4d4d 0%, #062141 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: 380px; height: 380px; top: -140px; left: -80px; }
.shape-2 { width: 240px; height: 240px; bottom: -70px; right: 14%; animation-delay: 6s; }
.shape-3 { width: 160px; height: 160px; top: 38%; right: -50px; animation-delay: 12s; }
@keyframes floatShape {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: .3; }
  50%      { transform: translateY(-36px) rotate(180deg); opacity: .6; }
}

.join-team-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;
}
.join-team-hero-inner h1 {
  font-size: 46px; font-weight: 800; margin-bottom: 16px;
  line-height: 1.2; animation: fadeUp .7s .2s ease both;
}
.join-team-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); }
}

/* FORM SECTION */
.join-team-section { background: #f0f4f8; padding: 60px 20px 80px; }
.join-team-wrap { max-width: 860px; margin: 0 auto; }

/* Result cards (success / error) */
.result-card {
  border-radius: 18px; padding: 36px 40px; margin-bottom: 36px;
  text-align: center; animation: fadeUp .5s ease both;
}
.result-success { background: linear-gradient(135deg,#d1fae5,#a7f3d0); border: 2px solid #6ee7b7; }
.result-error   { background: linear-gradient(135deg,#fee2e2,#fecaca); border: 2px solid #f87171; }
.result-card i  { font-size: 48px; margin-bottom: 16px; display: block; }
.result-success i { color: #059669; }
.result-error i   { color: #dc2626; }
.result-card h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.result-success h3 { color: #065f46; }
.result-error h3   { color: #991b1b; }
.result-card p { font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.result-success p { color: #047857; }
.result-error p   { color: #b91c1c; }
.result-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#062141,#0a4d4d); color: white;
  text-decoration: none; border-radius: 10px; padding: 12px 28px;
  font-size: 15px; font-weight: 700; transition: all .3s ease;
}
.result-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,33,65,0.28); }

/* Form cards */
.jt-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;
}
.jt-card.visible { opacity: 1; transform: translateY(0); }

.jt-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;
}
.jt-section-title i { color: #0a4d4d; font-size: 20px; }

.jt-hint { font-size: 14px; color: #64748b; margin-bottom: 18px; font-style: italic; }

/* 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-group input,
.form-group select,
.form-group textarea {
  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;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: #0a4d4d;
  box-shadow: 0 0 0 4px rgba(10,77,77,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.form-group select {
  cursor: pointer; appearance: none;
  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; }
.char-counter.warning { color: #f59e0b; }
.char-counter.danger  { color: #ef4444; }

/* Contribution grid */
.contribution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contrib-item { display: block; cursor: pointer; }
.contrib-item input[type="checkbox"] { display: none; }
.contrib-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: #f8fafc;
  border: 2px solid #e2e8f0; border-radius: 12px;
  transition: all .3s ease; font-size: 14px; color: #334155; font-weight: 500;
}
.contrib-inner i { font-size: 18px; color: #0a4d4d; flex-shrink: 0; }
.contrib-item:hover .contrib-inner { border-color: #0a4d4d; background: rgba(10,77,77,0.04); }
.contrib-item input:checked + .contrib-inner {
  background: linear-gradient(135deg, rgba(6,33,65,0.06), rgba(10,77,77,0.06));
  border-color: #0a4d4d;
  box-shadow: 0 4px 14px rgba(10,77,77,0.12);
  color: #062141; font-weight: 700;
}
.contrib-item input:checked + .contrib-inner i { color: #062141; }

/* Submit */
.jt-submit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 17px 30px; margin-top: 24px;
  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;
}
.jt-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;
}
.jt-submit:hover::before { width: 420px; height: 420px; }
.jt-submit:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(6,33,65,0.34); }

/* Error states */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.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) {
  .join-team-hero { padding: 115px 20px 55px; }
  .join-team-hero-inner h1 { font-size: 30px; }
  .join-team-hero-inner p  { font-size: 16px; }
  .join-team-section { padding: 40px 14px 60px; }
  .jt-card { padding: 28px 22px; }
  .contribution-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .join-team-hero-inner h1 { font-size: 26px; }
  .jt-card { padding: 22px 16px; }
  .jt-section-title { font-size: 19px; }
}
