

  .hero-section {
    padding: 1em;
    text-align: center;
    margin-top: 2em;
  }

  .hero-section img {
    height: 4em;
    width: auto;
  }

  .hero-section h1 {
    font-size: 2em;
    color: #000000;
  }

  .hero-section h2 {
    margin-top: 2em;
    font-size: 2em;
    color: #000000;
  }

  @media (max-width: 800px) {
    .hero-section h1 {
      font-size: 1em;
    }
    }

  .slideshow-container {
    width: 100%;
    margin: auto;
    border-radius: 1%;
    position: relative;
    box-sizing: border-box;
  }

/* Formation Image */
.formation-image {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.formation-image-text {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 2em;
  border-radius: 7px;
}

#companyName {
  width: 40em;
  height: 4em;
  border-radius: 7px;
  text-align: center;
  margin: 1em;
}

.checker {
    width: 60%;
}

.checker1 {
	margin: auto;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .formation-image-text {
    position: static;
    transform: none;
    background: none;
    color: #000;
    padding: 1em 0;
    width: 100%;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .formation-image-text p,
  .formation-image-text input,
  .formation-image-text .checker1 {
    width: 100%;
    text-align: center;
    margin: 0.5em 0;
  }

  .formation-image-text input {
    box-sizing: border-box;
    padding: 0.5em;
  }

  .formation-image {
    margin-top: 5em;
    margin-bottom: 2em;
  }

  .formation-image img {
    display: none;
  }

  #companyName {
    width: 80%;
  }
}
  
  #text,
  #zegar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.9vw;
    width: 25%;
    height: auto;
    text-align: center;
    color: white;
    padding: 1.5em;
    background-color: #616161;
    opacity: 0.9;
    border-radius: 3%;
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
  }
  
  @media only screen and (max-width: 800px) {
    #text,
    #zegar {
      width: 80%;
      padding: 1em;
      font-size: 3vw;
      left: 50%;
    }
  }
  
  .slider-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5vw;
    width: 25%;
    text-align: center;
    padding: 1.5em;
    background-color: #616161;
    opacity: 0.8;
    border-radius: 3%;
    position: absolute;
    top: 50%;
    left: 50%;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
  }
  
  @media (max-width: 600px) {
    .slider-text {
      width: 80%;
      font-size: 4vw;
      left: 50%;
      top: 60%;
      transform: translate(-50%, -50%);
    }
  }
  
  .slide {
    display: none;
  }
  
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -22px;
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
  }
  
  .next {
    right: 0;
  }
  
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 3px;
  }
  
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  
  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
  
  .active,
  .dot:hover {
    background-color: #717171;
  }
  
  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @keyframes fade {
    from {
      opacity: 0.4;
    }
    to {
      opacity: 1;
    }
  }
  
  .calculator {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5em;
    width: 80%;
    padding: 1em 1em;
    justify-content: center;
    flex-direction: row;
  }

  .columnA, .columnB, .columnC {
    width: 25%;
    display: flex;
    justify-content: center;
}

  @media (max-width: 800px) {
    .calculator {
      flex-direction: column;
      align-items: center;
    }
  
    #SAcalculator,  #DRcalculator,  #CTcalculator {
      max-width: 90%;
      padding: 5%;
    }
  
    .calculator input {
      width: 100%;
      padding: 10px;
    }
    .columnA, .columnB, .columnC {
        width: 100%;
        max-width: 90%;
        margin: 10px auto;
    }
  }

#employmentCalculator, #SAcalculator, #DRcalculator, #CTcalculator, #contactform {
    color: black;
    font-size: 1em;
    background-color: rgb(251, 244, 244);
    opacity: 0.9;
    margin: 2% auto;
    padding: 2%;
    border-radius: 2%;
    max-width: 90%;
    text-align: center;
    transition: all 0.3s ease;
}

#employmentCalculator:hover, #SAcalculator:hover, #DRcalculator:hover, #CTcalculator:hover {
    background-color: rgb(255, 255, 255);
}
  
.calctitle {
    text-align: center;
    margin-bottom: 0.7em;
    padding: 2%;
    color: rgb(0, 0, 0);
  }

.calctitle h2 {
    font-size: 1.5em;
  }
  
.hidden {
    display: none;
}

  .show {
    display: block !important;
  }


  @media (max-width: 600px) {
    .hidden {
        display: none !important; /* Force hidden on small screens */
    }
    .show {
        display: block !important; /* Ensure visibility when toggled */
    }
}

.primary-btn {
  display: inline-block;       /* Essential for anchor to behave like button */
  min-width: 8em;
  height: 3em;                 /* Matches original button height */
  line-height: 3em;            /* Vertically centers text exactly */
  padding: 0 10px;             /* Side padding only, no vertical padding */
  border-radius: 8px;
  background-color: #292929;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;          /* Centers horizontally */
  text-decoration: none;       /* Removes underline */
  box-sizing: border-box;      /* Prevents sizing issues */
  vertical-align: middle;      /* Fixes alignment issues with adjacent text */
  margin-top: 0.5em;           /* Ensures a safe gap from text above */
  margin-bottom: 0.5em;        /* Safe gap below button */
}

