:root {
  --font-default: "DM Sans", Arial, Helvetica, sans-serif;
  --font-slab: var(--font-default);
  --modal-duration: 0.8s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Landing Page */

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-default);
  font-size: 18px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 6.9%;
}

@media screen and (min-width: 1441px) {
  body {
    padding: 0 100px;
  }
}

p {
  margin-bottom: 0;
  padding: 0.5vw;
}

img {
  display: block;
}

.topnav {
  margin: 60px -4.65% 86px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.main-navbar {
  display: flex;
}

.main-navbar a {
  position: relative;
  color: #000000;
  text-align: center;
  padding: 8px 12px;
  margin: 3px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
}

.topnav .main-navbar a:hover,
.topnav a.active {
  background-color: #FE142F;
  color: #ffffff;
}

.topnav .main-navbar a::before {
  content: "";
  height: 1px;
  position: absolute;
  width: calc(100% - 24px);
  bottom: 8px;
  left: 12px;
  background-color: white;
  opacity: 0;
  transition: all 0.2s;
}

.topnav .main-navbar a:hover::before,
.topnav a.active::before {
  opacity: 1;
}

.topnav .hamburger {
  display: none;
  color: #FE142F;
  font-size: 26px;
}

@media screen and (max-width: 1024px) {
  body {
    min-height: 100vh;
  }

  .topnav {
    margin: 60px 0 0px;
    position: relative;
  }

  .main-navbar {
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    height: 0px;
    margin-bottom: 30px;
    transition: height 0.5s ease-in-out;

  }

  .main-navbar a {
    text-align: left;
    width: fit-content;
  }

  .main-navbar a:first-child {
    margin-top: 50px;
  }

  .main-navbar a:last-child {
    margin-bottom: 10px;
  }

  .header-logo img {
    height: 30px;
  }

  .topnav .hamburger {
    display: block;
    transition: transform 0.3s ease-in-out;
  }

  .topnav.topnav.responsive .hamburger {
    transform: rotate(-90deg);
  }
}

@media screen and (max-width: 480px) {
  .topnav {
    margin-top: 30px;
  }

  .header-logo img {
    height: 25px;
  }

}

main {
  font-size: 130%;
  font-weight: bolder;
  color: black;
  margin: 0;
  border-radius: 2rem;
  text-align: justify;

}

.modal-btn {
  font-size: 145%;
  background: #fe142f;
  display: flex;
  margin: auto;
  padding: 2em;
  color: #fff;
  padding: 0.75rem 2.5rem;
  border-radius: 1rem;
  cursor: pointer;
}

.modal-btn:hover {
  background: #3876ac;
}

.footer {
  margin: 20px;
  padding: 10px;
  font-family: var(--font-slab);
}

@media screen and (max-width: 768px) {
  main {
    position: relative;
  }

}

/* Modal form */
form .loader {
  display: none;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #00000085;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

form .loader::before {
  content: "";
  height: 50px;
  width: 50px;
  border-radius: 50%;
  border-color: white white white transparent;
  border-style: solid;
  border-width: 5px;
  animation: rotate 1s cubic-bezier(0.6, 0.2, 0.4, 0.9) infinite;
}

form.sending .loader {
  display: flex;
}

form.sending--success {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

form.sending--success .formData,
form.sending--success .text-label {
  display: none;
}

.success-msg {
  display: none;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 400;
}

form.sending--success .success-msg {
  display: block;
}

.button {
  background: #fe142f;
  margin-top: 0.5em;
  padding: 1em;
  color: #fff;
  border-radius: 15px;
  cursor: pointer;
  font-size: 16px;
}

.button:hover {
  background: #3876ac;
}



.smFont {
  font-size: 16px;
}

.bground {
  display: none;
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(255, 255, 255, 0.748);
}

.bground[data-opened=true] {
  display: block;
}

.content {
  margin: 5% auto;
  width: 100%;
  max-width: 500px;
  animation-name: modalopen;
  animation-duration: var(--modal-duration);
  background: #232323;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  color: #fff;
  padding-top: 10px;
}

.modal-body {
  padding: 15px 8%;
  margin: 15px auto;
}

@media screen and (max-width: 480px) {
  .bground {
    position: absolute;
    top: -4px;
    min-height: calc(100vh - 90px);
    height: unset;
    width: 100vw;
    left: -6.9vw;
  }

  .content {
    margin: 0;
    height: 100%;
  }

  .bground[data-opened=true]+.hero-section {
    display: none;
  }

}

label {
  font-family: var(--font-default);
  font-size: 17px;
  font-weight: normal;
  display: inline-block;
  margin-bottom: 11px;
}

input {
  padding: 8px;
  border: 0.8px solid #ccc;
  outline: none;
}

.text-control {
  margin: 0;
  padding: 8px;
  width: 100%;
  border-radius: 8px;
  font-size: 20px;
  height: 48px;
}

.formData[data-error]::after {
  content: attr(data-error);
  font-size: 0.5em;
  color: #e54858;
  display: block;
  margin-top: 10px;
  margin-bottom: 7px;
  text-align: left;
  line-height: 1rem;
  opacity: 0;
  transition: 0.3s;
}

.formData[data-error-visible="true"]::after {
  opacity: 1;
}

.formData[data-error-visible="true"] .text-control {
  border: 2px solid #e54858;
}

/* 
input[data-error]::after {
    content: attr(data-error);
    font-size: 0.4em;
    color: red;
} */
.checkbox-label,
.checkbox2-label {
  position: relative;
  margin-left: 36px;
  font-size: 12px;
  font-weight: normal;
}

.checkbox-label .checkbox-icon,
.checkbox2-label .checkbox-icon {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #279e7a;
  border-radius: 50%;
  text-indent: 29px;
  white-space: nowrap;
  position: absolute;
  left: -30px;
  top: -1px;
  transition: 0.3s;
}

.checkbox-label .checkbox-icon::after,
.checkbox2-label .checkbox-icon::after {
  content: "";
  width: 13px;
  height: 13px;
  background-color: #279e7a;
  border-radius: 50%;
  text-indent: 29px;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s;
  opacity: 0;
}

.checkbox-input {
  display: none;
}

.checkbox-input:checked+.checkbox-label .checkbox-icon::after,
.checkbox-input:checked+.checkbox2-label .checkbox-icon::after {
  opacity: 1;
}

.checkbox-input:checked+.checkbox2-label .checkbox-icon {
  background: #279e7a;
}

.checkbox2-label .checkbox-icon {
  border-radius: 4px;
  border: 0;
  background: #c4c4c4;
}

.checkbox2-label .checkbox-icon::after {
  width: 7px;
  height: 4px;
  border-radius: 2px;
  background: transparent;
  border: 2px solid transparent;
  border-bottom-color: #fff;
  border-left-color: #fff;
  transform: rotate(-55deg);
  left: 21%;
  top: 19%;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 32px;
  height: 32px;
  opacity: 1;
  cursor: pointer;
  transform: scale(0.7);
}

.close:before,
.close:after {
  position: absolute;
  left: 15px;
  content: " ";
  height: 33px;
  width: 3px;
  background-color: #fff;
}

.close:before {
  transform: rotate(45deg);
}

.close:after {
  transform: rotate(-45deg);
}

.btn-submit,
.btn-signup {
  background: #fe142f;
  display: block;
  margin: 0 auto;
  border-radius: 7px;
  font-size: 1rem;
  padding: 12px 82px;
  color: #fff;
  cursor: pointer;
  border: 0;
}

form.sending--success .btn-submit {
  position: absolute;
  bottom: 0px;

}

/* custom select styles */
.custom-select {
  position: relative;
  font-family: Arial;
  font-size: 1.1rem;
  font-weight: normal;
}

.custom-select select {
  display: none;
}

.select-selected {
  background-color: #fff;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 10px;
  right: 13px;
  width: 11px;
  height: 11px;
  border: 3px solid transparent;
  border-bottom-color: #f00;
  border-left-color: #f00;
  transform: rotate(-48deg);
  border-radius: 5px 0 5px 0;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  transform: rotate(135deg);
  top: 13px;
}

.select-items div,
.select-selected {
  color: #000;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  border-radius: 8px;
  height: 48px;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: #fff;
  top: 89%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover,
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

/* custom select end */
.text-label {
  font-weight: normal;
  font-size: 16px;
}

.hero-section {
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  overflow: hidden;
  box-shadow: 0 5px 7px 2px rgba(0, 0, 0, 0.2);
}

.hero-content {
  padding: 53px 56px 70px;
  grid-column: span 5;
  background: #232323;
  color: #fff;
  position: relative;
  text-align: left;
}

.hero-content>* {
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: 6rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero-text {
  width: 100%;
  font-weight: normal;
  font-size: 1.2rem;
  margin-top: 57px;
  padding: 0;
}

.btn-signup {
  outline: none;
  text-transform: capitalize;
  font-size: 1.3rem;
  padding: 15px 30px;
  margin: 0;
  margin-top: 59px;
}

.hero-img {
  grid-column: span 7;
  position: relative;
  height: 100%;
}

.hero-img img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
}

.copyrights {
  color: #fe142f;
  padding: 0;
  font-size: 1rem;
  margin: 100px 0 63px;
  font-weight: bolder;
}

.hero-section>.btn-signup {
  display: none;
}

footer {
  padding: 0;
  margin-left: -4%;
}

@media screen and (max-width: 1024px) {
  .hero-section {
    display: block;
    box-shadow: unset;
  }

  .hero-content {
    background: #fff;
    color: #000;
    padding: 0px;
  }

  .hero-content::after {
    content: unset;
  }

  .hero-content .btn-signup {
    display: none;
  }

  .hero-headline {
    font-size: 4rem;
    white-space: normal;
    line-height: 4.5rem;
  }

  .hero-text {
    width: unset;
    font-size: 1.3rem;
    margin-top: 30px;
  }

  .hero-img {
    padding-bottom: 60%;
    position: relative;
    margin-top: 60px;
  }

  .hero-img img {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
  }

  .hero-section>.btn-signup {
    display: block;
    margin: 32px auto 10px;
    padding: 12px 35px;
  }

  .copyrights {
    margin-top: 50px;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .hero-img {
    padding-bottom: 100%;
    margin-top: 35px;
  }

  .hero-headline {
    font-size: 2.5rem;
    line-height: 3.2rem;
    letter-spacing: 1.2px;
    font-weight: 700;
  }

  .hero-text {
    font-size: 0.85rem;
  }

  .hero-section>.btn-signup {
    font-size: 1rem;
  }

  footer {
    margin-top: auto;
  }

  .copyrights {
    margin: 30px 0;
    font-size: 0.7rem;
  }
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: translateY(-150px);
  }

  to {
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}

@media screen and (max-width: 768px) {
  @keyframes modalopen {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
}

.input-error {
  color: red;
  display: none;
}