/* Root variables for easy color management */
:root {
  --primary-red: #2779A8;
  --primary-red-dark: #00205B;
  --gray-light: #e9ecef;
  --gray-dark: #6c757d;
  --text-default: #495057;
  --white: #ffffff;
}

.step h5 b {

  color: var(--primary-red-dark);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-left: 4px solid var(--primary-red-dark);
  padding-left: 12px;
}

::placeholder {
  color: #adb5bd !important;
  /* soft gray tone */
  opacity: 1;
  /* ensure consistent brightness across browsers */
}

.wizard-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.bg-wizard {
  background-color: #F9FAFB;
  padding: 20px;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

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

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

/* Step indicators */
.step-indicator .num-background {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #E5E7EB;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-indicator .num {
  color: var(--gray-dark);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.step-indicator.active .num-background {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  box-shadow: 0 8px 25px rgba(39, 121, 168, 0.4);
  /* blue tone */
}

.step-indicator.active .num {
  color: var(--white);
}

.step-indicator.active .title-container p {
  color: var(--primary-red);
  transition: all 0.3s ease;
}

/* Completed step - KEEP GREEN PARTS UNCHANGED */
.step-indicator.completed .num-background {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.step-indicator.completed .num {
  opacity: 0;
  transform: scale(0);
}

.step-indicator.completed .title-container p {
  color: #28a745;
}

/* Tick icon */
.step-indicator .tick-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  color: var(--white);
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

.step-indicator.completed .tick-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes completeStep {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.step-indicator.completing .num-background {
  animation: completeStep 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================
   Select2 Styling (Unified Look)
   ============================== */

/* Base container styling */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  background-color: #fff;
  min-height: 45px;
  padding: 5px 8px;
  transition: all 0.3s ease;
}

/* On focus (active input) */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(39, 121, 168, 0.25);
}

/* Placeholder text */
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #adb5bd !important;
  /* lighter gray tone */
  opacity: 1;
  font-weight: 400;
}

/* Selected text */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: var(--text-default);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Arrow (for single select) */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 10px;
}
  


.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  color: #fff !important;
  /* White text on your blue tag */
  font-weight: 500 !important;
  /* Slightly bold for readability */
  font-size: 0.85rem !important;
  /* Compact font size */
  letter-spacing: 0.3px !important;
  /* Subtle spacing for clean look */
  padding: 15px !important;
  /* Space between text and remove icon */
  user-select: none !important;
  /* Prevent text highlight on click */
}

/* On hover — optional subtle brightness */
.select2-container--default .select2-selection--multiple .select2-selection__choice:hover .select2-selection__choice__display {
  opacity: 0.9 !important;
}


/* Tag appearance in multi-select */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--primary-red);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 3px 8px !important;
  margin-top: 4px;
  font-size: 0.85rem;
}

/* Tag remove (×) button */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #fff;
  margin-right: 4px;
  font-weight: bold;
  cursor: pointer;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #000;
}

/* Dropdown menu styling */
.select2-container--default .select2-results>.select2-results__options {
  max-height: 200px;
  overflow-y: auto;
  border-radius: 10px;
}

/* Highlight option hover */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary-red);
  color: #fff;
}

/* Scrollbar for dropdown */
.select2-results__options::-webkit-scrollbar {
  width: 8px;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background-color: #ced4da;
  border-radius: 10px;
}

/* Slight shadow on dropdown for depth */
.select2-dropdown {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: none;
}



/* Forms */
.form-control,
.form-select {
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(39, 121, 168, 0.25);
  /* blue glow */
  background: var(--white);
}

.form-label {
  color: #495057;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Buttons */
.btn-modern {
  padding: 12px 30px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-modern: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 0.5s;
}

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

/* Primary buttons - BLUE THEME */
.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(39, 121, 168, 0.4);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 121, 168, 0.6);
  color: var(--white);
}

/* Secondary buttons remain unchanged */
.btn-secondary-modern {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn-secondary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.6);
  color: var(--white);
}

/* Success buttons - KEEP GREEN */
.btn-success-modern {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-success-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
  color: var(--white);
}

/* Step connector - KEEP GREEN for completed */
.step-connector {
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.step-connector.completed:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #28a745, #20c997);
  animation: fillProgress 0.5s ease-in-out;
}

@keyframes fillProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .step-indicator .num-background {
    width: 50px;
    height: 50px;
  }

  .step-indicator .num {
    font-size: 1.2rem;
  }

  .step-indicator .tick-icon {
    font-size: 1.2rem;
  }

  .btn-modern {
    padding: 10px 20px;
    font-size: 0.875rem;
  }

  .wizard-container {
    margin: 10px;
    border-radius: 15px;
  }

  .step-indicator .title-container {
    margin-top: 10px;
  }

  .step-indicator .title-container p {
    font-size: 0.9rem;
  }

  .step-indicator .title-container small {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .step-indicator {
    margin-bottom: 20px;
  }

  .step-connector {
    display: none;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 10px;
  }

  .d-flex.justify-content-between .btn-modern {
    width: 100%;
  }

  .text-end {
    text-align: center !important;
  }
}