/* ===========================
   ROI Calculator Page Styles
   =========================== */

/* Page layout: tighter header → hero → body spacing */
.roi-calculator-page .site-header .header-inner {
  padding: 18px 24px;
  box-sizing: border-box;
}

.roi-calculator-page .site-main .hero.roi-hero {
  padding-top: 48px;
  padding-bottom: 48px;
}

.roi-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.roi-hero-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(34, 197, 94, 0.25);
  color: #fff;
}

.roi-hero-copy h1 {
  margin: 0 0 16px;
}

.roi-hero-desc {
  margin: 0;
  font-size: 18px;
  max-width: 560px;
  white-space: normal;
  line-height: 1.5;
}

.roi-section {
  padding: 32px 0 80px;
  background: #f8f9fa;
}

/* Layout */
.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Cards */
.roi-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  position: relative;
}

.roi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.roi-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.roi-card-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 28px;
}

/* Input Groups */
.roi-input-group {
  margin-bottom: 22px;
}

.roi-input-group:last-child {
  margin-bottom: 0;
}

.roi-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.roi-input-header label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* Number Input */
.roi-number-input {
  width: 90px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  color: #1a1a2e;
  background: #f9fafb;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.roi-number-input::-webkit-outer-spin-button,
.roi-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.roi-number-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Range Slider */
.roi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}

.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

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

.roi-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.roi-range::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.roi-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
}

/* Results Card - Sticky */
.roi-results-card {
  position: sticky;
  top: 100px;
}

/* Results List */
.roi-results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roi-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.roi-result-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #16a34a;
  font-size: 18px;
}

.roi-result-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.roi-result-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.roi-result-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
}

/* Divider */
.roi-divider {
  height: 2px;
  margin: 28px 0;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 1px;
}

/* Total */
.roi-total {
  text-align: center;
  margin-bottom: 24px;
}

.roi-total-first {
  margin-top: 8px;
  margin-bottom: 8px;
}

.roi-projected-copy {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 20px;
}

.roi-results-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.roi-total-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.roi-total-value {
  display: block;
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* Results CTA */
.roi-results-cta {
  display: block;
  text-align: center;
  width: 100%;
}

/* CTA Section */
.roi-cta-section {
  background: #1a1a2e;
  padding: 80px 0;
  text-align: center;
}

.roi-cta-content h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}

.roi-cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  margin: 0 0 32px;
}

/* Mobile Total Bar */
.roi-mobile-total {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 12px 16px;
}

.roi-mobile-total-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.roi-mobile-total-info {
  display: flex;
  flex-direction: column;
}

.roi-mobile-total-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.roi-mobile-total-value {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 920px) {
  .roi-layout {
    grid-template-columns: 1fr;
  }

  .roi-results-card {
    position: static;
  }

  .roi-mobile-total {
    display: block;
  }

  /* Add bottom padding so content isn't hidden behind mobile bar */
  .roi-cta-section {
    padding-bottom: 100px;
  }

  .pre-footer-section {
    padding-bottom: 80px;
  }
}

@media (max-width: 640px) {
  .roi-section {
    padding: 40px 0 60px;
  }

  .roi-card {
    padding: 28px 20px;
  }

  .roi-card-title {
    font-size: 20px;
  }

  .roi-result-value {
    font-size: 20px;
  }

  .roi-total-value {
    font-size: 40px;
  }

  .roi-cta-content h2 {
    font-size: 26px;
  }

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

@media (max-width: 568px) {
  .roi-section {
    padding: 30px 0 40px;
  }

  .roi-card {
    padding: 24px 16px;
  }

  .roi-card-title {
    font-size: 18px;
  }

  .roi-input-header label {
    font-size: 13px;
  }

  .roi-number-input {
    width: 80px;
    font-size: 13px;
  }

  .roi-result-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .roi-result-value {
    font-size: 18px;
  }

  .roi-total-value {
    font-size: 34px;
  }

  .roi-cta-content h2 {
    font-size: 22px;
  }

  .roi-mobile-total-value {
    font-size: 20px;
  }
}