:root {
  /*========== Colors ==========*/
  --clr-primary: #2188ac;
  --clr-primary-10: rgba(33, 135, 172, 0.1);
  --clr-primary-15: rgba(33, 135, 172, 0.15);
  --clr-primary-20: rgba(33, 135, 172, 0.2);
  --clr-primary-30: rgba(33, 135, 172, 0.3);

  --clr-primary-hover: #3894b4;

  --clr-primary-dark: #204350;
  --clr-primary-dark-60: rgba(32, 67, 80, 0.6);
  --clr-primary-dark-50: rgba(32, 67, 80, 0.5);
  --clr-primary-dark-05: rgba(32, 67, 80, 0.05);
  --clr-primary-dark-10: rgba(32, 67, 80, 0.1);
  --clr-primary-dark-15: rgba(32, 67, 80, 0.15);
  --clr-primary-dark-20: rgba(32, 67, 80, 0.2);
  --clr-primary-dark-30: rgba(32, 67, 80, 0.3);

  --clr-secondary-dark: #c0582d;

  --clr-destructive: #dc2626;
  --clr-destructive-08: rgba(220, 38, 38, 0.08);

  --clr-tertiary-15: rgba(242, 199, 29, 0.15);

  --clr-white: #ffffff;

  --clr-gray: #828e8b;

  --clr-light-blue: #eaf3f6;

  /*========== Font and Typography ==========*/
  --fs-ff: 'Fira Sans', serif;

  /* Text styles from design scale */
  --text-h1-size: calc(46rem / 16);
  --text-h1-line-height: 1.2;
  --text-h2-size: calc(30rem / 16);
  --text-h2-line-height: 1.2;
  --text-h3-size: calc(24rem / 16);
  --text-h3-line-height: 1.2;
  --text-h4-size: calc(20rem / 16);
  --text-h4-line-height: 1.2;
  --text-h5-size: calc(16rem / 16);
  --text-h5-line-height: 1.3;
  --text-h6-size: calc(14rem / 16);
  --text-h6-line-height: 1.2;
  --text-paragraph-size: calc(16rem / 16);
  --text-paragraph-line-height: 1.7;
  --text-bullets-xs-size: calc(14rem / 16);
  --text-bullets-xs-line-height: 1.5;
  --text-button-size: calc(18rem / 16);
  --text-button-line-height: 1;
  --text-disclaimer-size: calc(12rem / 16);
  --text-disclaimer-line-height: 1.5;
  --text-footer-size: calc(13rem / 16);
  --text-footer-line-height: 1.5;
  --text-label-size: calc(16rem / 16);
  --text-label-line-height: 1.2;
  --text-eyebrow-size: calc(12rem / 16);
  --text-eyebrow-line-height: 1.2;
  --text-xs-size: calc(9rem / 16);
  --text-xs-line-height: 1.2;

  /*========== Font weight ==========*/
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semi-bold: 600;
  --weight-bold: 600;
  --weight-bolder: 800;
}

/*=============== BASE ===============*/
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fs-ff);
  font-size: var(--text-paragraph-size);
  line-height: var(--text-paragraph-line-height);
  font-weight: var(--weight-normal);
  background-color: var(--clr-white);
  color: var(--clr-primary-dark);
  overflow-x: hidden;
  overflow-y: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: unset;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.container {
  max-width: calc(1148rem / 16);
  width: min(100% - calc(32rem / 16));
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(60rem / 16);
  z-index: 100;
  background-color: var(--clr-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  &.header-bordered {
    border-bottom: 1px solid var(--clr-primary-dark-15);
  }
}

.header.header-centered {
  position: relative;
  z-index: 10;
  background-color: transparent;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: calc(20rem / 16);
}

.header-logo {
  display: block;
  width: calc(202rem / 16);
}

.header-centered .header-content {
  justify-content: center;
}

.header-progress-img {
  display: none;
}

.header-cta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(128rem / 16);
  height: calc(34rem / 16);
  padding: 10px 20px;
  gap: calc(8rem / 16);
  background: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  border-radius: calc(4rem / 16);
  font-size: var(--text-disclaimer-size);
  color: var(--clr-white);
  font-weight: var(--weight-bold);
  transition: all 0.3s ease;

  & > img {
    transition: all 0.3s ease;
  }

  &:hover {
    background: var(--clr-primary-hover);
    border: 1px solid var(--clr-primary-hover);

    & > img {
      transform: rotate(45deg);
    }
  }

  &:active,
  &:focus,
  &:focus-visible {
    outline: none;
    background: var(--clr-primary-hover);
    border: 1px solid var(--clr-primary-hover);
  }
}

