.cld {
  --cld-accent: #0b5cab;
  --cld-accent-dark: #073e74;
  --cld-accent-soft: #eaf4ff;
  --cld-cta: #d71920;
  --cld-cta-dark: #a80f16;
  --cld-border: #cbd5e1;
  --cld-danger: #b42318;
  --cld-danger-soft: #fff1f0;
  --cld-ink: #172033;
  --cld-muted: #4b5565;
  --cld-surface: #ffffff;
  --cld-surface-soft: #f7f9fc;
  box-sizing: border-box;
  clear: both;
  color: var(--cld-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 100%;
  text-align: left;
}

.cld *,
.cld *::before,
.cld *::after {
  box-sizing: inherit;
}

.cld [hidden] {
  display: none !important;
}

.cld__sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.cld__inner {
  background: var(--cld-surface);
  border: 1px solid var(--cld-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgb(23 32 51 / 10%);
  overflow: hidden;
}

.cld__header {
  background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 100%);
  border-bottom: 1px solid #dbe8f5;
  padding: 20px 16px 18px;
}

.cld__title,
.cld__result-title,
.cld__products-title,
.cld__product-title {
  border: 0;
  color: var(--cld-ink);
  font-family: inherit;
  padding: 0;
  text-transform: none;
}

.cld__title::before,
.cld__title::after,
.cld__result-title::before,
.cld__result-title::after,
.cld__products-title::before,
.cld__products-title::after,
.cld__product-title::before,
.cld__product-title::after {
  content: none;
}

.cld__title {
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.cld__lead {
  color: var(--cld-muted);
  margin: 8px 0 0;
}

.cld__form {
  margin: 0;
  padding: 20px 16px 22px;
}

.cld__fields {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.cld__field {
  min-width: 0;
}

.cld__field--wide {
  grid-column: auto;
}

.cld__label {
  color: var(--cld-ink);
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 7px;
}

.cld__input-wrap {
  align-items: center;
  display: flex;
  gap: 10px;
  width: 100%;
}

.cld__input {
  appearance: none;
  background: #fff;
  border: 1px solid #8b97a8;
  border-radius: 10px;
  color: var(--cld-ink);
  flex: 1 1 auto;
  font: inherit;
  font-size: 16px;
  height: 52px;
  line-height: 1.4;
  margin: 0;
  min-width: 0;
  padding: 10px 12px;
  width: auto;
}

.cld__input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.cld__input:focus {
  border-color: var(--cld-accent);
  box-shadow: 0 0 0 3px rgb(11 92 171 / 20%);
  outline: 2px solid transparent;
}

.cld__input--error {
  background: var(--cld-danger-soft);
  border-color: var(--cld-danger);
}

.cld__input--error:focus {
  box-shadow: 0 0 0 3px rgb(180 35 24 / 18%);
}

.cld__unit {
  color: var(--cld-ink);
  flex: 0 0 auto;
  font-weight: 700;
  min-width: 34px;
  white-space: nowrap;
}

.cld__help,
.cld__error,
.cld__privacy,
.cld__js-status,
.cld__noscript {
  font-size: 13px;
  line-height: 1.65;
}

.cld__help {
  color: var(--cld-muted);
  margin: 7px 0 0;
}

.cld__error {
  color: var(--cld-danger);
  font-weight: 700;
  margin: 6px 0 0;
}

.cld__submit,
.cld__cta {
  align-items: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-weight: 700;
  justify-content: center;
  line-height: 1.4;
  min-height: 52px;
  text-align: center;
  text-decoration: none;
}

.cld__submit {
  background: var(--cld-accent);
  color: #fff;
  font-size: 17px;
  margin: 22px auto 0;
  max-width: 360px;
  padding: 12px 24px;
  width: 100%;
}

.cld__submit:hover,
.cld__submit:focus-visible {
  background: var(--cld-accent-dark);
  color: #fff;
  text-decoration: none;
}

.cld__cta:hover,
.cld__cta:focus-visible {
  background: var(--cld-cta-dark);
  color: #fff;
  text-decoration: none;
}

.cld__submit:focus-visible,
.cld__cta:focus-visible {
  outline: 3px solid #f6b800;
  outline-offset: 3px;
}

.cld__submit:disabled {
  background: #697586;
  cursor: not-allowed;
}

.cld__js-status,
.cld__noscript {
  background: #fff8e1;
  border: 1px solid #d7a900;
  border-radius: 6px;
  color: #5a4300;
  margin: 12px 0 0;
  padding: 8px 10px;
  text-align: center;
}

.cld__privacy {
  color: var(--cld-muted);
  margin: 10px 0 0;
  text-align: center;
}

.cld__result {
  border-top: 8px solid var(--cld-surface-soft);
  scroll-margin-top: 20px;
}

.cld__result-section {
  padding: 24px 16px;
}

.cld__result-section + .cld__result-section {
  border-top: 1px solid var(--cld-border);
}

.cld__result-section--bank {
  background: var(--cld-surface-soft);
}

.cld__result-kicker {
  color: var(--cld-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.cld__result-title {
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.cld__amount {
  color: var(--cld-accent-dark);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  margin: 14px 0 4px;
}

.cld__amount strong {
  font-size: 1.55em;
  font-weight: 800;
}

.cld__amount-prefix {
  font-size: 0.72em;
}

.cld__calculation {
  color: var(--cld-muted);
  font-size: 14px;
  margin: 0;
}

.cld__disclaimer,
.cld__zero-message {
  border-radius: 8px;
  font-size: 14px;
  margin: 16px 0 0;
  padding: 12px 14px;
}

.cld__disclaimer {
  background: #f1f5f9;
  border-left: 4px solid #64748b;
}

.cld__zero-message {
  background: #fff8e1;
  border: 1px solid #d7a900;
  color: #5a4300;
  font-weight: 600;
}

.cld__products-wrap {
  margin-top: 24px;
}

.cld__products-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 12px;
}

.cld__products {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.cld__product {
  background: var(--cld-surface);
  border: 1px solid var(--cld-border);
  border-radius: 14px;
  box-shadow: 0 3px 14px rgb(23 32 51 / 6%);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  padding: 16px;
}

.cld__product-promo {
  margin: 0 0 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.cld__product-promo-copy {
  -webkit-box-decoration-break: clone;
  background: linear-gradient(to bottom, transparent 68%, #ffe36e 68%, #ffe36e 94%, transparent 94%);
  box-decoration-break: clone;
  color: #c62828;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  padding: 0 2px;
}

.cld__product-promo-copy small {
  font: inherit;
}

.cld__product-head {
  display: block;
  margin-bottom: 12px;
}

.cld__product-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  text-align: left;
}

.cld__product-banner-link {
  background: #f8fafc;
  border-radius: 10px;
  display: block;
  line-height: 0;
  overflow: hidden;
  transition: opacity 160ms ease;
  width: 100%;
}

.cld__product-banner-link:hover {
  opacity: 0.94;
}

.cld__product-banner-link:focus-visible {
  outline: 3px solid #f6b800;
  outline-offset: 3px;
}

.cld .cld__product-banner {
  aspect-ratio: 6 / 5;
  display: block;
  height: auto;
  margin: 0 !important;
  max-height: none;
  max-width: none;
  object-fit: contain;
  width: 100%;
}

.cld__product-text {
  color: var(--cld-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.cld__product-fields {
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
}

.cld__product-field {
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  margin: 0;
  padding: 8px 0;
}

.cld__product-field dt,
.cld__product-field dd {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.cld__product-field dt {
  color: var(--cld-muted);
  font-weight: 600;
}

.cld__product-field dd {
  color: var(--cld-ink);
  font-weight: 700;
}

.cld__cta {
  background: var(--cld-cta);
  box-shadow: 0 4px 10px rgb(215 25 32 / 22%);
  color: #fff;
  font-size: 15px;
  margin-top: auto;
  padding: 11px 12px;
  touch-action: manipulation;
  width: 100%;
}

.cld__product-fields + .cld__cta,
.cld__note-control + .cld__cta {
  margin-top: 14px;
}

.cld__note-control {
  margin-top: 10px;
}

.cld__note-trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #667085;
  cursor: pointer;
  display: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.4;
  min-height: 44px;
  padding: 8px 2px;
  text-decoration: underline;
  text-decoration-color: #aeb8c5;
  text-underline-offset: 3px;
  touch-action: manipulation;
  width: auto;
}

.cld[data-cld-ready="true"] .cld__note-trigger {
  display: inline-flex;
}

.cld__note-trigger:hover {
  background: transparent;
  color: #344054;
  text-decoration-color: currentColor;
}

.cld__note-trigger:focus-visible,
.cld__note-close:focus-visible,
.cld__note-fallback summary:focus-visible {
  outline: 3px solid #f6b800;
  outline-offset: 2px;
}

.cld[data-cld-ready="true"] .cld__note-fallback {
  display: none;
}

.cld__note-fallback {
  border: 1px solid var(--cld-border);
  border-radius: 10px;
  color: var(--cld-muted);
  font-size: 13px;
  overflow: hidden;
}

.cld__note-fallback summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 12px;
}

.cld__note-fallback-content {
  border-top: 1px solid var(--cld-border);
  padding: 12px;
}

.cld__note-fallback-content p,
.cld__note-content p {
  margin: 0;
  overflow-wrap: anywhere;
}

.cld__note-fallback-content p + p,
.cld__note-content p + p {
  margin-top: 12px;
}

body.cld-modal-open {
  overflow: hidden;
}

.cld__note-dialog {
  align-items: flex-end;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 0;
  position: fixed;
  z-index: 100000;
}

.cld__note-dialog[hidden] {
  display: none !important;
}

.cld__note-backdrop {
  background: rgb(15 23 42 / 62%);
  inset: 0;
  position: absolute;
}

.cld__note-panel {
  animation: cld-note-rise 180ms ease-out;
  background: var(--cld-surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgb(15 23 42 / 28%);
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  max-height: 86dvh;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.cld__note-header {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--cld-border);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 12px 12px 16px;
}

.cld__note-title {
  border: 0;
  color: var(--cld-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  padding: 0;
}

.cld__note-title::before,
.cld__note-title::after {
  content: none;
}

.cld__note-close {
  align-items: center;
  appearance: none;
  background: #e2e8f0;
  border: 0;
  border-radius: 50%;
  color: var(--cld-ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 44px;
  font: inherit;
  font-size: 28px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  touch-action: manipulation;
  width: 44px;
}

.cld__note-content {
  color: #334155;
  font-size: 14px;
  line-height: 1.75;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

@keyframes cld-note-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cld__no-products {
  background: #fff;
  border: 1px solid var(--cld-border);
  border-radius: 8px;
  color: var(--cld-muted);
  font-size: 14px;
  margin: 0;
  padding: 14px;
}

@media (min-width: 640px) {
  .cld {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .cld__header {
    padding: 24px 24px 20px;
  }

  .cld__form {
    padding: 24px;
  }

  .cld__fields {
    gap: 22px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cld__field--wide {
    grid-column: 1 / -1;
  }

  .cld__help {
    margin-right: 44px;
  }

  .cld__result-section {
    padding: 28px 24px;
  }

  .cld__products {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .cld__product {
    padding: 18px;
  }

  .cld__note-dialog {
    align-items: center;
    padding: 24px;
  }

  .cld__note-panel {
    border-radius: 18px;
    box-shadow: 0 18px 54px rgb(15 23 42 / 30%);
    max-height: 80vh;
    max-height: 80dvh;
    max-width: 620px;
  }

  .cld__note-header {
    padding: 14px 14px 14px 20px;
  }

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

  .cld__note-content {
    padding: 20px 22px 24px;
  }
}

@media (min-width: 960px) {
  .cld__header {
    padding-left: 28px;
    padding-right: 28px;
  }

  .cld__form {
    padding-left: 28px;
    padding-right: 28px;
  }

  .cld__result-section {
    padding: 30px 28px;
  }

  .cld__products {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cld,
  .cld * {
    scroll-behavior: auto !important;
  }

  .cld__note-panel {
    animation: none;
  }
}

/* v0.1.3: mobile-first diagnosis entry and plain-language result UI. */
.cld .cld__inner {
  border-color: #d5e0ec;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgb(17 55 92 / 10%);
}

.cld .cld__header {
  background:
    radial-gradient(circle at 96% 12%, rgb(255 255 255 / 78%) 0 68px, transparent 69px),
    linear-gradient(145deg, #e8f5ff 0%, #f5faff 58%, #eaf4ff 100%);
  border: 0;
  border-bottom: 1px solid #d7e8f7;
  margin: 0 !important;
  overflow: hidden;
  padding: 22px 16px 20px !important;
  position: relative;
}

.cld .cld__header::after {
  background: rgb(36 133 215 / 9%);
  border-radius: 50%;
  content: "";
  height: 150px;
  pointer-events: none;
  position: absolute;
  right: -88px;
  top: 84px;
  width: 150px;
}

.cld .cld__header-content {
  position: relative;
  z-index: 1;
}

.cld .cld__hook {
  color: #0866b8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: 0 0 4px !important;
}

.cld .cld__title,
.cld .cld__result-title,
.cld .cld__products-title,
.cld .cld__product-title,
.cld .cld__note-title {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cld-ink) !important;
  font-family: inherit !important;
  left: auto !important;
  padding: 0 !important;
  position: static !important;
  text-transform: none !important;
}

.cld .cld__title::before,
.cld .cld__title::after,
.cld .cld__result-title::before,
.cld .cld__result-title::after,
.cld .cld__products-title::before,
.cld .cld__products-title::after,
.cld .cld__product-title::before,
.cld .cld__product-title::after,
.cld .cld__note-title::before,
.cld .cld__note-title::after {
  content: none !important;
  display: none !important;
}

.cld .cld__title {
  font-size: clamp(24px, 7.4vw, 32px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em;
  line-height: 1.35 !important;
  margin: 0 !important;
}

.cld .cld__title-break {
  color: #075ca8;
  display: block;
}

.cld .cld__lead {
  color: #41536a;
  font-size: 14px;
  line-height: 1.75;
  margin: 12px 0 0 !important;
  max-width: 680px;
}

.cld .cld__trust-list {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
  list-style: none !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}

.cld .cld__trust-list li {
  align-items: center;
  color: #334c66;
  display: flex;
  font-size: 12.5px;
  font-weight: 700;
  gap: 7px;
  line-height: 1.45;
  margin: 0 !important;
  padding: 0 !important;
}

.cld .cld__trust-list li::before {
  align-items: center;
  background: #0c7a67;
  border-radius: 50%;
  color: #fff;
  content: "✓";
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 11px;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.cld .cld__form {
  background: #fff;
  margin: 0 !important;
  padding: 20px 14px 22px !important;
}

.cld .cld__form-title {
  color: #263b52;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  margin: 0 0 13px !important;
  text-align: center;
}

.cld .cld__fields {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.cld .cld__field,
.cld .cld__field--wide {
  background: #f8fbfe;
  border: 1px solid #d9e4ef;
  border-radius: 14px;
  grid-column: auto;
  min-width: 0;
  padding: 14px;
}

.cld .cld__field-heading {
  align-items: center;
  display: flex;
  gap: 9px;
  min-height: 28px;
}

.cld .cld__step {
  align-items: center;
  background: #0b66b8;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 26px;
  font-size: 13px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  line-height: 1;
  width: 26px;
}

.cld .cld__label {
  color: #1e3349;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 !important;
  padding: 0 !important;
}

.cld .cld__field-hint {
  color: #68778a;
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 8px 35px !important;
}

.cld .cld__field-heading + .cld__select-wrap {
  margin-top: 10px;
}

.cld .cld__select-wrap {
  position: relative;
}

.cld .cld__select {
  appearance: none;
  background: #fff;
  border: 1px solid #8fa0b2;
  border-radius: 11px;
  color: #1e3349;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  height: 54px;
  line-height: 1.4;
  margin: 0;
  padding: 10px 46px 10px 13px;
  width: 100%;
}

.cld .cld__select:focus,
.cld .cld__input:focus {
  border-color: #0872ce;
  box-shadow: 0 0 0 3px rgb(8 114 206 / 18%);
  outline: 2px solid transparent;
}

.cld .cld__select-arrow {
  border-bottom: 2px solid #075ca8;
  border-right: 2px solid #075ca8;
  height: 9px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 20px;
  transform: rotate(45deg);
  width: 9px;
}

.cld .cld__custom-field {
  margin-top: 9px;
}

.cld .cld__input-wrap {
  gap: 9px;
}

.cld .cld__input {
  background: #fff;
  border-color: #8fa0b2;
  border-radius: 11px;
  height: 54px;
}

.cld .cld__input--error {
  background: var(--cld-danger-soft);
  border-color: var(--cld-danger);
}

.cld .cld__help {
  color: #627287;
  font-size: 11.5px;
  line-height: 1.6;
  margin: 9px 0 0 !important;
}

.cld .cld__error {
  color: var(--cld-danger);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  margin: 7px 0 0 !important;
}

.cld .cld__submit {
  background: linear-gradient(135deg, #0871ce 0%, #0755a0 100%);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 7px 16px rgb(7 85 160 / 24%);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  gap: 12px;
  margin: 16px auto 0 !important;
  max-width: 420px;
  min-height: 56px;
  padding: 12px 18px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.cld .cld__submit:not(:disabled):hover {
  background: linear-gradient(135deg, #075eae 0%, #064782 100%);
  box-shadow: 0 9px 20px rgb(7 85 160 / 30%);
  transform: translateY(-1px);
}

.cld .cld__submit:disabled,
.cld .cld__submit:disabled:hover {
  background: #a7b3c1;
  box-shadow: none;
  color: #fff;
  cursor: not-allowed;
  transform: none;
}

.cld .cld__submit-arrow {
  font-size: 19px;
  line-height: 1;
}

.cld .cld__privacy {
  color: #68778a;
  font-size: 12px;
  line-height: 1.55;
  margin: 9px 0 0 !important;
  text-align: center;
}

.cld .cld__result {
  border-top: 8px solid #eef3f8;
}

.cld .cld__result-section {
  padding: 24px 16px !important;
}

.cld .cld__result-section--lender {
  background: #fff;
}

.cld .cld__result-section--bank {
  background: #f5f8fb;
}

.cld .cld__result-kicker {
  color: #0763b3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0 0 5px !important;
}

.cld .cld__result-title {
  font-size: clamp(20px, 5.6vw, 26px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.015em;
  line-height: 1.42 !important;
  margin: 0 !important;
}

.cld .cld__amount {
  color: #074f91;
  font-size: clamp(23px, 6vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  margin: 14px 0 3px !important;
}

.cld .cld__amount strong {
  font-size: 1.7em;
  font-weight: 900;
}

.cld .cld__calculation {
  color: #617188;
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0 !important;
}

.cld .cld__disclaimer,
.cld .cld__zero-message {
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  margin: 14px 0 0 !important;
  padding: 11px 12px;
}

.cld .cld__disclaimer {
  background: #f1f5f9;
  border: 0;
  border-left: 4px solid #718399;
}

.cld .cld__bank-copy {
  color: #33475d;
  font-size: 14px;
  line-height: 1.8;
  margin: 12px 0 0 !important;
}

.cld .cld__bank-copy + .cld__bank-copy {
  margin-top: 5px !important;
}

.cld .cld__products-wrap {
  margin-top: 22px;
}

.cld .cld__products-title {
  border-left: 4px solid #0b66b8 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  margin: 0 0 13px !important;
  padding-left: 10px !important;
}

.cld .cld__product-title {
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  margin: 0 0 10px !important;
}

.cld .cld__note-title {
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

@media (min-width: 520px) {
  .cld .cld__trust-list {
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 8px 18px;
  }
}

@media (min-width: 640px) {
  .cld .cld__header {
    padding: 27px 26px 24px !important;
  }

  .cld .cld__form {
    padding: 24px !important;
  }

  .cld .cld__fields {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .cld .cld__field,
  .cld .cld__field--wide {
    padding: 16px;
  }

  .cld .cld__result-section {
    padding: 28px 24px !important;
  }
}

@media (min-width: 960px) {
  .cld .cld__header {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .cld .cld__form {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .cld .cld__fields {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cld .cld__field,
  .cld .cld__field--wide {
    grid-column: auto;
  }

  .cld .cld__result-section {
    padding: 30px 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cld .cld__submit {
    transition: none;
  }
}

/* v0.1.4: keep the result summary visible and switch product groups with tabs. */
.cld .cld__result-section--summary {
  background: #fff;
}

.cld .cld__comparisons {
  border-top: 1px solid #d9e4ef;
}

.cld .cld__result-tabs {
  background: #fff;
  margin: 0 !important;
  padding: 14px 14px 0;
}

.cld .cld__tablist {
  background: #e8eef5;
  border: 1px solid #d5e0eb;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.cld .cld__product-tab {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  color: #42556c;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  gap: 3px;
  justify-content: center;
  line-height: 1.35;
  margin: 0 !important;
  min-height: 58px;
  min-width: 0;
  padding: 8px 6px;
  text-align: center;
  touch-action: manipulation;
  width: 100%;
}

.cld .cld__product-tab[aria-selected="true"] {
  background: #0866b8;
  box-shadow: 0 4px 10px rgb(8 102 184 / 22%);
  color: #fff;
}

.cld .cld__product-tab:hover {
  background: #dbe7f2;
  color: #1e3e5f;
}

.cld .cld__product-tab[aria-selected="true"]:hover {
  background: #07579f;
  color: #fff;
}

.cld .cld__product-tab:focus-visible {
  outline: 3px solid #f6b800;
  outline-offset: 3px;
}

.cld .cld__tab-label {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cld .cld__tab-count {
  background: #fff;
  border-radius: 999px;
  color: #07579f;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-width: 31px;
  padding: 4px 6px;
}

.cld .cld__product-tab[aria-selected="true"] .cld__tab-count {
  background: rgb(255 255 255 / 92%);
}

.cld .cld__result-panel {
  border-top: 0 !important;
  padding: 20px 14px 24px !important;
}

.cld .cld__result-panel--lender {
  background: #fff;
}

.cld .cld__result-panel--bank {
  background: #f5f8fb;
}

.cld .cld__result-panel--lender .cld__products-wrap {
  margin-top: 0;
}

.cld .cld__result-panel--bank .cld__result-title {
  font-size: clamp(19px, 5.3vw, 24px) !important;
}

@media (min-width: 520px) {
  .cld .cld__product-tab {
    flex-direction: row;
    gap: 8px;
    min-height: 52px;
  }
}

@media (min-width: 640px) {
  .cld .cld__result-tabs {
    padding: 16px 24px 0;
  }

  .cld .cld__result-panel {
    padding: 24px 24px 28px !important;
  }
}

@media (min-width: 960px) {
  .cld .cld__result-tabs {
    padding-left: 28px;
    padding-right: 28px;
  }

  .cld .cld__result-panel {
    padding: 26px 28px 30px !important;
  }
}

/* v0.1.5: balanced desktop inputs and horizontally scrollable products. */
.cld .cld__borrowing-note {
  background: #f1f4f7;
  border: 0;
  border-radius: 9px;
  color: #556579;
  font-size: 12px;
  line-height: 1.65;
  margin: 10px 0 0 !important;
  padding: 9px 11px;
}

.cld .cld__borrowing-note strong {
  color: #34475c;
  font-weight: 800;
}

.cld .cld__disclaimer {
  background: #f1f4f7;
  border: 0;
  border-radius: 8px;
  color: #4f6073;
}

.cld .cld__products-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 10px;
}

.cld .cld__products-heading .cld__products-title {
  flex: 1 1 auto;
  margin: 0 !important;
  min-width: 0;
}

.cld .cld__carousel-controls {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.cld .cld__carousel-button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid #9eafc1;
  border-radius: 50%;
  color: #075ca8;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  line-height: 1;
  margin: 0 !important;
  padding: 0 0 2px;
  touch-action: manipulation;
  width: 42px;
}

.cld .cld__carousel-button:hover:not(:disabled) {
  background: #eaf4ff;
  border-color: #0871ce;
}

.cld .cld__carousel-button:focus-visible {
  outline: 3px solid #f6b800;
  outline-offset: 2px;
}

.cld .cld__carousel-button:disabled {
  background: #eef2f6;
  border-color: #d5dde6;
  color: #a5b0bd;
  cursor: not-allowed;
}

.cld .cld__swipe-hint {
  align-items: center;
  color: #55708c;
  display: flex;
  font-size: 11.5px;
  font-weight: 800;
  gap: 6px;
  justify-content: flex-end;
  line-height: 1.4;
  margin: 0 3px 7px !important;
}

.cld .cld__swipe-hint span {
  color: #0871ce;
  font-size: 17px;
  line-height: 1;
}

.cld .cld__products {
  align-items: stretch;
  display: flex;
  gap: 12px;
  grid-template-columns: none;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 28px 12px 2px;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #9eafc1 #e8eef5;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.cld .cld__products:focus-visible {
  border-radius: 14px;
  outline: 3px solid #f6b800;
  outline-offset: 2px;
}

.cld .cld__products::-webkit-scrollbar {
  height: 6px;
}

.cld .cld__products::-webkit-scrollbar-track {
  background: #e8eef5;
  border-radius: 999px;
}

.cld .cld__products::-webkit-scrollbar-thumb {
  background: #9eafc1;
  border-radius: 999px;
}

.cld .cld__products > .cld__product {
  flex: 0 0 calc(100% - 30px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: auto;
}

@media (max-width: 639px) {
  .cld .cld__carousel-controls {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .cld .cld__swipe-hint {
    display: none;
  }

  .cld .cld__products {
    gap: 14px;
    padding-right: 2px;
  }

  .cld .cld__products > .cld__product {
    flex-basis: calc((100% - 14px) / 2);
    min-width: 280px;
  }
}

@media (min-width: 960px) {
  .cld .cld__field-hint {
    white-space: nowrap;
  }

  .cld .cld__fields {
    align-items: stretch;
  }
}

/* v0.1.13: align promo, note, and CTA rows across product cards. */
.cld .cld__product-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  min-width: 0;
}

.cld .cld__product-footer-row {
  min-width: 0;
  width: 100%;
}

.cld .cld__product-footer-row--note {
  align-items: end;
  display: flex;
  min-height: 44px;
}

.cld .cld__product-footer-row--cta {
  align-items: stretch;
  display: flex;
  min-height: 44px;
}

.cld .cld__note-control {
  display: flex;
  justify-content: flex-end;
  margin: 0 !important;
  width: 100%;
}

.cld .cld__product-footer .cld__cta {
  align-self: stretch;
  margin: 0 !important;
}

/* v0.1.11: one shared secondary action below the product comparison. */
.cld .cld__retry-wrap {
  background: #f8fafc;
  border-top: 1px solid #d9e4ef;
  display: none;
  justify-content: center;
  padding: 14px 14px 24px;
}

.cld[data-cld-ready="true"] .cld__retry-wrap {
  display: flex;
}

.cld .cld__retry {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid #8fa2b7;
  border-radius: 10px;
  box-shadow: none;
  color: #38516b;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  line-height: 1.4;
  margin: 0 !important;
  max-width: 420px;
  min-height: 44px;
  padding: 9px 12px;
  text-align: center;
  touch-action: manipulation;
  width: 100%;
}

.cld .cld__retry:hover {
  background: #f1f5f9;
  border-color: #637c96;
}

.cld .cld__retry:focus-visible {
  outline: 3px solid #f6b800;
  outline-offset: 2px;
}

.cld .cld__retry-arrow {
  color: #0866b8;
  font-size: 17px;
  line-height: 1;
}

/* v0.1.15: make the calculated amount the first visual anchor after submit. */
.cld .cld__result {
  scroll-margin-top: 96px;
}

.cld .cld__result-section--summary {
  background: linear-gradient(135deg, #fff8f8 0%, #fff 70%);
  border: 3px solid #d71920;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgb(215 25 32 / 13%);
  margin: 16px 14px 20px;
  padding: 22px 20px 20px !important;
  position: relative;
}

.cld .cld__result-section--summary::after {
  background: #d71920;
  border-radius: 0 0 0 12px;
  content: '';
  height: 8px;
  position: absolute;
  right: 0;
  top: 0;
  width: 72px;
}

.cld .cld__result-section--summary .cld__result-kicker {
  align-items: center;
  background: #d71920;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  line-height: 1.2;
  margin: 0 0 9px !important;
  padding: 6px 10px;
}

.cld .cld__result-section--summary .cld__result-title {
  font-size: clamp(22px, 3.6vw, 32px) !important;
  letter-spacing: -0.02em;
  line-height: 1.35 !important;
}

.cld .cld__amount-display {
  background: #fff;
  border: 1px solid #f0a2a6;
  border-radius: 13px;
  margin-top: 15px;
  padding: 11px 15px 10px;
}

.cld .cld__amount-label {
  color: #a61920;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.cld .cld__amount-display .cld__amount {
  color: #c5161f;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 2px 0 0 !important;
}

.cld .cld__amount-display .cld__amount strong {
  font-size: 1.7em;
}

.cld .cld__result-section--summary .cld__calculation {
  color: #596879;
  margin-top: 8px !important;
}

.cld .cld__result-section--summary .cld__disclaimer {
  background: #f1f4f7;
  color: #4f6073;
  margin-top: 13px !important;
}

@media (max-width: 639px) {
  .cld .cld__result {
    scroll-margin-top: 72px;
  }

  .cld .cld__result-section--summary {
    border-radius: 14px;
    margin: 12px 10px 16px;
    padding: 18px 14px 16px !important;
  }

  .cld .cld__result-section--summary::after {
    height: 6px;
    width: 48px;
  }

  .cld .cld__result-section--summary .cld__result-title {
    font-size: clamp(21px, 6.2vw, 26px) !important;
  }

  .cld .cld__amount-display {
    margin-top: 12px;
    padding: 10px 12px 9px;
  }

  .cld .cld__amount-display .cld__amount {
    font-size: clamp(28px, 9vw, 38px);
  }

}

/* v0.1.16: centered hero result and plain-language document guidance. */
.cld .cld__result {
  background: #fff;
  border-top: 0 !important;
}

.cld .cld__result-section--summary {
  background: #fff;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  margin: 0 !important;
  padding: 34px 28px 30px !important;
  text-align: center;
}

.cld .cld__result-section--summary::after {
  display: none !important;
}

.cld .cld__result-section--summary .cld__result-kicker {
  background: transparent;
  border-radius: 0;
  color: #d71920;
  display: block;
  font-size: 13px;
  margin: 0 0 6px !important;
  padding: 0;
}

.cld .cld__result-section--summary .cld__result-title {
  font-size: clamp(22px, 3.6vw, 32px) !important;
  letter-spacing: -0.02em;
  line-height: 1.35 !important;
}

.cld .cld__amount-display {
  background: transparent;
  border: 0 !important;
  border-radius: 0;
  margin: 18px auto 0;
  max-width: 620px;
  padding: 0;
}

.cld .cld__amount-display::before {
  background: #d71920;
  content: '';
  display: block;
  height: 3px;
  margin: 0 auto 12px;
  width: 52px;
}

.cld .cld__amount-label {
  color: #596879;
  font-size: 13px;
  letter-spacing: 0;
}

.cld .cld__amount-display .cld__amount {
  color: #c5161f;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
  margin: 0 !important;
}

.cld .cld__amount-display .cld__amount strong {
  border-bottom: 5px solid #ffd34d;
}

.cld .cld__result-section--summary .cld__calculation {
  margin-top: 8px !important;
}

.cld .cld__result-section--summary .cld__disclaimer {
  background: transparent;
  border: 0 !important;
  border-bottom: 1px solid #e0e5eb !important;
  border-radius: 0;
  color: #596879;
  margin: 18px auto 0 !important;
  max-width: 760px;
  padding: 11px 0;
}

.cld .cld__document-guide {
  color: #596879;
  margin: 12px auto 0;
  max-width: 760px;
  text-align: left;
}

.cld .cld__document-guide summary {
  align-items: center;
  border-bottom: 1px solid #e0e5eb;
  color: #3e5268;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-height: 44px;
  padding: 8px 0;
}

.cld .cld__document-guide summary::-webkit-details-marker {
  display: none;
}

.cld .cld__document-guide summary:focus-visible {
  border-radius: 3px;
  outline: 3px solid #f6b800;
  outline-offset: 3px;
}

.cld .cld__document-guide-icon {
  color: #d71920;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: transform 160ms ease;
}

.cld .cld__document-guide[open] .cld__document-guide-icon {
  transform: rotate(45deg);
}

.cld .cld__document-guide-content {
  border-bottom: 1px solid #e0e5eb;
  color: #596879;
  font-size: 12px;
  line-height: 1.75;
  padding: 10px 0 11px;
}

.cld .cld__document-guide-content p {
  margin: 0 !important;
}

.cld .cld__document-guide-content p + p {
  margin-top: 6px !important;
}

@media (max-width: 639px) {
  .cld .cld__result-section--summary {
    padding: 26px 16px 24px !important;
  }

  .cld .cld__result-section--summary .cld__result-title {
    font-size: clamp(21px, 6.2vw, 26px) !important;
  }

  .cld .cld__amount-display {
    margin-top: 16px;
  }

  .cld .cld__amount-display .cld__amount {
    font-size: clamp(38px, 10vw, 48px);
  }

}

/* v0.1.27: equalize chevron sizes and keep the vertical flow steady. */
.cld .cld__result-next-step {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 16px auto 0;
  max-width: 760px;
  text-align: center;
}

.cld .cld__result-next-step-arrow {
  align-items: center;
  color: #d71920;
  display: flex;
  flex-direction: column;
  gap: 1px;
  height: 104px;
  justify-content: center;
}

.cld .cld__result-next-step-chevron {
  animation: cld-chevron-flow 1.35s ease-in-out infinite;
  border-right: 10px solid currentColor;
  border-top: 10px solid currentColor;
  display: block;
  flex: 0 0 34px;
  height: 34px;
  opacity: 0.25;
  transform: rotate(135deg);
  width: 34px;
}

.cld .cld__result-next-step-chevron:nth-child(2) {
  animation-delay: 0.18s;
}

.cld .cld__result-next-step-chevron:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes cld-chevron-flow {
  0%,
  100% {
    opacity: 0.25;
    transform: rotate(135deg);
  }

  42% {
    opacity: 1;
    transform: rotate(135deg);
  }
}

.cld .cld__result-next-step p {
  color: #172033;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 24px 0 0 !important;
  text-decoration-color: #ffd34d;
  text-decoration-line: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 3px;
}

@media (max-width: 639px) {
  .cld .cld__result-next-step {
    margin-top: 14px;
  }

  .cld .cld__result-next-step-arrow {
    gap: 2px;
    height: 88px;
  }

  .cld .cld__result-next-step-chevron {
    border-right-width: 8px;
    border-top-width: 8px;
    flex-basis: 28px;
    height: 28px;
    width: 28px;
  }

  .cld .cld__result-next-step p {
    font-size: clamp(19px, 5.4vw, 24px);
    line-height: 1.4;
    margin-top: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cld .cld__result-next-step-chevron {
    animation: none;
    opacity: 0.85;
    transform: rotate(135deg);
  }
}

/* v0.1.22: keep the disclaimer and document guide immediately above retry. */
.cld .cld__result-footer-note {
  background: #fff;
  margin: 0 auto;
  max-width: 820px;
  padding: 0 28px 14px;
}

.cld .cld__result-footer-note .cld__disclaimer {
  background: transparent;
  border: 0 !important;
  border-bottom: 1px solid #e0e5eb !important;
  border-radius: 0;
  color: #596879;
  margin: 0 !important;
  max-width: none;
  padding: 11px 0;
}

.cld .cld__result-footer-note .cld__document-guide {
  margin: 12px 0 0;
  max-width: none;
}

@media (max-width: 639px) {
  .cld .cld__result-footer-note {
    padding: 0 16px 12px;
  }
}
