/* ===================== AD BUDGET & LEAD COST ESTIMATOR CSS ===================== */
.calc-hero-header {
  margin-bottom: 40px;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 50px 24px;
  position: relative;
  overflow: hidden;
}
.calc-hero-header .eyebrow {
  margin-bottom: 16px;
}
.calc-hero-header h1 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.35;
}
.calc-hero-header p {
  color: var(--ink-dim);
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.calc-card.sticky-results {
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, rgba(18,19,44,0.95) 0%, rgba(23,24,64,0.95) 100%);
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 25px 60px -15px rgba(124,58,237,0.25);
}

.calc-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.calc-card-title .ico {
  color: var(--cyan);
  font-size: 22px;
}

.calc-group {
  margin-bottom: 24px;
}
.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.calc-badge-val {
  background: rgba(34,211,238,0.12);
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid rgba(34,211,238,0.3);
}
.calc-badge-val.violet {
  background: rgba(168,85,247,0.15);
  color: var(--violet-2);
  border-color: rgba(168,85,247,0.3);
}

.calc-select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.calc-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.calc-select option {
  background: #0A0B1E;
  color: #fff;
}

.calc-range {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  outline: none;
  accent-color: var(--cyan);
  cursor: pointer;
  margin-top: 6px;
}

.calc-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 500px) {
  .calc-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.calc-kpi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.calc-kpi-card:hover {
  border-color: rgba(34,211,238,0.4);
  transform: translateY(-2px);
}
.calc-kpi-card.highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(34,211,238,0.15) 100%);
  border-color: rgba(34,211,238,0.5);
  padding: 24px 20px;
}
.calc-kpi-title {
  font-size: 12.5px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 600;
}
.calc-kpi-val {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  line-height: 1.2;
}
.calc-kpi-card.highlight .calc-kpi-val {
  font-size: 34px;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(34,211,238,0.4);
}
.calc-kpi-sub {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 4px;
}

.calc-breakdown-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
}
.calc-breakdown-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.calc-progress-track {
  height: 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  display: flex;
  overflow: hidden;
  margin-bottom: 12px;
}
.calc-bar-media {
  background: var(--grad-brand);
  width: 70%;
  height: 100%;
}
.calc-bar-creative {
  background: var(--cyan);
  width: 20%;
  height: 100%;
}
.calc-bar-testing {
  background: #10B981;
  width: 10%;
  height: 100%;
}
.calc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-dim);
}
.calc-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Modal for lead capture */
.calc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 30, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.calc-modal-backdrop.active {
  display: flex;
}
.calc-modal {
  background: var(--bg-panel-2);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 36px 30px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: modalFadeIn .3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.calc-modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.calc-modal-close:hover {
  background: rgba(239,68,68,0.25);
  border-color: #ef4444;
}

.calc-form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  margin-bottom: 14px;
  outline: none;
}
.calc-form-input:focus {
  border-color: var(--cyan);
}

/* Utility Component Classes to eliminate inline styles */
.calc-sub-container { max-width: 1140px; margin-inline: auto; padding: 10px 0 70px; }
.calc-crumb-container { max-width: 1100px; margin-inline: auto; padding: 40px 0 0; }
.calc-faq-container { max-width: 900px; margin-inline: auto; padding: 40px 0 70px; }
.calc-faq-head { text-align: center; margin-bottom: 40px; }
.calc-faq-head h2 { font-size: 30px; color: #fff; }
.calc-btn-full { width: 100%; justify-content: center; }
.calc-accent-emerald { accent-color: #10B981; }
.calc-accent-violet { accent-color: var(--violet-2); }
.calc-val-emerald { color: #10B981; }
.calc-val-cyan { color: var(--cyan); }
.calc-val-violet { color: var(--violet-2); }
.calc-val-blue { color: #22D3EE; }
.calc-dot-violet { background: var(--violet); }
.calc-dot-cyan { background: var(--cyan); }
.calc-dot-emerald { background: #10B981; }
.calc-badge-emerald { background: rgba(16,185,129,0.15); color: #10B981; border-color: rgba(16,185,129,0.3); }
.calc-modal-h3 { font-size: 22px; color: #fff; margin-bottom: 8px; }
.calc-modal-p { color: var(--ink-dim); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.cookie-banner-box { position: fixed; bottom: 20px; inset-inline: 20px; background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; z-index: 9999; box-shadow: var(--shadow-glow); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-banner-box p { color: var(--ink-dim); font-size: 14px; margin: 0; max-width: 800px; }
.cookie-banner-actions { display: flex; gap: 10px; }
.svg-fill { fill: currentColor; stroke: none; }
.active-tool-link { color: var(--cyan); font-weight: 700; }
.mb-24 { margin-bottom: 24px; }
.calc-underline-cyan { color: var(--cyan); text-decoration: underline; }
