:root {
  --page-bg: #f5f7fb;
  --card-bg: rgba(255, 255, 255, 0.76);
  --surface-bg: rgba(255, 255, 255, 0.64);
  --border: rgba(114, 134, 156, 0.22);
  --text: #1f2937;
  --muted: #667085;
  --theme: #d9a441;
  --theme-dark: #0067c0;
  --theme-green: #5d9871;
  --theme-red: #c97870;
  --error: #d93025;
  --focus: #0078d4;
  --radius: 8px;
  --shadow: 0 8px 18px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(255, 253, 244, 0.28), rgba(255, 248, 220, 0.28), rgba(238, 248, 248, 0.24)),
    url("/assets/rice-field-real.jpg") center center / cover fixed no-repeat;
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.52;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(90deg, rgba(246, 249, 253, 0.86), rgba(255, 255, 255, 0.2) 28%, rgba(255, 255, 255, 0.16) 72%, rgba(246, 249, 253, 0.84)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.58), transparent 42%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 34px);
}

body::after {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255, 190, 49, 0.22), transparent 34%),
    radial-gradient(ellipse at 84% 18%, rgba(216, 137, 126, 0.12), transparent 32%),
    radial-gradient(ellipse at 52% 86%, rgba(79, 127, 174, 0.13), transparent 35%);
  animation: backgroundDrift 14s ease-in-out infinite alternate;
}

.shell {
  width: min(640px, calc(100vw - 24px));
  margin: 18px auto 44px;
  position: relative;
}

.form {
  width: 100%;
}

.sahabat-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  animation: cardIn 360ms ease both;
  backdrop-filter: blur(22px) saturate(1.25);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.sahabat-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 35%, rgba(255, 255, 255, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(227, 210, 146, 0.1));
  pointer-events: none;
}

.sahabat-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-card,
.question-card,
.section-card,
.success-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 12px 0;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.22);
  animation: cardIn 360ms ease both;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.question-card:hover,
.section-card:hover,
.success-card:hover {
  border-color: rgba(0, 120, 212, 0.22);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.identity-group-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 12px 0;
  padding: 14px 18px;
  border: 1px solid rgba(114, 134, 156, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(235, 247, 255, 0.92) 0%, rgba(239, 249, 236, 0.9) 50%, rgba(255, 244, 197, 0.94) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.16);
  animation: cardIn 360ms ease both;
}

.identity-group-card::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4b52b 0%, #77bd4b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 8px rgba(61, 121, 68, 0.18);
}

.identity-group-card h2 {
  margin: 0;
  color: #183c68;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.business-group-card {
  background:
    linear-gradient(105deg, rgba(239, 249, 236, 0.92) 0%, rgba(245, 250, 255, 0.9) 46%, rgba(255, 232, 204, 0.94) 100%);
}

.business-group-card::before {
  background: linear-gradient(180deg, #6bbd5a 0%, #d9a441 54%, #5b8db8 100%);
}

.intro-card {
  position: relative;
  overflow: hidden;
  border: 0;
  padding-top: 26px;
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  height: 4px;
  background: linear-gradient(90deg, #0078d4, #76b9ed, #d9a441, #5d9871);
}

.intro-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 96px;
  background: linear-gradient(105deg, rgba(0, 120, 212, 0.08), rgba(217, 164, 65, 0.12), rgba(93, 152, 113, 0.07));
  mask-image: linear-gradient(#000, transparent);
  pointer-events: none;
}

.top-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.top-logo img {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(16, 59, 99, 0.14));
}

.form-tools-row {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 12px auto;
}

.cashier-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 103, 192, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #004a8f;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.cashier-shortcut:hover,
.cashier-shortcut:focus-visible {
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.16), 0 12px 22px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.form-date-badge {
  position: relative;
  z-index: 60;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  margin: 0;
  padding: clamp(10px, 2.5vw, 12px) clamp(18px, 4vw, 24px);
  border: 1px solid #003c74;
  border-top-color: #8ac6ff;
  border-left-color: #8ac6ff;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef7ff 36%, #bcdcff 37%, #6aa8f6 100%);
  color: #002f75;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    5px 6px 0 rgba(12, 37, 78, 0.22),
    0 16px 26px rgba(15, 23, 42, 0.18),
    inset 2px 2px 0 rgba(255, 255, 255, 0.96),
    inset -2px -2px 0 rgba(0, 58, 138, 0.24);
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 0 rgba(255, 255, 255, 0.64);
  transition:
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.form-date-badge:hover {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 34%, #d2e8ff 35%, #79b7ff 100%);
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.2),
    0 18px 28px rgba(15, 23, 42, 0.2),
    0 0 0 3px rgba(255, 211, 90, 0.36),
    inset 2px 2px 0 rgba(255, 255, 255, 0.98),
    inset -2px -2px 0 rgba(0, 58, 138, 0.22);
  transform: translate(-1px, -1px);
}

@media (max-width: 560px) {
  .form-tools-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cashier-shortcut,
  .form-date-badge {
    margin-right: 0;
    margin-bottom: 10px;
    width: 100%;
  }
}

.brand-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
}

.brand-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  min-width: 136px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1;
  padding: 0 17px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.11);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.product-mark {
  color: #ffffff;
}

.product-mark b,
.product-mark em {
  font-style: normal;
}

.product-mark:hover {
  filter: saturate(1.12) brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(9, 106, 173, 0.2);
}

.sphp-mark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 48%),
    linear-gradient(135deg, #d7a83d 0%, #a9b768 45%, #5d9871 100%);
}

.minyak-mark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 46%),
    linear-gradient(135deg, #c97870 0 46%, #5b8db8 47% 100%);
}

h1 {
  margin: 0 0 18px;
  font-family: "Baskerville Old Face", Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  color: #294963;
}

.form-title {
  display: grid;
  grid-template-columns: max-content auto;
  align-items: center;
  justify-content: start;
  column-gap: 6px;
  margin: 0 0 22px;
}

.form-title span {
  color: #6a7890;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.7px;
  line-height: 1.2;
  text-transform: uppercase;
}

.form-title strong {
  width: fit-content;
  background: linear-gradient(120deg, #22334a 0%, #0078d4 42%, #8b661d 70%, #ecd68c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #294963;
  font-family: "Baskerville Old Face", Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
  text-shadow: 0 7px 18px rgba(69, 82, 90, 0.12);
}

@supports (-webkit-text-fill-color: transparent) {
  .form-title strong {
    -webkit-text-fill-color: transparent;
  }
}

.form-title img {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: block;
  width: 80px;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(74, 82, 50, 0.22));
  transform: translateX(-4px) rotate(3deg);
}

h2 {
  margin: 0;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  color: #294963;
}

p {
  margin: 0 0 12px;
}

.intro-card > p:not(.required-note) {
  text-align: justify;
  text-align-last: left;
}

.local-note {
  display: grid;
  gap: 4px;
  color: #4d6477;
  border-top: 1px solid rgba(20, 121, 189, 0.14);
  margin-top: 18px;
  padding-top: 12px;
}

.local-note span:first-child {
  color: var(--text);
  font-weight: 500;
}

.welcome-note {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 18px;
  padding: 12px 18px;
  text-align: center;
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(235, 247, 255, 0.92) 0%, rgba(239, 249, 236, 0.9) 50%, rgba(255, 244, 197, 0.94) 100%);
}

.welcome-note strong {
  color: #063f86;
  font-family: "Segoe UI Variable Display", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.88);
}

.qr-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(114, 134, 156, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.2);
}

.qr-poster-panel {
  grid-template-columns: 1fr;
  padding: 18px;
}

.qr-copy {
  display: grid;
  gap: 6px;
}

