@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css);
@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  line-height: 1.5;
  font-family: "Montserrat", sans-serif;
  background-color: whitesmoke;
  text-align: center;
  background-image: url(./images/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover; /* Ensure the background image always covers the viewport */
  background-position: center bottom;
  position: relative;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed; /* Fixed position ensures full-viewport coverage */
  top: 0;
  left: 0;
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
  background-image: inherit; /* Inherit the background image from body */
  background-repeat: no-repeat;
  background-size: cover; /* Ensure it fully covers the viewport */
  background-position: center bottom; /* Align the background correctly */
  filter: blur(8px); /* Apply the blur effect */
  z-index: -1; /* Place it behind content */
  margin: 0; /* Ensure no margins interfere with full coverage */
  padding: 0; /* Ensure no paddings interfere with full coverage */
  box-sizing: border-box; /* Prevent padding or borders from affecting dimensions */
}

img {
  max-width: 100%;
  height: auto;
}

header {
  padding-bottom: 2vh;
  margin-bottom: 2vh;
  border-bottom: 0.5vh solid black;
}

header img {
  width: 25vh;
}

form label {
  font-weight: bold;
}

.showOnMedium {
  display: none;
}

.card {
  opacity: 0.93;
}

.smooth {
  transition: 0.5s;
}

.successBold {
  font-weight: bolder;
  font-size: 24pt;
}

/* Loading Overlay */
#loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-overlay.show {
  display: flex;
}

.loading-spinner {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: white;
  font-size: 20px;
  margin-top: 20px;
  font-weight: bold;
}

/* Medium */
@media screen and (min-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .showOnMedium {
    display: inline-block;
  }
}

/* Large  */
@media screen and (min-width: 992px) {
  .container {
    max-width: 1100px;
    margin: auto;
  }
}

.selectable {
  text-align: center;
  padding: 10px;
  border: 1px dashed #ccc;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.selectable:hover {
  background-color: #f8f9fa;
}

.selected:hover {
  background-color: #74c988; /* Light green */
  border-color: rgb(153, 229, 171);
}

.selectable.selected {
  background-color: #d3f4d9;
  border: 1px solid #74c988;
  color: #159633;
}

.invalid {
  background-color: #f8d7da !important;
  border-color: #f5c6cb !important;
  color: #721c24;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* Custom dropdown improvements */
.custom-dropdown-group {
  display: flex;
  align-items: stretch;
}
.custom-dropdown {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.custom-dropdown-input {
  width: 100%;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.custom-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.custom-dropdown-search {
  border-radius: 0;
  border-bottom: 1px solid #eee;
}
.custom-dropdown-options {
  max-height: 200px;
  overflow-y: auto;
}
.custom-dropdown-option {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.custom-dropdown-option:hover,
.custom-dropdown-option.active {
  background: #f8f9fa;
}
.custom-dropdown-input[readonly] {
  background-color: #fff;
  cursor: pointer;
  background-image: none !important;
  padding-right: 0.75em;
  border-right: 1.5px solid #ced4da;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-dropdown-icon {
  border-left: none !important;
  background: transparent !important;
  cursor: pointer;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.custom-dropdown-input:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
.custom-dropdown-search:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: none;
}
.custom-dropdown-list {
  border-top: 1px solid #ced4da;
  margin-top: -1px;
}
.custom-dropdown-option {
  border-bottom: 1px solid #f1f1f1;
}
.custom-dropdown-option:last-child {
  border-bottom: none;
}
.custom-dropdown-option.active,
.custom-dropdown-option:active {
  background: #e9ecef;
}
@media (max-width: 576px) {
  .break-mobile {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.25em;
  }
}
.bs-feedback-icon-wrapper {
  background: #fff;
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.custom-dropdown-input {
  position: relative;
  padding-right: 2.5em !important;
}
.custom-dropdown-icon-inside {
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
