html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Social login button spacing */
.social-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-social {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-social i {
  font-size: 20px;
}

.btn-google-large {
  background-color: #ffffff;
  color: #1f2937;
  border: 2px solid #d1d5db;
}

.btn-google-large:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-facebook-large {
  background-color: #1877f2;
  color: #ffffff;
}

.btn-facebook-large:hover {
  background-color: #0a66c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* ===== USER TYPE SELECTION CARDS ===== */
.auth-card .registration-types,
.registration-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px auto 22px;
  padding: 0;
  max-width: 680px;
}

.auth-card .registration-types .type-option,
.type-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 14px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(255, 165, 0, 0.22);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 10px;
  text-align: center;
  min-height: 180px;
  max-width: 100%;
}

.auth-card .registration-types .type-option.active::before,
.type-option.active::before {
  display: none;
}

.type-option:hover {
  border-color: #ffa500;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 165, 0, 0.12);
}

.type-option.active {
  border-color: #ffa500;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  box-shadow: 0 0 18px rgba(255, 165, 0, 0.28), inset 0 0 14px rgba(255, 165, 0, 0.05);
}

.type-icon {
  font-size: 44px;
  color: #ffa500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: rgba(255, 165, 0, 0.1);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.type-option:hover .type-icon {
  background: rgba(255, 165, 0, 0.2);
  transform: scale(1.05);
}

.type-option.active .type-icon {
  background: rgba(255, 165, 0, 0.2);
  box-shadow: 0 0 14px rgba(255, 165, 0, 0.28);
}

.type-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.type-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffa500;
  margin: 0;
  line-height: 1.3;
}

.type-content p {
  font-size: 13px;
  color: #d9dce1;
  margin: 0;
  line-height: 1.5;
  max-width: 240px;
}

.type-checkmark {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: #ffa500;
  opacity: 0;
  transition: all 0.3s ease;
}

.type-option.active .type-checkmark {
  opacity: 1;
  animation: checkPop 0.4s ease;
}

@keyframes checkPop {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .registration-types {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
    max-width: 100%;
  }

  .type-option {
    padding: 22px 16px;
    min-height: 240px;
  }

  .type-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
  }

  .type-content h3 {
    font-size: 18px;
  }

  .type-content p {
    font-size: 13px;
  }
}

/* ===== UNIFIED DARK MODE FOR ALL ONBOARDING PAGES ===== */

/* Dark container background */
.onboarding-container {
  min-height: 100vh;
  /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important; */
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card wrapper styling */
.onboarding-wrapper {
  max-width: 760px;
  width: 100%;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 165, 0, 0.1);
}

/* Header styling */
.onboarding-header {
  text-align: center;
  margin-bottom: 40px;
}

.onboarding-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.onboarding-header p {
  font-size: 16px;
  color: #b0b8c1;
  margin-bottom: 24px;
}

/* Progress bar */
.progress-bar {
  height: 8px;
  background: #333;
  border-radius: 4px;
  margin: 24px 0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #ffa500 0%, #ff8c00 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.step-indicator {
  font-size: 13px;
  color: #888;
  margin-top: 12px;
  font-weight: 500;
}

/* Shared grid layouts for all onboarding steps */
.expertise-grid,
.categories-grid,
.profile-types,
.experience-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* Checkbox/Option styling */
.expertise-checkbox,
.category-card,
.type-card,
.level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 18px;
  background: linear-gradient(135deg, #121728 0%, #151c2f 100%);
  border: 2px solid #444;
  border-radius: 14px;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 200px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.expertise-checkbox {
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.expertise-checkbox input,
.category-card input,
.type-card input,
.level-card input {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.expertise-checkbox input:checked + .checkbox-box,
.expertise-checkbox input:checked + .checkbox-box + .checkbox-label,
.expertise-checkbox input:checked + .checkbox-box + .checkbox-label + .checkbox-label {
  border-color: #ffa500;
}

.expertise-checkbox input:checked + .checkbox-box,
.category-card input:checked + .card-icon,
.type-card input:checked + .card-icon,
.level-card input:checked + .card-icon {
  background: rgba(255, 165, 0, 0.22);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.4);
  transform: scale(1.05);
}

.expertise-checkbox input:checked + .checkbox-box + .checkbox-label,
.category-card input:checked + .card-icon + h3,
.type-card input:checked + .card-icon + h3,
.level-card input:checked + .card-icon + h3 {
  color: #fff;
}

.expertise-checkbox:hover,
.category-card:hover,
.type-card:hover,
.level-card:hover {
  border-color: #ffa500;
  background: linear-gradient(135deg, #1f2635 0%, #14192a 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 165, 0, 0.15);
}

.expertise-checkbox.active,
.category-card.active,
.type-card.active,
.level-card.active {
  border-color: #ffa500;
  background: linear-gradient(135deg, #2a2f48 0%, #1a202a 100%);
  box-shadow: 0 0 24px rgba(255, 165, 0, 0.3), inset 0 0 16px rgba(255, 165, 0, 0.05);
}

/* Icon styling */
.card-icon,
.type-icon,
.checkbox-box {
  font-size: 42px;
  color: #ffa500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(255, 165, 0, 0.1);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.expertise-checkbox .checkbox-label,
.category-card h3,
.type-card h3,
.level-card h3 {
  font-size: 15px;
}

.expertise-checkbox:hover .checkbox-box,
.category-card:hover .card-icon,
.type-card:hover .card-icon,
.level-card:hover .card-icon {
  background: rgba(255, 165, 0, 0.2);
  transform: scale(1.1);
}

.expertise-checkbox input,
.category-card .hidden-radio,
.type-card .hidden-radio,
.level-card .hidden-radio {
  display: none;
}

.expertise-checkbox .checkbox-label,
.category-card h3,
.type-card h3,
.level-card h3 {
  color: #fff;
}

.expertise-checkbox .checkbox-label {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.expertise-checkbox.active .checkbox-box,
.category-card.active .card-icon,
.type-card.active .card-icon,
.level-card.active .card-icon {
  background: rgba(255, 165, 0, 0.2);
  box-shadow: 0 0 16px rgba(255, 165, 0, 0.3);
}

/* Card titles and descriptions */
.expertise-checkbox h4,
.category-card h3,
.type-card h3,
.level-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffa500;
  margin: 12px 0 8px;
  line-height: 1.3;
}

.category-card p,
.type-card p,
.level-card p,
.card-description,
.level-description {
  font-size: 13px;
  color: #a0a8b1;
  padding: 15px;
  margin: 0;
  line-height: 1.5;
}

/* Form styling */
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #1a1f2e;
  border: 1px solid #444;
  color: #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffa500;
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1), inset 0 0 0 1px rgba(255, 165, 0, 0.2);
  background: #1f2a3a;
}

.form-group input::placeholder {
  color: #666;
}

/* Button styling */
.btn-primary {
  background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

.btn-secondary {
  background: #444;
  border: 1px solid #666;
  color: #e0e0e0;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #555;
  border-color: #ffa500;
  color: #ffa500;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .onboarding-wrapper {
    padding: 30px;
  }

  .onboarding-header h1 {
    font-size: 24px;
  }

  .expertise-grid,
  .categories-grid,
  .profile-types,
  .experience-levels {
    grid-template-columns: 1fr !important;
  }
}