:root {
  --secondary-color: #c50000;
  --primary-color: #2e3192;
  --text-color: rgba(0, 0, 0, 0.87);
  --gray-bg-color: #f7f7f7;
}
.wrapper {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  max-width: 1350px;
  margin: 0 auto;
  padding: 1rem;
}
.wrapper .container {
  width: 100%;
  max-width: 900px;
  color: var(--text-color);
}
/* ---------------------BREADCRUMS---------------------- */
.breadcrumbs-wrapper {
  width: 100%;
  background: var(--gray-bg-color);
  padding: 0.5rem 1rem;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  max-width: 1350px;
  margin: 0 auto;
}
.breadcrumbs i {
  margin: 0 0.5rem;
}
.breadcrumbs a {
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
}
/*  important as its over ridden by the above  */
.first-page {
  text-decoration: underline !important;
}
.current-page {
  color: var(--primary-color) !important;
}
/* ---------------IMAGE WRAPPER------------------- */
.img-wrapper {
  max-width: 1350px;
  margin: 0 auto;
}
.img-wrapper img {
  width: 100%;
  object-fit: contain;
}
/* ============HEADER=============================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-direction: column;
}
.header-info-wrapper {
  width: 100%;
}
.header-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.header-info p {
  margin: 0;
  margin-top: 8px;
  color: var(--text-color);
}
.header-info-wrapper h1 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-block: 0;
}

.category {
  font-size: 14px;
  margin-bottom: 20px;
}

.alias-container {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  align-items: center;
}
.alias-container div {
  width: 100%;
  display: flex;
  gap: 1rem;
}

.alias {
  font-weight: bold;
  font-size: 14px;
  width: max-content;
}

.tag {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: white;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  width: max-content;
  margin: 0;
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.description {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.price-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.old-price-container {
  width: max-content;
  position: relative;
}
.old-price {
  font-size: 16px;
  color: #999;
}
.old-price::before {
  content: "";
  background: #000;
  height: 1px;
  display: block;
  width: 100%;
  position: absolute;
  transform: rotate(-10deg);
  margin-top: 7px;
}
.new-price {
  font-size: 24px;
  color: black;
  font-weight: bold;
  margin-left: 0.5rem;
}
.test-list {
  margin: 20px 0;
}
.test-list div {
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}
.test-list .title {
  font-weight: bold;
}
/* ===============SIDE BAR ------------------- */
.aside-container {
  background-color: white;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);

  width: 100%;
}

.visit-type {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
  margin-bottom: 20px;
}
.visit-type > span {
  font-size: 16px;
  font-weight: bold;
}

