@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
    --primary: #000E5C;
    --secondary: #87D033;
    --background: #E4EEF8;
    --white: #FFF;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
}
button {
    border: none;
    cursor: pointer;
}

nav {
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    background-color: var(--background);
    z-index: 2;
}
.fa-bars {
    background-color: var(--background);
}
nav img {
    height: 75%;
}

#navBtn {
    aspect-ratio: 1;
    border: none;
}

#navBtn i {
    font-size: 1.5rem;
    color: var(--primary);
}
nav ul {
    position: fixed;
    top: 10vh;
    left: 0;
    width: 100vw;
    height: 90vh;
    padding-left: 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    background-color: var(--background);
    list-style: none;
    font-family: lato;
    font-size: 1.2rem;
    color: var(--primary);
    transform: translateX(100vw);
    transition: 400ms;
}
nav li {
    font-weight: 700;

}

nav li:hover {
    /* font-weight: 700; */
    color: #61a711;
}
.nav-bar-open {
    transform: none;
}
.contact-btn {
    display: none;
}

header {
    width: 100%;
    /* height: 100vh; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 10vh;
    background-color: var(--background);
    padding-bottom: 10vh;
}
header > div {
    width: 90%;
    display: flex;
    flex-direction: column;
    row-gap: 25px;
}
header > div > div {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}
header h2, header p {
    line-height: 145%;
    font-family: lato;
}
header h2 {
    color: #04223B;
    font-weight: 900;
}
header p {
    color: #aaa;
}

header > img {
    display: none;
}
header form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 25px;
    width: 100%;
    padding: 25px 0;
    background-color: var(--white);
    box-shadow: 0px 0px 50px #0000000A;
    border-radius: 10px;
}
form > section {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  row-gap: 37px;
  width: 100%;
}
form > section > div {
    /* width: 80%; */
    min-width: 80%;
    max-width: 80%;
    display: flex;
    align-items: center;
    flex-direction: column;
    row-gap: 1vh;
    font-family: lato;
}
form > section > div label {
    color: #383C50;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-self: flex-start;
}
form > section input , form > section select{
  box-sizing: content-box;
  width: 100%;
  height: 25px;
  padding: 6px 8px;
  padding-left: 3%;
  border: 1px solid rgb(133, 133, 133);
  border-radius: 20px;
  color: rgb(105, 105, 105);
  background-color: #FFF;
  /* -webkit-appearance: none; */
  text-align: left;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}


form > div {
  display: flex;
  justify-content: flex-end;
  padding: 0 8vw;
  width: 100%;
}

form section:nth-child(n+2), #prevBtn, #submitBtn {
  display: none;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background);
    row-gap: 20px;
}
main > h1 {
    width: 80%;
    font-size: 25px;
    text-align: center;
    font-family: lato;
    font-weight: 900;
    color: #A8B8C6;
    margin-bottom: 26px;
}

.milestones-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
    font-family: lato;
    background-color: var(--white);
    padding: 10vh 15%;
}
.milestones-section  > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
}
.milestones-section  > span{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 14px;
}
.milestones-section > span > h3{
    text-align: center;
    font-size: 20px;
    color: #00072E;
}
.milestones-section > span > h2 {
    font-weight: 900;
}
.milestones-section > span > h2, .how-it-work-cont > h2 {
    text-align: center;
    font-size: 25px;
}
.milestones-section > span > h2 {
    color: #00072E;
}

.milestones-section  > div > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 10px;
}
.milestones-section  > div > div > div {
    width: 15vw;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 12px;
}
.milestones-section  > div > div > div img {
    width: 35px;
    aspect-ratio: 1;
}
.green {
    background-color: #87D033;
}
.purple {
    background-color: #6476D9 ;
}
.pink {
    background-color: #D0335D;
}
.milestones-section  > div > div > span {
    text-align: center;
    color: #5D5D5D;
    font-size: 15px;
}
.milestones-section  > div > div > h2 {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
    font-family: lato;
}
section > button , .funding-section button, .help-section > div:last-of-type > button, form div button{
    min-width: 100px;
    padding: 1vh 4%;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 16px;
    font-weight: 700;
    font-family: lato;
    letter-spacing: 1px;
}
section > button:hover, .funding-section button:hover{
    background-color: var(--secondary);
    color: var(--primary);
}
.help-section > div:last-of-type > button:hover {
    background-color: var(--secondary);
    color: #fff;
}
.funding-section {
    width: 90%;
    display: flex;
    flex-direction: column-reverse;
    row-gap: 15px;
    font-family: lato;
}
.funding-section > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 18px;
}
/* .funding-section > img {
    aspect-ratio: 2707/1823;
} */
.funding-section > div > h1 , .help-section div h1{
    color: var(--primary);
    font-size: 28px;
    font-weight: 900;
    line-height: 6vh;
    font-family: lato;
}
.funding-section > div > h1 , .help-section div h1{
    color: #04223B;
}
.funding-section > div h3 {
    font-size: 18px;
    font-weight: 700;
    color: #04223B;
}
.funding-section > div p {
    /* height: 16vh; */
    /* overflow: hidden; */
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    line-height: 160%;
}
.funding-section > div p.read_less{
    height: unset;
    overflow: visible;
}
.funding-section > div > div  {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
 }
