* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Red Hat Text, sans-serif;
  background: #f3f6fa;
  color: #1b365d;
}

.retention-roi-calculator {
  padding: 40px 20px;
}

.calculator-shell {
  max-width: 1180px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(27, 54, 93, 0.12);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.calculator-left {
  padding: 48px 42px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.calculator-right {
  padding: 48px 36px 48px;
  background: #1b365d;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e87722;
}

.calculator-left h2 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.1;
  color: #1b365d;
  font-weight: 700;
}

.intro {
  margin: 0 0 34px;
  font-size: 17px;
  line-height: 1.65;
  color: #4d6384;
  max-width: 630px;
}

.input-block {
  margin-bottom: 26px;
}

.input-block label {
  display: block;
  padding-top: 20px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #1b365d;
  max-width: 75%;
}

.range-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.range-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(232, 119, 34, 0.12);
  color: #e87722;
  font-weight: 700;
  font-size: 20px;
  margin-top: -30px;
}

/* Range slider base */
input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 10px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(
    to right,
    #e87722 0%,
    #e87722 50%,
    #d9e3ef 50%,
    #d9e3ef 100%
  );
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #d9e3ef;
}

input[type="range"]::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: #e87722;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  margin-top: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e87722;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e87722;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.calculator-note {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6a7d99;
}

/* Testimonial / blockquote styling */
.retention-roi-calculator blockquote,
.communication-roi-calculator blockquote,
.trip-roi-calculator blockquote {
  position: relative;
  margin: 28px 0 10px;
  padding: 28px 28px 24px 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border: 1px solid rgba(27, 54, 93, 0.12);
  box-shadow: 0 10px 24px rgba(27, 54, 93, 0.08);
  color: #1b365d;
}

.retention-roi-calculator blockquote::before,
.communication-roi-calculator blockquote::before,
.trip-roi-calculator blockquote::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 64px;
  line-height: 1;
  color: rgba(232, 119, 34, 0.22);
  font-weight: 700;
  pointer-events: none;
  font-family: Source Serif Pro;
}

.retention-roi-calculator blockquote p,
.communication-roi-calculator blockquote p,
.trip-roi-calculator blockquote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: #1b365d;
  position: relative;
  z-index: 1;
}

.retention-roi-calculator blockquote cite,
.communication-roi-calculator blockquote cite,
.trip-roi-calculator blockquote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: #e87722;
}

.retention-roi-calculator blockquote cite span,
.communication-roi-calculator blockquote cite span,
.trip-roi-calculator blockquote cite span {
  display: block;
  font-weight: 500;
  color: #4d6384;
}

@media (max-width: 640px) {
  .retention-roi-calculator blockquote,
  .communication-roi-calculator blockquote,
  .trip-roi-calculator blockquote {
    margin: 22px 0 8px;
    padding: 22px 20px 20px 24px;
    border-radius: 16px;
  }

  .retention-roi-calculator blockquote::before,
  .communication-roi-calculator blockquote::before,
  .trip-roi-calculator blockquote::before {
    font-size: 48px;
    top: 8px;
    left: 12px;
  }

  .retention-roi-calculator blockquote p,
  .communication-roi-calculator blockquote p,
  .trip-roi-calculator blockquote p {
    font-size: 16px;
    line-height: 1.65;
  }

  .retention-roi-calculator blockquote cite,
  .communication-roi-calculator blockquote cite,
  .trip-roi-calculator blockquote cite {
    font-size: 14px;
  }
}

.result-kicker {
  margin: 0 0 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.74);
}

.result-panel {
  text-align: center;
  margin-bottom: 26px;
}

.result-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.timeframe-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: 999px;
  margin-bottom: 18px;
  gap: 4px;
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab.active {
  background: #e87722;
  color: #ffffff;
}

.result-value {
  font-size: 64px;
  line-height: 1.04;
  font-weight: 800;
  margin-bottom: 8px;
  min-height: 67px;
}

.result-subtitle {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
}

.stat-label {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

.stat-value {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  min-height: 32px;
}

.turnover-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.turnover-comparison .arrow {
  color: #e87722;
  font-weight: 700;
}

#turnoverBefore {
  opacity: 0.65;
}

#turnoverAfter {
  font-weight: 800;
}

