/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 84em) {
  .heading-primary {
    font-size: 4.4rem;
  }
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/

@media (max-width: 75em) {
  html {
    /* 9px / 16px  */
    font-size: 56.25%;
  }

  .section-cta {
    padding: 0 3.2rem;
    margin: 0 auto;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }

  .btn--form {
    margin-top: 8rem;

    /* font-size: 1.6rem;
    padding: 1.6rem;
    margin-left: 12rem; */
    margin-bottom: 3.6rem;
  }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/
@media (max-width: 59em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
  }

  .cta-text-pdf,
  .cta-text-p {
    font-size: 2.4rem;
  }

  .btn--form {
    margin-left: 35rem;
    font-size: 2.4rem;
  }

  /* MOBILE NAVIGATION*/

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /*100 view port height unit*/
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /*Hide navigation*/
    /*Allows NO transitions at allow*/
    /* display: none; */

    /*1) Hide it visually*/
    opacity: 0;

    /*2) Make it unnaccessible to mouse and keyboard */
    pointer-events: none;

    /*3) Hide it form screen readers*/
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 44em) {
  .btn--form {
    margin-left: 28rem;
  }

  .cta-h3 {
    font-size: 2rem;
  }

  .grid--footer {
    font-size: 1.6rem;
  }

  .footer-link2,
  .contacts {
    font-size: 1.4rem;
  }
}

/**************************/
/* BELOW 654px (Phones) */
/**************************/

@media (max-width: 40rem) {
  html {
    /* 6px / 16px = 0.5 = 37% */
    font-size: 43%;
  }

  .logo {
    width: 12rem;
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

@media (max-width: 34em) {
  html {
    font-size: 37%;
  }
  /*6px / 16px = 0.5 = 37% 

  /* .section-cta {
    padding: 3.2rem 1.8rem 9.6rem;
  } */

  .cta-background {
    gap: 1.6rem;
    padding: 1.6rem;
    border-radius: 1%;
  }

  .cta-text {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 3.2 rem;
  }

  .cta-text-pdf {
    font-size: 1.6rem;
    margin-bottom: 3.2rem;
  }

  .h2-form {
    margin-top: 3.2rem;
    font-size: 2.4rem;
  }

  .cta-text-p {
    font-size: 1.6rem;
    margin-bottom: 3.2rem;
  }

  .cta-h3 {
    font-size: 2rem;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
  }

  .label-input {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .multi-option label {
    font-size: 1.6rem;
  }

  .asterisk {
    color: #845ef7;
    font-weight: 700;
    font-size: 1.6rem;
  }

  .cta-form input,
  .cta-form select {
    /* padding-left: 2rem;
    padding-right: 2rem; */
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.2rem;
  }

  .checkbox-text {
    font-size: 1rem;
    font-weight: 500;
  }

  .checkbox-program li {
    margin-top: 1.6rem;
    font-size: 1.6rem;
    align-items: center;
    line-height: 3;
  }

  .aggreement-grid {
    margin-top: 2rem;
    row-gap: 1.6rem;
    column-gap: 0.8rem;
  }

  .btn--form {
    margin-top: 8rem;

    font-size: 1.6rem;
    padding: 1.6rem;
    margin-left: 12rem;
    margin-bottom: 4rem;
  }
  .logo {
    width: 6rem;
  }

  .footer {
    padding: 2rem 0;
  }
}

/**************************/
/* BELOW 414px (Phones) */
/**************************/

/* 5px / 16px = 0.5 = 37% */
@media (max-width: 25em) {
  html {
    font-size: 31%;
  }

  .logo {
    width: 9rem;
  }

  .btn--form {
    margin-top: 2rem;
    margin-left: 30rem;
  }

  .other-names ul li {
    font-size: 1rem;
  }

  .checkbox-program ul li label,
  .other-names {
    font-size: 1.2rem;
  }

  .grid--footer {
    grid-template-columns: 1fr 1fr;
    font-size: 1.6rem;
  }

  /* .logo-col:nth-child(3) {
    grid-column: 1/3;
    justify-self: center;
  } */
}

/**************************/
/* BELOW 360px (Phones) */
/**************************/

/* 5px / 16px = 0.5 = 37% */
@media (max-width: 22.5em) {
  html {
    font-size: 31%;
  }

  .logo {
    width: 8rem;
  }

  .btn--form {
    margin-top: 2rem;
    margin-left: 25rem;
  }

  .other-names ul li {
    font-size: 1rem;
  }

  .checkbox-program ul li label,
  .other-names {
    font-size: 1.2rem;
  }

  .footer {
    padding: 2rem;
  }

  .grid--footer {
    grid-template-columns: 1fr 1fr;
    font-size: 1.6rem;
  }

  /* .logo-col:nth-child(3) {
    grid-column: 1/3;
    justify-self: center;
  } */
}
