/* ------------------------------------------------------------------
   tools-legacy.css
   Extracted from the legacy style.css for the /tools/ calculator
   pages so they can drop the full old theme and adopt the new
   header/footer partials (main.css). Contains only the utility and
   component classes those page BODIES use. No old header/footer
   rules, element-level globals, or .container (main.css owns that).
   ------------------------------------------------------------------ */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

:root {
  --primary: rgba(78, 90, 244, 1);
  --secondary: rgba(78, 90, 244, 0.05);
  --black-color: #434343;
  --white-color: #ffffff;
  --black: #000000;
}

.bg-theme-light {
  background-color: var(--secondary);
}

.bg-white {
  background-color: var(--white-color);
}

.text-center {
  text-align: center;
}

.section-header {
  width: 1200px;
  max-width: 100%;
  margin: auto;
}

.text-theme-black {
  color: var(--black-color);
}

.position-relative {
  position: relative;
}

.w-100 {
  width: 100%;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.justify-content-between {
  justify-content: space-between;
}

.mt-0 {
  margin-top: 0 !important;
}

.pb-0 {
  padding-bottom: 0;
}

.mb-5 {
  margin-bottom: 0.3125rem;
}

.py-5 {
  padding-bottom: 0.3125rem;
}

.py-5 {
  padding-top: 0.3125rem;
}

.mt-10 {
  margin-top: 0.625rem;
}

.mb-15 {
  margin-bottom: 0.9375rem;
}

.mt-15 {
  margin-top: 0.9375rem;
}

.px-15 {
  padding-left: 0.9375rem;
}

.px-15 {
  padding-right: 0.9375rem;
}

.mb-20, .my-20 {
  margin-bottom: 1.25rem;
}

.my-20 {
  margin-top: 1.25rem;
}

.p-15 {
  padding: 0.9375rem;
}

.px-20 {
  padding-left: 1.25rem;
}

.px-20 {
  padding-right: 1.25rem;
}

.pt-20 {
  padding-top: 1.25rem;
}

.mb-35 {
  margin-bottom: 2.1875rem;
}

.pt-40 {
  padding-top: 2.5rem;
}

.pl-55 {
  padding-left: 3.4375rem;
}

.pl-65 {
  padding-left: 4.0625rem;
}

.pt-85 {
  padding-top: 5.3125rem;
}

.pr-100 {
  padding-right: 6.25rem;
}

.h-100 {
  height: 100%;
}

.m-auto {
  margin: auto;
}

.lh-medium {
  line-height: 1.5;
}

.font-36 {
  font-size: 36px;
}

.font-32 {
  font-size: 32px;

  @media (max-width: 768px) {
    font-size: 24px;
  }

  @media (max-width: 567px) {
    font-size: 22px;
  }
}

.font-16 {
  font-size: 16px;
}

.font-18 {
  font-size: 18px;
}

.font-20 {
  font-size: 20px;
}

.font-24 {
  font-size: 24px;
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.gap-15 {
  gap: 15px;
}

@media (max-width: 992px) {
  .font-36 {
    font-size: 30px;
  }
  .font-24 {
    font-size: 22px;
  }
}

@media (max-width: 776px) {
  .text-md-center {
    text-align: center;
  }
  .d-md-block {
    display: flex !important;
  }
  .font-36 {
    font-size: 28px;
  }
  .font-20 {
    font-size: 18px;
  }
}

@media (max-width: 578px) {
  .font-20 {
    font-size: 18px;
  }
  .font-24 {
    font-size: 20px;
  }
  .font-18 {
    font-size: 16px;
  }
  .font-36 {
    font-size: 24px;
  }
  .text-sm-center {
    text-align: center;
  }
}

.hide-menu-btn {
  padding: 10px;
  background-color: transparent;
  border-radius: 50%;
  border: none;
  box-shadow: 1px 1px 8px #f1f1f1;
  display: inline-flex;
}

.blog-cta-section {
  background-color: #f8fffa;
  border: 2px dashed #7dde9d;
  padding: 40px 20px;
  margin: 20px auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 250px;
}

.blog-cta-section .image-container {
  flex: 1;
  text-align: center;
  min-width: 200px;
}

.blog-cta-section .image-container img {
  height: auto;
  width: 100%;
}

.blog-cta-section .content-container {
  flex: 2;
  text-align: left;
  padding-left: 20px;
  min-width: 250px;
}

.blog-cta-section .content-container h2 {
  color: #555555;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-cta-section .content-container > p {
  color: #434343;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 22px;
  font-weight: 400;
}

.blog-cta-section .bullet-points-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.blog-cta-section .bullet-points-container .col {
  flex: 1;
  min-width: 150px;
}

.blog-cta-section .bullet-points-container .col p {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #434343;
}

.blog-cta-section .content-container .cta-button {
  background-color: #4e5af4;
  color: white;
  padding: 6px 25px 7px 25px;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: max-content;
}

.blog-cta-section .content-container .cta-button span {
  margin-top: 4px;
}

@media screen and (max-width: 992px) {
  .blog-cta-section {
    flex-direction: column;
  }
  .blog-cta-section .image-container {
    max-width: 400px;
    min-width: auto;
  }
}

@media (max-width: 578px) {
  .blog-cta-section {
    padding: 20px;
  }
  .blog-cta-section .bullet-points-container {
    flex-direction: column;
    gap: 0px;
  }
  .blog-cta-section .image-container {
    display: none;
  }
}

@media screen and (max-width: 450px) {
  .blog-cta-section .content-container {
    padding-left: 0px;
  }
  .blog-cta-section .content-container .cta-button {
    font-size: 0.95rem;
  }
  .blog-cta-section .content-container .cta-button span img {
    width: 12px;
  }
}

.service-backdrop {
  width: 100%;
  height: 100%;
  position: fixed;
  margin: auto;
  top: 0;
  left: 0px;
  right: 0px;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 1s ease;
  /* overflow: hidden; */
}

.service-backdrop.show {
  top: -200vh;
  transition: all 1s ease;
}

.service-dropdown {
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: auto;
  position: absolute;
  top: 0;
  left: 0;
}

.x-mark {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 46px;
  right: 46px;
  cursor: pointer;
}

.cursor-pointer {
  cursor: pointer;
}

.service-tab-link span {
  display: block;
  padding: 2px 0px;
  border-radius: 4px;
  position: relative;
  margin: 5px 0;
}

.service-tab-link.active span {
  color: var(--primary);
  /* background-color: var(--black) !important; */
  /*  */
}

.list-seprator {
  border-bottom: 1px solid var(--black-color);
}

.service-tab-link:hover span {
  color: var(--primary) !important;
}

.service-dropdown-card-33, .service-dropdown-right-sdie {
  /* width: 32%; */
  flex: 1;
}

.service-dropdown-left-sdie {
  width: 231px;
}

.service-dropdown-right-sdie {
  display: none;
  /* Hide all tab content by default */
}

.service-dropdown-right-sdie.active {
  display: block;
  /* Show active tab content */
}

.service-dropdown-right-sdie .service-block-link > h2 {
  position: relative;
  display: inline-block;
}

.service-dropdown-right-sdie .service-block-link > h2:after {
  content: "";
  width: 14px;
  height: 14px;
  border: 3px solid #434343;
  position: absolute;
  top: 9px;
  right: -28px;
  border-top: 0;
  border-left: 0;
  transform: rotate(-45deg);
  transition: all 0.3s ease;
}

.service-dropdown-right-sdie .service-block-link:hover > h2:after {
  border-color: #4e5ae0;
  right: -35px;
}

@media (max-width: 992px) {
  .service-dropdown-left-sdie {
    width: 100%;
  }
  .flex-lg-wrap {
    flex-wrap: wrap;
  }
  .service-tab {
    padding-top: 20px;
  }
  .list-seprator {
    margin-top: 0px;
    margin-bottom: 0px;
    height: 20px;
    width: 2px;
    background-color: var(--black-color);
  }
  .service-tab ul {
    flex-direction: row;
    display: flex;
    width: 100%;
    justify-content: space-around;
  }
  .service-dropdown-right-sdie {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 767px) {
  .d-md-none {
    display: none;
  }
  .x-mark {
    width: 30px;
    height: 30px;
    margin-right: 0px;
    position: unset;
  }
}

.accordion {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  /* border: 1px solid #ddd; */
  padding: 0px 20px;
  border-radius: 4px;
}

.accordion-item {
  /* border-top: 1px solid #ddd; */
}

.accordion-header {
  /* background-color: var(--secondary); */
  /* padding: 15px; */
  cursor: pointer;
  /* font-weight: bold; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* font-size: 20px; */
  /* border-radius: 0px 0px 6px 6px; */
  /* border-top: 1px solid var(--black-color); */
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 10px;
}

.accordion-content {
  display: none;
  padding: 4px 0px;
  background-color: #fff;
  /* border-bottom: 1px solid #ddd; */
}

.accordion-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.accordion-content p {
  margin: 0 0 10px;
}

.accordion-header.active {
  border-bottom: 1px solid var(--black-color);
  padding: 10px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background-color: #f9f9f9;
}

.simple-link {
  display: inline-flex;
  align-items: center;
  color: var(--black-color);
  text-decoration: none;
  font-size: 14px;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
  margin: 5px 0;
}

.simple-link:hover {
  text-decoration: underline;
}

.simple-link svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content p {
  margin: 0;
}

.d-md-block {
  display: none;
}

.hover-text:hover {
  color: #4e5af4;
}

.service-dropdown-card-33:hover {
  background-color: rgba(78, 90, 244, 0.15);
}

.service-block-link {
  display: block;
  background-color: #fff;
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.service-block-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #4e5ae015;
  top: 0;
  left: -100%;
  transition: all 0.3s ease;
}

.service-block-link:hover::before {
  left: 0;
}

.service-block-link h2, .service-block-link p {
  position: relative;
}

.service-block-link:hover h2 {
  color: #4e5ae0;
}

.service-close-btn img {
  opacity: 0;
}

.service-close-btn {
  width: 40px;
  height: 40px;
  overflow: hidden;
  background-image: url(../img/cross.png);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center 0;
  transition: all 0.15s ease;
}

.service-close-btn:hover {
  background-position: center -41px;
}

.faq-section {
  background-color: #fff;
}

.faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  padding-right: 2rem;
}

.faq-icon {
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #4E5AF4;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: #4B5563;
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-question h3 {
      font-size: 16px;
  }
  .faq-answer li {
      font-size: 14px;
  }
  .faq-answer ul {
      font-size: 14px;
  }
  .faq-answer p {
      font-size: 14px;
  }
}

body.no-scroll {
  overflow: hidden;
}

/* ------------------------------------------------------------------
   Internal styles moved out of the tool pages' inline <style> blocks
   (retention rich-text + single-result, PTO tooltips + layer grid).
   The former bare `ul { ... }` rule is scoped to .hr-tools-section so
   it can't leak disc bullets into the shared header/footer partials.
   ------------------------------------------------------------------ */

/* Rich-text tool content */
.tool-content-container a { color: blue; }
.tool-content-container h2 {
  margin-block-start: 1.5em;
  margin-block-end: 0.83em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}
.tool-content-container p {
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}
.tool-content-container ul {
  list-style-type: disc !important;
  padding-left: 20px;
  margin-bottom: 10px;
}
.tool-content-container ul ul {
  list-style-type: circle !important;
  padding-left: 20px;
  margin-bottom: 10px;
}
.tool-content-container ol {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 10px;
}
.tool-content-container li { margin-bottom: 10px; }
.tool-content-container strong { display: inline; }
.tool-content-container h3 {
  margin-block-start: 1em;
  margin-block-end: 0.83em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

/* Tool-section lists (was a global `ul` rule on the PTO page) */
.hr-tools-section ul {
  list-style-type: disc !important;
  padding-left: 20px;
  margin-bottom: 10px;
}

/* Single result layout */
.hr-tools-results.single-result { max-width: 720px; margin: 30px auto 0; }
.hr-tools-results.single-result h4 { font-size: 1.5rem; margin-bottom: 12px; }
.hr-tools-results.single-result h4::before { display: none; }
.hr-tools-results.single-result .hr-tools-card-result {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 10px 0 0;
}
.hr-tools-results.single-result .hr-tools-card-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4e5af4;
}

/* Tooltip (tool inputs) */
.tooltip-wrapper { position: relative; display: inline-block; cursor: help; }
.tooltip-icon {
  margin-left: 6px;
  font-weight: bold;
  color: #4e5af4;
  border-radius: 50%;
  padding: 0 5px;
  border: 1px solid #4e5af4;
  font-size: 0.8rem;
  line-height: 1;
}
.tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
.tooltip-wrapper:hover .tooltip-text { visibility: visible; opacity: 1; }

/* Layer grid */
.layer-grid {
  grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .layer-grid { grid-template-columns: 1fr 1fr !important; }
  .hr-tools-results h4 { font-size: 1.25rem; }
}
