  /* DASAR */
  * {
    box-sizing: border-box;
  }

  [hidden] {
    display: none !important;
  }

  body {
    margin: 0;
    padding: 24px 16px;
    background: #f4f6f9;
    color: #243247;
    font-family: "Segoe UI", Arial, sans-serif;
  }

  /* KOTAK UTAMA */
  .container {
    max-width: 460px;
    margin: 20px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  }

  h1 {
    margin: 0 0 18px;
    color: #1a73e8;
    font-size: 24px;
    text-align: center;
  }

  .badge {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #e8f0fe;
    color: #1a73e8;
    text-align: center;
    overflow-wrap: anywhere;
  }

  /* INPUT PENCARIAN */
  label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
  }

  input {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    background: #ffffff;
    color: #243247;
    font: inherit;
    font-size: 16px;
  }

  input:focus {
    outline: 3px solid #e1edff;
    border-color: #1a73e8;
  }

  input:disabled {
    background: #f1f3f5;
  }

  /* DAFTAR PILIHAN DI BAWAH INPUT */
  .suggestions {
    margin-top: 6px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
  }

  .place-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    border-radius: 0;
    background: #ffffff;
    color: #243247;
    text-align: left;
    cursor: pointer;
    font: inherit;
  }

  .place-option:last-child {
    border-bottom: 0;
  }

  .place-option:hover,
  .place-option:focus-visible {
    background: #edf4ff;
  }

  .place-option:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: -2px;
  }

  .place-option strong {
    display: block;
    font-size: 14px;
  }

  .place-option span {
    display: block;
    margin-top: 5px;
    color: #687385;
    font-size: 12px;
    line-height: 1.5;
  }

  /* TEMPAT YANG DIPILIH */
  .selection {
    margin-top: 16px;
    padding: 14px;
    background: #eef7f0;
    border: 1px solid #d4e8d9;
    border-radius: 10px;
    overflow-wrap: anywhere;
  }

  .selection p {
    margin: 6px 0 10px;
    font-size: 13px;
  }

  a {
    color: #185abc;
  }

  .selection a {
    font-size: 13px;
  }

  /* TOMBOL AKTIVASI / REVIEW */
  #activateButton,
  .button {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    border: 0;
    border-radius: 8px;
    background: #1a73e8;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }

  #activateButton:disabled {
    background: #8bb5ef;
    cursor: not-allowed;
  }

  #activateButton:focus-visible,
  .button:focus-visible {
    outline: 3px solid #abcdfb;
    outline-offset: 3px;
  }

  /* PESAN DAN ATRIBUSI */
  p {
    line-height: 1.6;
  }

  #message {
    min-height: 24px;
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: 14px;
  }

  .note {
    color: #687385;
    font-size: 12px;
  }

  .footer-note {
    margin-top: 20px;
  }

  .google-credit {
    margin: 8px 0;
    color: #5f6368;
    font-size: 13px;
    text-align: right;
  }

  #providerCredits {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  @media (max-width: 380px) {
    .container {
      padding: 20px;
    }
  }
  /* INPUT DAN LOADING DI POSISI ICON X */
.input-shell {
  position: relative;
}

.input-shell input {
  padding-right: 44px;
}

/* Sembunyikan X bawaan browser hanya saat loading. */
input.is-searching::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.search-spinner {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid #d9e7fc;
  border-top-color: #1a73e8;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px #ffffff;
  pointer-events: none;
  animation: search-spin 0.7s linear infinite;
}

@keyframes search-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Keterangan loading untuk pembaca layar. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tidak menyisakan ruang pesan ketika sedang loading. */
#message:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .search-spinner {
    animation-duration: 1.5s;
  }
}

  /* Bubble biru sekarang digunakan untuk judul pendaftaran. */
  #heading.registration-heading {
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 10px;
    padding: 16px 12px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 24px;
    line-height: 1.35;
  }

  .review-stars {
    text-align: center;
    font-size: 30px;
    letter-spacing: 4px;
    margin: 12px 0 24px;
  }

  /* Pop-up konfirmasi aktivasi. */
  .activation-dialog {
    box-sizing: border-box;
    width: min(380px, calc(100% - 40px));
    padding: 28px;
    border: none;
    border-radius: 20px;
    background: #fff;
    color: #1f2937;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  }

  .activation-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
  }

  .activation-dialog .success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e6f4ea;
    color: #188038;
    font-size: 36px;
    font-weight: bold;
  }

  .activation-dialog h2 {
    margin: 0 0 12px;
    font-size: 23px;
  }

  .activation-dialog p {
    margin: 0 0 24px;
    line-height: 1.6;
  }

  #activationOkay {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #1a73e8;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  #activationOkay:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
  }

  [hidden] {
    display: none !important;
  }