/* AXA partner additions on top of the Firmenkredit page styles.
   Sizes are in px: the shared chrome shrinks the root font size, so rem is ~11px here. */

.axa-hero {
  background: #00008f;
}

.axa-hero__banner {
  --axa-banner-h: 300px;
  position: relative;
  height: var(--axa-banner-h);
  overflow: hidden;
  background: #00008f;
}

/* Height-fitted so the tagline below stays in the slot left empty in the image. */
.axa-hero__logo {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
}

.axa-hero__tagline {
  position: absolute;
  top: 90.3%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 16px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-family: alaska, Helvetica, sans-serif;
  font-size: max(13px, calc(var(--axa-banner-h) * 0.039));
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.axa-hero__tagline strong {
  color: #fff;
  font-weight: 500;
}

.axa-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding-top: 64px;
  padding-bottom: 48px;
  text-align: center;
}

.axa-hero__title {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-family: alaska, Helvetica, sans-serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.axa-hero__text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .axa-hero__banner {
    --axa-banner-h: 260px;
  }
}

@media (max-width: 600px) {
  .axa-hero__banner {
    --axa-banner-h: 180px;
  }

  .axa-hero__copy {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .axa-hero__title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }
}

.axa-hero__goodies {
  padding-bottom: 24px;
}

.axa-goodies {
  padding: 48px;
  border-radius: 24px;
  background: #f6f9fb;
}

.axa-goodies .scaleup-section-head {
  max-width: none;
}

#axa-goodies .section-title {
  color: #00008f;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 600px) {
  .axa-goodies {
    padding: 28px 18px;
    border-radius: 20px;
  }
}

.axa-goodies__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.axa-goodies__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.axa-goodies__note {
  margin: 0;
  color: #8a93a3;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.axa-goodies__cta[hidden] {
  display: none;
}

.axa-goodies__cta:not([hidden]) {
  animation: axa-cta-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes axa-cta-in {
  from {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    max-height: 140px;
    margin-top: 32px;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .axa-goodies__cta:not([hidden]) {
    animation: none;
  }
}

.axa-goodies__cta .km-primary-btn,
.axa-step-cta,
.axa-costs__cta .km-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding-inline: 40px;
}

.axa-cta-arrow {
  flex: none;
  width: 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    width 0.25s ease,
    margin-left 0.25s ease,
    opacity 0.2s ease,
    transform 0.25s ease;
}

.axa-goodies__cta .km-primary-btn:hover .axa-cta-arrow,
.axa-goodies__cta .km-primary-btn:focus-visible .axa-cta-arrow,
.axa-step-cta:hover .axa-cta-arrow,
.axa-step-cta:focus-visible .axa-cta-arrow,
.axa-costs__cta .km-primary-btn:hover .axa-cta-arrow,
.axa-costs__cta .km-primary-btn:focus-visible .axa-cta-arrow {
  width: 18px;
  margin-left: 10px;
  opacity: 1;
  transform: none;
}

.axa-goodie {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 0 22px 24px;
  overflow: hidden;
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: #fff;
  color: #00005b;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.axa-goodie:hover {
  border-color: #c5cde0;
}

.axa-goodie.is-selected {
  border-color: #00008f;
  box-shadow: inset 0 0 0 0.5px #00008f;
  background: #eaf0fd;
}

/* Stacked cards: the one in the middle of the screen lights up until a goodie is picked. */
@media (max-width: 860px) {
  .axa-goodie.is-in-focus:not(.is-selected) {
    border-color: #00008f;
    box-shadow: 0 0 0 3px rgba(0, 0, 143, 0.12);
    animation: axa-goodie-hint 1.4s ease-out 2;
  }
}

@keyframes axa-goodie-hint {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 143, 0.35);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 0, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(0, 0, 143, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .axa-goodie.is-in-focus:not(.is-selected) {
    animation: none;
  }
}

.axa-goodie__radio {
  flex: 0 0 auto;
  margin-top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #9aa3b2;
  border-radius: 50%;
  background: #fff;
}

.axa-goodie__radio::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #00008f;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.axa-goodie.is-selected .axa-goodie__radio {
  border-color: #00008f;
}

.axa-goodie.is-selected .axa-goodie__radio::after {
  transform: scale(1);
}

