@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;600&display=swap');

*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 400;
}

h2 {
    font-size: 1.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
}

.hero-title {
    display: flex;
    align-items: center;
    color: #091726;
}

.hero-title svg {
    margin-right: 20px;
    ;
}

.hero-subtitle {
    max-width: 400px;
    padding: 25px 14px 40px;
    color: #212121;
    text-align: center;
}

.tracking-form {
    display: flex;
    align-items: flex-end;
}

.tracking-form fieldset {
    border: none;
    display: flex;
    flex-direction: column;
    width: 350px;
    max-width: 100%;
    padding: 0 14px;
}

.form-label {
    color: #091726;

}

.form-input {
    background: #F4F6F8 0% 0% no-repeat padding-box;
    box-shadow: 0px 2px 5px #363D4D08;
    border-radius: 5px;
    border: none;
    padding: 14px;
    margin-top: 8px;
}

.form-submit {
    font-size: 0.875rem;
    border: none;
    background: #F4B84F 0% 0% no-repeat padding-box;
    border-radius: 7px;
    padding: 14px;
    font-weight: 600;
    color: #14335E;
}

.form-submit svg {
    margin-left: 8px;
}

.tracking-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    max-width: 100%;
    width: 830px;
}

.progress-bar {
    padding: 20px 70px 20px 70px;
	border-top: 5px solid #F4B84F;
    width: 100%;
    background-color: #F4F6F8;	
}

.progress-bar .progressbar-wrapper {
      width: 100%;
}

.progress-bar .progressbar span {
   position: absolute;
   width: 60px;
   height: 60px;
   line-height: 60px;
   text-align: center;
   left: calc(50% - 30px);
   top: 0;
   z-index: 3;
   color: #14335E;
}


.progress-bar .progressbar li {
      list-style-type: none;
      width: 20%;
      float: left;
      font-size: 12px;
      position: relative;
      text-align: center;
      text-transform: uppercase;
      color: #7d7d7d;
}

.progress-bar .progressbar li:before {
    width: 60px;
    height: 60px;
    content: "";
    line-height: 60px;
    border: 2px solid #7d7d7d;
    display: block;
    text-align: center;
    margin: 0 auto 3px auto;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    background-color: #F4F6F8;
}

.progress-bar .progressbar li:after {
     width: 100%;
     height: 2px;
     content: '';
     position: absolute;
     background-color: #7d7d7d;
     top: 30px;
     left: -50%;
     z-index: 0;
}

.progress-bar .progressbar li:first-child:after {
     content: none;
}


.progress-bar .progressbar li.active {
    color: #14335E;
    font-weight: bold;  
}

.progress-bar .progressbar li.ood.active:before {
    border-color: #14335E;
    background: #A5D9F5;
 }
 
.progress-bar .progressbar li.ood.active + li:after {
    background-color: #14335E;
}

.progress-bar .progressbar li.being-prepared.active:before {
    border-color: #14335E;
    background: #CFEBFA;
 }
 
.progress-bar .progressbar li.being-prepared.active + li:after {
    background-color: #14335E;
}

.progress-bar .progressbar li.got-it.active:before {
    border-color: #14335E;
    background: #E6F4FD;
 }
 
.progress-bar .progressbar li.got-it.active + li:after {
    background-color: #14335E;
}


.progress-bar .progressbar li.active:before {
    border-color: #14335E;
    background: #53B6ED;
 }
 
.progress-bar .progressbar li.active + li:after {
    background-color: #14335E;
}


.delivery-information {
    padding: 20px 70px 20px 70px;
    border-top: 5px solid #F4B84F;
    width: 100%;
    background-color: #F4F6F8;
}

.delivery-information ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
}

.delivery-information ul li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    break-inside: avoid;
}

.delivery-information h6 {
    color: #091726;
    opacity: 0.5;
    font-size: 0.875rem;
    font-weight: 400;
}

.delivery-information h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #14335E;
}

.delivery-information h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #14335E;
}

.delivery-information p {
    font-size: 0.875rem;
    font-weight: 600;
    color: #14335E;
}

.tracking-history {
    width: 100%;
    margin-top: 20px;
    background-color: #F4F6F8;
}

.tracking-history h3 {
    background-color: #14335E;
    color: #fff;
    padding: 7px 20px;
    font-size: 0.875rem;
    font-weight: 400;
}

.tracking-history ul {
    list-style: none;
    padding: 0;
    padding-top:26px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.tracking-history ul::after {
    content: '';
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 14px;
    z-index: 3;
    background-color: #F4F6F8;
}

.tracking-history li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0px 20px 20px 50px;
    position: relative;
    color: #091726;
}

.tracking-history li::before {
    content: '';
    position: absolute;
    height: 11px;
    left: 20px;
    top: 4%;
    width: 11px;
    background-color: #14335E;
    border-radius: 50%;
}

.tracking-history li::after {
    content: '';
    position: absolute;
    height: 140%;
    left: 25px;
    top: -6px;
    width: 1px;
    background-color: #14335E;
}

.event-date {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.5;
}

.event-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding-left: 10px;
    opacity: 0.5;

}
.event-information {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.5;
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F4B84F;
    color: #14335E;
    font-size: 1.5rem;
    padding: 32px 0;
    margin-top: 70px;
}

.cta-sub-title {
    font-weight: 400;
}

.cta-button {
    background-color: #14335E;
    padding: 14px 23px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    font-size: 0.875rem;
    margin-left: 76px;
    font-weight: 600;
}

.cta-button svg {
    margin-left: 18px;
    margin-right: 10px;
}

#map {
	width: 100%;
	height: 50em;
	display: block;
}


@media (max-width:840px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .tracking-form {
        flex-direction: column;
        width: 100%;
    }

    .tracking-form fieldset {
        width: 100%;
        padding: 20px 14px;
    }

    .form-submit {
        margin-right: 14px;
    }

    .cta-section {
        flex-direction: column;
        padding: 32px;
        text-align: center;
    }

    .cta-button {
        margin-left: 0;
        margin-top: 18px;
    }

    .cta-button svg {
        margin-left: 18px;
        margin-right: 10px;
    }

    .tracking-results {
        padding: 60px 14px;
    }
    
    .delivery-information {
        padding: 20px;
    }

	.progress-bar {
		padding: 20px 0px 20px 0px;
	}	
	
    .delivery-information ul {
        columns: 1;
    }
	
    .event-name {
        padding-left: 8px;
    }

}