.qr-copy span {
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(135deg, #0078d4, #5d9871);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 5px 10px;
  text-transform: uppercase;
}

.qr-copy strong {
  color: #23364b;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.qr-copy a {
  color: #0067c0;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.qr-copy a:hover {
  text-decoration: underline;
}

.qr-copy p {
  color: #40596e;
  font-size: 13px;
  margin: 2px 0 0;
  text-align: justify;
  text-align-last: left;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: 132px;
  min-width: 132px;
  height: 132px;
  border: 7px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.qr-frame:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-poster-frame {
  width: min(100%, 440px);
  height: auto;
  min-width: 0;
  justify-self: center;
  border: 8px solid #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.qr-poster-frame img {
  height: auto;
  aspect-ratio: 1;
}

.required-note,
.question-title span {
  color: var(--error);
}

.required-note {
  margin: 18px 0 0;
  font-size: 13px;
}

.question-title {
  display: block;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.description {
  margin: -8px 0 16px;
  color: #40596e;
  font-size: 13px;
}

.upload-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
select {
  width: min(320px, 100%);
  min-height: 44px;
  border: 0;
  border: 1px solid rgba(114, 134, 156, 0.24);
  border-bottom: 2px solid rgba(114, 134, 156, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  font: inherit;
  outline: 0;
  padding: 8px 12px;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

select {
  appearance: auto;
  cursor: pointer;
}

input::placeholder {
  color: #70757a;
}

input:focus,
select:focus {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 120, 212, 0.55);
  border-bottom-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.12);
}

input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border: 1px solid rgba(114, 134, 156, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #0067c0;
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.file-button:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(0, 120, 212, 0.16);
  transform: translateY(-1px);
}

.upload-mark {
  color: var(--theme-dark);
  font-size: 17px;
  line-height: 1;
}

.file-name {
  color: var(--muted);
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.example-image {
  display: block;
  width: 100%;
  max-width: 590px;
  height: auto;
  margin: 12px 0 8px;
  border: 1px solid rgba(20, 121, 189, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  cursor: pointer;
  width: fit-content;
}

.radio-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #7d8da1;
  border-radius: 50%;
  background: #ffffff;
}

.radio-row span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.radio-row input:checked + span {
  border-color: #0078d4;
}

.radio-row input:checked + span::after {
  background: #0078d4;
}

.radio-row input:focus + span {
  box-shadow: 0 0 0 4px rgba(20, 121, 189, 0.16);
}

.error {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--error);
  font-size: 12px;
}

.question-card.has-error {
  border-color: #f4b7b1;
}

.question-card.has-error input[type="text"],
.question-card.has-error input[type="tel"],
.question-card.has-error input[type="email"],
.question-card.has-error input[type="password"],
.question-card.has-error select {
  border-bottom-color: var(--error);
}

.page {
  display: none;
}

.page.is-active {
  display: block;
  animation: pageLift 260ms ease both;
}

.form-footer {
  color: var(--text);
  margin: 12px 0 0;
  padding: 0 2px;
}

.button-row {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 10px;
}

button {
  font: inherit;
}

.primary-button,
.secondary-button {
  min-width: 80px;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(114, 134, 156, 0.26);
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  background: linear-gradient(180deg, #0078d4, #0067c0);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 103, 192, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.72);
  color: #0067c0;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.danger-button {
  min-width: 80px;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(148, 38, 38, 0.38);
  background: linear-gradient(180deg, #fff3ef, #ffd2c7);
  color: #9b1c1c;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 16px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.danger-button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.link-button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #0067c0;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

.progress-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text);
  min-width: 230px;
}

.progress-track {
  width: 185px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(114, 134, 156, 0.22);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.16);
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0078d4, #76b9ed, #5d9871);
  transition: width 160ms ease;
  animation: progressGlow 1800ms ease-in-out infinite;
}

.password-note,
.fine-print {
  color: #3c4043;
  font-size: 12px;
  margin: 14px 0 0;
}

.fine-print {
  text-align: center;
}

.brand {
  color: rgba(41, 73, 99, 0.72);
  font-size: 24px;
  font-weight: 800;
  margin: 18px 0 0;
  text-align: center;
}

.brand img {
  display: inline-block;
  width: min(170px, 58vw);
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.42))
    drop-shadow(1px 2px 0 rgba(0, 20, 82, 0.32));
  vertical-align: middle;
}

.branch-name {
  color: #ffffff;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 8px 0 0;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0, 32, 111, 0.86), 0 0 8px rgba(255, 255, 255, 0.18);
}

.admin-output-link {
  margin: 8px 0 0;
  text-align: center;
}

.admin-output-link a,
.admin-footer-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.admin-summary {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
}

.admin-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-summary strong {
  color: var(--theme-dark);
  font-size: 34px;
  line-height: 1;
}

.admin-summary small {
  color: var(--muted);
}

.admin-auth-panel,
.admin-password-box,
.admin-reset-request {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 25, 65, 0.44);
}

.admin-modal-card {
  width: min(520px, 100%);
  box-shadow: 0 18px 44px rgba(0, 25, 65, 0.28);
}

.admin-auth-form {
  display: grid;
  gap: 10px;
}

.admin-auth-form input[type="password"],
.admin-auth-form input[type="email"] {
  width: min(360px, 100%);
}

#changePasswordForm .secondary-button {
  justify-self: start;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

.admin-auth-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-password-dropdown {
  gap: 12px;
}

.admin-password-dropdown summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 38px;
  color: #003399;
  cursor: pointer;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  list-style: none;
  text-shadow: 1px 1px 0 #ffffff;
}

.admin-password-dropdown summary::-webkit-details-marker {
  display: none;
}

.admin-password-dropdown summary::after {
  content: "Buka";
  min-width: 58px;
  width: fit-content;
  border: 1px solid rgba(70, 110, 182, 0.46);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: #003399;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
  text-align: center;
  text-shadow: none;
}

.admin-password-dropdown[open] summary {
  margin-bottom: 6px;
}

.admin-password-dropdown[open] summary::after {
  content: "Tutup";
}

.admin-message {
  margin-top: 0;
}

.admin-message.is-success {
  color: var(--theme-green);
}

.admin-export-box {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.admin-download {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  width: fit-content;
}

.admin-download.is-disabled {
  opacity: 0.58;
  pointer-events: auto;
  cursor: not-allowed;
}

.admin-export-date {
  display: grid;
  gap: 8px;
  position: relative;
  width: min(430px, 100%);
}

.admin-export-date[hidden] {
  display: none;
}

#exportScope {
  width: min(360px, 100%);
}

.admin-export-date-filter {
  width: min(430px, 100%);
  grid-template-columns: 1fr;
}

.admin-export-date #exportDate {
  display: none;
}

.admin-export-calendar.is-dropdown {
  width: min(430px, calc(100vw - 44px));
}

.admin-export-message {
  margin-top: 0;
  text-align: left;
}

.admin-export-message.is-success {
  color: #1f7a16;
  text-shadow: none;
}

.admin-format-notes {
  border-top: 1px solid rgba(114, 134, 156, 0.24);
  margin-top: 16px;
  padding-top: 14px;
}

.admin-format-notes p {
  margin-bottom: 8px;
}

.admin-shell {
  width: min(1400px, calc(100vw - 24px));
}

.admin-card {
  width: min(100%, 1400px);
}

.admin-data-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.admin-data-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-data-heading h2 {
  margin: 0 0 4px;
  color: #003399;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  font-size: 20px;
}

.admin-data-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-data-actions {
  display: grid;
  gap: 8px;
  min-width: 140px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
}

.admin-date-field {
  position: relative;
}

.admin-date-filter {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 8px;
}

#adminSearch {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(70, 110, 182, 0.5);
  border-radius: 6px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
}

#adminDateFilter {
  min-height: 44px;
  border: 1px solid rgba(70, 110, 182, 0.5);
  border-radius: 6px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
}

#adminDateFilter[type="hidden"] {
  display: none;
}

.admin-date-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(0, 83, 171, 0.62);
  border-radius: 10px;
  padding: 9px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.94));
  color: #092c57;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 0 rgba(0, 61, 135, 0.13);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.admin-date-picker-button:hover,
.admin-date-picker-button:focus-visible,
.admin-date-picker-button[aria-expanded="true"] {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.88);
  background:
    linear-gradient(180deg, #ffffff, #e5f3ff);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    3px 3px 0 rgba(0, 72, 160, 0.13),
    0 8px 16px rgba(14, 55, 105, 0.14);
}

.admin-date-picker-button.has-data-date {
  color: #06412a;
  border-color: rgba(23, 133, 88, 0.62);
  background:
    linear-gradient(180deg, rgba(247, 255, 250, 0.98), rgba(223, 249, 235, 0.95));
}

.admin-date-picker-button.is-empty-date {
  color: #5f6673;
  border-color: rgba(128, 144, 166, 0.5);
}

.admin-date-picker-icon {
  flex: 0 0 auto;
  color: #0057b8;
  font-size: 12px;
  line-height: 1;
}

.admin-data-calendar {
  width: min(430px, 100%);
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 102, 204, 0.48);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(245, 251, 255, 0.95), rgba(255, 250, 224, 0.92));
  box-shadow:
    4px 4px 0 rgba(0, 48, 125, 0.18),
    0 12px 22px rgba(10, 32, 70, 0.14),
    inset 1px 1px 0 rgba(255, 255, 255, 0.95);
}

.admin-data-calendar[hidden] {
  display: none;
}

.admin-data-calendar.is-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 44px));
  margin-top: 0;
  padding: 10px;
}

.admin-calendar-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 6px;
}

.admin-calendar-head strong {
  display: grid;
  min-height: 32px;
  place-items: center;
  color: #003582;
  font-size: 15px;
  font-weight: 900;
}

.admin-calendar-nav {
  min-width: 36px;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 18px;
  line-height: 1;
}

.admin-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 10px 0;
  color: #143b6d;
  font-size: 12px;
  font-weight: 800;
}

.admin-calendar-legend[hidden] {
  display: none;
}

.admin-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 55, 135, 0.25);
}

