:root {
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 50%, #cffafe 100%);
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

.registration-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.header-logo {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: float 6s ease-in-out infinite;
}

/* Header logo icon (not used when image is displayed) */
.header-logo i {
  font-size: 40px;
}

.registration-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 50px;
}

.progress-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2e8f0;
  z-index: 0;
}

.progress-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  transition: width 1s ease;
  width: 0%;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
  transition: all 0.6s ease;
  background: white;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
}

.step-item.active .step-circle {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: white;
  border: none;
  transform: scale(1.15);
  box-shadow: 0 5px 20px rgba(37, 99, 235, 0.5);
  animation: pulse 4s ease-in-out infinite;
}

.step-item.completed .step-circle {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  margin-bottom: 4px;
}

.step-item.active .step-title,
.step-item.completed .step-title {
  color: #1e293b;
}

.step-description {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

.form-label {
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-label .required {
  color: #ef4444;
}

.form-control,
.form-select {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:hover,
.form-select:hover {
  border-color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

.input-icon .form-control,
.input-icon .form-select {
  padding-left: 48px;
}

.form-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.step-content {
  display: none;
  opacity: 0;
  transform: translateX(50px);
}

.step-content.active {
  display: block;
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.step-heading {
  font-size: 22px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 30px;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 1s;
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-success-custom {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-success-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 1s;
}

.btn-success-custom:hover::before {
  left: 100%;
}

.btn-success-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary-custom {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 12px 24px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.6s ease;
}

.btn-secondary-custom:hover {
  color: #1e293b;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

.academic-section {
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid #e2e8f0;
}

.academic-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 20px;
}

.footer {
  text-align: center;
  padding: 30px 0;
  color: #64748b;
  font-size: 14px;
}

.form-check {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Invalid field styling */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444 !important;
  background-image: none;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
}

.form-check:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.form-check.border {
  border: 2px solid #e2e8f0 !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-check.border:hover {
  border-color: #2563eb !important;
}

.form-check-input:checked + .form-check-label {
  color: #2563eb;
}

.form-check-input:checked ~ .form-check-label i {
  color: #2563eb;
}

@media (max-width: 576px) {
  .registration-card {
    padding: 30px 20px;
  }

  .step-description {
    display: none;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .step-title {
    font-size: 12px;
  }

  /* Additional mobile responsive fixes */
  .registration-container {
    padding: 0 12px;
    margin: 20px auto;
  }

  .header-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
  }

  /* Header logo icon (not used when image is displayed) */
  .header-logo i {
    font-size: 32px;
  }

  .step-heading {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .form-control,
  .form-select {
    padding: 10px 12px;
    font-size: 13px;
  }

  .input-icon i {
    font-size: 16px;
    left: 12px;
  }

  .input-icon .form-control,
  .input-icon .form-select {
    padding-left: 40px;
  }

  .btn-primary-custom,
  .btn-success-custom {
    padding: 10px 18px;
    font-size: 13px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
  }

  .nav-buttons button {
    width: 100%;
    justify-content: center;
  }

  .progress-steps {
    margin-bottom: 30px;
  }

  .progress-line {
    top: 20px;
  }

  .step-item {
    flex: 0 0 auto;
  }

  .form-check {
    padding: 10px;
  }
}