.header-cta-btn > img {
  width: calc(14rem / 16);
  height: calc(14rem / 16);
}

/* Hero */
.hero {
  background-image: url('../assets/svg/home-desktop-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 70px 0 220px 0;
  width: 100%;
  margin-top: calc(60rem / 16);
  position: relative;
}

.hero-top-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(16rem / 16);
  max-width: calc(952rem / 16);
  margin: 0 auto;
}

.hero-top-tag {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: calc(5rem / 16);
  background: var(--clr-white);
  border: 1px solid var(--clr-primary-dark-15);
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.05);
  border-radius: calc(33rem / 16);
  font-size: var(--text-eyebrow-size);
  line-height: var(--text-eyebrow-line-height);
}

.hero-top-title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--weight-bold);
  text-align: center;
  color: var(--clr-primary-dark-60);
}

.hero-top-subtitle {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--weight-bold);
  text-align: center;
  color: var(--clr-primary-dark);
}

.hero-top-bullets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(30rem / 16);
}

.hero-top-bullet {
  display: flex;
  align-items: center;
  gap: calc(8rem / 16);
  font-size: var(--text-paragraph-size);
  line-height: var(--text-paragraph-line-height);
}

.hero-approval-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 50px;
  gap: calc(20rem / 16);
  background: var(--clr-white);
  border: 1px solid var(--clr-primary);
  border-radius: calc(24rem / 16);
  position: absolute;
  bottom: calc(-160rem / 16);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32rem / 16);
  max-width: calc(756rem / 16);
  z-index: 1;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: 4px solid rgba(33, 136, 172, 0.15);
    box-shadow: 0px 8px 30px rgba(31, 85, 104, 0.1);
    border-radius: 24px;
    z-index: -1;
  }
}

.hero-approval-tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 10px;
  gap: calc(5rem / 16);
  width: calc(228rem / 16);
  background: var(--clr-tertiary-15);
  border-radius: calc(50rem / 16);
  font-size: var(--text-eyebrow-size);
  line-height: var(--text-eyebrow-line-height);
}

.hero-approval-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(16rem / 16);
  width: 100%;
}

.hero-approval-option-title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
  text-align: center;
}

.hero-approval-option-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(10rem / 16);
}

.hero-approval-option-input {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(156.5rem / 16);
  height: calc(56rem / 16);
  border-radius: calc(5rem / 16);
  font-weight: var(--weight-bold);
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  color: var(--clr-primary-dark);
  background: var(--clr-white);
  border: 1px solid var(--clr-primary-dark-15);
  outline: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    outline: 3px solid var(--clr-primary-dark-10);
    border: 1px solid var(--clr-primary);
  }

  &:active,
  &:focus,
  &:focus-visible {
    background-color: var(--clr-primary-10);
    outline: 3px solid var(--clr-primary-20);
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
  }

  &.selected {
    background-color: var(--clr-primary-10);
    outline: 3px solid var(--clr-primary-20);
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
  }
}

.hero-approval-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  gap: calc(8rem / 16);
  width: 100%;
  height: calc(60rem / 16);
  min-height: calc(60rem / 16);
  background: linear-gradient(90deg, #e06938 0%, #e08738 100%);
  border: 1px solid var(--clr-secondary-dark);
  box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3);
  border-radius: calc(4rem / 16);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line-height);
  font-weight: var(--weight-bold);
  outline: 3px solid transparent;
  color: var(--clr-white);
  cursor: pointer;
  transition: all 0.3s ease;

  & > img {
    transition: all 0.3s ease;
  }

  &:hover {
    border-color: #e08738;
    outline: 3px solid rgba(224, 106, 56, 0.3);

    & > img {
      transform: rotate(45deg);
    }
  }

  &:active,
  &:focus,
  &:focus-visible {
    outline: 3px solid rgba(224, 106, 56, 0.3);
  }
}

.hero-approval-bullets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(30rem / 16);
}

.hero-approval-bullet {
  display: flex;
  align-items: center;
  gap: calc(8rem / 16);
  font-size: var(--text-paragraph-size);
  line-height: var(--text-paragraph-line-height);
}

/* Funded-Section */
.funded {
  padding: 260px 0 100px 0;
}