.legend-dot.has-data {
  background: linear-gradient(135deg, #dbf8e9, #6fd19b);
}

.legend-dot.no-data {
  background: linear-gradient(135deg, #f4f6f8, #c8d0da);
}

.legend-dot.selected-date {
  background: linear-gradient(135deg, #0b63ce, #f6cf68);
}

.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(30px, 1fr));
  gap: 5px;
}

.admin-calendar-weekday {
  display: grid;
  min-height: 24px;
  place-items: center;
  color: #174984;
  font-size: 11px;
  font-weight: 900;
}

.admin-calendar-blank {
  min-height: 34px;
}

.admin-calendar-day {
  position: relative;
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(88, 126, 178, 0.36);
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.admin-calendar-day small {
  position: absolute;
  top: 3px;
  right: 4px;
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #075e33;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(9, 44, 83, 0.18);
}

.admin-calendar-day.has-data {
  border-color: rgba(23, 133, 88, 0.62);
  background:
    linear-gradient(135deg, rgba(230, 255, 240, 0.98), rgba(112, 212, 151, 0.86));
  color: #063f25;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 0 rgba(33, 118, 76, 0.18);
}

.admin-calendar-day.is-empty {
  border-color: rgba(128, 144, 166, 0.42);
  background:
    linear-gradient(135deg, rgba(250, 252, 255, 0.95), rgba(225, 231, 238, 0.85));
  color: #6d7887;
}

.admin-calendar-day:hover,
.admin-calendar-day:focus-visible {
  transform: translate(-1px, -1px);
  outline: none;
  box-shadow:
    3px 3px 0 rgba(0, 72, 160, 0.18),
    0 8px 16px rgba(14, 55, 105, 0.18);
}

.admin-calendar-day.is-selected.has-data {
  border-color: #f4c64f;
  background:
    linear-gradient(135deg, #0b63ce, #0f88de);
  color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(246, 207, 104, 0.58),
    4px 4px 0 rgba(0, 48, 125, 0.25),
    0 12px 18px rgba(6, 50, 110, 0.25);
}

.admin-calendar-day.is-selected.has-data small {
  color: #083d72;
}

.admin-calendar-day.is-selected.is-empty {
  border-color: #f59e0b;
  background:
    linear-gradient(135deg, #fff8e6, #ffd994);
  color: #7a3b00;
  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.28),
    4px 4px 0 rgba(150, 82, 0, 0.18),
    0 10px 16px rgba(96, 49, 0, 0.14);
}

.admin-table-wrap {
  width: 100%;
  max-height: 560px;
  overflow: auto;
  border: 1px solid rgba(70, 110, 182, 0.42);
  background: rgba(255, 255, 255, 0.86);
}

.admin-data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #102a4c;
  font-size: 13px;
}

.admin-data-table th,
.admin-data-table td {
  max-width: 280px;
  padding: 10px 12px;
  border-right: 1px solid rgba(70, 110, 182, 0.18);
  border-bottom: 1px solid rgba(70, 110, 182, 0.18);
  text-align: left;
  vertical-align: top;
}

.admin-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #eef7ff, #dcecff);
  color: #08316b;
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-data-table tbody tr:nth-child(even) {
  background: rgba(239, 246, 255, 0.5);
}

.admin-data-table tbody tr.is-dirty {
  background: rgba(255, 236, 165, 0.52);
}

.admin-select-cell,
.admin-delete-cell {
  min-width: 72px;
  max-width: 90px;
  text-align: center;
  vertical-align: middle;
}

.admin-row-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #0b55c8;
  cursor: pointer;
}

.admin-row-delete {
  min-width: 64px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-file-cell {
  min-width: 210px;
  color: #415a77;
}

.admin-file-preview-link {
  border: 0;
  background: transparent;
  color: #003399;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.admin-file-preview-link:hover {
  color: #0b55c8;
}

.admin-file-preview-card {
  width: min(860px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border: 2px solid #466eb6;
  border-top-color: #78b9ff;
  border-left-color: #78b9ff;
  background: #fffbe5;
}

.admin-file-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-file-preview-head h2 {
  margin: 0;
  color: #002777;
  font-size: 19px;
  overflow-wrap: anywhere;
  line-height: 1.2;
  max-height: 48px;
  overflow: hidden;
}

.admin-file-preview-body {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(70, 110, 182, 0.38);
  background: #ffffff;
}

.admin-file-preview-body.is-image {
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.95));
}

.admin-file-preview-body.is-pdf {
  padding: 0;
}

.admin-file-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.admin-file-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 8px 24px rgba(0, 25, 65, 0.14);
}

.admin-check-select,
.admin-status-select,
.admin-note-input {
  width: 100%;
  min-width: 150px;
  border: 1px solid rgba(70, 110, 182, 0.52);
  border-radius: 5px;
  background: #ffffff;
  color: #102a4c;
  font: inherit;
}

.admin-check-select {
  min-height: 34px;
  min-width: 120px;
  padding: 5px 8px;
  font-weight: 800;
}

.admin-status-select {
  min-height: 34px;
  padding: 5px 8px;
  font-weight: 800;
}

.admin-status-cell {
  text-align: center;
  vertical-align: middle;
}

.admin-check-cell {
  text-align: center;
  vertical-align: middle;
}

.admin-check-cell .admin-check-select {
  display: block;
  margin: 0 auto;
  text-align: center;
  text-align-last: center;
}

.admin-check-cell .admin-check-select option {
  text-align: center;
}

.admin-status-cell .admin-status-select {
  display: block;
  margin: 0 auto;
  text-align: center;
  text-align-last: center;
}

.admin-status-cell .admin-status-select option {
  text-align: center;
}

.admin-note-input {
  min-width: 220px;
  resize: vertical;
  padding: 7px 8px;
}

