.rbc-calculator {
  --rbc-accent: #e55030;
  --rbc-black: #000;
  --rbc-charcoal: #1f2124;
  --rbc-text: #333;
  --rbc-muted: #686868;
  --rbc-line: #d5d8dc;
  --rbc-soft: #f8f8f8;
  --rbc-white: #fff;
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--rbc-line);
  border-radius: 24px;
  background: var(--rbc-white);
  color: var(--rbc-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.09);
  font-family: Poppins, sans-serif;
  isolation: isolate;
}

.rbc-calculator,
.rbc-calculator * {
  box-sizing: border-box;
}

.rbc-calculator button,
.rbc-calculator input,
.rbc-calculator select {
  font: inherit;
}

.rbc-intro {
  position: relative;
  min-width: 0;
  padding: clamp(40px, 5vw, 76px) clamp(28px, 4.5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 105% -5%, rgba(229, 80, 48, 0.35), transparent 34%),
    linear-gradient(145deg, #000 0%, #0d0d0e 62%, #1f2124 100%);
  color: var(--rbc-white);
}

.rbc-intro::after {
  position: absolute;
  right: -96px;
  bottom: -96px;
  width: 240px;
  height: 240px;
  border: 28px solid rgba(229, 80, 48, 0.12);
  border-radius: 50%;
  content: "";
}

.rbc-eyebrow {
  margin: 0 0 17px;
  color: var(--rbc-accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.rbc-intro h2 {
  position: relative;
  z-index: 1;
  max-width: 670px;
  margin: 0;
  color: var(--rbc-white);
  font-family: Poppins, sans-serif;
  font-size: clamp(40px, 4.2vw, 55px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.rbc-lead {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 25px 0 0;
  color: #fafafa;
  font-size: 18px;
  line-height: 1.65;
}

.rbc-trust-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rbc-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rbc-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.rbc-trust-row span::before {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--rbc-accent);
  color: var(--rbc-white);
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.rbc-panel {
  min-width: 0;
  padding: clamp(32px, 4.5vw, 64px);
  background: var(--rbc-white);
}

.rbc-progress {
  margin-bottom: 42px;
}

.rbc-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
  color: var(--rbc-muted);
  font-size: 13px;
  font-weight: 600;
}

.rbc-progress__meta span:first-child {
  color: var(--rbc-black);
}

.rbc-progress__track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #ececec;
}

.rbc-progress__track span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--rbc-accent);
  transition: width 260ms ease;
}

.rbc-error {
  margin: -18px 0 26px;
  padding: 13px 16px;
  border-left: 4px solid var(--rbc-accent);
  background: #fff2ef;
  color: #8c2713;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.rbc-step[hidden],
.rbc-comparison[hidden],
.rbc-error[hidden] {
  display: none !important;
}

.rbc-calculator [hidden] {
  display: none !important;
}

.rbc-step {
  animation: rbc-fade-in 220ms ease both;
}

@keyframes rbc-fade-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rbc-step,
  .rbc-progress__track span {
    animation: none;
    transition: none;
  }
}

.rbc-step__heading {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  margin-bottom: 33px;
}

.rbc-step__number {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--rbc-black);
  color: var(--rbc-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.rbc-step__heading h3,
.rbc-results__header h3 {
  margin: 0;
  color: var(--rbc-black);
  font-family: Poppins, sans-serif;
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
}

.rbc-step__heading p,
.rbc-results__header > p:last-child {
  margin: 9px 0 0;
  color: var(--rbc-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rbc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.rbc-field {
  display: block;
  min-width: 0;
  margin: 0;
}

.rbc-field--full {
  grid-column: 1 / -1;
}

.rbc-field > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--rbc-black);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

.rbc-field > span:first-child em {
  color: var(--rbc-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.rbc-field select,
.rbc-text-input,
.rbc-money-input,
.rbc-percent-input {
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--rbc-line);
  border-radius: 12px;
  background: var(--rbc-white);
  color: var(--rbc-black);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rbc-field select {
  display: block;
  padding: 0 45px 0 17px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #333 50%),
    linear-gradient(135deg, #333 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 25px,
    calc(100% - 16px) 25px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  font-size: 15px;
  font-weight: 500;
}

.rbc-text-input {
  display: block;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
}

.rbc-money-input,
.rbc-percent-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.rbc-money-input > span,
.rbc-percent-input > span {
  display: grid;
  align-self: stretch;
  min-width: 48px;
  place-items: center;
  background: var(--rbc-soft);
  color: var(--rbc-muted);
  font-size: 15px;
  font-weight: 700;
}

.rbc-money-input input,
.rbc-percent-input input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--rbc-black);
  font-size: 16px;
  font-weight: 600;
}

.rbc-percent-input input {
  order: 1;
}

.rbc-percent-input > span {
  order: 2;
}

.rbc-field select:focus,
.rbc-text-input:focus,
.rbc-money-input:focus-within,
.rbc-percent-input:focus-within {
  border-color: var(--rbc-accent);
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rbc-accent) 14%, transparent);
}

.rbc-field small {
  display: block;
  margin-top: 8px;
  color: var(--rbc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rbc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
}

.rbc-actions--end {
  justify-content: flex-end;
}

.rbc-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 25px;
  border: 2px solid transparent;
  border-radius: 99px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

/* Prevent Elementor's global button typography from overriding Radiarc buttons. */
.rbc-calculator .rbc-button {
  font-family: Poppins, sans-serif !important;
  font-weight: 700 !important;
}

.rbc-button:hover {
  transform: translateY(-2px);
}

.rbc-button:focus-visible,
.rbc-restart:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rbc-accent) 35%, transparent);
  outline-offset: 3px;
}