.funded-content {
  display: flex;
  justify-content: space-between;
  gap: calc(28rem / 16);
}

.funded-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: calc(16rem / 16);
  background: var(--clr-light-blue);
  border: 1px solid var(--clr-primary-dark-15);
  border-radius: calc(10rem / 16);
}

.funded-card > img {
  width: calc(24rem / 16);
  height: calc(24rem / 16);
}

.funded-card-title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
}

.funded-card-description {
  font-size: var(--text-paragraph-size);
  line-height: var(--text-paragraph-line-height);
  color: var(--clr-primary-dark);
}

.funded-card-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: calc(5rem / 16);
}

.funded-card-info-title {
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary);
}

.funded-card-info-description {
  font-size: var(--text-disclaimer-size);
  line-height: var(--text-disclaimer-line-height);
  color: var(--clr-gray);
}

/* Terms */
.terms {
  padding: 100px 0 100px 0;
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: calc(32rem / 16);
}

.terms-title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
  text-transform: uppercase;
  text-align: center;
}

.terms-text {
  font-size: var(--text-paragraph-size);
  line-height: var(--text-paragraph-line-height);
  color: var(--clr-primary-dark);
  text-align: justify;
}

.terms-section {
  display: flex;
  flex-direction: column;
  gap: calc(8rem / 16);
}

.terms-section-title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
}

.terms-description {
  font-size: var(--text-paragraph-size);
  line-height: var(--text-paragraph-line-height);
  color: var(--clr-primary-dark);
  text-align: justify;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: calc(8rem / 16);
  margin: 0;
  padding-left: calc(24rem / 16);
  text-align: justify;
  list-style: disc;
}

.terms-list-item {
  font-size: var(--text-paragraph-size);
  line-height: var(--text-paragraph-line-height);
  color: var(--clr-primary-dark);
}

/* Footer */
.footer {
  padding: 50px 0;
  background-color: var(--clr-light-blue);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: calc(5rem / 16);
  padding-bottom: 50px;
  border-bottom: 1px solid var(--clr-primary-dark-10);
}

.footer-top-title {
  font-size: var(--text-disclaimer-size);
  line-height: var(--text-disclaimer-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
  opacity: 0.5;
}

.footer-top-description {
  font-size: var(--text-disclaimer-size);
  line-height: var(--text-disclaimer-line-height);
  color: var(--clr-primary-dark);
  opacity: 0.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(20rem / 16);
  padding-top: 50px;
}

.footer-bottom-description {
  display: flex;
  align-items: center;
  gap: calc(4rem / 16);
  font-size: var(--text-footer-size);
  line-height: var(--text-footer-line-height);

  & > img {
    width: calc(14rem / 16);
    height: calc(14rem / 16);
  }
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(20rem / 16);
}

.footer-bottom-link {
  font-size: var(--text-footer-size);
  line-height: var(--text-footer-line-height);
  transition: all 0.3s ease;

  &:hover {
    color: var(--clr-primary);
    text-decoration: underline;
  }
}

/* =============== STEPPER PAGE =============== */

/* Stepper Main */
.stepper {
  min-height: 100dvh;
  background-image: url('../assets/svg/stepper-desktop-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: calc(-60rem / 16);
  padding-top: calc(60rem / 16);
  display: flex;
  align-items: center;
}

.stepper-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(952rem / 16);
  margin: 0 auto;
  width: 100%;
}

.stepper-title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
  text-align: center;
  margin-bottom: calc(30rem / 16);
}

/* Stepper Card */
.stepper-card {
  display: flex;
  width: 100%;
  background: var(--clr-white);
  border: 1px solid var(--clr-primary);
  border-radius: calc(10rem / 16);
  position: relative;
  z-index: 1;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: 4px solid rgba(33, 136, 172, 0.15);
    box-shadow: 0px 8px 30px rgba(31, 85, 104, 0.1);
    border-radius: calc(10rem / 16);
    z-index: -1;
  }
}

