/*
Theme Name: Divi Child Theme
Template: Divi
Description: A custom child theme for Divi
Author: internal
Version: 1.0
*/

/* Google Fonts import (if not already included in your Divi setup) */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;700&display=swap');

/* Custom Sticky Header Styles */
.custom-sticky-header {
  transition: all 0.4s linear;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 999999 !important; /* Very high z-index */
  background-color: #ffffff; /* Adjust as needed */
  height: 140px; /* Adjust this to your original header height */
}

/* Shrunk header styles */
.custom-sticky-header.shrunk {
  height: 134px; /* 2px less than the original height */
}

/* Logo styles */
.custom-logo-column,
.custom-logo-column img {
  transition: all 0.4s linear;
  transform-origin: left center;
}

/* Menu styles */
.custom-menu-column .et_pb_menu {
  transition: all 0.4s linear;
  transform-origin: left center;
}

/* Shrunk styles for logo */
.custom-sticky-header.shrunk .custom-logo-column,
.custom-sticky-header.shrunk .custom-logo-column img {
  transform: scale(0.96); /* 2% reduction */
}

/* Shrunk styles for menu */
.custom-sticky-header.shrunk .custom-menu-column .et_pb_menu {
  transform: scale(0.97); /* 3% reduction */
}

/* Adjust body padding to prevent content from hiding behind the fixed header */
body {
  transition: padding-top 0.4s linear;
  padding-top: 96px; /* Adjust this value to match your header height */
}

/* Ensure other elements don't interfere */
#main-content {
  position: relative;
  z-index: 1;
}

/* TCO Calculator Styles */
#tco-calculator-wrapper {
  position: relative;
  z-index: 10; /* Adjust as needed, but keep it lower than the header's z-index */
}

#tco-calculator {
  font-family: 'Roboto', sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f0f0f0;
  border-radius: 8px;
  font-size: 14px;
}

#tco-calculator h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 20px;
}

#tco-form {
  display: grid;
  gap: 10px;
}

#tco-calculator label {
  font-weight: bold;
  color: #666;
}

#tco-calculator select,
#tco-calculator input[type="email"] {
  width: 100%;
  padding: 5px;
  background-color: #87CEEB;
  color: black;
  font-weight: bold;
  font-size: 14px;
}

#tco-calculator button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #90EE90;
  color: black;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

#tco-calculator #results {
  margin-top: 20px;
  font-size: 14px;
}

#tco-calculator #results h3 {
  font-size: 18px;
}

#tco-calculator #results h4 {
  font-size: 16px;
}

#tco-calculator #results > div {
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
}

#tco-calculator #results > div:nth-child(2) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#tco-calculator #results > div:nth-child(2) > div:first-child {
  background-color: #E6F3FF;
}

#tco-calculator #results > div:nth-child(2) > div:last-child {
  background-color: #E6FFE6;
}

#tco-calculator #results > div:last-child {
  background-color: #F0F0F0;
}