.axa-goodie__body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.axa-goodie__title {
  font-family: alaska, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.axa-goodie__text {
  color: #8a93a3;
  font-size: 14px;
  line-height: 1.45;
}

.axa-goodie .axa-choice__media,
.axa-goodie .axa-choice__media--photo {
  position: static;
  order: -1;
  flex: 0 0 calc(100% + 44px);
  width: auto;
  height: 132px;
  margin: 0 -22px 6px;
  padding: 0 0 16px;
  background: linear-gradient(174deg, #eef3fb 0 82%, transparent 82%);
}

.axa-goodie.is-selected .axa-choice__media {
  background: linear-gradient(174deg, rgba(255, 255, 255, 0.5) 0 82%, transparent 82%);
}

.axa-goodie .axa-choice__media svg {
  width: 48px;
  height: 48px;
}

.axa-goodie .axa-choice__media img {
  width: 112px;
}

.axa-dialog {
  --axa-blue: #00008f;
  --axa-dialog-ink: #00005b;
  --axa-dialog-muted: #5d6e79;
  --axa-dialog-line: #e3e7ef;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--axa-dialog-ink);
  box-shadow: 0 24px 80px rgba(15, 42, 61, 0.28);
}

.axa-dialog::backdrop {
  background: rgba(40, 60, 90, 0.45);
  backdrop-filter: blur(6px);
}

.axa-dialog__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 36px 32px;
}

.axa-dialog__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--axa-dialog-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.axa-dialog__close svg {
  width: 20px;
  height: 20px;
}

.axa-dialog__close:hover {
  background: #f4f8fb;
  color: #142c33;
}

.axa-dialog__logo {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 2px;
}

.axa-dialog__title {
  margin: 0;
  color: var(--axa-dialog-ink);
  font-family: alaska, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.axa-dialog__text {
  margin: 0 0 8px;
  color: var(--axa-dialog-muted);
  font-size: 14px;
  line-height: 1.5;
}

.axa-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 136px 16px 22px;
  overflow: hidden;
  border: 1px solid var(--axa-dialog-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.axa-choice:hover {
  border-color: #c5cde0;
}

.axa-choice:has(input:checked) {
  border: 1.5px solid var(--axa-blue);
  background: #eaf0fd;
}

.axa-choice input {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #9aa3b2;
  border-radius: 50%;
  background: #fff;
  appearance: none;
  cursor: pointer;
}

.axa-choice input::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--axa-blue);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.axa-choice input:checked {
  border-color: var(--axa-blue);
}

.axa-choice input:checked::after {
  transform: scale(1);
}

.axa-choice input:focus-visible {
  outline: 2px solid var(--axa-blue);
  outline-offset: 3px;
}

.axa-choice__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.axa-choice__title {
  color: var(--axa-dialog-ink);
  font-family: alaska, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.axa-choice__media {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  place-items: center;
  width: 132px;
  padding-left: 34px;
  background: linear-gradient(108deg, transparent 0 27%, #eef3fb 27%);
  color: var(--axa-blue);
  pointer-events: none;
}

.axa-choice:has(input:checked) .axa-choice__media {
  background: linear-gradient(108deg, transparent 0 27%, rgba(255, 255, 255, 0.45) 27%);
}

.axa-choice__media svg {
  width: 36px;
  height: 36px;
}

.axa-choice__media--photo {
  padding: 0 6px 0 32px;
}

.axa-choice__media img {
  width: 80px;
  height: auto;
  mix-blend-mode: multiply;
}

.axa-dialog__continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--axa-blue);
  color: #fff;
  font-family: alaska, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.axa-dialog__continue:hover:not(:disabled) {
  background: #00006e;
}

.axa-dialog__continue:hover:not(:disabled) .axa-cta-arrow,
.axa-dialog__continue:focus-visible:not(:disabled) .axa-cta-arrow {
  width: 18px;
  margin-left: 10px;
  opacity: 1;
  transform: none;
}

.axa-dialog__continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .axa-dialog__card {
    gap: 10px;
    padding: 28px 20px 24px;
  }

  .axa-dialog__close {
    top: 14px;
    right: 14px;
  }

  .axa-dialog__logo {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }

  .axa-dialog__title {
    font-size: 20px;
  }

  .axa-choice {
    gap: 12px;
    min-height: 68px;
    padding: 14px 100px 14px 16px;
  }

  .axa-choice__media {
    width: 96px;
    padding-left: 24px;
  }

  .axa-choice__media svg {
    width: 30px;
    height: 30px;
  }

  .axa-choice__media img {
    width: 64px;
  }

  .axa-dialog__continue {
    min-height: 48px;
  }
}

@media (max-width: 860px) {
  .axa-goodies__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .offer-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .offer-step:last-child {
    grid-column: 1 / -1;
  }
}

.offer-steps .offer-step .axa-step-cta {
  align-self: flex-start;
  width: auto;
  min-width: 0;
  margin-top: 24px;
  padding-inline: 32px;
}

@media (hover: hover) {
  .offer-steps .offer-step .axa-step-cta {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition:
      max-height 0.3s ease,
      margin-top 0.3s ease,
      opacity 0.25s ease,
      transform 0.3s ease;
  }

  .offer-steps .offer-step:hover .axa-step-cta,
  .offer-steps .offer-step:focus-within .axa-step-cta {
    max-height: 64px;
    margin-top: 24px;
    opacity: 1;
    transform: none;
  }
}

.axa-costs__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

@media (hover: hover) {
  .offer-benefits__grid .offer-benefit.is-active {
    background: #0a5c6b;
  }
}

/* Firmenkredit alternates section backgrounds with :nth-of-type; the AXA page has
   a different section order, so pin each section to its Firmenkredit colour. */
.page-offer .section.offer-benefits,
.page-offer .section.offer-costs,
.page-offer .section.offer-faq {
  background: #f6f9fb;
}

.page-offer .section.section--trust-top,
.page-offer .section.offer-process,
.page-offer .section.offer-trust {
  background: #fff;
}

.page-offer .section.offer-quote {
  background: #17242f;
}

/* ---------- Credit check: PostFinance's light simulator on a white card, in AXA colours ---------- */

.axa-hero__check {
  --pf-petrol: #00008f;
  --pf-yellow: #2fcb63;
  --km-navy-deep: #00005b;
  --km-green: #00008f;
  --axa-check-bg: #fff;
  --axa-check-surface: #f2f5fc;
  --axa-check-surface-hover: #e8eefa;
  --axa-check-line: rgba(0, 0, 143, 0.12);
  --axa-check-line-strong: rgba(0, 0, 143, 0.32);
  --axa-check-text: #00005b;
  --axa-check-muted: #5b6577;
  --axa-check-accent: #00008f;
  margin-top: 48px;
  padding: 64px 20px 0;
  background: #fff;
}

.axa-hero__check .section-inner,
.axa-hero__check #credit-check {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.axa-hero__check .pf-check {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
}

#credit-check .simulator-container,
#credit-check #start-container.simulator-start,
#credit-check .simulator-financial,
#credit-check #result-container {
  margin: 0;
  padding-top: 8px;
  padding-bottom: 48px;
  border: 0;
  border-radius: 0;
  background: var(--axa-check-bg);
  box-shadow: none;
}