.primary-btn:hover {
  background-color: #686767;
  border-radius: 16px;
}
  
  .calculator input {
    border-radius: 8px;
    height: 1.8em;
    margin: 0.5em;
    border: 1px solid #ccc;
    padding-left: 0.5em;
  }

  select#taxYear, 
  select#taxYear1,
  select#month {
    border-radius: 8px;
    height: 2em;
    margin: 0.5em;
    border: 1px solid #ccc;
    padding-left: 0.5em;
  }
  
  .main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: auto;
    text-align: center;
    grid-gap: 3em;
    width: 60%;
    margin-top: 5em;
    margin-bottom: 5em;
  }
  
  .column {
    margin-left: auto;
    margin-right: auto;
  }
  
  .column3 {
    width: 180%;
    margin-top: 2.5em;
    margin-bottom: 2.5em;
  }
  
  .column13 {
    width: 200%;
    margin-top: 2.5em;
    margin-bottom: 2.5em;
    text-align: justify;
  }

  .boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 60%;              
    margin: auto;
    padding: 1em;
    align-items: stretch;
}

  .titlebox {
    flex-basis: 100%;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1em;
  }

  .titlebox1 {
    flex-basis: 100%;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1em;
    background-color: rgb(251, 244, 244);
    padding: 1.5em;
  }


  .box1 {
    flex: 1;
    width: 30%;
    border: 1px solid black;
    border-radius: 5%;
    height: auto;
    margin: 1%;
    text-align: center;
    padding: 1em;
}

  .box3 {
    flex: 1;
    width: 30%;
    border-radius: 5%;
    height: auto;
    margin: 1%;
    text-align: center;
    padding: 1em;
}

.box3 img {
height: 4em;
width: auto;
}

@media (max-width: 800px) {
  .boxes {
      flex-direction: column;
      align-items: center; /* Center the boxes */
      width: 90%;
  }

  .box1, .box3, .box4 {
      flex-basis: 100%;
      max-width: 100%;
      width: 95%; /* Ensures the boxes take a good portion of the screen */
      margin: 0 auto 10px auto; /* Centers the boxes */
  }
}

  .bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   
    margin: 0 auto;
}

#contactform input {
  border-radius: 6px;
  border: none;
  height: 3em;
}
  
  @media only screen and (max-width: 800px) {
    .main-grid {
      grid-template-columns: 1fr;
      width: 90%;
    }
  
    .column3,
    .column13,
    .column {
      width: 100%;
      margin-top: 2em;
      margin-bottom: 2em;
    }
  
    .links {
      display: none;
    }
  
    .links.active {
      display: flex;
    }
  
  }

  .contact-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  .call-btn, .whatsapp-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
  }
  
  .call-btn {
    background: #007bff;
  }
  
  .whatsapp-btn {
    background: #25D366;
  }
  
  .call-btn:hover {
    background: #0056b3;
  }
  
  .whatsapp-btn:hover {
    background: #1ebe57;
  }

  .message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.toggleButton {
    display: inline-block;
    min-width: 8em;
    height: 3em;
    line-height: 3em;
    padding: 0 10px;
    border-radius: 8px;
    background-color: #292929;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.toggleButton:hover {
    background-color: #686767;
    border-radius: 16px;
}

/* Semantic feature list styling */
.features {
  list-style-type: disc;
  padding-left: 1.5em;     /* indent the bullets */
  margin: 0.5em 0 1.5em;    /* space above/below the list */
}

.features li {
  margin-bottom: 0.5em;    /* space between items */
  line-height: 1.4;         /* improve readability */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5em;
  width: 60%;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.service-card h3 a {
  color: #333;
  text-decoration: none;
}

.service-card h3 a:hover {
  color: #0056b3;
  text-decoration: underline;
}


.local-searches {
  background-color: rgb(251, 244, 244);
  text-decoration: none;
  text-align: center;
  padding: 2rem;
  width: 100%; 
  margin-left:auto; 
  margin-right:auto;
  margin-bottom: 2rem;
}

.local-searches a {
  text-decoration: none;
}

.social-share-widget {
  margin: 20px 0;
  text-align: center;
}

.social-share-widget h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.share-btn i {
  margin-right: 8px;
}

.share-btn.facebook {
  background-color: #3b5998;
}

.share-btn.facebook:hover {
  background-color: #2d4373;
}

.share-btn.whatsapp {
  background-color: #25d366;
}

.share-btn.whatsapp:hover {
  background-color: #1da851;
}

.share-btn.twitter {
  background-color: #1da1f2;
}

.share-btn.twitter:hover {
  background-color: #1a91da;
}

@media (max-width: 600px) {
  .share-buttons {
      flex-direction: column;
      gap: 10px;
  }
}