/* 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%);
}

.homeFormTop {
  display: flex;
  justify-content: space-between;
}

.homeFormTopTitle {
  font-size: 48px;
  margin: 0 0 20px;
  color: #000;
  font-weight: 700;
  font-family: Bebas Neue, sans-serif;
  text-transform: uppercase;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.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: 48px;
}

.HomeFormRowLabel {
  display: block;
  margin-bottom: 6px;
  color: #000;
}
.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 #c9c9c9;
  min-height: 48px;
  background-color: #f3f7f8;
  border-radius: 6px;
  font-weight: 400;
  outline: 0;
  height: 50px;
  transition: border-color 0.2s;
}

.HomeFormRowInput:focus {
  border-color: #241ebf;
}

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

.HomeFormBtn {
  height: 70px;
  width: 100%;
  cursor: pointer;
  border-radius: 50px;
  background: linear-gradient(90deg, #deb67d 0%, #f7deb1 50%, #deb67d 100%);
  transition: 0.3s;
  font-size: 28px;
  color: #332C21;
  text-transform: uppercase;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-input-container {
  display: flex;
  align-items: center;
}

.country-selector {
  position: relative;
  margin-right: 10px;
}

.selected-country {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background-color: #f3f7f8;
  cursor: pointer;
  min-height: 50px;
  font-family: sans-serif !important;
  font-weight: 400 !important;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background-color: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 40;
  max-height: 200px;
  overflow-y: auto;
  font-family: sans-serif !important;
  font-weight: 400 !important;
}

.country-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  font-family: sans-serif;
  font-weight: 400 !important;
}

.country-option:hover {
  background-color: #f3f7f8;
}

.country-option.selected {
  background-color: #e6f0fa;
}

/* 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;
  }

  .homeFormTopTitle {
    text-align: center;
    max-width: 368px;
    margin-left: auto;
    margin-right: auto;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
  }

  .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: 700;
    padding-top: 21px;
    padding-bottom: 21px;
    max-height: 50px;
    margin-top: 24px;
    border-radius: 5px;
  }
}

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

  .homeFormTopTitle {
    text-align: center;
    max-width: 335px;
    margin: 0 auto 5px;
  }

  .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: 20px;
    padding: 21px 0;
    max-height: 50px;
    margin-top: 24px;
  }
}