.funding-section > div > div > div {
   display: flex;
   align-items: center;
   column-gap: 3vw;
}
.funding-section > div > div > div img {
    width: 20px;
}
.funding-section > div > div > div > span {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 132%;
}
.img {
    width: 90vw;
    /* height: 50px;  */
}
.funding-img {
    object-fit: contain;
    width: 100%;
}
/* .funding-section button {
    width: 40vw;
} */
.help-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    padding: 5vh 6%;
    background-color: var(--white);
    font-family: lato;
}
.help-section img {
    width: 90%;
}
.help-section div {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 15px;
}
.help-section > div:last-of-type {
    background-color: var(--primary);
    padding: 5vh 5%;
    color: var(--white);
    border-radius: 5px;
}
.help-section > div:last-of-type div {
    align-items: flex-start;
    width: unset;
}
.help-section div div {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}
.help-section div p {
    font-size: 16px;
    letter-spacing: 3%;
    color: #383C50;
    font-family: lato;
    font-weight: 500;
    line-height: 5vh;
}
.help-section > div:last-of-type h2{
    font-size: 25px;
    line-height: 5vh;
}
.help-section > div:last-of-type span {
    font-size: 14px;
    font-weight: 300;
}
.help-section > div:last-of-type > button {
    /* width: 40vw; */
    background-color: var(--white);
    color: var(--primary);
}
footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: lato;
}
.how-it-work-cont {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary);
    padding: 10vh 5%;
    color: var(--white);
    row-gap: 5vh;
}
.how-it-work-cont > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10vh;
}
.how-it-work-cont > div > div {
    width: 80%;
    padding: 5vh 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 3vh;
    background-color: rgb(0, 0, 0, 0.2);
}
.how-it-work-cont > div > div h3 {
    font-size: 30px;
    font-weight: 900;
    opacity: 0.2;
}
.how-it-work-cont > div > div span {
    font-size: 16px;
    font-weight: 700;
}
.how-it-work-cont > div > div img {
    height: 5vh;
    aspect-ratio: 1;
}
.footer-help-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5vh 5%;
    row-gap: 5vh;
    background-color: #00072E;
    color: var(--white);
}
.footer-help-section > button {
    background-color: #87D033;
}
.footer-help-section > button:hover {
    background-color: var(--white);
    color: var(--primary);
}
footer > section:last-child {
    width: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vh 0;
    font-family: lato;
}
footer > section:last-child span {
    color: #9F9F9F;
    font-size: 12px;
}

/* popup */
.alert{
    position:fixed;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content: center;
    border-radius:5px;
    box-shadow: 5px 10px 18px #888888;
    font-family: lato;
    background-color:var(--white);
    transition: 400ms;
  }
  .success {
    width:90vw;
    height: 50vh;
    top:25vh;
    left: 5vw;
    row-gap: 0vh;
    padding: 0 3%;
  }

  .closebtn{
    display:flex;
    align-self:flex-end;
    font-size:8vw;
    font-weight: 900;
    cursor:pointer;
  }
  .success > .closebtn {
    color: #34c759;
  }
  .failed > .closebtn {
    color: red;
  }
  .alert > img{
    width:40vw;
    aspect-ratio: 1;
  }
   .message {
    display: flex;
    align-items: center;
    text-align: center;
    font-size:20px;
    color:#383C50;
  }
  .failed{
    padding: 2vh 2%;
    top:10vh;
    left:5%;
    row-gap:2vh;
}

.g-recaptcha {
    margin-right: -20vw;
}
/* error */

