.select-package {
  padding: 1em 0;
}

.project-select-popup {
  display: none;
  z-index: 99999;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
}

.project-select-close {
  position: absolute;
  top: 0.5em;
  left: 0.5em;
  width: 2em;
  height: 2em;
  background: none;
  border: solid 1px #ffffff;
  border-radius: 2em;
  color: #ffffff;
}

.project-select-popup ul,
.project-select-popup li {
  padding: 0;
  list-style: none;
}

.project-select-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  grid-template-rows: masonry;
  width: 100%;
  margin-top: 3em;
  margin-bottom: 0;
  max-height: calc(100vh - 3em);
  overflow: auto;
}

@media (max-width: 768px) {
  .project-select-list {
    grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  }
}

.project-select-popup li {
  padding: 0.5em;
}

.project-select-popup li img {
  width: 100%;
  height: auto;
  border-radius: 1em;
  cursor: pointer;
}

.project-select-popup li p {
  margin: 0;
  padding: 0 0.3em;
}

.extra-selection {
  list-style: none;
  padding: 0;
}

.extra-selection li {
  padding: 0;
}

.package-form input[type="number"],
.package-form input[type="text"],
.package-form input[type="date"],
.package-form input[type="time"],
.package-form select {
  width: 49%;
  height: 2.5em;
  max-height: 100%;
  padding: 0 0.5em;
  border: solid 1px #888888;
  border-radius: 0.5em;
}

.package-form {
  display: none;
  position: relative;
  margin: auto;
  max-width: 600px;
  background: #cccccc;
  border-radius: 1em;
}

.package-form.expanded {
  display: block;
}

.package-form button {
  height: 2.5em;
  min-width: 50%;
  max-height: 100%;
  padding: 0 1em;
  border: solid 2px rgba(0, 0, 0, 0.42);
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.6);
}

.project-type-selection {
  display: none;
}

.package-form .img-container {
  width: 50%;
}

@media (max-width: 768px) {
  .package-form {
    width: 90%;
  }

  .package-form input[type="number"],
  .package-form input[type="text"],
  .package-form input[type="date"],
  .package-form input[type="time"],
  .package-form select {
    width: 100%;
  }
}

.package-select-btn {
  position: relative;
  min-width: 50%;
  max-height: 100%;
  padding: 0 1em;
  border: solid 2px rgba(0, 0, 0, 0.42);
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.package-select-btn h5 {
  margin: 0;
}

.package-select-btn input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
