body {
  margin: 0;
font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0a0a23, #1a1a3c);
  color: #ffffff;

  height: 100dvh; /* Pakai viewport dynamic */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.container {
  background-color: #111;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}


h1 {
  text-align: center;
  margin: 0 0 10px 0;
  
  color: transparent;
  background: linear-gradient(270deg, rgb(0, 0, 69), white, rgb(0, 0, 69), white, rgb(0, 0, 69));
  background-size: 1000% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

animation: moveGradient 15s ease-in-out infinite alternate;
}

@keyframes moveGradient {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



.desc {
  margin: 10px 10px 20px;
  text-align: center;
  font-size: 0.9em;
  color: #ffffff;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  font-family: 'Poppins', sans-serif;  background-color: #222;
  border: 1px solid #444;
  color: #fff;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  resize: none;
}


button {
  padding: 10px;
  background-color: #140f45;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

#cooldownMsg {
  margin-top: 10px;
  font-size: 0.85em;
  color: #f87171;
  text-align: center;
}

.autocomplete-wrapper {
  position: relative;
  font-family: 'Poppins', sans-serif;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #222;
  border: 1px solid #ccc;
  z-index: 999;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  font-family: 'Poppins', sans-serif;}

.suggestions div {
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;         /* Sudut membulat */
  margin: 4px;                /* Jarak antar item */
  transition: background 0.2s ease, color 0.2s ease; /* Animasi halus */
}


.suggestions div:hover {
  background-color: #3da9fc;
  color: #fff;
}


.suggestions.hidden {
  display: none;
}

.suggestions:not(.hidden) {
  display: block;
}

.autocomplete-wrapper input {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  body {
    padding: 0 16px; /* Jarak kanan-kiri biar gak mentok */
  }

  .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* Supaya padding dihitung dalam lebar */
  }
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
font-family: 'Inter', sans-serif;
}

.popup-box {
  background: #0c1b2a;
  color: #fff;
  padding: 20px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  text-align: center;
  width: 100%;
  max-width: 300px;
  margin: 0 16px; /* Biar ada spasi dari pinggir layar HP */
  animation: fadeIn 0.3s ease-in-out;
}


.popup-box p {
  margin-bottom: 20px;
  font-size: 15px;
}

.popup-box button {
  background: #1f3c5a;
  border: none;
  padding: 8px 16px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.popup-box button:hover {
  background: #2e5479;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 400px) {
  .popup-box {
    margin: 0 20px;
    padding: 24px;
  }
}