/* container */
.container {
    padding: 5% 5%;
  }
  
  /* CSS talk bubble */

  label.errors { 
    background: #f42d62; 
    position: absolute; 
    /* bottom: -10px;  */
    color: #fff !important;
    padding: 5px 15px; border-radius: 15px;
    font-size: 15px; 
    left: 10vw; 
    width: auto;
    }
    label.errors:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent #f42d62 transparent;
    top: -10px;
    right: 20px;
    margin-left: -10px;
    }

    /* loader */
    .overlay {
        display: none;
        position: fixed;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #000A;
        z-index: 2;
    }
    .lds-roller {
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        display: inline-block;
        top: 45vh;
        left: 40%;
      }
      .lds-roller div {
        animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        transform-origin: 40px 40px;
      }
      .lds-roller div:after {
        content: " ";
        display: block;
        position: absolute;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin: -10px 0 0 -10px;
        background: linear-gradient(180deg, #00B3DB -11.4%, #00FBB0 68.69%);
      }
      .lds-roller div:nth-child(1) {
        animation-delay: -0.036s;
      }
      .lds-roller div:nth-child(1):after {
        top: 63px;
        left: 63px;
        opacity: 0.875;
      }
      .lds-roller div:nth-child(2) {
        animation-delay: -0.072s;
      }
      .lds-roller div:nth-child(2):after {
        top: 68px;
        left: 56px;
        opacity: 0.75;
      }
      .lds-roller div:nth-child(3) {
        animation-delay: -0.108s;
      }
      .lds-roller div:nth-child(3):after {
        top: 71px;
        left: 48px;
        opacity: 0.625;
      }
      .lds-roller div:nth-child(4) {
        animation-delay: -0.144s;
      }
      .lds-roller div:nth-child(4):after {
        top: 72px;
        left: 40px;
        opacity: 0.5;
      }
      .lds-roller div:nth-child(5) {
        animation-delay: -0.18s;
      }
      .lds-roller div:nth-child(5):after {
        top: 71px;
        left: 32px;
        opacity: 0.375;
      }
      .lds-roller div:nth-child(6) {
        animation-delay: -0.216s;
      }
      .lds-roller div:nth-child(6):after {
        top: 68px;
        left: 24px;
        opacity: 0.25;
      }
      .lds-roller div:nth-child(7) {
        animation-delay: -0.252s;
      }
      .lds-roller div:nth-child(7):after {
        top: 63px;
        left: 17px;
        opacity: 0.125;
      }
      .lds-roller div:nth-child(8) {
        animation-delay: -0.288s;
      }
      .lds-roller div:nth-child(8):after {
        top: 56px;
        left: 12px;
        opacity: 0.125;
      }
      @keyframes lds-roller {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }
  
/* media query for nav bar */
@media screen and (min-width: 1080px) {
    nav div {
        width: min(70%, 730px);
        display: flex;
        justify-content: space-around;
        align-items: baseline;
    }
    #navBtn {
        display: none;
    }
    nav ul {
        position: relative;
        top: unset;
        left: unset;
        width: 100%;
        height: 100%;
        background-color: transparent;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: flex-start;
        column-gap: 10px;
        transform: none;
        font-size: 19px;
        padding: 0;
    }
    .contact-btn  {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 13px;
        gap: 10px;
        background-color: var(--primary);
        color: var(--white);
        border-radius: 22px;
        font-family: lato;
        font-size: 16px;
    }
}

@media screen and (min-width:700px){
    header h2 {
        font-size:28px;
    }
    header p {
        font-size: 23px;
    }
    main > h1 {
        font-size: 40px;
    }
    .milestones-section > span > h3 {
        font-size: 30px;
    }
    .milestones-section > span > h2, .how-it-work-cont > h2{
        font-size: 35px;
    }
    .milestones-section > div {
        row-gap: 30px;
    }
    .milestones-section > div > div {
        width: 80%;
    }
    .milestones-section > div > div > div {
        width: 12vw;
    } 
    .milestones-section > div > div > h2 {
        font-size: 26px;
    }
    .milestones-section > div > div > span {
        font-size: 25px;
        line-height: 140%;
    }
    .funding-section > div > div > div > span {
        font-size: 23px;
    }
    .funding-section > div > h1, .help-section div h1 {
        font-size: 35px;
    }
    .help-section > div {
        width: 95%;
    }
    .help-section div p {
        font-size: 20px;
    }
    .help-section > div:last-of-type span {
        font-size: 24px;
    }
    .funding-section > div h3 {
        font-size: 23px;
    }
    .funding-section > div p {
        font-size: 20px;
    }
    .how-it-work-cont > div > div h3 {
        font-size: 40px;
    }
    .how-it-work-cont > div > div span {
        font-size: 22px;
    }

}