.cta-copy {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.demo-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field:nth-child(5) {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.form-field input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  outline: none;
}

.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.form-field input:focus {
  border-color: #e87722;
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.18);
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  background: #e87722;
  color: #ffffff;
  font-weight: 700;
  padding: 15px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.demo-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

@media (max-width: 980px) {
  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .calculator-left,
  .calculator-right {
    padding: 32px 24px;
  }

  .calculator-left h2 {
    font-size: 31px;
  }

  .result-value {
    font-size: 42px;
    min-height: 44px;
  }

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

  .form-field:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .retention-roi-calculator {
    padding: 20px 12px;
  }

  .calculator-left,
  .calculator-right {
    padding: 24px 18px;
  }

  .calculator-left h2 {
    font-size: 26px;
  }

  .intro {
    font-size: 15px;
    line-height: 1.55;
  }

  .input-block label {
    font-size: 15px;
  }

  .range-value {
    min-width: 72px;
    padding: 6px 10px;
    font-size: 14px;
  }

  .timeframe-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
  }

  .tab {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
  }

  .result-title {
    font-size: 18px;
  }

  .result-value {
    font-size: 34px;
    min-height: 38px;
    word-break: break-word;
  }

  .result-subtitle {
    font-size: 14px;
  }

  .stat-card {
    padding: 16px 14px;
  }

  .stat-value {
    font-size: 24px;
  }

  .cta-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .form-field input {
    padding: 12px;
    font-size: 14px;
  }

  .demo-btn {
    padding: 14px 18px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .calculator-left h2 {
    font-size: 23px;
  }

  .result-value {
    font-size: 30px;
  }

  .stats-grid {
    gap: 10px;
  }
}

/* Scope to one Gravity Form only */
.gform-theme--framework#gform_wrapper_59 {
  width: 100%;
  margin: 0;
}

.gform-theme--framework#gform_wrapper_59 .gform_heading,
.gform-theme--framework#gform_wrapper_59 .gform_description,
.gform-theme--framework#gform_wrapper_59 .gform_required_legend {
  display: none;
}

.gform-theme--framework#gform_wrapper_59 form {
  margin: 0;
}

.gform-theme--framework#gform_wrapper_59 .gform-body {
  margin: 0;
}

.gform-theme--framework#gform_wrapper_59 .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gform-theme--framework#gform_wrapper_59 .gfield {
  margin: 0;
  padding: 0;
}

/* .gform-theme--framework#gform_wrapper_59 .gfield--width-full {
  grid-column: 1 / -1;
} */

.gform-theme--framework#gform_wrapper_59 .gfield_label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.gfield_required .gfield_required_asterisk {
  color: red;
}

.gform-theme--framework#gform_wrapper_59 input[type="text"],
.gform-theme--framework#gform_wrapper_59 input[type="email"],
.gform-theme--framework#gform_wrapper_59 input[type="tel"] {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  outline: none;
  box-shadow: none;
}

.gform-theme--framework#gform_wrapper_59 input::placeholder {
  color: rgba(255, 255, 255, 1);
}

.gform-theme--framework#gform_wrapper_59 input:focus {
  border-color: #e87722;
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.18);
}

.gform-theme--framework#gform_wrapper_59 .gform_footer,
.gform-theme--framework#gform_wrapper_59 .gform_page_footer {
  margin-top: 16px;
  padding: 0;
}

.gform-theme--framework#gform_wrapper_59 .gform_button,
.gform-theme--framework#gform_wrapper_59 .gform-theme-button,
.gform-theme--framework#gform_wrapper_59 button[type="submit"] {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e87722;
  color: #ffffff;
  font-weight: 700;
  padding: 15px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gform-theme--framework#gform_wrapper_59 .gform_button:hover,
.gform-theme--framework#gform_wrapper_59 .gform-theme-button:hover,
.gform-theme--framework#gform_wrapper_59 button[type="submit"]:hover {
  transform: translateY(1px);
  opacity: 0.95;
}

.gform-theme--framework#gform_wrapper_59 .validation_message,
.gform-theme--framework#gform_wrapper_59 .gform_validation_errors {
  border-radius: 12px;
}

.gform-theme--framework#gform_wrapper_59 select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.gform-theme--framework#gform_wrapper_59 select {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

.gform-theme--framework#gform_wrapper_59 select option {
  color: #1b365d;
  background: #ffffff;
}

.gform-theme--framework#gform_wrapper_59 select:focus {
  border-color: #e87722;
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.18);
}

@media (max-width: 980px) {
  .gform-theme--framework#gform_wrapper_59 .gform_fields {
    grid-template-columns: 1fr;
  }
}