/* Colour system: white card, light blue surfaces, AXA blue accents; green only on the CTA */
#credit-check #start-container .simulator-content {
  max-width: 600px;
}

#credit-check .simulator-heading {
  color: var(--axa-check-text);
  font-family: alaska, Helvetica, sans-serif;
  font-weight: 500;
}

#credit-check .simulator-text {
  max-width: none;
  color: var(--axa-check-muted);
}

#credit-check .pf-sim-disclaimer,
#credit-check #start-container .pf-sim-disclaimer {
  color: rgba(91, 101, 119, 0.8);
}

#credit-check .pf-sim-progress {
  --pf-sim-step-active: var(--axa-check-accent);
  --pf-sim-step-done: #a9b2e4;
  --pf-sim-muted: rgba(0, 0, 91, 0.2);
  --pf-sim-track: rgba(0, 0, 91, 0.12);
}

#credit-check .pf-sim-progress__bars li.is-complete::after {
  box-shadow: 0 0 0 3px rgba(0, 0, 143, 0.12);
}

#credit-check .pf-sim-progress__bars li.is-active::after {
  width: 1.3rem !important;
  height: 1.3rem !important;
  box-shadow: 0 0 0 5px rgba(0, 0, 143, 0.14);
}

#credit-check .pf-sim-progress__legend li {
  color: var(--axa-check-muted);
}

#credit-check .pf-sim-progress__legend li.is-active {
  color: var(--axa-check-text);
}

#credit-check .simulator-financial .form-field--legal,
#credit-check .simulator-financial .form-field--legal.pf-sim-field--highlight {
  border: 1px solid var(--axa-check-line);
  background: #fff;
}

#credit-check .simulator-financial .form-field--legal.pf-sim-field--highlight {
  border-color: var(--axa-check-line-strong);
}

#credit-check .simulator-financial .form-field--legal:focus-within {
  border-color: var(--axa-check-accent);
}

#credit-check .simulator-financial .form-field--legal > label {
  background: var(--axa-check-bg);
  color: var(--axa-check-muted);
}

#credit-check .pf-sim-radio {
  background: var(--axa-check-surface);
  color: var(--axa-check-text);
}

#credit-check .pf-sim-radio:hover,
#credit-check .pf-sim-radio:has(input:checked) {
  background: var(--axa-check-surface-hover);
}

#credit-check .pf-sim-radio__label {
  color: var(--axa-check-text);
}

#credit-check .pf-sim-radio__ui {
  border-color: var(--axa-check-line-strong);
}