@media screen and (orientation: landscape) and (min-height: 400px) and (min-aspect-ratio: 8/7) {
    header {
        height: 100vh;
        flex-direction: row; 
        justify-content: center;
    }
    header > div {
        width: 35%;
    }
    header img {
        display: block;
        width: 30%;
        /* position: absolute; */
        right: 20%;
    }
    header form {
        padding: 2vw 0;
    }
    header h2{
        font-size: 28px;
    }
    header p {
        font-size: 18px;
    }
    form > div {
        padding: 0 3vw;
    }
      form > section input , form > section select{
        font-size: 16px;
        height: 30px;
    }
      
    main h1 {
        font-size: 35px;
    }
    .milestones-section {
        row-gap: 30px;
    }
    .milestones-section > div  {
        flex-direction: row;
        justify-content: space-around;
    }
    .milestones-section > span > h3{
        font-size: 30px;
    }
    .milestones-section > span > h2 ,  .how-it-work-cont > h2  {
        font-size: 36px;
    }
    
    .milestones-section  > div > div {
        width: 27%;
        row-gap: 20px;
    }
    .milestones-section  > div > div > div {
        width: 3.5vw;
        aspect-ratio: 1;
        border-radius: 25%;
    }
    .milestones-section  > div > div > span {
        font-size: 18px;
    }
    .milestones-section  > div > div > h2{
        font-size: 22px;
    }
    section > button {
        padding: 1vh 2%;
    }
    .funding-section {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        column-gap: 4vw;
        padding: 5vh 0;
        row-gap: 15px;
    }
    .funding-section > div {
        width: 30%;
        row-gap: 20px;
    }
    .img {
        width: 30%;
    }
    /* .funding-section img {
        width: 30%;
    } */
    .funding-section > div > h1 , .help-section div h1{
        font-size: 38px;
        line-height: 4.5vh;
    }
    .funding-section > div h3 {
        font-size: 19px;
    }
    .funding-section > div  p {
        font-size: 16px;
    }
    .funding-section > div > div  {
        row-gap: 10px;
     }
    .funding-section > div > div > div {
       column-gap: 1vw;
    }
    .funding-section > div > div > div img {
        width: 1.5vw;
    }
    .funding-section > div > div > div > span {
        font-size: 17px;
    }
    .help-section {
        row-gap: 10vh;
        padding: 10vh 18%;
    }
    .help-section div{
        width: 100%;
        align-items: center;
        flex-direction: row;
        column-gap: 5%;
    }
    .help-section img {
        width: 40%;
    }
    .help-section div:first-child div {
        width: 35%;
        row-gap: 22px;
    }
    .help-section div p {
        font-size: 19px;
        line-height: 3vh;
    }
    .help-section > div:last-of-type{
        flex-direction: row;
        justify-content: space-between;
    }
    .help-section > div:last-of-type h2{
        font-size: 30px;
        line-height: 5vh;
    }
    .help-section > div:last-of-type span {
        font-size: 18px;
    }
    .help-section > div:last-of-type > button {
        padding: 1vh 0;
        background-color: var(--white);
        color: var(--primary);
    }
    .how-it-work-cont {
        padding: 10vh 15%;
    }
    .how-it-work-cont > div {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
    .how-it-work-cont > div > div {
        width: 20%;
        padding: 5vh 0;
        row-gap: 3vh;
    }
    .how-it-work-cont > div > div h3 {
        font-size: 30px;
    }
    .how-it-work-cont > div > div span {
        font-size: 17px;
    }
    .how-it-work-cont > div > div img {
        height: 5vh;
    }
    .footer-help-section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 6vh 15%;
    }
    .footer-help-section h2 {
        font-size: 38px;
    }
    .footer-help-section > button {
        background-color: #87D033;
    }
    .g-recaptcha {
        margin-right: 10vw;
    }
    /* popup */
    .success {
        width:25vw;
        height: 35vh;
        top:20vh;
        left: 35vw;
        padding: 20vh 2%;
      }
      .closebtn{
        font-size:2vw;
      }
      .alert img {
        width: 10vw;
      }
    /* error message */
    label.errors { 
        left:20vw;
    }
    /* loader */
    .lds-roller {
        left: 50%;
      }
    
}