.admin-empty-row {
  min-height: 72px;
  color: #667085;
  font-size: 16px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-pagination span {
  color: #08316b;
  font-weight: 800;
}

.admin-table-message {
  margin-top: 2px;
  text-align: left;
}

.admin-table-message.is-success {
  color: #1f7a16;
}

@media (max-width: 760px) {
  .admin-data-heading,
  .admin-filter-grid,
  .admin-date-filter {
    grid-template-columns: 1fr;
  }

  .admin-data-heading {
    display: grid;
  }

  .admin-pagination {
    justify-content: flex-start;
  }
}

.success-card {
  padding: 32px 24px;
  border-top: 8px solid var(--theme-green);
}

.success-card h2 {
  margin-bottom: 12px;
}

.preview-card {
  border-top-color: #0078d4;
}

.preview-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.preview-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(114, 134, 156, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
  padding: 11px 13px;
}

.preview-item dt,
.preview-item dd {
  margin: 0;
}

.preview-item dt {
  color: var(--theme-blue);
  font-weight: 800;
}

.preview-item dd {
  color: var(--text);
  overflow-wrap: anywhere;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 16px, 640px);
    margin-top: 8px;
  }

  .intro-card,
  .question-card,
  .section-card,
  .success-card {
    padding: 20px 16px;
  }

  .preview-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qr-panel {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    justify-self: center;
    width: 168px;
    height: 168px;
  }

  h1 {
    font-size: 28px;
  }

  .form-title {
    column-gap: 4px;
  }

  .form-title strong {
    font-size: 30px;
  }

  .form-title img {
    width: 62px;
    max-height: 72px;
    transform: translateX(-3px) rotate(3deg);
  }

  .button-row {
    grid-template-columns: 1fr 1fr;
  }

  .progress-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    min-width: 0;
  }

  .progress-track {
    flex: 1;
    width: auto;
  }

  .link-button {
    justify-self: end;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageLift {
  from {
    opacity: 0.72;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressGlow {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.55) brightness(1.08);
  }
}

@keyframes backgroundDrift {
  from {
    transform: translate3d(-8px, -6px, 0);
  }
  to {
    transform: translate3d(10px, 8px, 0);
  }
}

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

/* Windows XP theme */
:root {
  --page-bg: #4b8fed;
  --card-bg: #fff6cf;
  --surface-bg: #fffbe5;
  --border: #003399;
  --text: #222222;
  --muted: #5d5a4e;
  --theme: #f4bd2b;
  --theme-dark: #0a4cbd;
  --theme-green: #3d9b2f;
  --theme-red: #d43d23;
  --error: #cc0000;
  --focus: #ffb72b;
  --radius: 4px;
  --shadow: 7px 8px 0 rgba(0, 0, 0, 0.24), 0 18px 38px rgba(0, 28, 84, 0.36);
  --shadow-hover: 7px 9px 0 rgba(0, 0, 0, 0.27), 0 22px 44px rgba(0, 28, 84, 0.4);
}

body {
  background:
    linear-gradient(180deg, rgba(36, 101, 213, 0.82) 0%, rgba(219, 240, 255, 0.55) 38%, rgba(42, 116, 42, 0.52) 100%),
    url("/assets/rice-field-real.jpg") center center / cover fixed no-repeat;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

body::before {
  background:
    linear-gradient(180deg, rgba(28, 80, 180, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14) 32%, rgba(255, 255, 255, 0.14) 68%, rgba(255, 255, 255, 0.38));
}

body::after {
  display: none;
}

.shell {
  width: min(680px, calc(100vw - 20px));
  margin-top: 14px;
}

.sahabat-hero {
  border: 3px solid #003399;
  border-top-color: #78b9ff;
  border-left-color: #78b9ff;
  border-radius: 7px 7px 4px 4px;
  background: #ece9d8;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.sahabat-hero::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.intro-card,
.question-card,
.section-card,
.success-card,
.qr-panel {
  background: #fff6cf;
  border: 3px solid #003399;
  border-top-color: #78b9ff;
  border-left-color: #78b9ff;
  border-radius: 7px 7px 3px 3px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.intro-card,
.section-card,
.success-card {
  position: relative;
  padding-top: 46px;
}

.intro-card::before,
.section-card::before,
.success-card::before {
  position: absolute;
  top: 3px;
  right: 3px;
  left: 3px;
  height: 29px;
  border-radius: 4px 4px 1px 1px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 44%),
    linear-gradient(90deg, #002a87 0%, #064fd2 48%, #1688ff 100%);
  color: #ffffff;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 29px;
  padding: 0 44px 0 11px;
  text-shadow: 1px 1px 0 #06307b;
}

.intro-card::before {
  content: "Form Pendaftaran Sahabat RPK";
}

.admin-card::before {
  content: "Panel Output Data Admin";
}

.section-card::before {
  content: "Wilayah Pendaftaran";
}

.success-card::before {
  content: "Selesai";
}

.preview-card::before {
  content: "Preview Data";
}

.intro-card::after,
.section-card::after,
.success-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 1px solid #7a1409;
  border-radius: 3px;
  background:
    linear-gradient(135deg, transparent 39%, #ffffff 40% 47%, transparent 48% 54%, #ffffff 55% 62%, transparent 63%),
    linear-gradient(180deg, #ffb59b 0%, #e65b35 45%, #b9240e 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.question-card {
  background: #fffbe5;
  border-color: #466eb6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  box-shadow:
    inset -1px -1px 0 #8b8776,
    inset 1px 1px 0 #ffffff,
    5px 6px 0 rgba(0, 0, 0, 0.17);
}

.identity-group-card {
  min-height: 62px;
  border: 2px solid #466eb6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 7px 7px 3px 3px;
  background:
    linear-gradient(105deg, #e8f7ff 0%, #f2fae7 52%, #fff0ad 100%);
  box-shadow:
    inset -1px -1px 0 #8b8776,
    inset 1px 1px 0 #ffffff,
    5px 6px 0 rgba(0, 0, 0, 0.17);
  backdrop-filter: none;
}

.identity-group-card::before {
  width: 11px;
  height: 35px;
  background:
    linear-gradient(180deg, #ffbe2e 0%, #d5b42b 46%, #3d9b2f 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.62),
    1px 2px 0 rgba(0, 0, 0, 0.14);
}

.identity-group-card h2 {
  color: #002777;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 1px 1px 0 #ffffff;
}

.business-group-card {
  background:
    linear-gradient(105deg, #ebffe8 0%, #f4fbff 48%, #ffe4bd 100%);
}

.business-group-card::before {
  background:
    linear-gradient(180deg, #72c75d 0%, #d6aa2d 50%, #4f8fcb 100%);
}

.question-card:hover,
.section-card:hover,
.success-card:hover {
  border-color: #0b55c8;
  border-top-color: #78b9ff;
  border-left-color: #78b9ff;
  box-shadow: var(--shadow-hover);
  transform: none;
}

.top-logo img {
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.16));
}

h1 {
  color: #003399;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  font-size: 32px;
  text-shadow: 1px 1px 0 #ffffff;
}

.form-title span {
  color: #1a3f86;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.form-title strong {
  background: linear-gradient(180deg, #ffffff 0%, #e9f3ff 24%, #1b61d1 26%, #003399 72%, #001f6d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #003399;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  font-size: 34px;
  text-shadow: 2px 2px 0 #f7d465, 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.form-title img {
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.16));
}

h2 {
  color: #003399;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 20px;
  text-shadow: 1px 1px 0 #ffffff;
}

.local-note,
.qr-panel {
  background: #fffdf0;
  border: 2px solid #466eb6;
  box-shadow:
    inset -1px -1px 0 #ffffff,
    inset 1px 1px 0 #d6d2bd,
    3px 4px 0 rgba(0, 0, 0, 0.12);
}

.qr-copy span {
  border: 1px solid #2b6a19;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #efffe4 0%, #67c957 46%, #2f8f27 100%);
  color: #083c03;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.55);
}

.qr-copy strong,
.qr-copy a {
  color: #003399;
}

.qr-frame,
.qr-poster-frame,
.example-image {
  border-radius: 0;
  border: 2px solid #7f9db9;
  box-shadow:
    inset -1px -1px 0 #ffffff,
    inset 1px 1px 0 #aca899,
    3px 4px 0 rgba(0, 0, 0, 0.13);
}

.question-title {
  color: #002777;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.description,
.upload-hint,
.qr-copy p,
.local-note {
  color: #373421;
}

.welcome-note {
  background:
    linear-gradient(105deg, #e8f7ff 0%, #f2fae7 52%, #fff0ad 100%);
  border: 2px solid #466eb6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  box-shadow:
    inset -1px -1px 0 #8b8776,
    inset 1px 1px 0 #ffffff,
    4px 5px 0 rgba(0, 0, 0, 0.14);
}

.welcome-note strong {
  color: #002777;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 22px;
  text-shadow: 1px 1px 0 #ffffff;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
select {
  min-height: 28px;
  border: 1px solid #7f9db9;
  border-radius: 0;
  background: #ffffff;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.28);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 13px;
  padding: 5px 8px;
}

input:focus,
select:focus {
  border-color: #316ac5;
  background: #ffffff;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.24), 0 0 0 2px #ffd35a;
}

.file-button,
.primary-button,
.secondary-button {
  min-height: 30px;
  border: 1px solid #003c74;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f1f7ff 38%, #c7dcff 40%, #77a9f7 100%);
  color: #001f60;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(49, 106, 197, 0.45),
    1px 2px 0 rgba(0, 0, 0, 0.18);
  font-family: Tahoma, Arial, sans-serif;
  font-weight: 700;
  padding: 0 16px;
}

.primary-button {
  color: #ffffff;
  background:
    linear-gradient(180deg, #9cc7ff 0%, #2f78ee 42%, #0b55c8 43%, #003399 100%);
  text-shadow: 1px 1px 0 #00226f;
}

.file-button:hover,
.primary-button:hover,
.secondary-button:hover {
  border-color: #ff9c00;
  background:
    linear-gradient(180deg, #fff8d9 0%, #ffd96a 44%, #ffb52f 45%, #f08a00 100%);
  color: #1f1a00;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.8),
    1px 2px 0 rgba(0, 0, 0, 0.18);
  text-shadow: none;
  transform: none;
}

.primary-button:disabled,
.secondary-button:disabled {
  background: #d6d2bd;
  border-color: #aca899;
  color: #7a7666;
}

.danger-button {
  min-height: 30px;
  border: 1px solid #8f1d1d;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #fff6f1 0%, #ffd4c8 38%, #ff9e8d 40%, #ce3b2e 100%);
  color: #ffffff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.72),
    inset -1px -1px 0 rgba(119, 26, 26, 0.45),
    1px 2px 0 rgba(0, 0, 0, 0.18);
  font-family: Tahoma, Arial, sans-serif;
  font-weight: 700;
  padding: 0 16px;
  text-shadow: 1px 1px 0 #6f1515;
}

.danger-button:hover {
  border-color: #ff9c00;
  background:
    linear-gradient(180deg, #fff8d9 0%, #ffd96a 44%, #ffb52f 45%, #f08a00 100%);
  color: #1f1a00;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.8),
    1px 2px 0 rgba(0, 0, 0, 0.18);
  text-shadow: none;
  transform: none;
}

.danger-button:disabled {
  background: #d6d2bd;
  border-color: #aca899;
  color: #7a7666;
  cursor: progress;
  text-shadow: none;
}

.link-button {
  color: #003399;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  text-decoration: underline;
}

.radio-row span {
  border: 1px solid #7f9db9;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.22);
}

.radio-row input:checked + span {
  border-color: #316ac5;
}

.radio-row input:checked + span::after {
  background: #2d8a22;
  box-shadow: 0 0 0 1px #0e5b0a;
}

.radio-row input:focus + span {
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.22), 0 0 0 2px #ffd35a;
}

.progress-wrap {
  color: #1f1f1f;
  font-size: 12px;
}

.progress-track {
  height: 15px;
  border: 1px solid #7f9db9;
  border-radius: 0;
  background: #ffffff;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.progress-track span {
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #b6f489 0%, #48c137 46%, #24911f 100%);
  animation: progressGlow 1800ms ease-in-out infinite;
}

.form-footer {
  margin-top: 16px;
  padding: 10px;
  border: 2px solid #0b55c8;
  border-top-color: #3d95ff;
  border-left-color: #3d95ff;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #4f9bff, #0757d8 48%, #002d8f);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.password-note,
.fine-print,
.brand {
  color: #ffffff;
  text-shadow: 1px 1px 0 #00226f;
}

.brand {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 18px;
}

.brand img {
  border: 0;
  box-shadow: none;
}

.branch-name {
  color: #fff4b8;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  text-shadow: 1px 1px 0 #00226f, 0 0 5px rgba(255, 255, 255, 0.22);
}

.admin-auth-panel,
.admin-password-box,
.admin-reset-request,
.admin-summary,
.admin-export-box,
.admin-format-notes,
.admin-data-panel {
  background: #fffdf0;
  border: 2px solid #466eb6;
  box-shadow:
    inset -1px -1px 0 #ffffff,
    inset 1px 1px 0 #d6d2bd,
    3px 4px 0 rgba(0, 0, 0, 0.12);
  padding: 14px;
}

.admin-modal {
  background: rgba(0, 21, 79, 0.52);
}

.admin-modal-card {
  border-top-color: #78b9ff;
  border-left-color: #78b9ff;
  box-shadow:
    inset -1px -1px 0 #ffffff,
    inset 1px 1px 0 #d6d2bd,
    7px 9px 0 rgba(0, 0, 0, 0.22);
}

.admin-summary strong {
  color: #003399;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
  text-shadow: 1px 1px 0 #ffffff;
}

.admin-auth-panel .question-title,
.admin-password-box .question-title {
  margin-bottom: 0;
}

#adminLoginPanel {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

#adminLoginForm .primary-button {
  align-self: flex-start;
  width: auto;
  min-width: 156px;
}

.admin-shell.admin-auth-shell {
  width: min(680px, calc(100vw - 20px));
}

.admin-shell.admin-auth-shell .admin-card {
  width: min(100%, 680px);
}

.admin-password-dropdown summary {
  align-items: flex-start;
  color: #003399;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
}

.admin-password-dropdown summary::after {
  border: 1px solid #003c74;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f1f7ff 38%, #c7dcff 40%, #77a9f7 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(49, 106, 197, 0.45),
    1px 2px 0 rgba(0, 0, 0, 0.18);
}

.admin-message.is-success {
  color: #1f7a16;
}

.admin-table-message {
  color: #1f1f1f;
  text-shadow: none;
}

.admin-table-message.is-success {
  color: #1f7a16;
}

.admin-footer-link {
  color: #ffffff;
}

.question-card.has-error {
  border-color: #cc0000;
}

.question-card.has-error input[type="text"],
.question-card.has-error input[type="tel"],
.question-card.has-error input[type="email"],
.question-card.has-error input[type="password"],
.question-card.has-error select {
  border-color: #cc0000;
}

.admin-shell {
  width: min(1400px, calc(100vw - 24px));
}

.admin-card {
  width: min(100%, 1400px);
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 12px, 680px);
    margin-top: 6px;
  }

  .intro-card,
  .section-card,
  .success-card {
    padding-top: 42px;
  }

  .intro-card::before,
  .section-card::before,
  .success-card::before {
    font-size: 12px;
    padding-right: 36px;
  }

  .form-title strong {
    font-size: 29px;
  }
}

/* Smooth all box corners across the form, admin login, and admin preview pages. */
.sahabat-hero,
.intro-card,
.question-card,
.section-card,
.success-card,
.preview-card,
.identity-group-card,
.admin-card,
.admin-auth-panel,
.admin-password-box,
.admin-reset-request,
.admin-summary,
.admin-export-box,
.admin-format-notes,
.admin-data-panel,
.admin-table-wrap,
.admin-modal-card,
.admin-file-preview-body,
.preview-item {
  border-radius: 14px;
}

.intro-card::before,
.section-card::before,
.success-card::before,
.sahabat-hero::after {
  border-radius: 12px 12px 0 0;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
select,
textarea,
.primary-button,
.secondary-button,
.danger-button,
.link-button,
.admin-check-select,
.admin-status-select,
.admin-note-input,
.admin-password-dropdown summary::after,
.admin-file-preview-link,
.progress-track,
.file-label {
  border-radius: 10px;
}

.admin-data-table,
.admin-data-table th:first-child,
.admin-data-table td:first-child,
.admin-data-table th:last-child,
.admin-data-table td:last-child {
  border-radius: 0;
}

#adminLoginForm .primary-button,
#adminLoginPanel .admin-auth-options .secondary-button {
  justify-self: start;
  align-self: flex-start;
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}

.form-footer {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(31, 111, 216, 0.92), rgba(13, 76, 177, 0.94) 55%, rgba(13, 52, 139, 0.96));
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.form-footer .primary-button,
.form-footer .secondary-button {
  border-radius: 12px;
}

.form-footer .link-button {
  border-radius: 8px;
}

.form-footer .progress-track,
.form-footer .progress-track span {
  border-radius: 999px;
}

.qr-panel,
.qr-poster-panel {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(239, 247, 255, 0.58)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(26px) saturate(1.2);
}

.qr-copy span {
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(35, 124, 221, 0.96), rgba(66, 153, 225, 0.9));
  color: #ffffff;
  text-shadow: none;
}

.qr-copy strong,
.qr-copy a {
  color: #174a86;
  text-shadow: none;
}

.qr-copy p {
  color: #41576d;
}

.qr-frame,
.qr-poster-frame {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-auth-shell #adminLoginPanel {
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.admin-auth-shell #adminLoginPanel p {
  margin: 0 0 2px;
}

.admin-auth-shell #adminLoginForm {
  gap: 6px;
}

.admin-auth-shell #adminLoginForm .question-title {
  margin-bottom: 0;
}

.admin-auth-shell #adminLoginForm .admin-message {
  min-height: 0;
  margin: 0;
}

.admin-auth-shell #adminLoginPanel .admin-auth-options {
  margin-top: 4px;
}

/* Windows 11 acrylic treatment for the Sahabat RPK banner. */
.sahabat-hero {
  isolation: isolate;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(232, 243, 255, 0.36)),
    rgba(255, 255, 255, 0.26);
  box-shadow:
    0 28px 58px rgba(15, 23, 42, 0.22),
    0 12px 24px rgba(23, 74, 134, 0.16),
    0 3px 8px rgba(255, 255, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(1.28);
}

.sahabat-hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  border-radius: 19px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(23, 74, 134, 0.16);
}

.sahabat-hero::after {
  z-index: 2;
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 4%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 38%, rgba(255, 255, 255, 0.14));
  box-shadow: none;
}

.sahabat-hero img {
  position: relative;
  z-index: 0;
  border-radius: 17px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -20px 34px rgba(15, 23, 42, 0.08),
    0 10px 22px rgba(15, 23, 42, 0.13);
}

/* Windows 11 acrylic treatment for the submit/footer panel. */
.form-footer {
  position: relative;
  margin-top: 18px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 247, 255, 0.62)),
    rgba(255, 255, 255, 0.7);
  color: #172033;
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.24),
    0 12px 28px rgba(23, 74, 134, 0.16),
    0 2px 5px rgba(255, 255, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(28px) saturate(1.24);
  overflow: hidden;
}

