.dcu-refi-wrap {
  --brand-orange: #f9a332;
  --brand-orange-soft: #f9a332;
  --brand-lime: #97d700;
  --brand-ink: #1f2937;
  --brand-slate: #4b5563;
  --surface: #ffffff;
  --bg: #f4f6f8;
  --success: #0f766e;
  --error: #b91c1c;
  --radius: 18px;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.12);

  margin: 28px auto;
  max-width: 1040px;
  color: var(--brand-ink);
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 5% -20%, rgba(151, 215, 0, 0.18), transparent 45%),
    radial-gradient(800px 500px at 100% 0%, rgba(249, 163, 50, 0.2), transparent 45%),
    var(--bg);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.dcu-refi-wrap * {
  box-sizing: border-box;
}

.dcu-hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(130deg, #ffffff 0%, #f9fafb 55%, #fff4ef 100%);
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.dcu-logo {
  width: min(280px, 100%);
  height: auto;
  display: block;
}

.dcu-hero h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.dcu-hero p {
  margin: 0;
  color: var(--brand-slate);
  max-width: 70ch;
  line-height: 1.5;
}

.dcu-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  padding: 24px;
  align-items: stretch;
}

.dcu-panel {
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  height: 100%;
}

.dcu-panel-input {
  background: linear-gradient(155deg, #f9ad49 0%, #f9a332 65%, #ef9725 100%);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dcu-panel-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dcu-panel h3 {
  margin: 0 0 16px;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.dcu-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dcu-panel-input .dcu-fields {
  row-gap: 16px;
}

.dcu-field {
  display: grid;
  gap: 6px;
}

.dcu-field-full {
  grid-column: span 2;
}

.dcu-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.dcu-panel-input .dcu-field label,
.dcu-panel-input .dcu-slider-block label {
  color: #fff;
}

.dcu-field input,
.dcu-field select,
.dcu-btn-primary,
.dcu-btn-secondary {
  font: inherit;
}

.dcu-field input,
.dcu-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(31, 41, 55, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--brand-ink);
  background: #fff;
}

.dcu-field input[readonly] {
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.dcu-field input:focus,
.dcu-field select:focus {
  outline: 2px solid rgba(151, 215, 0, 0.45);
  outline-offset: 1px;
  border-color: var(--brand-lime);
}

.dcu-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.dcu-calc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dcu-btn-primary,
.dcu-btn-secondary {
  min-height: 46px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dcu-btn-primary {
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  flex: 1;
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dcu-btn-secondary {
  border: 0;
  background: #eef2f7;
  color: var(--brand-ink);
}

.dcu-btn-primary:hover,
.dcu-btn-primary:focus {
  background: #fff;
  color: #bf7516;
}

.dcu-car-stage {
  position: relative;
  min-height: 132px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.dcu-car-stage::before {
  content: "";
  position: absolute;
  right: 9%;
  top: 62%;
  width: min(56%, 230px);
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.08) 65%, rgba(0, 0, 0, 0) 100%);
  filter: blur(1px);
  pointer-events: none;
}

.dcu-car-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 70%;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.35);
}

.dcu-car {
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(68%, 300px);
  height: auto;
  opacity: 0.78;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
  transform: translate(0, -50%);
  pointer-events: none;
}

.dcu-car-stage.is-driving .dcu-car {
  animation: dcu-drive-left 1.7s cubic-bezier(0.24, 0.62, 0.2, 1) forwards;
}

.dcu-car-stage.is-driving::before {
  animation: dcu-shadow-left 1.7s cubic-bezier(0.24, 0.62, 0.2, 1) forwards;
}

@keyframes dcu-drive-left {
  0% {
    transform: translate(0, -50%);
  }
  12% {
    transform: translate(-6%, -50%);
  }
  100% {
    transform: translate(-190%, -50%);
  }
}

@keyframes dcu-shadow-left {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-190%);
    opacity: 0.35;
  }
}

.dcu-slider-group {
  display: grid;
  gap: 16px;
}

.dcu-slider-block {
  display: grid;
  gap: 10px;
}

.dcu-promo-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
}

.dcu-promo-toggle input {
  margin-top: 2px;
  accent-color: #97d700;
}

.dcu-rate-sheet {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  padding: 10px 12px;
}

.dcu-rate-sheet-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
}

.dcu-rate-sheet-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.82rem;
}

.dcu-slider-block input[type="range"] {
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  outline: none;
}

.dcu-slider-block input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #97d700;
  cursor: pointer;
}

.dcu-slider-block input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #97d700;
  cursor: pointer;
}

.dcu-scale {
  display: grid;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  gap: 6px;
}

.dcu-scale-terms {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dcu-scale-credit {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dcu-scale-credit span {
  line-height: 1.35;
}

.dcu-credit-selected {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.dcu-results {
  display: grid;
  gap: 12px;
}

.dcu-metric {
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: #fcfcfd;
}

.dcu-metric span {
  display: block;
  color: var(--brand-slate);
  font-size: 0.84rem;
  margin-bottom: 3px;
}

.dcu-metric strong {
  font-size: 1.36rem;
  letter-spacing: -0.01em;
}

.dcu-metric.dcu-emphasis {
  border-color: rgba(15, 118, 110, 0.35);
  background: #ecfdf5;
}

.dcu-metric.dcu-emphasis strong {
  color: var(--success);
}

.dcu-micro {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--brand-slate);
  line-height: 1.45;
}

.dcu-results-disclaimer {
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: #f8fafc;
  color: var(--brand-slate);
  font-size: 0.76rem;
  line-height: 1.48;
}

.dcu-results-actions {
  margin-top: auto;
  padding-top: 8px;
}

.dcu-application-cta {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(105deg, #97d700, #7fb500);
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(127, 181, 0, 0.22);
}

.dcu-application-cta:hover,
.dcu-application-cta:focus {
  color: #1f2937;
  filter: brightness(1.02);
}

.dcu-application-cta:focus {
  outline: 2px solid rgba(151, 215, 0, 0.45);
  outline-offset: 2px;
}

.dcu-refi-wrap > .dcu-disclaimer {
  padding: 0 24px 22px;
  color: var(--brand-slate);
  font-size: 0.79rem;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .dcu-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dcu-fields {
    grid-template-columns: 1fr;
  }

  .dcu-field-full {
    grid-column: auto;
  }

  .dcu-hero,
  .dcu-grid,
  .dcu-refi-wrap > .dcu-disclaimer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dcu-calc-form {
    justify-content: flex-start;
  }

  .dcu-panel-input .dcu-fields {
    row-gap: 14px;
  }

  .dcu-car-stage {
    min-height: 124px;
  }

  .dcu-btn-row {
    flex-direction: column;
  }

  .dcu-btn-primary,
  .dcu-btn-secondary {
    width: 100%;
    min-width: 0;
  }
}
