/* Modern ROI Calculator - Dispel-Inspired Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Variables - Trilogy Health Solutions Brand Colors */
:root {
  --primary-color: #DA291C;
  --primary-dark: #b52218;
  --primary-light: #e4554b;
  --text-dark: #000000;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #F1F3F4;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  min-height: 100vh;
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 60px;
}

.header h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.header p {
  font-size: 20px;
  color: var(--text-gray);
  font-weight: 400;
}

/* Container */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Input Section */
.input-content-block {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.input-content-block h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.input-content-block > p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 48px;
  line-height: 1.6;
}

/* Fieldsets */
fieldset {
  border: none;
  margin-bottom: 48px;
}

fieldset:last-child {
  margin-bottom: 0;
}

fieldset label {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

/* Range Slider Container */
.range-block {
  position: relative;
  padding-top: 32px;
}

/* Value Display */
.range-value {
  position: absolute;
  top: 0;
  left: 0%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(218, 41, 28, 0.3);
  transition: left 0.1s ease-out;
}

/* Range Slider Track */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
  position: relative;
  cursor: pointer;
}

/* Track fill effect (using linear gradient) */
.range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color) 0%,
    var(--primary-color) var(--value, 0%),
    #e5e7eb var(--value, 0%),
    #e5e7eb 100%
  );
}

.range-slider::-moz-range-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
}

/* Filled portion for Firefox */
.range-slider::-moz-range-progress {
  height: 8px;
  border-radius: 4px;
  background: var(--primary-color);
}

/* Slider Thumb - Webkit (Chrome, Safari, Edge) - PILL SHAPE */
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 16px;
  border-radius: 14px;
  background: var(--primary-color);
  cursor: grab;
  border: none;
  box-shadow: 0 2px 8px rgba(218, 41, 28, 0.3);
  transition: all 0.2s ease;
  position: relative;
  margin-top: -4px;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.5);
  background: var(--primary-dark);
}

.range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
  background: var(--primary-dark);
}

/* Slider Thumb - Firefox - PILL SHAPE */
.range-slider::-moz-range-thumb {
  width: 28px;
  height: 16px;
  border-radius: 14px;
  background: var(--primary-color);
  cursor: grab;
  border: none;
  box-shadow: 0 2px 8px rgba(218, 41, 28, 0.3);
  transition: all 0.2s ease;
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.5);
  background: var(--primary-dark);
}

.range-slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
  background: var(--primary-dark);
}

/* Right Box - Results */
.right-box {
  position: sticky;
  top: 60px;
}

.calculation-box {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* Hero Savings Card */
.hero-savings {
  background: var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(218, 41, 28, 0.25);
}

.hero-savings .label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-savings .number {
  font-size: 72px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-savings .tooltip {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

/* Supporting Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-card .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-card .number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-card .tooltip {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.4;
}

/* Results List */
.list-data {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-data li {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-data li:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.list-data li.divider {
  height: 0;
  padding: 0;
  margin: 8px 0;
  border: none;
}

.list-data .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.list-data .tooltip {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.4;
}

.list-data .number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

/* Highlighted Sections */
.list-data .dpc-total-savings,
.list-data .total-savings {
  background: var(--primary-color);
  margin: 16px -40px;
  padding: 28px 40px;
  border-radius: var(--border-radius);
  border: none;
}

.list-data .dpc-total-savings .label,
.list-data .total-savings .label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
}

.list-data .dpc-total-savings .tooltip,
.list-data .total-savings .tooltip {
  color: rgba(255, 255, 255, 0.7);
}

.list-data .dpc-total-savings .number,
.list-data .total-savings .number {
  color: white;
  font-size: 40px;
}

/* Button */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-trigger-form {
  width: 100%;
  margin-top: 32px;
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(218, 41, 28, 0.25);
}

.btn-trigger-form:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.35);
}

.btn-trigger-form:active {
  transform: translateY(0);
}

.btn-blue {
  background: var(--primary-color);
  color: white;
}

.btn-blue:hover {
  background: var(--primary-dark);
}

.btn-back-calc {
  margin-top: 16px;
  width: 100%;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-back-calc:hover {
  background: var(--bg-light);
}

/* Form */
.gravity-form-box {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1);
}

.contact-form input::placeholder {
  color: var(--text-light);
}

/* Footer */
.footer {
  margin-top: 100px;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  font-size: 14px;
  color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .right-box {
    position: static;
  }

  .header h1 {
    font-size: 40px;
  }

  .input-content-block,
  .calculation-box,
  .gravity-form-box {
    padding: 32px;
  }

  .list-data .dpc-total-savings,
  .list-data .total-savings {
    margin: 12px -32px;
    padding: 24px 32px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 32px 16px;
  }

  .header {
    margin-bottom: 40px;
  }

  .header h1 {
    font-size: 32px;
  }

  .header p {
    font-size: 16px;
  }

  .input-content-block,
  .calculation-box,
  .gravity-form-box {
    padding: 24px;
  }

  .hero-savings {
    padding: 32px 24px;
  }

  .hero-savings .number {
    font-size: 48px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metric-card {
    padding: 20px;
  }

  .metric-card .number {
    font-size: 28px;
  }

  .list-data .number {
    font-size: 30px;
  }

  .list-data .dpc-total-savings .number,
  .list-data .total-savings .number {
    font-size: 34px;
  }

  .list-data .dpc-total-savings,
  .list-data .total-savings {
    margin: 12px -24px;
    padding: 20px 24px;
  }

  fieldset label {
    margin-bottom: 24px;
  }

  fieldset {
    margin-bottom: 36px;
  }
}

/* Utility Classes */
.text-white {
  color: white !important;
}

.font-weight-bold {
  font-weight: 700;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-uppercase {
  text-transform: uppercase;
}

/* Hide elements */
.img-man-block {
  display: none;
}

.industry-explanation {
  display: none;
}
