/* General Page Styling */
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #131420; /* Requested background color */
  color: white;
  overflow-x: hidden;
}
#content {
  padding: 20px;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
}

#logo {
  background-image: url("/static/images/optimizely-logo.png");
  width: 150px; /* Set appropriate width based on your logo */
  height: 40px; /* Set appropriate height based on your logo */
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: auto;
}
#navigation {
  display: flex;
  justify-content: flex-end; /* Align to top-right */
  padding: 10px 0;
  border-bottom: 1px solid #58de84;
  margin-bottom: 40px;
  /* margin-top: 40px; */
}

.nav-button {
  background: none;
  border: none;
  color: white;
  padding: 10px 15px;
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap; /* Prevent text wrapping */
  min-width: fit-content; /* Ensure button is at least as wide as its content */
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.nav-button:hover {
  opacity: 0.8;
}
.nav-button#home-button {
  color: black; /* Requested color */
  background-color: #58de84; /* Requested background color */
  border-radius: 5px;
}
/* Header Styling */
.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  color: #cecbcb;
  max-width: 700px;
  margin: 0 auto;
}

/* Card Container (Flexbox for responsiveness) */
.plans-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1800px;
  margin: 0 auto;
}

/* Individual Product Card Styling */
.product-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
  padding: 30px;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Typography within Card */
.product-card h2 {
  font-size: 1.5rem;
  color: #17387d; /* Optimizely primary color imitation */
  margin-top: 0;
  margin-bottom: 15px;
}

.product-card .description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 25px;
  min-height: 50px; /* Ensure visual consistency */
}

/* Feature List Styling */
.product-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: auto; /* Pushes the button to the bottom */
  flex-grow: 1;
}

.product-card ul li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  color: #555;
}

.product-card ul li:before {
  content: "✓"; /* Checkmark icon */
  color: #00bf77; /* Optimizely accent color imitation */
  font-weight: bold;
  margin-right: 8px;
}

.product-card ul li:last-child {
  border-bottom: none;
}

/* Call-to-Action Button */
.cta-button {
  display: block;
  margin-top: 30px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: #17387d; /* Primary button color */
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #122a5e;
}

.cal-button {
  display: block;
  margin-top: 30px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: #17387d; /* Primary button color */
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cal-button:hover {
  background-color: #122a5e;
}
/* Price Calculator Section */
.calculate-price {
  margin-top: 20px;
  margin-bottom: 50px;
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  color: #555;
}
.calculate-price h1 h2 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 10px;
}
#calculate-btn {
  text-align: center;
  width: 400px;
  margin: 0 auto;
}
.plan-checkboxes {
  margin-bottom: 20px;
  text-align: left;
}

.plan-checkboxes label {
  display: block;
  margin-bottom: 8px;
  /* color: white; */
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  /* color: white; */
}

#monthlyFeatures {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#totalPrice {
  padding: 8px;
  width: 500px;
  font-weight: bold;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
  .plans-container {
    gap: 20px;
  }
  .product-card {
    max-width: 100%;
  }
}

/* New Calculator Section */
.newCalculator {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 2px solid #194bff;
  border-radius: 8px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  gap: 30px;
}

.leftContent {
  flex: 0 0 auto;
}

.leftContent img {
  max-width: 300px;
  height: auto;
  display: block;
}

.rightContent {
  flex: 1;
  text-align: left;
}

.overline {
  font-family: "nbi pro mono", monospace;
  font-size: 18px;
  color: #555;
  margin-bottom: 10px;
}

.middleline {
  font-family: sans-serif;
  text-align: left;
  color: #17387d;
  margin-bottom: 15px;
}

.bottomline {
  font-family: sans-serif;
  text-align: left;
  color: #555;
}
.priceEstimate {
  position: relative;
  border-radius: 5px;
  padding: 3px; /* border width */
  background: linear-gradient(to right, #575f73, #475f98);
  max-width: 1500px;
  margin: 0 auto;
}

.priceEstimate > div {
  background-color: #131420; /* match body background */
  border-radius: 5px;
  padding: 20px;
  color: #e9ebf1;
}

.priceContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.priceContainer > h1,
.priceContainer > h2 {
  grid-column: 1 / -1;
}

.priceContainer .chartContainer {
  grid-column: 2;
  grid-row: 3 / 5;
}

.priceContainer .calculateForm {
  grid-column: 1;
  grid-row: 3;
}

.priceContainer .estimate {
  grid-column: 1;
  grid-row: 4;
}

.calculateForm label {
  display: block;
  margin-bottom: 5px;
  margin-top: 10px;
}

.calculateForm input {
  display: block;
  width: 100%;
  height: 35px;
  font-size: medium;
  margin-bottom: 5px;
  border-radius: 5px;
}
.estimate {
  background-color: #191e28;
  border-radius: 5px;
  padding: 20px;
  margin-top: 20px;
}

.estimate > h2 {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.estimate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.estimate > div {
  display: block;
  margin-bottom: 0;
}

.annualEst {
  grid-column: 1;
  grid-row: 2;
}

.netValue {
  grid-column: 2;
  grid-row: 2;
}

.thirdYearEst {
  grid-column: 1;
  grid-row: 3;
}

.costOfDelayQuarter {
  grid-column: 2;
  grid-row: 3;
}

.annualEst,
.thirdYearEst,
.netValue,
.costOfDelayQuarter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.annualEst > div:first-of-type,
.thirdYearEst > div:first-of-type,
.netValue > div:first-of-type,
.costOfDelayQuarter > div:first-of-type {
  order: -1;
  font-size: 1.5rem;
  font-weight: bold;
}

.annualEst h3,
.thirdYearEst h3,
.netValue h3,
.costOfDelayQuarter h3 {
  margin: 0;
}

.annualEst > div:last-of-type,
.thirdYearEst > div:last-of-type,
.netValue > div:last-of-type,
.costOfDelayQuarter > div:last-of-type {
  flex-basis: 100%;
  font-size: 0.9rem;
  opacity: 0.8;
}

.costOfDelayPerQuarter,
.netPresentValue,
.thirdYearBenefit,
.totalAnnualBenefit {
  color: rgb(59 224 129);
}

.chartContainer {
  position: relative;
  text-align: center;
  margin-top: 0;
}

.chartContainer h2 {
  color: #e9ebf1;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.chart-wrapper {
  position: relative;
  width: 400px;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-svg {
  transform: rotate(-90deg);
  overflow: visible;
  isolation: isolate;
}

.sector {
  fill: none;
  stroke-width: 15;
  transition: stroke-width 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  stroke-linecap: round;
  transform-origin: 50px 50px;
}

.sector:hover {
  stroke-width: 20;
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(0, 204, 255, 0.6));
}

.info-overlay {
  position: relative;
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.info-overlay div {
  display: none;
  color: #969cac;
  padding: 10px;
}

.chart-wrapper:has(.s1:hover) .info-s1,
.chart-wrapper:has(.s2:hover) .info-s2,
.chart-wrapper:has(.s3:hover) .info-s3,
.chart-wrapper:has(.s4:hover) .info-s4 {
  display: block;
}

.chart-wrapper:not(:has(.sector:hover)) .info-default {
  display: block;
}

.info-val {
  font-size: 1.4rem;
  font-weight: bold;
  color: rgb(59 224 129);
  display: block;
  margin: 5px 0;
}

.info-desc {
  font-size: 0.85rem;
  line-height: 1.2;
}
