/* Fees — mobile first
--------------------------------------------- */

.fees-section {
  overflow: hidden;
}

.fees-section__header {
  display: grid;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.fees-section__header h2 {
  max-width: 52rem;
  margin-bottom: 0;
}

.fees-section__intro {
  position: relative;
  width: 100%;
  max-width: 38rem;
  padding-block: 1.5rem;
  margin: 0;
  border-top: 1px solid rgb(36 36 36 / 16%);
  border-bottom: 1px solid rgb(36 36 36 / 16%);
  color: rgb(36 36 36 / 78%);
}

.fees-section__intro::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 4rem;
  height: 0.2rem;
  background: var(--color-red);
  content: "";
}

.fees-section__grid {
  display: grid;
  gap: 3rem;
}

.fees-process {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgb(36 36 36 / 16%);
}

.fees-process__item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid rgb(36 36 36 / 16%);
}

.fees-process__number {
  color: var(--color-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.fees-process__item h3 {
  margin-bottom: 0.65rem;
  color: var(--color-green-dark);
  font-size: 1.45rem;
}

.fees-process__item p {
  max-width: 38rem;
  margin: 0;
  color: rgb(36 36 36 / 76%);
}

.fees-highlight {
  position: relative;
  padding: 2rem;
  overflow: hidden;
  background: var(--color-green);
  border-radius: var(--radius-media);
  color: var(--color-white);
}

.fees-highlight::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.5rem;
  aspect-ratio: 1;
  border-top: 0.3rem solid var(--color-red);
  border-right: 0.3rem solid var(--color-red);
  content: "";
}

.fees-highlight__label {
  max-width: 16rem;
  margin-bottom: 2.5rem;
  color: rgb(255 255 255 / 68%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fees-highlight__text {
  max-width: 24rem;
  margin-bottom: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 8vw, 2.5rem);
  line-height: 1.25;
}

.fees-highlight__note {
  max-width: 27rem;
  margin-bottom: 2rem;
  color: rgb(255 255 255 / 74%);
}

.fees-highlight__button {
  background: var(--color-red);
  border-color: var(--color-red);
}

.fees-highlight__button:hover,
.fees-highlight__button:focus-visible {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-green);
}

/* Tablet
--------------------------------------------- */

@media screen and (min-width: 48rem) {
  .fees-section__header {
    gap: 3rem;
    margin-bottom: 4.5rem;
  }

  .fees-section__intro {
    max-width: none;
    padding-block: 1.75rem;
  }

  .fees-section__grid {
    gap: 4rem;
  }

  .fees-process__item {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1.75rem;
    padding-block: 2rem;
  }

  .fees-process__number {
    font-size: 1.5rem;
  }

  .fees-process__item h3 {
    font-size: 1.65rem;
  }

  .fees-highlight {
    padding: 3rem;
  }
}

/* Desktop
--------------------------------------------- */

@media screen and (min-width: 72rem) {
  .fees-section__header {
    grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.7fr);
    align-items: center;
    gap: 5rem;
    margin-bottom: 5rem;
  }

  .fees-section__intro {
    max-width: 38rem;
    justify-self: end;
  }

  .fees-section__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    align-items: stretch;
    gap: clamp(4rem, 7vw, 7rem);
  }

  .fees-highlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
  }
}

/* Hover
--------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .fees-process__item {
    transition:
      padding-left 180ms ease,
      background-color 180ms ease;
  }

  .fees-process__item:hover {
    padding-left: 1rem;
    background: rgb(255 255 255 / 30%);
  }

  .fees-highlight {
    transition:
      transform 220ms ease,
      box-shadow 220ms ease;
  }

  .fees-highlight::before {
    transition: transform 220ms ease;
  }

  .fees-highlight:hover {
    transform: translateY(-0.35rem);
    box-shadow: 0 1.5rem 3rem rgb(35 72 59 / 16%);
  }

  .fees-highlight:hover::before {
    transform: translate(-0.3rem, 0.3rem);
  }
}
