/* ==========================================================================
   CALCULATOR.CSS — FREE GOOGLE ADS WASTE CALCULATOR WEB TOOL
   ========================================================================== */

.calc-page-main {
  background-color: #051D13;
  color: #E2ECE5;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* HERO SECTION */
.calc-hero {
  padding: 60px 0 30px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, 0.12) 0%, transparent 70%);
}

.calc-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00FF88;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 100px;
  margin-bottom: 16px;
}

.calc-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.calc-hero-title em {
  font-style: normal;
  color: #00FF88;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.calc-hero-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: #9ab5a2;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* CALCULATOR GRID */
.calc-app-section {
  padding: 30px 0 60px;
}

.calc-app-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .calc-app-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* CARDS */
.calc-inputs-card,
.calc-results-card {
  background: rgba(7, 34, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.15);
  color: #00FF88;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.card-section-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

/* FORM ELEMENTS */
.calc-group {
  margin-bottom: 24px;
}

.calc-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #D2E4D6;
  margin-bottom: 10px;
}

.group-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.budget-display {
  font-size: 20px;
  font-weight: 800;
  color: #00FF88;
  font-family: monospace;
}

/* CUSTOM RANGE SLIDER */
.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
  margin: 12px 0 8px;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00FF88;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6e8c76;
  margin-bottom: 12px;
}

.quick-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D2E4D6;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pill:hover,
.btn-pill.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00FF88;
  color: #00FF88;
}

/* SELECT */
.calc-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border 0.2s;
}

.calc-select:focus {
  border-color: #00FF88;
}

/* RADIO CARDS */
.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.calc-options-stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-radio-card input {
  margin-top: 3px;
  accent-color: #00FF88;
  cursor: pointer;
}

.radio-content {
  display: flex;
  flex-direction: column;
}

.radio-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.radio-desc {
  font-size: 11.5px;
  color: #8fa896;
  margin-top: 2px;
}

.calc-radio-card:has(input:checked) {
  border-color: #00FF88;
  background: rgba(0, 255, 136, 0.06);
}

/* TOGGLE BUTTONS */
.calc-buttons-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
}

.toggle-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D2E4D6;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover,
.toggle-btn.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00FF88;
  color: #00FF88;
}

/* RIGHT COLUMN: GAUGE & METRICS */
.calc-results-card {
  position: sticky;
  top: 90px;
  border-color: rgba(0, 255, 136, 0.3);
  background: linear-gradient(180deg, rgba(7, 34, 23, 0.95) 0%, rgba(4, 22, 14, 0.98) 100%);
}

.gauge-container {
  position: relative;
  width: 220px;
  margin: 0 auto 10px;
  text-align: center;
}

.gauge-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-fill {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.gauge-needle-center {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-percent {
  font-size: 42px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  font-family: monospace;
}

.gauge-percent-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8fa896;
  margin-top: 4px;
}

.risk-badge-box {
  text-align: center;
  margin-bottom: 20px;
}

.risk-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 100px;
  background: rgba(255, 77, 77, 0.15);
  color: #FF4D4D;
  border: 1px solid rgba(255, 77, 77, 0.3);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* METRICS DISPLAY */
.waste-metric-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #8fa896;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 30px;
  font-weight: 900;
  color: #FF4D4D;
  font-family: monospace;
  line-height: 1.2;
}

.metric-annual {
  font-size: 12px;
  color: #D2E4D6;
  display: block;
  margin-top: 4px;
}

/* LEAK REASONS */
.leak-reasons-box {
  margin-bottom: 24px;
}

.reasons-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.reasons-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reasons-list li {
  font-size: 12.5px;
  color: #D2E4D6;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px 12px;
  border-left: 3px solid #FFB800;
}

/* 3 FUNNEL CTAs */
.calc-funnel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-funnel-free {
  background: linear-gradient(135deg, #FFB800, #FF9500);
  color: #1a0f00 !important;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.25);
}

.btn-funnel-free:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 184, 0, 0.45);
}

.btn-funnel-toolkit {
  background: linear-gradient(135deg, #00FF88, #00C868);
  color: #03140C !important;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.btn-funnel-toolkit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.45);
}

.btn-funnel-audit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
}

.btn-funnel-audit:hover {
  border-color: #00FF88;
  color: #00FF88 !important;
}

/* POPUP MODAL */
.calc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.calc-modal-card {
  position: relative;
  background: #052115;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 136, 0.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #8fa896;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #FFFFFF; }

.modal-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #FFB800;
  background: rgba(255, 184, 0, 0.12);
  border-radius: 100px;
  margin-bottom: 8px;
}

.modal-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px;
}

.modal-head p {
  font-size: 13px;
  color: #9ab5a2;
  margin: 0 0 20px;
  line-height: 1.5;
}

.modal-form .form-group {
  margin-bottom: 14px;
}

.modal-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #D2E4D6;
  margin-bottom: 6px;
}

.modal-form input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
}

.modal-form input:focus { border-color: #00FF88; }

.btn-modal-submit {
  background: linear-gradient(135deg, #FFB800, #FF9500);
  color: #1a0f00 !important;
  font-weight: 800;
  margin-top: 8px;
}

.modal-success-box {
  text-align: center;
  padding: 20px 0;
}

.success-icon { font-size: 40px; margin-bottom: 10px; }
.modal-success-box h4 { font-size: 18px; color: #00FF88; margin: 0 0 8px; }
.modal-success-box p { font-size: 13px; color: #9ab5a2; margin-bottom: 20px; line-height: 1.5; }
.btn-modal-download { background: #00FF88; color: #03140C !important; }
