/* Alumni Registration Portal Styles */

:root {
  /* Primary Colors */
  --primary-color: #419a71;
  --secondary-color: #64748b;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --background-color: #f8fafc;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
}

body {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-color: #f0f9ff;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 0;
  margin: 0;
}
.hide{
  display: none !important;
}
/* Main Container */
.registration-container {
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 0;
}

.registration-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: none;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  position: relative;
}

/* Header Styles */
.card-header {
  background: linear-gradient(135deg, var(--primary-color), #419a71);
  color: white;
  padding: 1rem;
  text-align: center;
  border-bottom: none;
}

.alumni-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: logoFloat 3s ease-in-out infinite;
}

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

/* Progress Container */
.progress-container {
  padding: 1rem 2rem;
  background: var(--background-color);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.stage-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stage-step .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stage-step.active .step-circle {
  background: var(--primary-color);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
  animation: pulse 2s infinite;
}

.stage-step.completed .step-circle {
  background: var(--success-color);
  color: white;
  animation: checkmark 0.6s ease-in-out;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3); }
  50% { box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5); }
}

@keyframes checkmark {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.stage-step .step-line {
  position: absolute;
  top: 20px;
  left: 75%;
  width: 50%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
  transition: all 0.4s ease;
}

.stage-step.completed .step-line {
  background: var(--success-color);
}

.stage-step:last-child .step-line {
  display: none;
}

/* Form Sections */
.form-section {
  padding: 1rem;
  display: none;
  position: relative;
}

.form-section.active {
  display: block;
  animation: slideInFade 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.form-section h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.form-section h4 i {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Form Controls */
.form-floating label {
  color: var(--secondary-color);
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
  transition: all 0.3s ease;
}

.form-control,
.form-select {
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
  border-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.25rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.25rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success-color);
  border-color: var(--success-color);
  /* padding: 1rem 2.5rem; */
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* OTP Input Styles */
.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  margin: 0 5px;
  transition: all 0.3s ease;
  background: white;
}

.otp-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
  transform: scale(1.05);
  outline: none;
}

.otp-input.filled {
  background: #f0f9ff;
  border-color: var(--primary-color);
}

/* Navigation Buttons */
.navigation-buttons {
  padding: 1rem 2rem;
  background: var(--background-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.stage-info {
  font-weight: 500;
  color: var(--secondary-color);
}

/* Success Animation */
.success-animation {
  color: var(--success-color);
  font-size: 4rem;
  animation: successBounce 1s ease-in-out;
}

@keyframes successBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Loading States */
.btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toast Styling */
.toast {
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.toast-success {
  border-left: 4px solid var(--success-color);
}

.toast-error {
  border-left: 4px solid var(--danger-color);
}

/* Alert Styling */
.alert-info {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e40af;
  font-size: smaller;
}

/* Review Summary */
.review-section {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.review-section h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.review-section p {
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

/* Checkbox Styling */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .registration-card {
    margin: 1rem;
    border-radius: 15px;
  }
  
  .card-header {
    padding: 1.5rem;
  }
  
  .alumni-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .stage-indicator {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stage-step .step-line {
    display: none;
  }
  
  .stage-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
    justify-content: center;
  }
  
  .otp-input {
    width: 45px;
    height: 45px;
    margin: 0 3px;
    font-size: 1.1rem;
  }
  
  .form-section {
    padding: 1.5rem;
  }
  
  .navigation-buttons {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .navigation-buttons > div:first-child,
  .navigation-buttons > div:last-child {
    order: 2;
  }
  
  .stage-info {
    order: 1;
  }
}

@media (max-width: 576px) {
  .registration-container {
    padding: 10px;
  }
  
  .otp-input {
    width: 40px;
    height: 40px;
    margin: 0 2px;
    font-size: 1rem;
  }
  
  .btn-primary,
  .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-success {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Smooth Progress Bar Animation */
.progress-bar {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Field Focus Effects */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-select:focus ~ label {
  color: var(--primary-color);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Validation Styles */
.is-invalid {
  border-color: var(--danger-color);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.invalid-feedback {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 20px;
}

.loading-spinner {
  font-size: 2rem;
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-container {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.dots-loader span {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 5px;
    background: #004085;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.dots-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-text {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}