.toggle-switch {
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.toggle-switch input {
  display: none;
}

.toggle-switch label {
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-switch input:checked + label {
  background-color: #e60000;
}

.toggle-switch label span {
  color: #961c1c;
  font-size: 14px;
  display: inline-block;
  width: 50%;
  text-align: center;
}

.select-container {
  margin-bottom: 15px;
  position: relative;
}
.select-container .fa-chevron-down {
  position: absolute;
  color: var(--primary-color);
  right: 5%;
  top: 60%;
}
.select-container label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
  margin: 1rem 0;
}
.aside-price {
  display: flex;
  justify-content: start;
  align-items: center;
  margin: 2rem 0;
}
select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  background-color: var(--gray-bg-color);
  border-radius: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.sidebar-buttons, .added_to_cart {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

.add-to-cart,
.added_to_cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

a.ajax_add_to_cart {
  background-color: var(--primary-color) !important;
}

a.ajax_add_to_cart:hover {
  text-decoration: none !important;
}

.contact-centre {
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.request-callback {
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

button:hover, .add-to-cart:hover, .added_to_cart:hover {
  opacity: 0.9;
}
/* ----------------RADIO---------------- */
/* General container for the toggle */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hide the original radio inputs */
.toggle-container input[type="radio"] {
  display: none;
}

/* Style the label to look like a toggle button */
.toggle-container label {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  transition: background-color 0.3s;
}

/* Style for selected state */
.toggle-container input[type="radio"]:checked + label {
  background-color: red;
  color: white;
}

/* Align the toggle options */
.toggle-container label:first-of-type {
  margin-right: 10px;
}

/* Result display section */
#result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
}
/* ----------------------aside-wrapper----------- */
.aside-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card {
  background-color: var(--gray-bg-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);

  width: 100%;
}
.card h2 {
  padding: 1.5rem 1rem;
}
.image-container {
  background: #fff;
  border: 1px solid #e0e0e0;
  position: relative;
  border-radius: 0 0 10px 10px;
}
.image-container .icons {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: flex;
  justify-content: start;
  align-items: end;
  flex-direction: column;
  gap: 1rem;
  color: var(--primary-color);
}
.image-container > img {
  width: 100%;
  border-radius: 0 0 10px 10px;
}
.icon {
  background-color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 50%;
  height: 35px;
  width: 35px;
}
.icon img {
  width: 100%;
}
.icons a {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ----------------SWITCHER---------------- */
.text-small {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

/* Checkbox switch styling */
.switch {
  position: relative;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Checkbox hidden */
.switch input {
  display: none;
}

/* Switch knob */
.switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Switch active state */
.switch input:checked + .switch::before {
  transform: translateX(20px);
}

/* --------------AVAIL SECTION------------------- */
/* --------------AVAIL SECTION------------------- */
.avail-section {
  text-align: center;
  max-width: 1200px;
  margin: 4rem auto;
}

.avail-section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
}

.avail-card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth; /* Allows smooth scrolling for carousel */
  padding: 1rem;
}

.avail-card {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  width: 250px;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.avail-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avail-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #333;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.avail-card p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.avail-card .price {
  font-size: 1rem;
  font-weight: bold;
  margin: 1rem 0;
  display: block;
  color: #000;
}

/* =====================AVAIL CAROUSEL================= */

.carousel-container-tcp {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  padding: 1rem 0;
}

.carousel-btn-tcp {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  display: none; /* Initially hidden */
}

.prev-btn-tcp {
  left: 0px;
}

.next-btn-tcp {
  right: 0px;
}

/* ----------------TEST INFO section------------------ */
.test-info-container {
  width: 100%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.test-preparation,
.reporting-tat,
.specialisation-section {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(43, 43, 43, 0.063);
  border: 1px solid #f3f3f3;
  border-radius: 5px;
}

.label-title {
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 10rem;
}

.label-content {
  color: #555;
}

.specialisation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.specialisation-tag {
  padding: 10px 15px;
  background-color: #fff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.specialisation-tag:hover {
  background-color: var(--primary-color);
  color: #fff;
}
/* ----------------------------TEST PARAMETERS------------------- */
.test-parameters-container {
  width: 100%;
}

.test-parameters-header {
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 10px;
}

.highlight {
  color: #d43f3a;
}

.test-group {
  margin-bottom: 15px;
  border: 1px solid #f5f5f5;
  border-radius: 5px;
  overflow: hidden;
}

.test-group-header {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: #f7f7f7;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.test-group-header:hover {
  background-color: #f1f1f1;
}

.test-count {
  color: #d43f3a;
  position: relative;
}

.test-group-content {
  display: none;
  padding: 15px;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  align-content: start;
}

.test-group-content div {
  padding: 10px 0;
  font-size: 14px;
  color: #333;
}

.fas {
  margin-left: 10px;
  transition: transform 0.3s ease;
  top: 0;
  right: 0;
}

.rotate {
  transform: rotate(180deg);
}
.mobile-version-aside-container,
.mobile-version-card-container {
  display: none;
}

/* =======================MOBILE VERSION========================== */
@media (max-width: 900px) {
  .aside-wrapper {
    display: none;
  }

  .mobile-version-aside-container,
  .mobile-version-card-container {
    display: block;
    margin-bottom: 2rem;
  }
  .carousel-btn-tcp {
    display: block;
  }

  .avail-card-container {
    justify-content: flex-start;
    gap: 1rem;
    overflow: hidden;
  }
}
@media (max-width: 720px) {
  .test-preparation,
  .reporting-tat,
  .specialisation-section {
    flex-direction: column;
  }
  .alias-container {
    flex-direction: column;
  }
  .alias-container div {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 1.5rem;
  }
}
