/* Reset some default styles */
.mainTitle {
    font-family: 'Roboto', sans-serif; /* Modern sans-serif font */
    font-size: 2rem; /* Larger, more prominent title */
    font-weight: 900; /* Bold weight for a strong presence */
    color: #1e3a8a; /* Fallback solid color for older browsers */
    text-transform: uppercase; /* Makes it look more dynamic */
    letter-spacing: 1px; /* Adds space between letters for a cleaner look */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow to add depth */
    
    /* Fallback for older browsers that don't support gradients */
    background-color: #1e3a8a; 
    background: linear-gradient(135deg, #1e3a8a, #72a8ff); /* Modern browsers */
    
    color: transparent; /* Modern browsers: Makes text transparent for gradient */
    background-clip: text; /* Clips the gradient to the text (modern) */
    -webkit-background-clip: text; /* Vendor prefix for older WebKit browsers */
    
    display: inline-block; /* Ensures background only applies to the text */
    padding: 10px; /* Add some padding for better spacing */
    
    /* Smooth hover effect */
    transition: transform 0.3s ease-in-out;
  
    /* Fallbacks for older browsers */
    -webkit-text-fill-color: transparent; /* Transparent text for older WebKit browsers */
    -webkit-transition: transform 0.3s ease-in-out; /* Vendor prefix for transition */
  }

/* General Reset */
body, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
  }
  
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

/* Tab Menu Styling */
.tabmenu {
  display: flex; /* Enables flexbox layout */
  flex-wrap: wrap; /* Allows items to wrap to a new line if necessary */
  justify-content: space-evenly; /* Distributes items evenly across the container */
  background-color: darkblue; /* Sets background color */
  border-radius: 3px; /* Rounds the edges */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
  list-style: none; /* Removes bullet points from the list */
}

.tabmenu li {
  flex: 1 1 auto; /* Ensures items grow and shrink to fit the container */
  text-align: center; /* Centers text inside each item */
}

.tabmenu a {
  display: block; /* Makes the entire area clickable */
  padding: 12px 20px; /* Adds spacing inside the links */
  color: darkblue; /* Sets text color */
  background-color: white;
  text-align: center; /* Centers text */
  box-shadow: darkblue .25px .25px .25px .25px;
  font-size: 16px; /* Font size for the links */
  white-space: nowrap; /* Prevents text wrapping within the buttons */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */

}

.tabmenu a:hover {
  background-color: darkblue; /* Sets hover background color */
  color: #fff; /* Ensures text remains readable on hover */
}

.tabmenu a.active {
  background-color: darkblue; /* Highlights the active tab */
  color: white; /* Ensures text contrast on active tab */
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .tabmenu {
    display: flex;

  }

  .tabmenu a {
    font-size: 14px;
    padding: 10px 16px;
  }
}

