body {
  background: #f1f2f2;
  color: #282828;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}
/* Prevent elements from breaking across pages */
.card,
.row,
.form-group,
.form-control,
.input-group {
  page-break-inside: avoid; /* Avoid breaking inside elements */
  break-inside: avoid; /* For modern browsers */
}

/* Ensure tables or large elements stay together */
table,
th,
td {
  page-break-inside: avoid;
}

/* Optional: Add padding/margin to prevent elements from sticking to the page edge */
/* body {
  padding: 10px;
} */

/* Style for the switch container */
.form-check.form-switch {
  position: relative;
}
.rColour {
  color: white;
  background-color: #8dc63f;
}
.font18 {
  font-size: 18px;
  color: white;
}
/* Style for the switch input (hidden) */
.form-check-input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Style for the toggle button */
.btn-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d9534f; /* Default red for No */
  border-radius: 50px;
  width: 60px;
  padding: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Style for Yes and No labels inside the toggle */
.label-text {
  color: white;
  font-size: 1rem;
  /* font-weight: bold; */
  transition: opacity 0.3s ease;
}

/* When checked, the toggle background changes to green */
.form-check-input:checked + #toggleLabel {
  background-color: #009677; /* Green for Yes */
}

/* When unchecked, the toggle stays red (No) */
.form-check-input:not(:checked) + #toggleLabel {
  background-color: #d9534f; /* Red for No */
}

/* Slide effect for Yes/No transition */
.form-check-input:checked + #toggleLabel #yesLabel {
  opacity: 1;
  margin-left: 4px;
  transform: translateX(0);
}

.form-check-input:not(:checked) + #toggleLabel #noLabel {
  opacity: 1;
  transform: translateX(0);
  margin: auto;
}

.form-check-input:checked + #toggleLabel #noLabel {
  opacity: 0;
  margin-right: 4px;
  transform: translateX(100%);
}

.form-check-input:not(:checked) + #toggleLabel #yesLabel {
  opacity: 0;
  transform: translateX(-100%);
}

#left-block label {
  font-weight: 500;
}
/* Hover effect for the toggle */
.btn-toggle:hover {
  transform: scale(1.1);
}

.form-control,
.form-check-input,
.form-range {
  border-radius: 8px;
  border-color: #ccc;
}

