* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: #313131;
  background-color: #e7e7e7;
  box-sizing: border-box; /* Include padding and borders in the element's total width and height */
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  backdrop-filter: blur(10rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease; /* Add transition for opacity */
  z-index: 999;
}

/* Hide the preloader by setting opacity to 0 */
.preloader.hidden {
  opacity: 0;
  pointer-events: none; /* Prevent interaction while hidden */
}

.loading-text {
  text-align: center;
  font-weight: bold;
  margin: 1rem;
}

.loader {
  border: 8px solid #9ecdff;
  border-top: 8px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.container {
  margin: 0.25rem;
  max-width: 38rem;
  width: 100%;
  padding: 0 1.25rem 3rem 1.25rem;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  transition: opacity 0.25s; /* Apply a transition effect to the opacity property */
}

h2 {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
}

.hidden-label p:nth-child(5) {
  display: none;
  height: 0;
  width: 0;
}

form p {
  display: flex;
  flex-direction: column;
}

form textarea {
  resize: none;
  min-height: 10rem;
  overflow-y: hidden;
  font-family: "DM Sans", sans-serif;
}

form p input, textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  box-sizing: border-box;
  outline: none;
  border: 1px solid #c0e7ff;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease-in-out;
}

form p input:focus {
  border-color: #007bff; /* Change border color when focused */
  outline: none; /* Remove default focus outline */
}

form p textarea:focus {
  border-color: #007bff; /* Change border color when focused */
  outline: none; /* Remove default focus outline */
}

button {
  cursor: pointer;
  padding: 0.5rem;
  background-color: #3a60fb;
  margin-top: 1rem;
  color: #d3d3d3;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out;
}

button:hover {
  background-color: #5073ff; /* Change color on hover */
  scale: 1.02;
}

button:active {
  background-color: #234fff; /* Change color when clicked */
  scale: 0.97;
}

/* Tambahkan gaya CSS untuk modal di sini */
/* Tambahkan gaya CSS untuk modal di sini */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  align-items: center;
  position: fixed;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  transition: all 0.3s ease-in-out;
}

.modal-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 1rem;
  max-width: 36rem; /* Atur lebar maksimal modal sesuai kebutuhan */
}

.modal-content p {
  font-size: 0.9rem;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