.form-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(90deg, rgba(0, 120, 212, 0.1), rgba(217, 164, 65, 0.1), rgba(93, 152, 113, 0.08));
  opacity: 0.82;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -28px 44px rgba(15, 23, 42, 0.06);
}

.form-footer > * {
  position: relative;
  z-index: 1;
}

.form-footer .button-row {
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.12);
}

.form-footer .primary-button,
.form-footer .secondary-button {
  min-height: 38px;
  border: 1px solid rgba(0, 103, 192, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 120, 212, 0.98), rgba(0, 103, 192, 0.96));
  color: #ffffff;
  box-shadow:
    0 8px 18px rgba(0, 103, 192, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  text-shadow: none;
}

.form-footer .secondary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 244, 255, 0.88));
  color: #174a86;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.form-footer .primary-button:hover,
.form-footer .secondary-button:hover {
  border-color: rgba(0, 120, 212, 0.48);
  background:
    linear-gradient(180deg, rgba(66, 153, 225, 0.98), rgba(0, 103, 192, 0.98));
  color: #ffffff;
  box-shadow:
    0 10px 22px rgba(0, 103, 192, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.form-footer .progress-wrap {
  color: #334155;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

.form-footer .progress-track {
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.82), rgba(255, 255, 255, 0.72));
  box-shadow:
    inset 0 1px 3px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.78);
}

.form-footer .progress-track span {
  border-radius: inherit;
  background:
    linear-gradient(90deg, #0078d4, #5bb6f0 50%, #63b878);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 16px rgba(0, 120, 212, 0.22);
}

.form-footer .link-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: #174a86;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: none;
}

.form-footer .password-note,
.form-footer .fine-print,
.form-footer .brand {
  color: #334155;
  text-shadow: none;
}

.form-footer .password-note {
  margin-top: 14px;
}

.form-footer .admin-output-link a {
  color: #174a86;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-shadow: none;
  text-underline-offset: 3px;
}

.form-footer .admin-footer-link {
  color: #174a86;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-footer .brand {
  margin-top: 16px;
}

.form-footer .brand img {
  width: min(145px, 50vw);
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.16));
}

.form-footer .branch-name {
  color: #174a86;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 850;
  margin-top: 8px;
  text-shadow: none;
}