/* p,
label {
  color: #282828;
}
label {
  font-size: 1.1rem;
  font-weight: 600;
} */
#stdInvestmentTable td:first-child {
  font-weight: bold;
}
.btn-check:focus + .btn-primary,
.btn-primary:focus {
  color: #fff;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}

input[type="range"]:focus {
  background: #008b72;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #009677;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]:active::-webkit-slider-thumb {
  background: #007b63;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #009677;
  border-radius: 50%;
  cursor: pointer;
}

.smaller-label {
  font-size: 0.875rem; /* 15px, reduced from 16px */
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
  label {
    font-size: 1rem;
  }
}
.row {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Banner styling */
/* .banner {
  background: url("../images/Personalised Risk Tool Header Final.png") no-repeat
    center center / contain;
  height: 400px;
  display: flex;
  align-items: center;
  color: white;
} */
/* Remove border, background, and style btn-secondary as text */
.btn-secondary {
  background: transparent;
  border: none;
  width: 40%;
  color: #000; /* Set the text color to black or any color you prefer */
  font-size: 1rem; /* Optional: adjust text size if necessary */
  padding: 0; /* Optional: remove padding if you want it to look like plain text */
  text-decoration: none; /* Optional: remove underline */
  cursor: pointer; /* Optional: add a pointer cursor on hover */
}

.btn-secondary:hover {
  color: #009677; /* Change color on hover if desired */
  background: none;
  background-color: transparent;
}

/* .btn-primary {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-family: inherit;
  text-transform: uppercase;
  border: none;
  width: 40%;
  padding: 15px 32px;
  border-radius: 5px;
  line-height: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  background: white;
  color: #000;
  background: #dcddde;
  color: #a7a9ac;
} */
.btn-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.btn-primary {
  background: linear-gradient(90deg, #009677 0%, #8dc63f 100%);
  border: none; /* Optional: remove border if needed */
  /* width: 40%; */
  padding: 12px;
}
.banner-text {
  margin-left: 5%;
  font-size: 2rem;
  padding: 10px 20px;
  border-radius: 5px;
  /* width: 35%; */
}

.banner img {
  position: absolute;
  top: 27px;
  left: 40px;
  max-height: 92px;
  /* width: auto; */
  padding: 5px;
  max-width: 76px;
}
/** FOOTER **/
.section-before-footer {
  color: #4e6066;
  /** margin-top: 60px; **/
  margin-top: 60px;
}
.section-before-footer a {
  color: inherit;
  text-decoration: none;
}
.section-before-footer a:hover {
  color: var(--om-color2);
}
.section-before-footer .container {
  width: 100%;
  max-width: 100%;
  padding: 0% 0% 0% 11%;
}
.section-before-footer .list-inline {
  display: block;
}
.section-before-footer .list-inline li {
  display: inline-block;
  font-size: 12px;
  font-weight: normal;
}
.section-before-footer .list-inline li:after {
  /* content: "|"; */
  content: none !important;
  margin: 0 10px;
}
.section-before-footer .inline-list {
  display: flex;
  gap: 50px;
}
.section-before-footer .inline-list div {
  position: relative;
}
.section-before-footer .inline-list div:after {
  content: "";
  border-right: 1px solid;
  position: absolute;
  right: -25px;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
}
.section-footer {
  background-image: url("../images/Old_Mutual_HTML Footer_Final.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding-top: 11%;
}

.section-footer .container {
  width: 1920px;
  max-width: 100%;
  padding: 35px 135px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-om-logo {
  /* background: linear-gradient(1turn, #60b848, #009677 96.71%); */
  width: 76px;
  display: flex;
  justify-content: center;
  /* padding-top: 25px; */
  position: absolute;
  left: 51px;
  /* top: -60px; */
  bottom: 0;
  height: 226px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}
.footer-logo h2 {
  font-size: 14px;
  font-weight: normal;
}
.section-footer a {
  color: #000;
  text-decoration: none;
}
.section-footer a:hover {
  color: var(--om-color2);
}
.footer-left {
  width: 67%;
}
.footer-right {
  width: 20%;
}
.section-footer p:not(:last-child) {
  margin-bottom: 1em;
}
.footer-right ul {
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
}
.footer-right ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 5px;
}
.section-footer .footer-right p {
  margin-bottom: 8px;
}

/** END FOOTER **/
@media (max-width: 768px) {
  .banner {
    height: 200px;
  }
  .section-before-footer .container {
    width: 100%;
    max-width: 100%;
    padding: 0% 16% 0% 16%;
  }
  .banner img {
    height: 60px;
  }
  .banner-text {
    width: 80%; /* Adjust width for mobile */
    font-size: 1.5rem; /* Reduce font size on smaller screens */
  }
}
.card {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn {
  transition: background-color 0.3s ease;
}

.card-result {
  background: linear-gradient(90deg, #009677 0%, #8dc63f 100%);
}

.header-result {
  color: white; /* Make the result text white */
  font-weight: bold; /* Make the result text bold */
  text-transform: uppercase; /* Make the result text capitalized */
}

/* Ensure white text color for labels */
.value-label-container .form-label {
  color: white; /* Set label color to white */
}

/* Make the values bold */
.value-label-container .value {
  color: white; /* Set value text color to white */
  font-weight: bold; /* Make the value text bold */
}
@media (max-width: 576px) {
  .section-before-footer .container {
    width: 100%;
    max-width: 100%;
    padding: 0% 5% 12% 5%;
  }

  .banner {
    height: 200px;
  }
  .banner img {
    height: 60px;
  }
  .banner-text {
    font-size: 14px; /* Adjust banner text size */
  }

  .card {
    padding: 20px;
  }

  .header-result {
    font-size: 20px; /* Adjust result header size */
  }
}
/* Reduce placeholder font size globally */
input::placeholder,
textarea::placeholder,
select::placeholder {
  font-size: 0.89rem; /* Or try 12px */
  opacity: 1; /* Optional: increase visibility */
  color: #6c757d; /* Optional: make consistent with Bootstrap */
}
.disclaimer-text {
  font-size: 0.875rem; /* Reduced by 1 point from 1rem (16px) to 14px */
  line-height: 1.5;
}
.form-control {
  font-size: 0.875rem;
}
.form-select {
  font-size: 0.875rem;
}