/* ========================================
   EZAIX ROI Calculator — Styles
   ======================================== */

/* ========================================
   PRODUCT TABS
   ======================================== */
.product-tabs-wrap {
  text-align: center;
  padding: 0 24px 8px;
}

.product-tabs {
  display: inline-flex;
  gap: 4px;
  background: #1A1525;
  border: 1px solid rgba(110, 51, 181, 0.2);
  border-radius: 12px;
  padding: 4px;
}

.product-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: #B8B0C8;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.product-tab:hover {
  color: #FFFFFF;
  background: rgba(110, 51, 181, 0.15);
}

.product-tab.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #4C1C8C, #6E33B5);
  box-shadow: 0 2px 8px rgba(76, 28, 140, 0.4);
}

/* ========================================
   CHECKBOX (NetmonIQ bundle toggle)
   ======================================== */
.checkbox-group {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #B8B0C8;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(110, 51, 181, 0.4);
  border-radius: 4px;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #ED4DBF;
  border-color: #ED4DBF;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label small {
  color: #8A7FA0;
  font-weight: 400;
}

/* ========================================
   COST DETAIL LINE
   ======================================== */
.cost-detail {
  font-size: 11px;
  color: #8A7FA0;
  margin-top: 2px;
}

/* ========================================
   CALCULATOR LAYOUT
   ======================================== */
.roi-hero {
  padding: 140px 24px 40px;
  text-align: center;
}

.roi-hero h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 12px;
}

.roi-hero .accent-line {
  display: block;
  background: linear-gradient(135deg, #ED4DBF, #6E33B5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-hero p {
  font-size: 18px;
  color: #B8B0C8;
  max-width: 620px;
  margin: 0 auto;
}

.roi-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  align-items: start;
}

/* ========================================
   INPUT PANEL (left)
   ======================================== */
.roi-inputs {
  background: #1A1525;
  border: 1px solid rgba(110, 51, 181, 0.2);
  border-radius: 16px;
  padding: 32px 28px;
  position: sticky;
  top: 120px;
}

.roi-inputs h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: #B8B0C8;
  margin-bottom: 8px;
}

/* Tooltip info icons */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(110, 51, 181, 0.35);
  color: #ED4DBF;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  cursor: help;
  position: relative;
  margin-left: 5px;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.15s ease;
}
.tip:hover {
  background: rgba(110, 51, 181, 0.6);
}
.tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1A1230;
  color: #E0D8F0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  width: 240px;
  z-index: 100;
  pointer-events: none;
  border: 1px solid rgba(110, 51, 181, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.tip:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(110, 51, 181, 0.5);
  z-index: 101;
  pointer-events: none;
}

.input-group .slider-val {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   CUSTOM RANGE SLIDERS
   ======================================== */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(110, 51, 181, 0.25);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ED4DBF;
  border: 3px solid #1A1525;
  box-shadow: 0 0 8px rgba(237, 77, 191, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(237, 77, 191, 0.6);
}

.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ED4DBF;
  border: 3px solid #1A1525;
  box-shadow: 0 0 8px rgba(237, 77, 191, 0.4);
  cursor: pointer;
}

.roi-slider::-moz-range-track {
  height: 6px;
  background: rgba(110, 51, 181, 0.25);
  border-radius: 3px;
  border: none;
}

.input-divider {
  height: 1px;
  background: rgba(110, 51, 181, 0.15);
  margin: 24px 0;
}

/* ========================================
   RESULTS DASHBOARD (right)
   ======================================== */