/* Stepper Sidebar */
.stepper-sidebar {
  width: calc(220rem / 16);
  background-color: var(--clr-primary-dark-05);
  min-width: calc(220rem / 16);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.stepper-sidebar-progress {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.stepper-sidebar-steps {
  display: flex;
  flex-direction: column;
}

.stepper-sidebar-step {
  display: flex;
  align-items: center;
  gap: calc(10rem / 16);
}

.stepper-sidebar-step-circle {
  width: calc(24rem / 16);
  height: calc(24rem / 16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-h6-size);
  border: 1px solid var(--clr-primary-dark-20);
  color: var(--clr-primary-dark-50);
  background: transparent;
}

.stepper-sidebar-step-check {
  display: none;
  width: calc(24rem / 16);
  height: calc(24rem / 16);
}

.stepper-sidebar-step.completed .stepper-sidebar-step-circle {
  display: none;
}

.stepper-sidebar-step.completed .stepper-sidebar-step-check {
  display: block;
}

.stepper-sidebar-step.active .stepper-sidebar-step-circle {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
  outline: 4px solid var(--clr-primary-15);
}

.stepper-sidebar-step-label {
  font-size: var(--text-h6-size);
  line-height: var(--text-h6-line-height);
  font-weight: var(--weight-normal);
  color: var(--clr-primary-dark-50);
}

.stepper-sidebar-step.active .stepper-sidebar-step-label {
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
}

.stepper-sidebar-step.completed .stepper-sidebar-step-label {
  font-weight: var(--weight-normal);
  color: var(--clr-primary-dark-50);
}

.stepper-sidebar-connector {
  width: 2px;
  height: calc(30rem / 16);
  background: var(--clr-primary-dark-10);
  margin-left: calc(11.5rem / 16);
  transition: background 0.3s ease;

  &.completed {
    background: var(--clr-primary);
  }
}

/* Stepper Form */
.stepper-form {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.stepper-form-header {
  text-align: center;
}

.stepper-form-title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
  margin-bottom: calc(10rem / 16);
}

.stepper-form-subtitle {
  font-size: var(--text-paragraph-size);
  line-height: var(--text-paragraph-line-height);
  opacity: 0.8;
}

.stepper-form-divider {
  border: none;
  height: 1px;
  background: var(--clr-primary-dark-10);
  margin: calc(20rem / 16) 0;
}

/* Stepper Form Groups */
.stepper-form-group + .stepper-form-group {
  margin-top: calc(20rem / 16);
}

.stepper-form-group-label {
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--weight-medium);
  color: var(--clr-primary-dark);
  margin-bottom: calc(10rem / 16);
}

.stepper-form-group-label-light {
  font-weight: var(--weight-normal);
  opacity: 0.6;
}

.stepper-form-options {
  display: flex;
  gap: calc(10rem / 16);
}

.stepper-form-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: calc(76rem / 16);
  border-radius: calc(5rem / 16);
  background: var(--clr-white);
  border: 1px solid var(--clr-primary-dark-15);
  outline: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: calc(4rem / 16);

  &:hover {
    outline: 3px solid var(--clr-primary-dark-10);
    border: 1px solid var(--clr-primary);
  }

  &.selected {
    background-color: var(--clr-primary-10);
    outline: 3px solid var(--clr-primary-20);
    border: 1px solid var(--clr-primary);
  }

  &.selected .stepper-form-option-value {
    color: var(--clr-primary);
  }
}

.stepper-form-option-value {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
}

.stepper-form-option-unit {
  font-size: var(--text-h6-size);
  line-height: var(--text-h6-line-height);
  color: var(--clr-primary-dark);
}

/* Stepper Validation Message */
.stepper-form-validation {
  display: none;
  align-items: center;
  gap: calc(8rem / 16);
  padding: 10px;
  margin-top: calc(16rem / 16);
  background: var(--clr-destructive-08);
  border-left: 3px solid var(--clr-destructive);
  font-size: var(--text-bullets-xs-size);
  line-height: var(--text-bullets-xs-line-height);
  color: var(--clr-destructive);
  font-weight: var(--weight-medium);

  & > svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }

  &.active {
    display: flex;
    animation: stepperValidationShake 0.4s ease;
  }
}

@keyframes stepperValidationShake {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  20% {
    transform: translateX(-4px);
    opacity: 1;
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Stepper Footer */
.stepper-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  &:has(.stepper-footer-back) {
    justify-content: space-between;
  }
}

.stepper-progress-img {
  width: calc(80rem / 16);
  height: calc(80rem / 16);
}

.stepper-footer-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(60rem / 16);
  padding: 15px 30px;
  background: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  border-radius: calc(4rem / 16);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-white);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: 3px solid transparent;

  &:hover {
    background: var(--clr-primary-hover);
    border-color: var(--clr-primary-hover);
    outline: 3px solid var(--clr-primary-20);
  }

  &:active,
  &:focus,
  &:focus-visible {
    outline: 3px solid var(--clr-primary-20);
    background: var(--clr-primary-hover);
  }

  &:disabled,
  &:disabled:hover,
  &:disabled:focus,
  &:disabled:active {
    background: var(--clr-primary-dark-15);
    border-color: var(--clr-primary-dark-15);
    color: var(--clr-white);
    outline: 3px solid transparent;
    cursor: not-allowed;
  }
}

