:root {
  --primary-color: #7b001c;
  --primary-hover: #5a0014;
  --primary-light: rgba(123, 0, 28, 0.08);
  --primary-gradient: linear-gradient(135deg, #7b001c 0%, #9a0030 100%);
  --bg-color: #ffffff;
  --text-color: #2d3748;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

.navbar {
  background: var(--bg-color) !important;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  padding: 1.75rem 1.5rem;
}

.nav-tabs {
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.nav-tabs .nav-link {
  border: none;
  color: var(--text-light);
  font-weight: 500;
  padding: 1rem 1.5rem;
  margin: 0;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-tabs .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-light);
  transition: var(--transition);
  z-index: 0;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color);
  background: transparent;
  transform: translateY(-2px);
}

.nav-tabs .nav-link:hover::before {
  left: 0;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background: var(--primary-light);
  border: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  padding: 0.875rem 2.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(123, 0, 28, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a0014 0%, #7b001c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 0, 28, 0.3);
}

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

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  padding: 0.75rem 2rem;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(123, 0, 28, 0.1);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: #a0aec0;
}

.verification-badge {
  background: #681717BA;
  color: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: 0 8px 20px rgba(123, 0, 28, 0.2);
  position: relative;
  overflow: hidden;
}

.verification-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.license-item {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fafafa;
  transition: var(--transition);
  position: relative;
}

.license-item:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.license-item::before {
  content: '📄';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  opacity: 0.7;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.step {
  background: white;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.step.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(123, 0, 28, 0.3);
}

.step.completed {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.step-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
  font-weight: 500;
}

.category-checkbox {
  margin-bottom: 0.75rem;
}

.category-checkbox input[type="checkbox"] {
  margin-right: 0.75rem;
}

.form-section {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.form-section:hover {
  box-shadow: var(--shadow-md);
}

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

.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.loading-spinner {
  display: none;
  text-align: center;
  padding: 3rem;
}

.profile-preview {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.5rem;
  border: 2px dashed rgba(123, 0, 28, 0.3);
}

.license-preview {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 0.75rem 0;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

#profileTabs {
  flex-direction: row !important;
  position: relative !important;
}

/* Custom checkbox styling */
.custom-control-input:checked~.custom-control-label::before {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.custom-control-label {
  cursor: pointer;
  color: var(--text-color);
  font-weight: 500;
}

/* Input group enhancements */
.input-group {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.input-group .form-control {
  border-right: none;
}

.input-group-append .btn {
  border-left: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Tab content animations */
.tab-pane {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-header {
    padding: 1.25rem;
  }

  .nav-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .form-section {
    padding: 1.5rem;
  }

  .step-indicator {
    margin: 2rem 0;
  }

  .step-label {
    font-size: 0.75rem;
  }
}

/* Focus states for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: rgba(123, 0, 28, 0.2);
  color: var(--text-color);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}