@font-face {
  font-family: Gilroy;
  src: url(../fonts/Gilroy-Light.woff2);
  font-display: swap;
  font-weight: 300;
}
@font-face {
  font-family: Gilroy;
  src: url(../fonts/Gilroy-Medium.woff2);
  font-display: swap;
  font-weight: 500;
}
@font-face {
  font-family: Gilroy;
  src: url(../fonts/Gilroy-ExtraBold.woff2);
  font-display: swap;
  font-weight: 800;
}

/* Modal styles */
.homeModal,
.homeModalOverlay {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100%;
  left: 0;
}

.homeModal {
  z-index: 30;
  justify-content: center;
  align-items: center;
  display: flex;
}

.homeModalOverlay {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.homeFormContainer {
  position: relative;
  z-index: 30;
  background-color: #fff;
  color: #000;
  border-radius: 8px;
  padding: 60px 40px 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.homeFormTopTitle {
  font-size: 28px;
  color: #000;
  font-weight: 800;
  font-family: Gilroy, sans-serif;
  text-align: center;
  margin-bottom: 12px;
  text-align: left;
}
.homeFormTopText {
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  max-width: 428px;
  margin-bottom: 30px;
  color: #00000099;
}
.closeButton {
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
  color: #000;
}

.homeFormErrorText {
  color: #e53e3e;
  margin-bottom: 12px;
  font-size: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  padding-top: 5px;
  padding-bottom: 5px;
}

.HomeFormRowInput,
.HomeFormRowLabel {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 18px;
}

.HomeFormRow {
  margin-bottom: 30px;
}

.HomeFormRowLabel {
  font-weight: 500;
  font-size: 16px;
  line-height: 132%;
  color: #48635b;
  margin-bottom: 10px;
  display: block;
}

.description__form {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.HomeFormRowInput {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #bed4da;
  min-height: 48px;
  background-color: #f3f7f8;
  border-radius: 12px;
  font-weight: 400;
  outline: 0;
  height: 50px;
  transition: border-color 0.2s;
  color: #000;
}

.HomeFormRowInput:focus {
  border-color: #00ae4c;
}

.HomeFormRowInput::placeholder {
  color: #aaa;
}

.HomeFormBtn {
  height: 70px;
  width: 100%;
  cursor: pointer;
  border-radius: 50px;
  background: #00ae4c;
  transition: 0.3s;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 28px;
  line-height: 140%;
  color: white;
}


/* Media queries for responsive design */
@media screen and (max-width: 768px) {
  .homeFormContainer {
    max-width: 100%;
    padding: 80px 20px 20px;
    margin: 0;
    border-radius: 6px;
    height: 100vh;
  }
  .HomeFormRow{
    margin-bottom: 26px;
  }

  .homeFormTopTitle {
    max-width: 368px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-bottom: 3.5px;
    text-align: left;
  }

  .homeFormTopText{
    font-size: 13px;
    max-width: 335px;
    margin-bottom: 26px;
  }
  .homeFormTop {
    flex-direction: column;
    align-items: flex-start;
  }

  .closeButton {
    width: 100%;
    height: 50px;
    background-color: #000;
    color: #fff;
    padding-right: 20px;
    top: 0;
    left: 0;
    justify-content: end;
  }

  .homeFormErrorText {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .HomeFormRow {
    margin-bottom: 34px;
  }

  .HomeFormRowLabel {
    margin-bottom: 6px;
  }

  .HomeFormRowInput {
    padding: 0 12px;
    min-height: 40px;
    background-color: transparent;
  }

  .HomeFormRowInput::placeholder {
    color: #a3a3a3;
  }

  .HomeFormBtn {
    height: auto;
    font-size: 18px;
    font-weight: 800;
    padding-top: 21px;
    padding-bottom: 21px;
    max-height: 50px;
    margin-top: 24px;
    border-radius: 87px;
  }
}

@media screen and (max-width: 480px) {
  .homeFormContainer {
    max-width: 100%;
    padding: 80px 20px 20px;
    margin: 0;
    border-radius: 6px;
    height: 100vh;
  }

  .homeFormTopTitle {
    max-width: 335px;
  }

  .homeFormErrorText {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .HomeFormRow {
    margin-bottom: 34px;
  }

  .HomeFormRowLabel {
    margin-bottom: 6px;
  }

  .HomeFormRowInput {
    padding: 0 12px;
    min-height: 40px;
    background-color: transparent;
    border-radius: 10px;
  }

  .HomeFormRowInput::placeholder {
    color: #a3a3a3;
  }

  .HomeFormBtn {
    font-size: 18px;
    padding: 21px 0;
    max-height: 50px;
    margin-top: 24px;
  }
}