/* Admin panels: match the form card hover/focus treatment. */
.admin-auth-panel,
.admin-password-box,
.admin-reset-request,
.admin-summary,
.admin-export-box,
.admin-format-notes,
.admin-data-panel {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.admin-auth-panel:hover,
.admin-password-box:hover,
.admin-reset-request:hover,
.admin-summary:hover,
.admin-export-box:hover,
.admin-format-notes:hover,
.admin-data-panel:hover,
.admin-auth-panel:focus-within,
.admin-password-box:focus-within,
.admin-reset-request:focus-within,
.admin-summary:focus-within,
.admin-export-box:focus-within,
.admin-format-notes:focus-within,
.admin-data-panel:focus-within {
  border-color: rgba(0, 120, 212, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.7)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 3px rgba(0, 120, 212, 0.14),
    0 18px 42px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.admin-card select:hover,
.admin-card input:hover,
.admin-card textarea:hover,
.admin-card select:focus,
.admin-card input:focus,
.admin-card textarea:focus {
  border-color: rgba(0, 120, 212, 0.78);
  box-shadow:
    0 0 0 3px rgba(0, 120, 212, 0.14),
    inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.admin-password-dropdown {
  border: 2px solid rgba(0, 90, 190, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 252, 255, 0.66)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    9px 10px 0 rgba(12, 37, 78, 0.18),
    0 18px 38px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.admin-password-dropdown:hover,
.admin-password-dropdown:focus-within,
.admin-password-dropdown[open] {
  border-color: rgba(0, 120, 212, 0.82);
  box-shadow:
    0 0 0 3px rgba(0, 120, 212, 0.16),
    9px 10px 0 rgba(12, 37, 78, 0.22),
    0 18px 42px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transform: translateY(-1px);
}

.admin-password-dropdown summary::after {
  min-width: 100px;
  border: 1px solid rgba(0, 103, 192, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 242, 255, 0.9));
  color: #174a86;
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.admin-password-dropdown:hover summary::after,
.admin-password-dropdown:focus-within summary::after,
.admin-password-dropdown[open] summary::after {
  border-color: rgba(0, 120, 212, 0.62);
  background:
    linear-gradient(180deg, rgba(0, 120, 212, 0.96), rgba(0, 103, 192, 0.98));
  color: #ffffff;
  box-shadow:
    0 8px 18px rgba(0, 103, 192, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Stronger XP-like offset shadow for the main banner and footer panels. */
.sahabat-hero {
  box-shadow:
    9px 10px 0 rgba(12, 37, 78, 0.26),
    0 24px 54px rgba(15, 23, 42, 0.28),
    0 8px 20px rgba(23, 74, 134, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-footer {
  box-shadow:
    9px 10px 0 rgba(12, 37, 78, 0.24),
    0 28px 64px rgba(15, 23, 42, 0.28),
    0 12px 28px rgba(23, 74, 134, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

/* Strong 3D treatment for all white input cards/boxes. */
.question-card,
.identity-group-card,
.preview-card,
.preview-item,
.admin-auth-panel,
.admin-password-box,
.admin-reset-request,
.admin-summary,
.admin-export-box,
.admin-format-notes,
.admin-data-panel,
.admin-table-wrap,
.welcome-note {
  border: 2px solid rgba(0, 90, 190, 0.76);
  background:
    linear-gradient(105deg, rgba(235, 247, 255, 0.94) 0%, rgba(248, 252, 244, 0.9) 50%, rgba(255, 244, 197, 0.94) 100%),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    8px 9px 0 rgba(12, 37, 78, 0.24),
    0 16px 34px rgba(15, 23, 42, 0.14),
    inset 1px 1px 0 rgba(255, 255, 255, 0.86),
    inset -1px -1px 0 rgba(0, 90, 190, 0.14);
}

.question-card:hover,
.identity-group-card:hover,
.preview-card:hover,
.preview-item:hover,
.admin-auth-panel:hover,
.admin-password-box:hover,
.admin-reset-request:hover,
.admin-summary:hover,
.admin-export-box:hover,
.admin-format-notes:hover,
.admin-data-panel:hover,
.admin-table-wrap:hover,
.welcome-note:hover,
.question-card:focus-within,
.identity-group-card:focus-within,
.preview-card:focus-within,
.preview-item:focus-within,
.admin-auth-panel:focus-within,
.admin-password-box:focus-within,
.admin-reset-request:focus-within,
.admin-summary:focus-within,
.admin-export-box:focus-within,
.admin-format-notes:focus-within,
.admin-data-panel:focus-within,
.admin-table-wrap:focus-within,
.welcome-note:focus-within {
  border-color: rgba(0, 120, 212, 0.9);
  box-shadow:
    9px 10px 0 rgba(12, 37, 78, 0.28),
    0 0 0 3px rgba(0, 120, 212, 0.12),
    0 20px 42px rgba(15, 23, 42, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset -1px -1px 0 rgba(0, 90, 190, 0.16);
}

.question-card input[type="text"],
.question-card input[type="tel"],
.question-card input[type="email"],
.question-card input[type="password"],
.question-card select,
.question-card textarea,
.admin-card input[type="text"],
.admin-card input[type="tel"],
.admin-card input[type="email"],
.admin-card input[type="password"],
.admin-card input[type="date"],
.admin-card input[type="search"],
.admin-card select,
.admin-card textarea {
  border: 1px solid rgba(0, 90, 190, 0.48);
  border-bottom-color: rgba(0, 90, 190, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.9));
  box-shadow:
    3px 4px 0 rgba(12, 37, 78, 0.14),
    inset 1px 1px 0 rgba(255, 255, 255, 0.9);
}

/* Show the admin output page at 90% visual size. */
.admin-shell:not(.admin-auth-shell) {
  zoom: 0.9;
}

/* Data-entry form cards use the same pointer feel as the admin preview panels. */
.form .page.is-active .question-card:hover,
.form .page.is-active .question-card:focus-within {
  border-color: rgba(0, 120, 212, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.7)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    9px 10px 0 rgba(12, 37, 78, 0.28),
    0 0 0 3px rgba(0, 120, 212, 0.12),
    0 20px 42px rgba(15, 23, 42, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset -1px -1px 0 rgba(0, 90, 190, 0.16);
  transform: translateY(-1px);
}

/* Add a little more breathing room between first-page data groups. */
.form .page.is-active .question-card {
  margin-top: 18px;
  margin-bottom: 18px;
}

.form .page.is-active .identity-group-card {
  margin-top: 22px;
  margin-bottom: 18px;
}

.form .page.is-active .identity-group-card:first-child {
  margin-top: 16px;
}

/* Group labels are static headers, so they should not react like input cards. */
.form .identity-group-card,
.form .welcome-note {
  cursor: default;
}

.form .identity-group-card:hover,
.form .identity-group-card:focus-within,
.form .welcome-note:hover,
.form .welcome-note:focus-within {
  border-color: rgba(0, 90, 190, 0.76);
  box-shadow:
    8px 9px 0 rgba(12, 37, 78, 0.24),
    0 16px 34px rgba(15, 23, 42, 0.14),
    inset 1px 1px 0 rgba(255, 255, 255, 0.86),
    inset -1px -1px 0 rgba(0, 90, 190, 0.14);
  transform: none;
}

/* Keep the color change consistent on every first-page data-entry field. */
.form .page.is-active .question-card:hover,
.form .page.is-active .question-card:focus-within {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.7)),
    rgba(255, 255, 255, 0.78);
}

/* Large base intro panel stays static; input and QR panels can keep their own hover behavior. */
.form .intro-card {
  cursor: default;
}

.form .intro-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: none;
}

/* QR access panel gets a stronger 3D hover, matching the preview panel treatment. */
.form .qr-panel {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.form .qr-panel:hover,
.form .qr-panel:focus-within {
  border-color: rgba(0, 120, 212, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 255, 0.74)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    11px 12px 0 rgba(12, 37, 78, 0.34),
    0 0 0 4px rgba(0, 120, 212, 0.14),
    0 26px 54px rgba(15, 23, 42, 0.2),
    inset 1px 1px 0 rgba(255, 255, 255, 0.94),
    inset -1px -1px 0 rgba(0, 90, 190, 0.18);
  transform: translateY(-2px);
}

.form .qr-copy span {
  border: 1px solid rgba(0, 89, 181, 0.78);
  background:
    linear-gradient(180deg, #78c4ff 0%, #1689df 46%, #075aaa 100%);
  box-shadow:
    3px 1px 0 rgba(9, 55, 110, 0.34),
    7px 2px 12px rgba(0, 82, 164, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(0, 57, 126, 0.42);
  text-shadow:
    1px 0 0 rgba(255, 255, 255, 0.24),
    1px 1px 0 rgba(0, 53, 116, 0.38);
}

/* Submit button has a clear 3D lift when pointed at. */
.form-footer #submitButton {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.form-footer #submitButton:hover,
.form-footer #submitButton:focus-visible {
  border-color: rgba(0, 87, 180, 0.92);
  background:
    linear-gradient(180deg, #59b5ff 0%, #087bd2 48%, #0057b8 100%);
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.24),
    0 0 0 3px rgba(0, 120, 212, 0.12),
    0 10px 22px rgba(0, 82, 164, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.62),
    inset -1px -1px 0 rgba(0, 40, 112, 0.38);
  transform: translateY(-1px);
}

/* Admin login action buttons get the same firm 3D pointer feedback. */
.admin-auth-shell #adminLoginForm .primary-button,
.admin-auth-shell #adminLoginPanel .admin-auth-options .secondary-button {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.admin-auth-shell #adminLoginForm .primary-button:hover,
.admin-auth-shell #adminLoginForm .primary-button:focus-visible,
.admin-auth-shell #adminLoginPanel .admin-auth-options .secondary-button:hover,
.admin-auth-shell #adminLoginPanel .admin-auth-options .secondary-button:focus-visible {
  border-color: rgba(0, 87, 180, 0.92);
  background:
    linear-gradient(180deg, #59b5ff 0%, #087bd2 48%, #0057b8 100%);
  color: #ffffff;
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.24),
    0 0 0 3px rgba(0, 120, 212, 0.12),
    0 10px 22px rgba(0, 82, 164, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.62),
    inset -1px -1px 0 rgba(0, 40, 112, 0.38);
  text-shadow: 1px 1px 0 rgba(0, 34, 111, 0.68);
  transform: translateY(-1px);
}

/* First-page data input cards protrude clearly in 3D when pointed at. */
.form .page.is-active .question-card {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.form .page.is-active .question-card:hover,
.form .page.is-active .question-card:focus-within {
  border-color: rgba(0, 120, 212, 0.98);
  border-top-color: rgba(128, 196, 255, 0.98);
  border-left-color: rgba(128, 196, 255, 0.98);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(231, 244, 255, 0.88) 58%, rgba(255, 247, 209, 0.92) 100%),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    14px 16px 0 rgba(12, 37, 78, 0.34),
    0 0 0 4px rgba(0, 120, 212, 0.16),
    0 30px 62px rgba(15, 23, 42, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -1px -1px 0 rgba(0, 90, 190, 0.22);
  transform: translate(-2px, -4px);
}

/* Main admin download button gets a light 3D lift on pointer hover. */
#downloadExport.admin-download {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

#downloadExport.admin-download:hover,
#downloadExport.admin-download:focus-visible {
  border-color: rgba(0, 87, 180, 0.9);
  background:
    linear-gradient(180deg, #5ab5ff 0%, #0d7fd7 48%, #005ab8 100%);
  color: #ffffff;
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.24),
    0 0 0 3px rgba(0, 120, 212, 0.12),
    0 10px 22px rgba(0, 82, 164, 0.2),
    inset 1px 1px 0 rgba(255, 255, 255, 0.62),
    inset -1px -1px 0 rgba(0, 40, 112, 0.34);
  text-shadow: 1px 1px 0 rgba(0, 34, 111, 0.62);
  transform: translateY(-1px);
}

/* Password dropdown open button gets a light 3D pointer effect. */
.admin-password-dropdown summary:hover::after,
.admin-password-dropdown summary:focus-visible::after {
  border-color: rgba(0, 87, 180, 0.9);
  background:
    linear-gradient(180deg, #5ab5ff 0%, #0d7fd7 48%, #005ab8 100%);
  color: #ffffff;
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.22),
    0 0 0 3px rgba(0, 120, 212, 0.11),
    0 10px 20px rgba(0, 82, 164, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.62),
    inset -1px -1px 0 rgba(0, 40, 112, 0.32);
  text-shadow: 1px 1px 0 rgba(0, 34, 111, 0.58);
  transform: translateY(-1px);
}

/* Blank data-entry fields get a light 3D lift when pointed at. */
.form input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.form textarea,
.admin-card input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.admin-card textarea,
.admin-note-input {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.form input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):hover,
.form input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.form textarea:hover,
.form textarea:focus,
.admin-card input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):hover,
.admin-card input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.admin-card textarea:hover,
.admin-card textarea:focus,
.admin-note-input:hover,
.admin-note-input:focus {
  border-color: rgba(0, 120, 212, 0.86);
  border-bottom-color: rgba(0, 87, 180, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(235, 246, 255, 0.96));
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.18),
    0 0 0 3px rgba(0, 120, 212, 0.12),
    0 10px 20px rgba(15, 23, 42, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

/* Upload buttons get a clear but light 3D hover. */
.file-button {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.file-button:hover,
input[type="file"]:focus + .file-button {
  border-color: rgba(0, 87, 180, 0.9);
  background:
    linear-gradient(180deg, #f7fbff 0%, #d7eaff 38%, #91c4ff 39%, #4f97e8 100%);
  color: #052c65;
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.22),
    0 0 0 3px rgba(0, 120, 212, 0.1),
    0 10px 20px rgba(0, 82, 164, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.72),
    inset -1px -1px 0 rgba(0, 40, 112, 0.28);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Every customer-facing answer card protrudes in 3D when pointed at. */
.form .question-card:hover,
.form .question-card:focus-within {
  border-color: rgba(0, 120, 212, 0.96);
  border-top-color: rgba(128, 196, 255, 0.96);
  border-left-color: rgba(128, 196, 255, 0.96);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(231, 244, 255, 0.88) 58%, rgba(255, 247, 209, 0.9) 100%),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    10px 12px 0 rgba(12, 37, 78, 0.28),
    0 0 0 3px rgba(0, 120, 212, 0.13),
    0 22px 44px rgba(15, 23, 42, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.94),
    inset -1px -1px 0 rgba(0, 90, 190, 0.18);
  transform: translate(-1px, -3px);
}

/* File inputs now open through a compact dropdown: Pilih File / Unggah File / Kamera. */
.file-picker {
  position: relative;
  display: inline-block;
  width: min(238px, 100%);
  z-index: 2;
}

.file-picker.is-open {
  z-index: 20;
}

.form .question-card.is-file-menu-open {
  position: relative;
  z-index: 80;
  overflow: visible;
}

.file-picker .file-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(132, 174, 217, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.92));
  color: #173f73;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 0 18px;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -1px -1px 0 rgba(0, 90, 190, 0.08);
  text-shadow: none;
  cursor: pointer;
}

.file-picker .file-trigger:hover,
.file-picker .file-trigger:focus-visible,
.file-picker.is-open .file-trigger {
  border-color: rgba(0, 120, 212, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(232, 244, 255, 0.96));
  color: #0d376d;
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.12),
    0 0 0 3px rgba(0, 120, 212, 0.1),
    0 12px 24px rgba(15, 23, 42, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.file-chevron {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 150ms ease;
}

.file-picker.is-open .file-chevron {
  transform: translateY(3px) rotate(225deg);
}

.file-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(132, 174, 217, 0.58);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94));
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.file-menu[hidden] {
  display: none;
}

.file-menu button {
  width: 100%;
  min-height: 58px;
  box-sizing: border-box;
  border: 1px solid rgba(201, 214, 228, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 242, 0.94));
  color: #173f73;
  cursor: pointer;
  font: inherit;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-weight: 850;
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.file-menu button:hover,
.file-menu button:focus-visible {
  border-color: rgba(0, 120, 212, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(232, 244, 255, 0.96));
  box-shadow:
    3px 4px 0 rgba(12, 37, 78, 0.1),
    0 10px 18px rgba(15, 23, 42, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Keep the upload dropdown in front of the following form card. */
.form .page.is-active {
  overflow: visible;
  isolation: isolate;
}

.form .page.is-active .question-card {
  position: relative;
  z-index: 1;
}

.form .page.is-active .question-card.is-file-menu-open {
  z-index: 10000;
  overflow: visible;
}

.form .page.is-active .question-card.is-file-menu-open + .question-card {
  z-index: 0;
}

.form .page.is-active .question-card.is-file-menu-open .file-picker.is-open {
  z-index: 10001;
}

.form .page.is-active .question-card.is-file-menu-open .file-menu {
  z-index: 10002;
}

/* Custom location dropdowns mirror the upload dropdown menu style. */
.location-native-select {
  display: none !important;
}

.custom-select {
  position: relative;
  display: inline-block;
  width: min(320px, 100%);
  z-index: 2;
}

.custom-select.is-open {
  z-index: 10001;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(132, 174, 217, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.92));
  color: #173f73;
  cursor: pointer;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 0 18px;
  text-align: left;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -1px -1px 0 rgba(0, 90, 190, 0.08);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-color: rgba(0, 120, 212, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(232, 244, 255, 0.96));
  color: #0d376d;
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.12),
    0 0 0 3px rgba(0, 120, 212, 0.1),
    0 12px 24px rgba(15, 23, 42, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.custom-select-trigger:disabled,
.custom-select-trigger.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.custom-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-left: 14px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 150ms ease;
}

.custom-select.is-open .custom-select-chevron {
  transform: translateY(3px) rotate(225deg);
}

.custom-select-menu {
  position: fixed;
  z-index: 2147483000;
  max-height: 300px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(132, 174, 217, 0.58);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94));
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-menu.opens-up {
  box-shadow:
    0 -18px 34px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.custom-select-option {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(201, 214, 228, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 242, 0.94));
  color: #173f73;
  cursor: pointer;
  font: inherit;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-weight: 850;
  text-align: center;
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option.is-selected {
  border-color: rgba(0, 120, 212, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(232, 244, 255, 0.96));
  box-shadow:
    3px 4px 0 rgba(12, 37, 78, 0.1),
    0 10px 18px rgba(15, 23, 42, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.form .page.is-active .question-card.is-custom-select-open {
  z-index: 10000;
  overflow: visible;
}

.form .page.is-active .question-card.is-custom-select-open + .question-card {
  z-index: 0;
}

/* Admin export dropdowns use the same floating menu language as file upload. */
.admin-native-select-hidden {
  display: none !important;
}

.admin-custom-select {
  position: relative;
  display: inline-block;
  width: min(430px, 100%);
  z-index: 2;
}

.admin-custom-select.is-open {
  z-index: 10001;
}

.admin-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(132, 174, 217, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.92));
  color: #173f73;
  cursor: pointer;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 0 18px;
  text-align: left;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -1px -1px 0 rgba(0, 90, 190, 0.08);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.admin-custom-select-trigger:hover,
.admin-custom-select-trigger:focus-visible,
.admin-custom-select.is-open .admin-custom-select-trigger {
  border-color: rgba(0, 120, 212, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(232, 244, 255, 0.96));
  color: #0d376d;
  box-shadow:
    4px 5px 0 rgba(12, 37, 78, 0.12),
    0 0 0 3px rgba(0, 120, 212, 0.1),
    0 12px 24px rgba(15, 23, 42, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.admin-custom-select-trigger:disabled,
.admin-custom-select-trigger.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.admin-custom-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-custom-select-chevron {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-left: 14px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 150ms ease;
}

.admin-custom-select.is-open .admin-custom-select-chevron {
  transform: translateY(3px) rotate(225deg);
}

.admin-custom-select-menu {
  position: fixed;
  z-index: 2147483000;
  max-height: 300px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(132, 174, 217, 0.58);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94));
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.admin-custom-select-menu[hidden] {
  display: none;
}

.admin-custom-select-menu.opens-up {
  box-shadow:
    0 -18px 34px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.admin-custom-select-option {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(201, 214, 228, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 242, 0.94));
  color: #173f73;
  cursor: pointer;
  font: inherit;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-weight: 850;
  text-align: center;
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.admin-custom-select-option:hover,
.admin-custom-select-option:focus-visible,
.admin-custom-select-option.is-selected {
  border-color: rgba(0, 120, 212, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(232, 244, 255, 0.96));
  box-shadow:
    3px 4px 0 rgba(12, 37, 78, 0.1),
    0 10px 18px rgba(15, 23, 42, 0.12),
    inset 1px 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.copyright-aa {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 2147482000;
  color: #0b3470;
  font-family: "Segoe UI Variable Text", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 10px rgba(12, 37, 78, 0.18);
}

.admin-check-cell .admin-custom-select,
.admin-status-cell .admin-custom-select {
  display: block;
  margin: 0 auto;
  width: 170px;
  min-width: 170px;
}

.admin-check-cell .admin-custom-select-trigger,
.admin-status-cell .admin-custom-select-trigger {
  min-height: 44px;
  border-radius: 14px;
  font-size: 15px;
  padding: 0 13px;
}

.admin-check-cell .admin-custom-select-label,
.admin-status-cell .admin-custom-select-label {
  flex: 1 1 auto;
  text-align: center;
}

.admin-check-cell .admin-custom-select-chevron,
.admin-status-cell .admin-custom-select-chevron {
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border-right-width: 3px;
  border-bottom-width: 3px;
}

.admin-custom-select-menu-check,
.admin-custom-select-menu-status {
  text-align: center;
}

/* Subtle moving shine so the existing XP/Windows 11 styling feels more alive. */
@keyframes rpkSurfaceShine {
  0%,
  18% {
    background-position: -220% 0, 0 0, 0 0;
  }

  52% {
    background-position: 220% 0, 0 0, 0 0;
  }

  100% {
    background-position: 220% 0, 0 0, 0 0;
  }
}

@keyframes rpkSweepShine {
  0%,
  22% {
    transform: translateX(-140%) skewX(-18deg);
    opacity: 0;
  }

  34% {
    opacity: 0.62;
  }

  58% {
    transform: translateX(140%) skewX(-18deg);
    opacity: 0.36;
  }

  100% {
    transform: translateX(140%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes rpkButtonShine {
  0%,
  20% {
    background-position: -180% 0, 0 0;
  }

  56% {
    background-position: 180% 0, 0 0;
  }

  100% {
    background-position: 180% 0, 0 0;
  }
}

@keyframes rpkPageShine {
  0%,
  22% {
    background-position: -240% 0, 0 0, 0 0;
    opacity: 0.18;
  }

  48% {
    opacity: 0.42;
  }

  74%,
  100% {
    background-position: 240% 0, 0 0, 0 0;
    opacity: 0.2;
  }
}

body::after {
  display: block;
  z-index: 0;
  background:
    linear-gradient(112deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.14) 55%, transparent 66%, transparent 100%),
    radial-gradient(ellipse at 18% 12%, rgba(255, 225, 141, 0.16), transparent 34%),
    radial-gradient(ellipse at 82% 18%, rgba(168, 218, 255, 0.14), transparent 32%);
  background-size: 260% 100%, auto, auto;
  mix-blend-mode: screen;
  animation: rpkPageShine 12s ease-in-out infinite;
}

.shell {
  position: relative;
  z-index: 1;
}

.intro-card,
.form .page.is-active .question-card,
.identity-group-card,
.preview-card,
.preview-item,
.section-card,
.success-card,
.admin-auth-panel,
.admin-password-box,
.admin-reset-request,
.admin-summary,
.admin-export-box,
.admin-format-notes,
.admin-data-panel,
.admin-table-wrap,
.admin-modal-card,
.admin-file-preview-body,
.admin-pagination,
.admin-filter-grid,
.admin-date-filter,
.admin-data-calendar,
.welcome-note {
  background:
    linear-gradient(110deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.36) 45%, rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0.22) 56%, transparent 66%, transparent 100%),
    linear-gradient(105deg, rgba(235, 247, 255, 0.94) 0%, rgba(248, 252, 244, 0.9) 50%, rgba(255, 244, 197, 0.94) 100%),
    rgba(255, 255, 255, 0.84);
  background-size: 260% 100%, 100% 100%, auto;
  animation: rpkSurfaceShine 8.5s ease-in-out infinite;
}

.form .page.is-active .question-card:hover,
.form .page.is-active .question-card:focus-within,
.form .question-card:hover,
.form .question-card:focus-within,
.section-card:hover,
.success-card:hover,
.preview-card:hover,
.preview-item:hover,
.admin-auth-panel:hover,
.admin-password-box:hover,
.admin-reset-request:hover,
.admin-summary:hover,
.admin-export-box:hover,
.admin-format-notes:hover,
.admin-data-panel:hover,
.admin-table-wrap:hover,
.admin-modal-card:hover,
.admin-file-preview-body:hover,
.admin-pagination:hover,
.admin-filter-grid:hover,
.admin-date-filter:hover,
.admin-data-calendar:hover,
.section-card:focus-within,
.success-card:focus-within,
.preview-card:focus-within,
.preview-item:focus-within,
.admin-auth-panel:focus-within,
.admin-password-box:focus-within,
.admin-reset-request:focus-within,
.admin-summary:focus-within,
.admin-export-box:focus-within,
.admin-format-notes:focus-within,
.admin-data-panel:focus-within,
.admin-table-wrap:focus-within,
.admin-modal-card:focus-within,
.admin-file-preview-body:focus-within,
.admin-pagination:focus-within,
.admin-filter-grid:focus-within,
.admin-date-filter:focus-within,
.admin-data-calendar:focus-within {
  background:
    linear-gradient(110deg, transparent 0%, transparent 35%, rgba(255, 255, 255, 0.42) 44%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.24) 57%, transparent 68%, transparent 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(231, 244, 255, 0.88) 58%, rgba(255, 247, 209, 0.92) 100%),
    rgba(255, 255, 255, 0.86);
  background-size: 260% 100%, 100% 100%, auto;
}

.form .identity-group-card:hover,
.form .identity-group-card:focus-within,
.form .welcome-note:hover,
.form .welcome-note:focus-within {
  background:
    linear-gradient(110deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.36) 45%, rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0.22) 56%, transparent 66%, transparent 100%),
    linear-gradient(105deg, rgba(235, 247, 255, 0.94) 0%, rgba(248, 252, 244, 0.9) 50%, rgba(255, 244, 197, 0.94) 100%),
    rgba(255, 255, 255, 0.84);
  background-size: 260% 100%, 100% 100%, auto;
}

.sahabat-hero::after {
  background:
    linear-gradient(110deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.28) 47%, rgba(255, 255, 255, 0.84) 50%, rgba(255, 255, 255, 0.22) 54%, transparent 64%, transparent 100%),
    radial-gradient(circle at 24% 4%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 38%, rgba(255, 255, 255, 0.14));
  background-size: 260% 100%, auto, auto;
  animation: rpkSurfaceShine 7.5s ease-in-out infinite;
}

.qr-panel,
.form-footer {
  position: relative;
  overflow: hidden;
}

.qr-panel > *,
.form-footer > * {
  position: relative;
  z-index: 1;
}

.qr-panel::after,
.form-footer::after {
  content: "";
  position: absolute;
  inset: -35% -55%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.58) 47%, rgba(255, 255, 255, 0.18) 56%, transparent 68%);
  transform: translateX(-140%) skewX(-18deg);
  animation: rpkSweepShine 6.2s ease-in-out infinite;
}

.form-footer::after {
  animation-delay: 1.2s;
}

.primary-button,
.secondary-button,
.danger-button,
.file-picker .file-trigger,
.file-menu button,
.custom-select-trigger,
.custom-select-option,
.admin-custom-select-trigger,
.admin-custom-select-option,
.admin-date-picker-button,
.admin-calendar-day,
.admin-calendar-nav,
.admin-data-table th,
#downloadExport.admin-download,
.admin-password-dropdown summary::after,
.qr-copy span {
  background-size: 230% 100%, 100% 100%;
  animation: rpkButtonShine 6.8s ease-in-out infinite;
}

#downloadExport.admin-download,
.form-footer #submitButton,
.admin-auth-shell #adminLoginForm .primary-button,
.admin-auth-shell #adminLoginPanel .admin-auth-options .secondary-button {
  background-image:
    linear-gradient(110deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.42) 48%, transparent 58%),
    linear-gradient(180deg, #59b5ff 0%, #087bd2 48%, #0057b8 100%);
}

.file-picker .file-trigger,
.custom-select-trigger,
.admin-custom-select-trigger,
.admin-date-picker-button {
  background-image:
    linear-gradient(110deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.55) 48%, transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.92));
}

.file-menu button,
.custom-select-option,
.admin-custom-select-option,
.admin-calendar-day,
.admin-calendar-nav,
.admin-data-table th {
  background-image:
    linear-gradient(110deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.48) 48%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.92));
}

.admin-data-table tbody tr {
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.admin-data-table tbody tr:hover {
  background:
    linear-gradient(110deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.28) 48%, transparent 58%),
    rgba(235, 246, 255, 0.72);
  background-size: 230% 100%, 100% 100%;
  animation: rpkButtonShine 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .intro-card,
  .form .page.is-active .question-card,
  .identity-group-card,
  .preview-card,
  .preview-item,
  .section-card,
  .success-card,
  .admin-auth-panel,
  .admin-password-box,
  .admin-reset-request,
  .admin-summary,
  .admin-export-box,
  .admin-format-notes,
  .admin-data-panel,
  .admin-table-wrap,
  .admin-modal-card,
  .admin-file-preview-body,
  .admin-pagination,
  .admin-filter-grid,
  .admin-date-filter,
  .admin-data-calendar,
  .welcome-note,
  .sahabat-hero::after,
  .qr-panel::after,
  .form-footer::after,
  .primary-button,
  .secondary-button,
  .danger-button,
  .file-picker .file-trigger,
  .file-menu button,
  .custom-select-trigger,
  .custom-select-option,
  .admin-custom-select-trigger,
  .admin-custom-select-option,
  .admin-date-picker-button,
  .admin-calendar-day,
  .admin-calendar-nav,
  .admin-data-table th,
  .admin-data-table tbody tr:hover,
  #downloadExport.admin-download,
  .admin-password-dropdown summary::after,
  .qr-copy span {
    animation: none !important;
  }
}
