
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #243449;
  --heading: #183153;
  --blue: #2878d0;
  --blue-dark: #1d5fae;
  --blue-light: #eaf3ff;
  --blue-soft: #f4f8fd;
  --paper: #f7f9fc;
  --white: #ffffff;
  --muted: #718096;
  --line: #e3eaf2;
  --green: #21865b;
  --red: #d34d4d;
  --shadow: 0 12px 36px rgba(35, 70, 110, .07);
}

/* RESET DAN DASAR */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 15px 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* HILANGKAN IDENTITAS BRAND DAN FOOTER */
header,
.brand,
.header-note,
.footer,
.intro,
.kicker,
.tag {
  display: none !important;
}

/* AREA HALAMAN */
.shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 22px 64px;
}

.layout {
  display: block;
  width: 100%;
}

.card {
  width: 100%;
  min-width: 0;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.card h2 {
  margin: 0 0 10px;
  color: var(--heading);
  font: 700 25px 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -.6px;
  line-height: 1.35;
}

.sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* LABEL DAN INPUT */
label {
  display: block;
  margin: 19px 0 8px;
  color: #354a63;
  font: 700 12px 'Plus Jakarta Sans', sans-serif;
  line-height: 1.5;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 12px 15px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: 14px 'DM Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}

textarea {
  min-height: 100px;
  padding: 13px 15px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a0adbc;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 120, 208, .11);
}

input[readonly] {
  background: #f5f8fc;
  color: #65758a;
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* PIN DAN INPUT ANGKA */
input[type="password"],
input[inputmode="numeric"] {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .32em;
  font-variant-numeric: tabular-nums;
}

input[type="password"]::placeholder,
input[inputmode="numeric"]::placeholder {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .03em;
}

/* IKON MATA PIN */
.password-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.password-wrap input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7c8da3;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--blue);
  background: var(--blue-light);
}

/* TOMBOL */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  max-width: 100%;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 700 13px 'Plus Jakarta Sans', sans-serif;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 5px 14px rgba(40, 120, 208, .16);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.full {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

.btn.light {
  border-color: #dce8f6;
  background: var(--blue-light);
  color: #2766a9;
}

.btn.light:hover {
  background: #dcecff;
}

.btn.gold {
  background: #3985c9;
  color: #fff;
}

.btn.danger {
  background: #d34d4d;
  color: #fff;
}

.btn.danger:hover {
  background: #b83b3b;
}

button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

/* PESAN STATUS */
.notice {
  margin: 17px 0;
  padding: 13px 15px;
  border: 1px solid #f0d9a9;
  border-radius: 10px;
  background: #fff8e9;
  color: #8b672b;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.notice.success {
  border-color: #ccebdc;
  background: #edfaf3;
  color: #24734e;
}

.notice.error {
  border-color: #f1d0d0;
  background: #fff1f1;
  color: #b53e3e;
}

/* PETUNJUK */
.hint {
  margin: 8px 0 0;
  color: #8190a2;
  font-size: 11px;
  line-height: 1.75;
}

.small-link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.small-link:hover {
  text-decoration: underline;
}

/* HASIL PENCARIAN */
.results {
  width: 100%;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.result {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.result:hover {
  background: var(--blue-soft);
}

.result:last-child {
  border-bottom: 0;
}

.result small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

/* PEMBAGIAN BAGIAN */
.divider {
  height: 1px;
  margin: 25px 0;
  background: var(--line);
}

.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.inline > * {
  flex: 1 1 0;
  min-width: 0;
}

.hidden {
  display: none !important;
}

.center {
  text-align: center;
}

/* PROGRESS */
.steps {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 22px 0;
}

.step {
  height: 4px;
  flex: 1;
  border-radius: 5px;
  background: #e7edf4;
}

.step.active {
  background: var(--blue);
}

/* BERHASIL */
.success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f0;
  color: var(--green);
  font-size: 25px;
}

.review-name {
  margin: 14px 0;
  color: var(--heading);
  font: 700 28px 'Plus Jakarta Sans', sans-serif;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.review-cta {
  margin: 25px 0 8px;
}

/* PETUNJUK PLACE ID */
.place-help {
  margin: 18px 0 20px;
  padding: 18px;
  border: 1px solid #dce9f8;
  border-radius: 12px;
  background: #f4f8fd;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.8;
}

.place-help strong {
  display: block;
  margin-bottom: 9px;
  color: var(--heading);
  font: 700 13px 'Plus Jakarta Sans', sans-serif;
}

.place-help ol {
  margin: 8px 0 14px;
  padding-left: 20px;
}

.place-help li {
  padding: 3px 0;
  color: #64758a;
}

.place-help .btn {
  margin-top: 5px;
}

/* HALAMAN REVIEW */
.review-arrow {
  display: flex;
  justify-content: center;
  margin: 20px auto 8px;
  color: var(--blue);
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.review-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font: 700 14px 'Plus Jakarta Sans', sans-serif;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background .2s, transform .2s;
}

.review-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* TABLET */
@media (max-width: 800px) {
  .shell {
    max-width: 560px;
    padding: 32px 20px 56px;
  }

  .card {
    padding: 30px 26px;
    border-radius: 16px;
  }

  .card h2 {
    font-size: 23px;
  }
}

/* MOBILE ANDROID / IPHONE */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .shell {
    max-width: 100%;
    padding: 20px 15px 40px;
  }

  .card {
    padding: 25px 19px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(35, 70, 110, .06);
  }

  .card h2 {
    font-size: 21px;
    letter-spacing: -.4px;
  }

  .sub {
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.75;
  }

  label {
    margin-top: 17px;
    font-size: 12px;
  }

  input,
  select,
  textarea {
    min-height: 50px;
    padding: 12px 13px;
    font-size: 16px;
  }

  /* Mencegah auto-zoom input di Safari iPhone */
  input[type="password"],
  input[inputmode="numeric"] {
    font-size: 18px;
  }

  .password-wrap input {
    padding-right: 50px;
  }

  .btn {
    min-height: 49px;
    padding: 0 15px;
    font-size: 12px;
  }

  .btn.full {
    width: 100%;
  }

  .inline {
    gap: 9px;
  }

  .notice {
    padding: 12px 13px;
    font-size: 12px;
  }

  .place-help {
    padding: 15px;
    font-size: 12px;
  }

  .review-name {
    font-size: 24px;
  }

  .review-button {
    min-height: 54px;
    font-size: 13px;
  }

  .divider {
    margin: 22px 0;
  }
}

/* HP KECIL */
@media (max-width: 380px) {
  .shell {
    padding: 14px 11px 32px;
  }

  .card {
    padding: 22px 16px;
    border-radius: 13px;
  }

  .card h2 {
    font-size: 20px;
  }

  .inline {
    flex-direction: column;
  }

  .inline > * {
    width: 100%;
    flex: auto;
  }

  .review-name {
    font-size: 22px;
  }

  .btn {
    width: 100%;
  }
}

/* LAYAR DESKTOP BESAR */
@media (min-width: 1100px) {
  .shell {
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

/* AKSESIBILITAS: KURANGI ANIMASI */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
