/* ======================================
   Expert Registration Form
   Modern, Professional Design
   WITH HERO ANIMATIONS + NOTIFICATION BOXES
====================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
}

/* ===== Hero Section ===== */
.register-hero {
  position: relative;
  background: linear-gradient(135deg, #062141 0%, #0a4d4d 100%);
  color: white;
  padding: 130px 25px 70px;
  text-align: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.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 float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.6;
  }
}

.register-hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

/* Hero Icon */
.hero-icon {
  font-size: 70px;
  margin-bottom: 25px;
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Hero Title */
.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  word-break: break-word;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 19px;
  opacity: 0.92;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto;
}

/* ===== Notification Box (Success/Error) ===== */
.notification-box {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 25px 30px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.notification-box.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.notification-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.notification-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.notification-message {
  font-size: 15px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

.notification-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ===== Registration Section ===== */
.register-section {
  padding: 80px 20px;
  background: #f8fafc;
}

.register-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

/* ===== Form Card ===== */
.form-card {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(6, 33, 65, 0.06);
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.form-card:hover {
  box-shadow: 0 15px 40px rgba(6, 33, 65, 0.12);
  transform: translateY(-5px) scale(1.01);
}

.form-header {
  text-align: center;
  margin-bottom: 45px;
  padding-bottom: 30px;
  border-bottom: 3px solid #f1f5f9;
}

.form-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 12px;
}

.form-header p {
  font-size: 17px;
  color: #64748b;
  line-height: 1.6;
}

/* ===== Form Sections ===== */
.form-section {
  margin-bottom: 45px;
  padding-bottom: 40px;
  border-bottom: 2px solid #f1f5f9;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===== FIXED: Section Title Underline ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 30px;
  padding-bottom: 15px;
  position: relative;
  /* Use block so the underline spans the full width of the title */
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;           /* RTL: anchor to right */
  width: 0;
  height: 4px;
  background: linear-gradient(to left, #0a4d4d, #062141);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card.visible .section-title::after {
  width: 100%;
}

.section-title i {
  font-size: 22px;
  color: #0a4d4d;
  flex-shrink: 0;
}

/* ===== Form Groups ===== */
.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #062141;
  margin-bottom: 10px;
}

.required {
  color: #dc2626;
  font-weight: 800;
}

/* ===== Form Inputs ===== */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid rgba(6, 33, 65, 0.12);
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Tajawal', sans-serif;
  transition: all 0.3s ease;
  background: white;
  color: #1f2937;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0a4d4d;
  box-shadow: 0 0 0 4px rgba(10, 77, 77, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.8;
}

.form-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 18px center;
  padding-left: 45px;
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

.form-hint i {
  color: #0a4d4d;
}

/* Character Counter */
.char-count {
  text-align: left;
  font-size: 14px;
  color: #64748b;
  margin-top: 8px;
  font-weight: 600;
}

/* ===== Social Media Inputs ===== */
.social-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.social-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.social-icon.twitter  { background: linear-gradient(135deg, #1DA1F2, #1a8cd8); }
.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 Groups ===== */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 77, 77, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(10, 77, 77, 0.1);
  margin-top: 12px;
  transition: all 0.3s ease;
}

.checkbox-group:hover {
  background: rgba(10, 77, 77, 0.06);
  border-color: rgba(10, 77, 77, 0.15);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0a4d4d;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label {
  font-size: 15px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  line-height: 1.6;
}

.terms-checkbox {
  background: rgba(6, 33, 65, 0.04);
  border-color: rgba(6, 33, 65, 0.15);
  padding: 18px;
}

.terms-checkbox .checkbox-label {
  font-weight: 600;
  color: #062141;
}

/* Other Input Group */
.other-input-group {
  margin-top: 12px;
}

/* ===== Form Actions ===== */
.form-actions {
  display: flex;
  gap: 16px;
  padding-top: 30px;
}

.btn-submit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  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 0.3s ease;
  box-shadow: 0 6px 20px rgba(6, 33, 65, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-submit:hover::before {
  width: 400px;
  height: 400px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6, 33, 65, 0.35);
}

.btn-reset {
  padding: 18px 32px;
  background: white;
  color: #64748b;
  border: 2px solid rgba(6, 33, 65, 0.15);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-reset:hover {
  background: rgba(6, 33, 65, 0.04);
  border-color: rgba(6, 33, 65, 0.25);
  color: #374151;
}

/* ===== Info Card ===== */
.info-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(6, 33, 65, 0.06);
  position: sticky;
  top: 100px;
}

.info-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(10, 77, 77, 0.1), rgba(6, 33, 65, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  border: 2px solid rgba(10, 77, 77, 0.15);
}

.info-icon i {
  font-size: 32px;
  color: #0a4d4d;
}

.info-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 25px;
  text-align: center;
}

.info-list {
  list-style: none;
  margin-bottom: 30px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list i {
  color: #10b981;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
}

.info-note i {
  font-size: 20px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-note p {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .register-container {
    grid-template-columns: 1fr;
  }

  .info-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .register-hero {
    padding: 110px 20px 60px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .form-card {
    padding: 35px 25px;
  }

  .form-header h2 {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-submit,
  .btn-reset {
    width: 100%;
    justify-content: center;
  }

  .info-card {
    padding: 28px;
  }

  .notification-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .notification-icon    { font-size: 35px; }
  .notification-title   { font-size: 18px; }
  .notification-message { font-size: 14px; }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .register-hero {
    padding: 100px 15px 50px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .form-card {
    padding: 28px 18px;
  }

  .section-title {
    font-size: 18px;
  }

  .notification-box {
    padding: 18px;
  }

  .notification-title   { font-size: 16px; }
  .notification-message { font-size: 13px; }
}