/* Stepper Trust */
.stepper-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(30rem / 16);
  margin-top: calc(30rem / 16);
}

.stepper-trust-item {
  display: flex;
  align-items: center;
  gap: calc(8rem / 16);
  font-size: var(--text-bullets-xs-size);
  line-height: var(--text-bullets-xs-line-height);
  color: var(--clr-primary-dark);
}

.stepper-trust-item > img {
  width: calc(18rem / 16);
  height: calc(18rem / 16);
}

/* Stepper Step Containers */
.stepper-step {
  display: none;
  flex-direction: column;
  flex: 1;

  &.active {
    display: flex;
  }
}

/* Step 2: Label Row */
.stepper-form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;

  & > .stepper-form-group-label {
    margin-bottom: 0;
  }
}

.stepper-form-registry-badge {
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line-height);
  font-weight: var(--weight-semi-bold);
  color: var(--clr-primary-dark-50);
  border: 1px solid var(--clr-primary-dark-20);
  border-radius: 50px;
  padding: 2px 6px;
  letter-spacing: 0.25px;
}

/* Step 2: Search Input */
.stepper-form-search {
  display: flex;
  align-items: center;
  gap: calc(8rem / 16);
  padding: 16px;
  background: var(--clr-primary-dark-05);
  border: 1px solid var(--clr-primary-dark-15);
  border-radius: calc(4rem / 16);
  transition: all 0.3s ease;
  height: calc(56rem / 16);

  &:focus-within {
    border-color: var(--clr-primary);
    outline: 3px solid var(--clr-primary-20);
  }
}

.stepper-form-search:focus-within .stepper-form-search-icon path {
  fill: var(--clr-primary);
}

.stepper-form-search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;

  & path {
    fill: var(--clr-primary-dark-30);
    transition: fill 0.3s ease;
  }
}

.stepper-form-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--text-h5-size);
  line-height: var(--text-h5-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
  width: 100%;
  font-family: var(--fs-ff);

  &::placeholder {
    color: var(--clr-primary-dark-60);
    font-weight: var(--weight-normal);
  }
}

/* Step 2: Company Search Dropdown */
.stepper-form-search-wrapper {
  position: relative;
}

.stepper-form-search-spinner {
  flex-shrink: 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--clr-primary-20);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.stepper-form-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--clr-white);
  border: 1px solid var(--clr-primary-dark-15);
  border-radius: calc(8rem / 16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
}

.stepper-form-dropdown-item {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--clr-primary-dark-10);
  transition: background 0.15s ease;

  &:last-child {
    border-bottom: none;
  }

  &:hover {
    background: var(--clr-primary-dark-05);
  }
}

.stepper-form-dropdown-name {
  font-size: var(--text-h5-size);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stepper-form-dropdown-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-form-dropdown-number {
  font-size: var(--text-bullets-xs-size);
  color: var(--clr-primary-dark-60);
  font-weight: var(--weight-medium);
}

.stepper-form-dropdown-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: calc(4rem / 16);
  font-size: var(--text-eyebrow-size);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stepper-form-dropdown-badge--active {
  background: rgba(82, 200, 149, 0.15);
  color: #2a9d6a;
}

.stepper-form-dropdown-badge--inactive {
  background: rgba(242, 199, 29, 0.15);
  color: #c0952d;
}

.stepper-form-dropdown-empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--clr-primary-dark-60);
  font-size: var(--text-bullets-xs-size);
}

/* Step 2: Trust Line */
.stepper-form-trust-line {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(82, 200, 149, 0.15);
  padding: 4px 10px;
  gap: calc(5rem / 16);
  width: calc(286rem / 16);
  height: calc(24rem / 16);
  border-radius: calc(50rem / 16);
  margin: 0 auto;
  margin-top: calc(20rem / 16);

  & > img {
    width: 18px;
    height: 18px;
  }

  & > span {
    font-size: var(--text-eyebrow-size);
    line-height: var(--text-eyebrow-line-height);
  }
}