#credit-check .pf-sim-select__trigger,
#credit-check .simulator-financial .form-field.pf-sim-field--highlight .pf-sim-select__trigger {
  border: 1px solid var(--axa-check-line);
  background-color: #fff;
  color: var(--axa-check-text);
}

#credit-check .simulator-financial .form-field.pf-sim-field--highlight .pf-sim-select__trigger {
  border-color: var(--axa-check-line-strong);
}

#credit-check .pf-sim-select__trigger:hover {
  background-color: var(--axa-check-surface-hover);
}

#credit-check .pf-sim-select.is-open .pf-sim-select__trigger,
#credit-check .pf-sim-select__trigger:focus-visible,
#credit-check .simulator-financial .form-field.pf-sim-field--highlight .pf-sim-select.is-open .pf-sim-select__trigger,
#credit-check .simulator-financial .form-field.pf-sim-field--highlight .pf-sim-select__trigger:focus-visible {
  border: 1px solid var(--axa-check-accent);
}

#credit-check .pf-sim-select__label,
#credit-check .pf-sim-select.is-placeholder .pf-sim-select__label {
  color: var(--axa-check-muted);
}

#credit-check .pf-sim-select.is-floated .pf-sim-select__label,
#credit-check .pf-sim-select.is-open .pf-sim-select__label {
  background: #fff;
}

#credit-check .pf-sim-select__panel {
  border: 1px solid var(--axa-check-line);
  background: #fff;
}

.pf-sim-select__check {
  color: #00008f;
}

#credit-check .offer-check-apply__details {
  border-color: var(--axa-check-line);
  background: var(--axa-check-surface);
}

#credit-check .offer-check-apply__note,
#credit-check .offer-check-apply__list {
  color: var(--axa-check-muted);
}

#credit-check .offer-check-apply__summary {
  color: var(--axa-check-muted);
}

#credit-check .offer-check-apply__details summary,
#credit-check .offer-check-apply__chev {
  color: var(--axa-check-text);
}

#credit-check .offer-check-apply__summary::before,
#credit-check .offer-check-apply__list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300008f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}

#credit-check .simulator-form-input--email {
  border-color: var(--axa-check-line);
  background: var(--axa-check-surface);
}

#credit-check .pf-sim-email-field > label {
  background: linear-gradient(var(--axa-check-bg) 50%, var(--axa-check-surface) 50%);
  color: var(--axa-check-muted);
}

#credit-check .pf-sim-cta,
#credit-check button.pf-sim-cta,
#credit-check .pf-sim-cta:hover,
#credit-check .pf-sim-cta:focus-visible {
  color: #fff;
}

#credit-check .pf-sim-cta::after {
  border-color: #fff;
}

/* Same names as the PostFinance keyframes, which pulse in PostFinance yellow; these are Scaleup's greens. */
@keyframes pf-sim-cta-attention {
  0%,
  8%,
  100% {
    background-color: #2fcb63;
  }
  12% {
    background-color: #5fd98a;
  }
  16% {
    background-color: #2fcb63;
  }
  20% {
    background-color: #27b857;
  }
  24%,
  100% {
    background-color: #2fcb63;
  }
}

@keyframes km-cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 203, 99, 0.55);
    transform: scale(1);
  }
  12% {
    transform: scale(1.05);
  }
  24% {
    transform: scale(1);
  }
  70%,
  100% {
    box-shadow: 0 0 0 18px rgba(47, 203, 99, 0);
    transform: scale(1);
  }
}

#credit-check #start-request-btn.pf-sim-cta--nudge {
  animation: km-cta-pulse 2.6s ease-out infinite;
}

#credit-check #start-request-btn.pf-sim-cta--nudge:hover,
#credit-check #start-request-btn.pf-sim-cta--nudge:focus-visible {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  #credit-check #start-request-btn.pf-sim-cta--nudge {
    animation: none;
  }
}

/* Brand green wheel: PostFinance's ring is solid, Firmenkredit's markup paints it with this gradient. */
#credit-check .pf-sim-amount-wheel__ring {
  stroke-width: 10;
}

#credit-check .pf-sim-amount-wheel__gradient {
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(47, 203, 99, 0) 0deg, rgba(47, 203, 99, 0.55) 150deg, #2fcb63 260deg, #22ba5d 348deg, rgba(47, 203, 99, 0) 354deg);
}

#credit-check .pf-sim-amount-wheel__svg {
  color: #2fcb63;
}

#credit-check .pf-sim-amount-wheel__knob {
  stroke: #2fcb63;
}

#credit-check .pf-sim-amount-wheel__value {
  color: var(--axa-check-text);
}

@media (max-width: 600px) {
  .axa-hero__check {
    margin-top: 32px;
    padding: 8px 12px 0;
  }
}