h1, h2, h3, p {
    margin: 0 auto;
    text-align: center;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

.image1 {
  display: block; /* Ensure it behaves like a block element */
  margin: 0 auto; /* Center horizontally */
  max-width: 100%; /* Prevent overflow on smaller screens */
  height: auto; /* Maintain aspect ratio */
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}


.calculator {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calculator h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

    .input-group input,
    .input-group select {
    width: calc(50% - 5px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.input-group select {
    width: 50%;
}

.btn-calculate, .btn-reset {
    display: block;
    width: auto;
    min-height: 42px;
    min-width: clamp(120px, 14vw, 180px);
    max-width: 220px;
    padding: 9px 12px;
    margin-top: 10px;
    border: 1px solid #6b92ef;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-calculate {
    background-color: #6b92ef;
    color: #fff;
    box-shadow: 0 10px 20px rgba(107, 146, 239, 0.2);
}

.btn-reset {
    background: #eef4ff;
    border-color: #a9bee9;
    color: #2850a5;
}

.btn-calculate:hover,
.btn-calculate:focus {
  background-color: #5078d8;
  border-color: #5078d8;
  color: #fff;
}

.btn-reset:hover,
.btn-reset:focus {
  background: #dbe8ff;
  border-color: #a9bee9;
  color: #2850a5;
}

@media (max-width: 700px) {
  .btn-calculate,
  .btn-reset {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

.resultFlow, .resultTon {
  margin-top: 10px;
  font-weight: bold;
  font-size: 0.9rem;
}

/*---Footer Styles-----*/
.footerContent {
    margin-bottom: 15px; /* Adds spacing between content and social icons */
    padding: 20px 10%; /* Combined padding for consistency */
    margin: 0 auto;
    text-align: center;
  }
  
.socialIcons {
  display: flex; /* Use flexbox for alignment */
  justify-content: center; /* Center align the icons */
  gap: 15px; /* Ensures consistent spacing between icons */
}
  
  .icon {
    width: 30px;
    height: 30px;
    transition: transform 0.3s, filter 0.3s; /* Added smooth filter transition */
  }
  
  .icon:hover {
    transform: scale(1.1); /* Slight zoom effect */
    filter: brightness(1.2); /* Lightens the icons on hover for better feedback */
  }
  
/* Mobile adjustments for tab and content */
  @media screen and (max-width: 800px) {
    .tabmenu {
      flex-direction: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
    }

    .tabmenu a {
      padding: 12px 20px; /* Adjust padding for smaller screens */
    }

    .tabcontent {
      padding: 15px;
    }

    .footerContent1 {
      flex-direction: column; /* Stack footer content on small screens */
      text-align: center;
    }

    .socialIcons {
      justify-content: center; /* Center social icons on small screens */
    }
  }

  #tonnageCalculator {
    background-color: whitesmoke;
    color: navy;
  }

/* Modal styles */
.popup {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  margin: 15% auto;
  width: 60%;
  text-align: center;
  position: relative;
  color: #1a1a2e;
}

.close-btn {
  width: auto;
  min-height: 44px;
  background: #ffffff;
  color: #1f2f4d;
  border: 1px solid #bcc9dc;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  margin-top: 20px;
}

.close-btn:hover {
  background-color: #edf4ff;
  border-color: #92abd1;
  color: #1f2f4d;
}

#platform-name {
  font-weight: bold;
  color: #007bff;
}


/*GIF Ad Style*/
.gif-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
max-height: min-content;
}

.centered-gif {
width: 100%;
max-width: 350px;
max-height: 125px;
border: 1px solid #555;
border-radius: 5px;
}

/* Contact Buttons */
.contact-btn {
  display: inline-block;
  background-color: lightslategray;
  color: white;
  text-decoration: none;
  padding: 1px 10px;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: lightgray;
}

.contact-btn2 {
  display: inline-block;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  padding: 1px 10px;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact-btn2:hover {
  background-color: #0056b3;
}
/* End Contact Buttons */

/* Ad-compliance override: keep support messages non-blocking on ad pages. */
.popup {
  right: 16px;
  bottom: 16px;
  left: auto;
  top: auto;
  width: min(360px, calc(100vw - 32px));
  height: auto;
  padding: 0;
  background: transparent;
  z-index: 50;
  pointer-events: none;
}

.popup-content {
  width: 100%;
  max-width: 360px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}

@media (max-width: 600px) {
  .popup {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }

  .popup-content {
    max-width: none;
  }
}

/* Published-site shell */
body {
  background:
    radial-gradient(circle at top, rgba(114, 168, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
  color: #1f2937;
}

.mainTitle {
  display: block;
  width: fit-content;
  margin: 12px auto 6px;
}

.tabmenu {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.tabmenu li {
  flex: 0 1 auto;
}

.tabmenu a {
  padding: 10px 16px;
  border: 1px solid #c7d7ef;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f3f7fd);
  color: #22304f;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.tabmenu a:hover,
.tabmenu a.active {
  background: linear-gradient(135deg, #1e3a8a, #3670ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 26px rgba(30, 58, 138, 0.28);
}

@media (max-width: 600px) {
  .tabmenu {
    width: calc(100% - 16px);
    gap: 4px;
    padding: 6px;
  }

  .tabmenu li {
    flex: 1 1 auto;
  }

  .tabmenu a {
    padding: 9px 12px;
    font-size: 13px;
  }
}

.privacy-popup {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 24px));
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  z-index: 60;
  display: none;
}

.privacy-popup-content {
  display: grid;
  gap: 10px;
  text-align: left;
}

.privacy-popup-content p {
  margin: 0;
  line-height: 1.5;
  color: #334155;
}

.privacy-popup-content a {
  color: #1d4ed8;
  font-weight: 600;
}

.privacy-popup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-btn {
  width: auto;
  min-width: 96px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #c7d7ef;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f3f7fd);
  color: #22304f;
}

.privacy-btn:hover {
  background: linear-gradient(135deg, #1e3a8a, #3670ff);
  border-color: #1e3a8a;
  color: #fff;
}

.privacy-btn.secondary {
  background: #eef2f7;
  color: #445067;
}

@media (max-width: 600px) {
  .privacy-popup {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }
}

/* HVACChecks unified tab menu override */
.tabmenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 8px;
  padding: 4px;
  margin: 0;
  list-style: none;
  gap: 4px;
  background: transparent;
  box-shadow: none;
}

.tabmenu li {
  flex: 1 1 auto;
  text-align: center;
}

.tabmenu a {
  display: block;
  padding: 8px 14px;
  color: #2850a5;
  background-color: #eef4ff;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  box-shadow: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid #a9bee9;
}

.tabmenu a:hover,
.tabmenu a.active {
  background-color: #dbe8ff;
  color: #2850a5;
  box-shadow: none;
}

@media (max-width: 600px) {
  .tabmenu {
    justify-content: space-around;
    padding: 3px;
    gap: 3px;
  }

  .tabmenu a {
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 5px;
  }
}