/* Step 4: Eligible */
.stepper-form-celebrate-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px auto;
}

.stepper-form-funding-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10rem / 16);
  padding: 30px;
  margin: 30px 0;
  background: var(--clr-primary-10);
  border: 1px solid var(--clr-primary-dark-10);
  border-radius: 10px;
}

.stepper-form-funding-label {
  font-size: var(--text-eyebrow-size);
  line-height: var(--text-eyebrow-line-height);
  font-weight: var(--weight-medium);
  color: var(--clr-primary);
  letter-spacing: 0.5px;
}

.stepper-form-funding-amount {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-primary-dark);
}

.stepper-form-funding-disclaimer {
  font-size: var(--text-disclaimer-size);
  line-height: var(--text-disclaimer-line-height);
  opacity: 0.8;
}

.stepper-form-title-no-mb {
  margin-bottom: 0;
}

/* Step 5: Amount Selection */
.stepper-form-amount-option {
  flex-direction: row;
}

/* Step 6: Complete */
.stepper-step[data-step='6'] {
  min-height: 460px;
}

.stepper-form-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  width: 100%;
}

.stepper-form-complete-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.stepper-form-complete .stepper-form-title {
  margin-bottom: 10px;
}

.stepper-form-book-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 30px;
  gap: 8px;
  width: 100%;
  background: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  border-radius: 4px;
  font-size: var(--text-button-size);
  line-height: var(--text-button-line-height);
  font-weight: var(--weight-bold);
  color: var(--clr-white);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: 3px solid transparent;
  margin-top: 30px;

  & > img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
  }

  &:hover {
    background: var(--clr-primary-hover);
    border-color: var(--clr-primary-hover);
    outline: 3px solid var(--clr-primary-20);

    & > img {
      transform: rotate(45deg);
    }
  }
}

.stepper-form-group-label-mt {
  margin-top: 20px;
}

/* Stepper Footer Back Button */
.stepper-footer-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  height: calc(60rem / 16);
  font-family: var(--fs-ff);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line-height);
  color: var(--clr-primary-dark);
  padding: 0;
  transition: all 0.3s ease;
  opacity: 0.6;

  & > img {
    width: 18px;
    height: 18px;
  }

  &:hover {
    opacity: 1;
  }
}