.roi-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Big number hero */
.result-hero {
  background: linear-gradient(135deg, #4C1C8C, #3A1570);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(237, 77, 191, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.result-hero .result-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.result-hero .result-big {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #FFFFFF;
  line-height: 1.1;
}

.result-hero .result-sublabel {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Metric cards row */
.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: #1A1525;
  border: 1px solid rgba(110, 51, 181, 0.15);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.metric-card:hover {
  border-color: rgba(110, 51, 181, 0.4);
}

.metric-card .metric-value {
  font-size: 22px;
  font-weight: 800;
  color: #ED4DBF;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.metric-card .metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #B8B0C8;
}

/* Platform cost callout */
.cost-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(110, 51, 181, 0.08);
  border: 1px solid rgba(110, 51, 181, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
}

.cost-callout .cost-label {
  font-size: 13px;
  font-weight: 600;
  color: #B8B0C8;
}

.cost-callout .cost-value {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ========================================
   VALUE STREAMS (horizontal bars)
   ======================================== */
.streams-section {
  background: #1A1525;
  border: 1px solid rgba(110, 51, 181, 0.15);
  border-radius: 16px;
  padding: 28px;
}

.streams-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.stream-row {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.stream-row + .stream-row {
  border-top: 1px solid rgba(110, 51, 181, 0.08);
}

.stream-info {
  display: flex;
  flex-direction: column;
}

.stream-label {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.stream-sublabel {
  font-size: 11px;
  color: #8A7FA0;
  margin-top: 1px;
}

.stream-bar-wrap {
  height: 8px;
  background: rgba(110, 51, 181, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.stream-bar {
  height: 100%;
  background: linear-gradient(90deg, #ED4DBF, #6E33B5);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.stream-value {
  font-size: 14px;
  font-weight: 700;
  color: #ED4DBF;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   METHODOLOGY ACCORDION
   ======================================== */
.methodology-section {
  border: 1px solid rgba(110, 51, 181, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.methodology-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: #1A1525;
  border: none;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.methodology-trigger:hover {
  background: #1F1930;
}

.methodology-trigger .chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.methodology-trigger .chevron svg {
  width: 20px;
  height: 20px;
  stroke: #B8B0C8;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.methodology-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.methodology-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #151020;
}

.methodology-panel.open {
  max-height: 2000px;
}

.methodology-content {
  padding: 20px 24px;
}

.method-note {
  font-size: 13px;
  color: #B8B0C8;
  line-height: 1.7;
  margin-bottom: 16px;
}

.method-item {
  padding: 10px 0;
  border-top: 1px solid rgba(110, 51, 181, 0.08);
}

.method-item strong {
  color: #FFFFFF;
  font-size: 13px;
}

.method-val {
  float: right;
  color: #ED4DBF;
  font-weight: 700;
  font-size: 13px;
}

.method-detail {
  font-size: 12px;
  color: #8A7FA0;
}

/* ========================================
   LEAD CAPTURE / CTA
   ======================================== */
.roi-cta-section {
  background: linear-gradient(135deg, #4C1C8C, #6E33B5);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.roi-cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(237, 77, 191, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.roi-cta-section h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.roi-cta-section > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.lead-form input,
.lead-form select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.lead-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: #ED4DBF;
}

.lead-form select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.lead-form select option {
  background: #1A1525;
  color: #FFFFFF;
}

.lead-form .form-full {
  grid-column: 1 / -1;
}

.lead-submit {
  grid-column: 1 / -1;
  background: #ED4DBF;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: background 0.2s ease, transform 0.15s ease;
}

.lead-submit:hover {
  background: #d43daa;
  transform: translateY(-1px);
}

.lead-success {
  display: none;
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
}

.lead-success p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.lead-success span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .roi-layout {
    grid-template-columns: 1fr;
  }

  .roi-inputs {
    position: static;
  }

  .metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stream-row {
    grid-template-columns: 160px 1fr 70px;
  }
}

@media (max-width: 768px) {
  .product-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .roi-hero h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .roi-hero p {
    font-size: 16px;
  }

  .roi-layout {
    padding: 20px 16px 60px;
    gap: 20px;
  }

  .roi-inputs {
    padding: 24px 20px;
  }

  .result-hero .result-big {
    font-size: 40px;
  }

  .metric-cards {
    grid-template-columns: 1fr 1fr;
  }

  .stream-row {
    grid-template-columns: 1fr 60px;
  }

  .stream-info {
    grid-column: 1 / -1;
    margin-bottom: -4px;
  }

  .stream-bar-wrap {
    grid-column: 1;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .roi-cta-section {
    padding: 36px 24px;
  }

  .roi-cta-section h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .roi-hero {
    padding: 120px 16px 24px;
  }

  .roi-hero h1 {
    font-size: 26px;
  }

  .metric-cards {
    grid-template-columns: 1fr;
  }

  .result-hero {
    padding: 28px 20px;
  }

  .result-hero .result-big {
    font-size: 32px;
  }
}
