@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: rgb(57, 54, 79);
  line-height: 1.5;      /* good readable line height */
  min-height: 100vh;
}

.event-header-container {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}


@media (max-width: 700px) {
  .event-header-container {
    display: flex;
    justify-content: flex-start;
    padding: 0.25rem 1rem;
  }
  .event-header-right {
    display: none !important;
  }
  .return-button-text {
    display: none;
    }
}

.register-main-content {
  flex: 1 !important;
}

.content {
  width: 100%;
  padding-bottom: 100px !important;
}

/* User info */
.user-info {
  background: rgba(0,0,0,0.05);
  padding: 4px 10px;
  font-size: 0.9rem;
  color: #333;
  border-radius: 4px;
}

.fixed-stepper-buttons {
  position: fixed !important; /* Changed from relative to fixed */
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.fixed-stepper-buttons .inner-fixed-button-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

/* Common button styles */
.back-button,
.forward-button {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 12px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 200px;
}

.back-button:hover,
.forward-button:hover {
  background-color: #e0e0e0;
  color: #000;
  border-color: #bbb;
}

.back-button:active,
.forward-button:active {
  background-color: #d5d5d5;
  transform: translateY(1px);
}

.back-button:disabled,
.forward-button:disabled {
  background-color: #f7f7f7;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
}

.back-arrow,
.forward-arrow {
  display: none;
  font-size: 1.25rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .fixed-stepper-buttons {
    height: 55px;
    padding: 0 0.5rem;
  }

  .inner-fixed-button-container {
    padding: 0;
    gap: 0.5rem;
  }

  .back-text,
  .forward-text {
    display: none;
  }

  .back-arrow,
  .forward-arrow {
    display: inline-block;
  }

  .back-button,
  .forward-button {
    border-radius: 8px;
    padding: 8px 12px;
    width: auto;
    min-width: 44px;
    font-size: 1.25rem;
  }

    .bs-stepper-content {
        padding-top: 0.25rem !important;
    }
}


.bs-stepper-content {
  padding-top: 2rem;
}
/* Step trigger: neutral background, no strong styling */
.bs-stepper .step .step-trigger {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.75rem 1rem;
  color: inherit;
  margin: 0;
}

@media (max-width: 768px) {
  .bs-stepper-header {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    margin: 0;
  }

  .bs-stepper-header .step {
    flex: 0 0 auto; /* prevent shrinking */
    min-width: 90px; /* force steps to not get too small */
    text-align: center;
  }

  .bs-stepper-line {
    flex: 0 0 auto;
  }

  #stepper {
    overflow-x: hidden; /* prevent outer container from scrolling */
  }

  body {
    overflow-x: hidden; /* as a safety net */
  }
}


/* Step circle: default (upcoming) - transparent with orange border and text */
.bs-stepper .step .bs-stepper-circle {
    background-color: transparent;
    color: #D65F00;
    border: 2px solid #D65F00;
    border-radius: 50%;
    padding: 0.4rem;
    display: inline-block;
    font-weight: 500;
}

/* Active/current step circle: solid orange with white text */
.bs-stepper .step.active .bs-stepper-circle {
    background-color: #D65F00;
    color: #fff;
    border-color: #D65F00;
}

/* Completed step circle: solid orange with white text */
.bs-stepper .step.completed .bs-stepper-circle {
    background-color: #D65F00;
    color: #fff;
    border-color: #D65F00;
}

.is-invalid {
    border-color: #dc3545 !important;
}


.card-text small {
    font-weight: normal;
    margin-left: 4px;
}

#registrationError {
    color: #dc3545; /* Bootstrap danger/red color */
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.select2-container {
    z-index: 900; /* or higher if needed */
}

.select2-container--default .select2-selection--single.is-invalid,
.select2-container--default .select2-selection--multiple.is-invalid {
  border-color: #dc3545 !important; /* Bootstrap red */
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Style the selected items like Bootstrap alerts */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #198754 !important; /* Bootstrap success green */
    color: #fff !important;               /* White text */
    border: none !important;              /* No border */
    border-radius: 20px !important;       /* Pill shape */
    padding: 4px 12px !important;
    margin-top: 4px;
    margin-right: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Style the remove "x" button */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #fff !important;
  margin-right: 6px;
  font-weight: bold;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  opacity: 1;
}

/* Make the Select2 control taller */
.select2-container .select2-selection--multiple {
  min-height: 48px;           /* taller than default (~38px) */
  padding: 6px 12px;          /* more padding for vertical space */
  border-radius: 0.375rem;    /* keep Bootstrap's rounded corners */
  font-size: 1rem;            /* optional: keep font size normal */
  line-height: 1.5;
  /* optionally adjust border color, box-shadow on focus if needed */
}

/* Adjust placeholder and selected items vertical alignment */
.select2-container .select2-selection__rendered {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Adjust the height of the dropdown arrow container */
.select2-container .select2-selection__arrow {
  height: 48px;  /* match min-height */
}

.select2-container .select2-results__options {
  max-height: 400px !important;  /* increase height */
  overflow-y: auto;
}

.select2-container--open.force-down .select2-dropdown {
    top: 100% !important;
    bottom: auto !important;
}

/* Remove autofill background color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important; /* or your input bg color */
  -webkit-text-fill-color: #212529 !important; /* normal text color */
  transition: background-color 5000s ease-in-out 0s;
}

select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: #212529 !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important; /* Replace white with your input bg */
  -webkit-text-fill-color: #212529 !important; /* Normal text color */
  transition: background-color 5000s ease-in-out 0s;
  caret-color: auto !important; /* Prevent caret blinking color weirdness */
  animation-name: none !important; /* Stop any autofill animation */
  outline: none !important; /* Remove default focus outline if you want */
}


/* Optionally, change the selected tag ("pill") background */
.select2-container--classic .select2-selection__choice {
  border-color: #badbcc;
}

.select2-container--default .select2-selection--multiple .select2-search__field:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: #212529 !important;
  animation-name: none !important;
}


/* Select2 override for font */
.select2-container--default .select2-selection--multiple {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: rgb(57, 54, 79);
  letter-spacing: 0.25px;
}