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;
}

.half-card {
  width: 100%;
}

@media (min-width: 1200px) {
  .half-card {
    width: 60%;
  }
}

.badges {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;

  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
  padding: 2px 0.5rem; /* 8px*/
  cursor: pointer;
  border: none;
  border-radius: 0.375rem; /* 6px */
  outline: none;
}

.badges-large {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;

  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem; /* 28px */
  padding: 6px 1.25rem; /* 24px */
  cursor: pointer;
  border: none;
  border-radius: 0.5rem; /* 8px */
  outline: none;
}

.badge-blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: rgb(59 130 246);
  border: 1px rgb(59 130 246) solid;
}

.badge-yellow {
  background-color: rgba(234, 179, 8, 0.1);
  color: rgb(234 179 8);
  border: 1px rgb(234 179 8) solid;
}

.badge-green {
  background-color: rgba(34, 197, 94, 0.1);
  color: rgb(34 197 94);
  border: 1px rgb(34 197 94) solid;
}

.badge-red {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(239 68 68);
  border: 1px rgb(239 68 68) solid;
}

.badge-orange {
  background-color: rgba(249, 115, 22, 0.1);
  color: rgb(249, 115, 22);
  border: 1px rgb(249, 115, 22) solid;
}

.badge-brown {
  background-color: rgba(120, 63, 4, 0.1);
  color: rgb(120, 63, 4);
  border: 1px rgb(120, 63, 4) solid;
}

.badge-light-green {
  background-color: rgba(134, 239, 172, 0.1);
  color: rgb(134, 239, 172);
  border: 1px rgb(134, 239, 172) solid;
}

.badge-light-red {
  background-color: rgba(252, 165, 165, 0.1);
  color: rgb(252, 165, 165);
  border: 1px rgb(252, 165, 165) solid;
}

.badge-dark-red {
  background-color: rgba(153, 27, 27, 0.1);
  color: rgb(153, 27, 27);
  border: 1px rgb(153, 27, 27) solid;
}

.badge-dark-blue {
  background-color: rgba(30, 58, 138, 0.1);
  color: rgb(30, 58, 138);
  border: 1px rgb(30, 58, 138) solid;
}

.badge-purple {
  background-color: rgba(168, 85, 247, 0.1);
  color: rgb(168, 85, 247);
  border: 1px rgb(168, 85, 247) solid;
}

.badge-pink {
  background-color: rgba(236, 72, 153, 0.1);
  color: rgb(236, 72, 153);
  border: 1px rgb(236, 72, 153) solid;
}

.badge-grey {
  background-color: rgba(156, 163, 175, 0.1);
  color: rgb(156 163 175);
  border: 1px rgb(156 163 175) solid;
}

.stars-radio {
  display: flex;
  justify-content: start;
  gap: 10px;
  flex-direction: row-reverse;
}

.stars-radio > input {
  position: absolute;
  appearance: none;
}

.stars-radio > label {
  cursor: pointer;
  font-size: 30px;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.stars-radio > label > svg {
  fill: #666;
  transition: fill 0.3s ease;
}

/* .stars-radio > label::before,
.stars-radio > label::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #ff9e0b;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  animation: particle-explosion 1s ease-out;
}

.stars-radio > label::before {
  top: -15px;
  left: 50%;
  transform: translateX(-50%) scale(0);
}

.stars-radio > label::after {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) scale(0);
} 

.stars-radio > label:hover::before,
.stars-radio > label:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1.5);
} */

.stars-radio > label:hover {
  transform: scale(1.2);
  animation: pulse 0.6s infinite alternate;
}

.stars-radio > label:hover > svg,
.stars-radio > label:hover ~ label > svg {
  fill: #ff9e0b;
  filter: drop-shadow(0 0 15px rgba(255, 158, 11, 0.5));
  animation: shimmer 1s ease infinite alternate;
}

.stars-radio > input:checked + label > svg,
.stars-radio > input:checked + label ~ label > svg {
  fill: #ff9e0b;
  filter: drop-shadow(0 0 15px rgba(255, 158, 11, 0.5));
  animation: pulse 0.8s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes particle-explosion {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes shimmer {
  0% {
    filter: drop-shadow(0 0 10px rgba(255, 158, 11, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 158, 11, 0.6));
  }
}

.stars-radio > input:checked + label:hover > svg,
.stars-radio > input:checked + label:hover ~ label > svg {
  fill: #e58e09;
}

.stars-radio > label:hover > svg,
.stars-radio > label:hover ~ label > svg {
  fill: #ff9e0b;
}

.stars-radio input:checked ~ label svg {
  fill: #ffa723;
}




/*Below style for set mailto for email field*/

.email-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bs-link-color, #0d6efd); /* Bootstrap primary blue */
    text-decoration: underline; /* underline always by default */
    cursor: pointer;
    color: var(--bs-link-color, #0d6efd) !important;
}

.email-link:focus {
  color: var(--bs-link-color, #0d6efd);
  text-decoration: underline;          /* keep underline on focus */
  outline: none;                       /* optional: remove outline */
}

.email-link:hover {
  color: var(--bs-link-hover-color, #0a58ca); /* darker blue on hover */
  text-decoration: none;                      /* remove underline on hover */
}

.inactive-email-link {
    display: block !important;
    width: 100% !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background-color: #e9ecef !important; /* Bootstrap disabled input bg */
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
}