/* Media Queries */
@media (max-width: 900px) {
  :root {
    --text-h1-size: calc(20rem / 16);
    --text-h1-line-height: 1.2;
    --text-h2-size: calc(18rem / 16);
    --text-h2-line-height: 1.2;
    --text-h3-size: calc(18rem / 16);
    --text-h3-line-height: 1.2;
    --text-h4-size: calc(16rem / 16);
    --text-h4-line-height: 1.2;
    --text-h5-size: calc(13rem / 16);
    --text-h5-line-height: 1.3;
    --text-h6-size: calc(12rem / 16);
    --text-h6-line-height: 1.2;
    --text-paragraph-size: calc(13rem / 16);
    --text-paragraph-line-height: 1.7;
    --text-bullets-xs-size: calc(12rem / 16);
    --text-bullets-xs-line-height: 1.5;
    --text-button-size: calc(14rem / 16);
    --text-button-line-height: 1;
    --text-disclaimer-size: calc(9rem / 16);
    --text-disclaimer-line-height: 1.5;
    --text-footer-size: calc(10rem / 16);
    --text-footer-line-height: 1.5;
    --text-label-size: calc(14rem / 16);
    --text-label-line-height: 1.2;
    --text-eyebrow-size: calc(12rem / 16);
    --text-eyebrow-line-height: 1.2;
    --text-xs-size: calc(9rem / 16);
    --text-xs-line-height: 1.2;
  }

  .header-cta-btn {
    display: none;
  }

  .header-content {
    justify-content: center;
  }

  .hero {
    padding: 30px 0 140px 0;
  }

  .hero-top-subtitle {
    margin-top: calc(-8rem / 16);
  }

  .hero-approval-card {
    padding: 20px;
    gap: calc(10rem / 16);
    border-radius: calc(12rem / 16);
    bottom: calc(-224rem / 16);

    &::before {
      border-radius: calc(12rem / 16);
    }
  }

  .hero-approval-btn {
    height: calc(50rem / 16);
    min-height: calc(50rem / 16);

    & > img {
      width: calc(20rem / 16);
      height: calc(20rem / 16);
    }
  }

  .hero-approval-option-inputs {
    gap: calc(16rem / 16);
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-approval-option-input {
    width: calc(100% / 2 - 16rem / 16);
  }

  .hero-top-bullets {
    flex-direction: column;
    gap: calc(10rem / 16);
  }

  .hero-top-bullet {
    width: 100%;
  }

  .hero-approval-bullets {
    gap: calc(12rem / 16);
  }

  .hero-approval-bullet {
    gap: calc(4rem / 16);
    font-size: calc(11rem / 16);

    & > img {
      width: calc(12rem / 16);
      height: calc(12rem / 16);
    }
  }

  .funded {
    padding: 300px 0 50px 0;
  }

  .funded-content {
    flex-direction: column;
  }

  .funded-card {
    width: 100%;
    gap: calc(10rem / 16);
  }

  .terms {
    padding: 80px 0 50px 0;
  }

  .terms-title {
    text-align: left;
  }

  .footer {
    padding: 30px 0;
  }

  .footer-top {
    padding-bottom: 20px;
  }

  .footer-bottom {
    padding-top: 20px;
  }

  .footer-bottom-description {
    & > img {
      width: calc(10rem / 16);
      height: calc(10rem / 16);
    }
  }

  .stepper-title {
    margin-bottom: calc(20rem / 16);
  }

  .stepper-trust {
    margin-top: calc(20rem / 16);
    width: 100%;
    gap: calc(8rem / 16);
  }

  .stepper-trust-item {
    gap: calc(4rem / 16);
  }

  .stepper-trust-item > img {
    width: calc(14rem / 16);
    height: calc(14rem / 16);
  }

  .stepper-card {
    display: flex;
    width: 100%;
    background: var(--clr-white);
    border: 1px solid var(--clr-primary);
    border-radius: calc(10rem / 16);
    position: relative;
    z-index: 1;
    flex-direction: column;
  }

  /* Header: show progress ring, switch to space-between */
  .header.header-centered {
    position: fixed;
    background-color: var(--clr-white);
  }

  .header-centered .header-content {
    justify-content: space-between;
  }

  .header-progress-img {
    display: block;
    width: 40px;
    height: 40px;
  }

  .stepper {
    margin-top: calc(60rem / 16);
    padding-top: 0;
    min-height: calc(100dvh - 60rem / 16);
  }

  /* Hide progress ring inside sidebar */
  .stepper-sidebar-progress {
    display: none;
  }

  /* Horizontal sidebar */
  .stepper-sidebar {
    width: 100%;
    min-width: unset;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .stepper-sidebar-steps {
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    justify-content: center;
    gap: 0;
  }

  .stepper-sidebar-connector {
    display: none;
  }

  .stepper-sidebar-step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    position: relative;
  }

  .stepper-sidebar-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(50% + 12px);
    right: calc(-50% + 12px);
    height: 2px;
    background: var(--clr-primary-dark-10);
  }

  .stepper-sidebar-step.completed:not(:last-child)::after {
    background: var(--clr-primary);
  }

  .stepper-form {
    padding: 16px;
  }

  .stepper-form-title {
    margin-bottom: calc(4rem / 16);
  }

  .stepper-footer-btn {
    height: calc(50rem / 16);
  }

  .stepper-footer-back {
    height: calc(50rem / 16);

    & > img {
      width: calc(16rem / 16);
      height: calc(16rem / 16);
    }
  }

  .stepper-form-funding-card {
    margin: calc(20rem / 16) 0;
  }

  .stepper-form-options {
    flex-wrap: wrap;
  }

  .stepper-form-amount-option {
    width: calc(100% / 2 - 16rem / 16);
    flex: auto;
    height: calc(50rem / 16);
  }

  .stepper-step[data-step='6'] {
    min-height: auto;
    padding: 24px 16px;
  }

  .stepper-form-book-btn {
    height: calc(50rem / 16);
    margin-top: calc(20rem / 16);
  }

  .stepper-form-validation {
    & > svg {
      width: 16px;
      height: 16px;
    }
  }
}

@media (max-width: 600px) {
  .hero {
    background-image: url('../assets/svg/home-mobile-bg.svg');
  }

  .stepper {
    background-image: url('../assets/svg/stepper-mobile-bg.svg');
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: calc(10rem / 16);
  }
}

@media (max-width: 420px) {
  .stepper-trust {
    display: none;
  }
}