.rbc-button--primary,
.rbc-button--primary:visited {
  border-color: var(--rbc-accent);
  background: var(--rbc-accent);
  color: var(--rbc-white);
}

.rbc-button--primary:hover {
  border-color: var(--rbc-black);
  background: var(--rbc-black);
  color: var(--rbc-white);
}

.rbc-button--secondary {
  border-color: var(--rbc-black);
  background: transparent;
  color: var(--rbc-black);
}

.rbc-button--secondary:hover {
  background: var(--rbc-black);
  color: var(--rbc-white);
}

.rbc-results__header {
  margin-bottom: 30px;
}

.rbc-results__header .rbc-eyebrow {
  margin-bottom: 11px;
}

.rbc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rbc-result-card {
  min-width: 0;
  min-height: 166px;
  padding: 24px;
  border: 1px solid var(--rbc-line);
  border-radius: 16px;
  background: var(--rbc-soft);
}

.rbc-result-card > span {
  display: block;
  color: var(--rbc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.35;
  text-transform: uppercase;
}

.rbc-result-card strong {
  display: block;
  margin-top: 11px;
  color: var(--rbc-black);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.7px;
}

.rbc-result-card small {
  display: block;
  margin-top: 9px;
  color: var(--rbc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rbc-result-card--dark {
  border-color: var(--rbc-black);
  background: var(--rbc-black);
}

.rbc-result-card--dark > span,
.rbc-result-card--dark small {
  color: #d5d8dc;
}

.rbc-result-card--dark strong {
  color: var(--rbc-white);
}

.rbc-result-card--accent {
  border-color: var(--rbc-accent);
  background: var(--rbc-accent);
}

.rbc-result-card--accent > span,
.rbc-result-card--accent small,
.rbc-result-card--accent strong {
  color: var(--rbc-white);
}

.rbc-result-card--accent strong {
  font-size: clamp(21px, 2.2vw, 28px);
}

.rbc-comparison {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 15px;
  padding: 18px 20px;
  border: 1px solid var(--rbc-line);
  border-radius: 14px;
  background: var(--rbc-white);
}

.rbc-comparison span {
  display: block;
  color: var(--rbc-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.rbc-comparison strong {
  display: block;
  margin-top: 3px;
  color: var(--rbc-black);
  font-size: 22px;
}

.rbc-comparison p {
  margin: 0;
  padding-left: 21px;
  border-left: 1px solid var(--rbc-line);
  color: var(--rbc-text);
  font-size: 13px;
  line-height: 1.55;
}

.rbc-allocation {
  margin-top: 34px;
  padding-top: 32px;
  border-top: 1px solid var(--rbc-line);
}

.rbc-allocation__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.rbc-allocation__heading .rbc-eyebrow {
  margin-bottom: 8px;
}

.rbc-allocation__heading h4,
.rbc-email-plan h4,
.rbc-cta h4 {
  margin: 0;
  color: var(--rbc-black);
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.rbc-allocation__heading > span {
  max-width: 180px;
  color: var(--rbc-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.rbc-allocation__rows {
  display: grid;
  gap: 17px;
}

.rbc-allocation__row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) auto;
  align-items: center;
  gap: 14px;
}

.rbc-allocation__label {
  color: var(--rbc-black);
  font-size: 13px;
  font-weight: 700;
}

.rbc-allocation__bar {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #ececec;
}

.rbc-allocation__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rbc-accent);
}

.rbc-allocation__value {
  min-width: 88px;
  color: var(--rbc-black);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.rbc-benchmark-note {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 4px solid var(--rbc-accent);
  background: var(--rbc-soft);
}

.rbc-benchmark-note strong {
  color: var(--rbc-black);
  font-size: 13px;
}

.rbc-benchmark-note p {
  margin: 5px 0 0;
  color: var(--rbc-muted);
  font-size: 12px;
  line-height: 1.55;
}

.rbc-email-plan {
  margin-top: 30px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--rbc-line);
  border-radius: 18px;
  background: var(--rbc-white);
}

.rbc-email-plan__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.rbc-email-plan__intro > div {
  min-width: 0;
}

.rbc-email-plan__intro .rbc-eyebrow {
  margin-bottom: 8px;
}

.rbc-email-plan__intro > div > p:last-child {
  max-width: 520px;
  margin: 11px 0 0;
  color: var(--rbc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.rbc-email-plan__intro .rbc-button {
  width: fit-content;
  flex: 0 0 auto;
}

.rbc-email-form {
  position: relative;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--rbc-line);
}

.rbc-email-form__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.rbc-email-form__actions > p {
  max-width: 360px;
  margin: 0;
  color: var(--rbc-muted);
  font-size: 11px;
  line-height: 1.5;
}

.rbc-email-form button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.rbc-email-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--rbc-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.rbc-email-status.is-error {
  color: #8c2713;
}

.rbc-email-success {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 7px 0;
}

.rbc-email-success > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--rbc-accent);
  color: var(--rbc-white);
  font-size: 19px;
  font-weight: 800;
}

.rbc-email-success strong {
  color: var(--rbc-black);
  font-size: 16px;
}

.rbc-email-success p {
  margin: 3px 0 0;
  color: var(--rbc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rbc-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rbc-cta {
  display: grid;
  gap: 24px;
  margin-top: 30px;
  padding: clamp(27px, 4vw, 38px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(229, 80, 48, 0.32), transparent 35%),
    var(--rbc-black);
}

.rbc-cta .rbc-eyebrow {
  margin-bottom: 9px;
}

.rbc-cta h4 {
  color: var(--rbc-white);
}

.rbc-cta p:last-child {
  margin: 12px 0 0;
  color: #d5d8dc;
  font-size: 14px;
  line-height: 1.6;
}

.rbc-cta .rbc-button {
  width: fit-content;
}

.rbc-restart-wrap {
  margin-top: 24px;
  text-align: center;
}

.rbc-restart {
  min-height: 54px;
  padding: 15px 25px;
  border: 2px solid var(--rbc-black) !important;
  border-radius: 99px;
  background: var(--rbc-white) !important;
  color: var(--rbc-black) !important;
  cursor: pointer;
  font-family: Poppins, sans-serif !important;
  font-size: 15px;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.rbc-restart:hover {
  transform: translateY(-2px);
  background: var(--rbc-black) !important;
  color: var(--rbc-white) !important;
}

@media (max-width: 980px) {
  .rbc-calculator {
    grid-template-columns: 1fr;
  }

  .rbc-intro,
  .rbc-panel {
    padding: 44px;
  }

  .rbc-intro h2 {
    max-width: 760px;
  }

  .rbc-lead {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .rbc-calculator {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .rbc-intro,
  .rbc-panel {
    padding: 34px 22px;
  }

  .rbc-intro h2 {
    font-size: 36px;
    line-height: 1.08;
  }

  .rbc-lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  .rbc-trust-row {
    display: grid;
    gap: 11px;
    margin-top: 27px;
    padding-top: 22px;
  }

  .rbc-progress {
    margin-bottom: 31px;
  }

  .rbc-step__heading {
    gap: 14px;
    margin-bottom: 27px;
  }

  .rbc-step__number {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .rbc-step__heading h3,
  .rbc-results__header h3 {
    font-size: 29px;
  }

  .rbc-fields,
  .rbc-result-grid {
    grid-template-columns: 1fr;
  }

  .rbc-field--full {
    grid-column: auto;
  }

  .rbc-actions {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
  }

  .rbc-actions--end {
    grid-template-columns: 1fr;
  }

  .rbc-button {
    width: 100%;
    min-height: 56px;
    padding: 14px 17px;
    font-size: 14px;
  }

  .rbc-result-card {
    min-height: 145px;
  }

  .rbc-comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rbc-comparison p {
    padding: 13px 0 0;
    border-top: 1px solid var(--rbc-line);
    border-left: 0;
  }

  .rbc-allocation__heading {
    display: block;
  }

  .rbc-allocation__heading > span {
    display: block;
    max-width: none;
    margin-top: 7px;
    text-align: left;
  }

  .rbc-allocation__row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .rbc-allocation__bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .rbc-allocation__value {
    min-width: 0;
  }

  .rbc-cta .rbc-button {
    width: 100%;
  }

  .rbc-email-plan__intro,
  .rbc-email-form__actions {
    display: grid;
  }

  .rbc-email-plan__intro .rbc-button,
  .rbc-email-form__actions .rbc-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .rbc-intro,
  .rbc-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .rbc-intro h2 {
    font-size: 32px;
  }

  .rbc-actions {
    grid-template-columns: 1fr;
  }
}
