body,
html {
  padding: 0px;
  margin: 0px;
  font-family: Manrope, sans-serif;
}

body {
  background-color: #002862;
}

label,
span,
h1,
h2,
h3,
h4,
p,
th,
td,
a {
  color: #ddd;
}

header {
  background-color: #21307f;
  color: white;
}

.header {
  height: 120px;
}

.logo {
  position: absolute;
  left: 12px;
}

.logo img {
  height: 60px;
}

.w-100 {
  width: 100px;
}
.w-200 {
  width: 200px;
}
.w-300 {
  width: 300px;
}

footer {
  color: white;
  background-color: #1a1a1a;
}

#main_wrapper {
  min-height: calc(100vh - 240px);
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0.5rem;
}

#main_wrapper label,
#main_wrapper span,
#main_wrapper h1,
#main_wrapper h2,
#main_wrapper h3,
#main_wrapper h4,
#main_wrapper p,
#main_wrapper th,
#main_wrapper td,
#main_wrapper a {
  color: #333;
}

.steps {
  width: 100%;
  background-color: #6c757d;
  height: 3em;
  line-height: 1em;
  border-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
}

.steps a {
  padding: 1em;
  text-align: center;
  display: inline-block;
  position: relative;
  height: 3em;
  box-sizing: border-box;
  color: white;
  opacity: 0.8;
  float: left;
  box-shadow: inset 8em 0 4em -4em rgb(0 0 0 / 5%);
  font-weight: normal;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.steps a span {
  color: rgb(255, 255, 255);
  opacity: 0.8;
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: center;
  width: 100%;
}

.steps a span::before {
  content: "";
  display: inline-block;
  width: 1.5em;
}

.steps a::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 1.5em solid transparent;
  border-left: 1.5em solid #6c757d;
  border-bottom: 1.5em solid transparent;
  background-color: transparent;
  position: absolute;
  left: 100%;
  top: 0;
  z-index: 12;
}

.steps a:first-child {
  border-radius: 0.5rem 0rem 0rem 0.5rem;
}
.steps a:last-child {
  border-radius: 0rem 0.5rem 0.5rem 0rem;
}
.steps a:last-child::after {
  display: none;
}

.steps a[current] {
  background-color: #212529;
}
.steps a[current]::after {
  border-left-color: #212529;
}
.steps a[current] span {
  opacity: 1;
}

.events-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.event {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 2px solid #e5e5e5;
  cursor: pointer;
  transition: all 0.2s;
}
.event:hover {
  transform: scale(1.05);
  background-color: rgba(0, 0, 0, 0.1);
}

.event .cover img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.event h5 {
  color: #000 !important;
  font-weight: bold;
}

#ticket_table tr {
  vertical-align: middle;
}

#loading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
}

#loading-wrapper img {
  width: 100px;
  height: 100px;
}

@media (max-width: 767px) {
  .header {
    height: inherit;
  }
  .logo {
    position: relative;
  }
  .logo img {
    height: 40px;
  }
  .event {
    grid-template-columns: 135px 1fr;
    gap: 1rem;
  }

  .event .cover {
    order: 1;
  }

  .event .content {
    order: 2;
  }

  .event .cover img {
    width: 135px;
  }

  .event .content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .event .content span,
  .event .content p {
    font-size: 0.8rem;
  }
}

/* Validation styles */
.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.is-invalid:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Compact table styles */
.table-sm th,
.table-sm td {
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
}

.table-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
}

/* Cart table specific styling */

#ticket_table th,
#ticket_table td {
  color: #333;
  border: none;
  border-bottom: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

#ticket_table thead th {
  background-color: #223182;
  border: none;
  border-bottom: 2px solid #223182;
  font-weight: 600;
  color: white;
}

#ticket_table .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

#ticket_table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Table horizontal scroll */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#ticket_table {
  font-size: 1rem;
  margin-bottom: 1rem;
  min-width: 800px;
  width: 100%;
}

/* Breadcrumb styles */
#breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #001941;
  border-radius: 0.5rem;
  overflow: hidden;
}

#breadcrumb li {
  flex: 1;
  position: relative;
  opacity: 0.5;
}

#breadcrumb li.active {
  opacity: 1;
}

#breadcrumb li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 1.5em solid transparent;
  border-left: 1.5em solid #001941;
  border-bottom: 1.5em solid transparent;
  z-index: 1;
}

#breadcrumb li.active:not(:last-child)::after {
  border-left-color: #223182;
}

#breadcrumb li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: white;
  background-color: #001941;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

#breadcrumb li.active a {
  background-color: #223182;
  color: white;
}

#breadcrumb li a:hover {
  background-color: #223182;
  color: white;
}

#breadcrumb li.active a:hover {
  background-color: #2a3884;
  color: white;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-right: 0.75rem;
  font-size: 1.2rem;
  color: white;
}

#breadcrumb li.active .step-icon {
  background-color: rgba(255, 255, 255, 0.3);
}

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

.step-text {
  font-weight: 500;
  font-size: 0.9rem;
  color: white;
}

.sponsor-slider {
  display: flex;
}

.swiper-slide {
  width: 150px;
  height: 150px;
}

.ubc-container {
  max-width: 1240px;
  padding: 8px 16px;
}

@media (max-width: 768px) {
  #breadcrumb li a {
    padding: 0.75rem 1rem;
    flex-direction: column;
    text-align: center;
  }

  .step-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .step-text {
    font-size: 0.8rem;
  }
}

@media print {
  button,
  a {
    display: none !important;
  }
}
