:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.5s ease;
  width: 25%;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.modern-card {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  animation: slideUp 0.6s ease;
  max-width: 900px;
  margin: 0 auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-header {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.gradient-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 15s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.step-item {
  text-align: center;
  position: relative;
  flex: 1;
  max-width: 120px;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid transparent;
  transition: var(--transition);
}

.step-item.active .step-circle {
  background: white;
  color: #667eea;
  border-color: white;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.step-item.completed .step-circle {
  background: #38ef7d;
  border-color: #38ef7d;
  box-shadow: 0 5px 15px rgba(56, 239, 125, 0.4);
}

.step-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.step-content {
  animation: fadeInContent 0.5s ease;
}

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

.icon-badge {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 35px rgba(102, 126, 234, 0.35);
}

.form-floating > .form-control,
.form-floating > .form-select {
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  transition: var(--transition);
  font-size: 1rem;
  padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.form-floating > label {
  color: #6c757d;
  padding: 1rem 0.75rem;
}

.btn {
  border-radius: 14px;
  font-weight: 600;
  padding: 14px 28px;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary-gradient);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.btn-success {
  background: var(--success-gradient);
  box-shadow: 0 5px 20px rgba(17, 153, 142, 0.35);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(17, 153, 142, 0.45);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  transform: translateY(-2px);
}

.info-item {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: var(--transition);
}

.info-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.availability-toggle {
  background: linear-gradient(135deg, #f5f7fa 0%, #e3e7f0 100%);
  padding: 24px;
  border-radius: 14px;
  border-left: 5px solid #667eea;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.form-switch-lg .form-check-input {
  width: 4rem;
  height: 2rem;
  cursor: pointer;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-container {
  text-align: center;
}

.toast {
  border-radius: 14px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  border: none;
}

.success-animation i {
  animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


#otp-timer {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  transition: color 0.3s ease;
}

#otp-timer.text-success {
  color: #38ef7d !important;
}

#otp-timer.text-warning {
  color: #ff9800 !important;
}

#otp-timer.text-danger {
  color: #f44336 !important;
  animation: pulse-timer 1s infinite;
}


.alert-success .text-success {
  background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 2px;
  animation: verified-glow 2s ease-in-out infinite;
}

@keyframes verified-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

.letter-spacing {
  letter-spacing: 12px;
  font-weight: 700;
}

.footer-logo {
  height: 35px;  
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-logo {
    height: 28px;  
  }
}

@media (max-width: 768px) {
  .step-indicator {
    gap: 8px;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
  
  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  
  .modern-card {
    border-radius: 18px;
  }
  
  .icon-badge {
    width: 70px;
    height: 70px;
  }
}

.alert {
  border-radius: 14px;
  border: none;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.alert-info {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  color: #006064;
}

.alert-danger {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #b71c1c;
}

.alert-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b5e20;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}

.card-footer {
  border-top: 1px solid #e9ecef;
}