/* =============================
   General Page Styles
============================= */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #e6edff);
  color: #333;
}

/* =============================
   Cost Estimator Section
============================= */
#cost-estimator {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

#cost-estimator h3 {
  font-size: 2.4rem;
  color: #003366;
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 #fff;
}

.emoji {
  font-size: 1.8rem;
  margin-right: 0.5rem;
}

.estimator-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 3rem 2.5rem;
  transition: transform 0.3s ease;
}
.estimator-card:hover {
  transform: translateY(-4px);
}

.estimator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

/* Fieldsets and form inputs */
fieldset {
  border: none;
  padding: 0;
}
fieldset legend {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #003366;
}
fieldset label {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  gap: 0.5rem;
  cursor: pointer;
}
fieldset input[type="radio"] {
  accent-color: #ff6600;
}

.shared-note {
  font-size: 0.9rem;
  color: #444;
  background: #fff6f0;
  padding: 0.9rem 1rem;
  border-left: 4px solid #ff6600;
  border-radius: 6px;
  margin-top: 0.75rem;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

/* Dropdowns and sliders */
.size-group label, .qty-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #003366;
}
select {
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s;
}
select:focus {
  border-color: #ff6600;
  outline: none;
}
input[type="range"] {
  width: 100%;
  accent-color: #ff6600;
}

/* Cost and time display */
.cost-group, .time-group { text-align: center; }
.cost-group p, .time-group p { margin: 0; font-size: 1rem; color: #555; }
.cost-group strong {
  display: block;
  margin-top: 0.75rem;
  font-size: 2.2rem;
  color: #ff6600;
  font-weight: 700;
  animation: pulse 2s infinite;
}
.time-group strong {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.7rem;
  color: #003366;
  font-weight: 700;
}
.time-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Disclaimer */
.disclaimer {
  margin-top: 2rem;
  padding: 1.2rem;
  background: #fff3e0;
  border-left: 6px solid #ff6600;
  font-size: 0.95rem;
  color: #444;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
}

/* Comparison Toggle */
.comparison-toggle summary {
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  font-size: 1.05rem;
  color: #003366;
  list-style: none;
  transition: color 0.3s;
}
.comparison-toggle summary:hover {
  color: #ff6600;
}
.comparison-toggle summary::marker { display: none; }

.comparison-note {
  background: #eef6ff;
  border-left: 5px solid #ff6600;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  text-align: left;
  border-radius: 8px;
  color: #333;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.6s ease, padding 0.6s ease;
}
.comparison-toggle[open] .comparison-note {
  max-height: 400px;
  padding: 1.2rem;
}
.comparison-note p { margin: 0.6rem 0; }

/* Quote button */
.quote-button {
  display: inline-block;
  margin-top: 2.5rem;
  background: linear-gradient(135deg,#ff6600,#ff8533);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255,102,0,0.4);
}
.quote-button:hover {
  background: linear-gradient(135deg,#e65c00,#ff751a);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,102,0,0.6), 0 8px 20px rgba(0,0,0,0.15);
}

/* CTA Section */
#cta-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: #003366;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
#cta-section h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
#cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #dbe8ff;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.cta-buttons a {
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-primary {
  background: #ff6600;
  color: #fff;
  box-shadow: 0 6px 15px rgba(255,102,0,0.4);
}
.cta-primary:hover {
  background: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,102,0,0.6), 0 8px 20px rgba(0,0,0,0.15);
}
.cta-secondary {
  background: #fff;
  color: #003366;
  border: 2px solid #fff;
}
.cta-secondary:hover {
  background: #dbe8ff;
  color: #003366;
  transform: translateY(-2px);
}

/* Leaflet Marketing Effectiveness Section */
#leaflet-effectiveness {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
#leaflet-effectiveness h2 {
  color: #ff6600;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
#leaflet-effectiveness .chart-wrapper {
  position: relative;
  height: 400px;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
}
#leaflet-effectiveness .chart-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #555;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%   { transform: scale(1); color: #ff6600; }
  50%  { transform: scale(1.08); color: #e65c00; }
  100% { transform: scale(1); color: #ff6600; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  #cost-estimator h3 { font-size: 1.8rem; }
  .cost-group strong, .time-group strong { font-size: 1.6rem; }
  .estimator-card { padding: 2rem 1.5rem; }
  #cta-section h4 { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  #leaflet-effectiveness .chart-wrapper { height: 300px; }
}
