:root {
  --wbsf-primary: #005baa;
  --wbsf-primary-dark: #003f7a;
  --wbsf-primary-soft: #eaf4ff;

  --wbsf-green: #00a859;
  --wbsf-green-dark: #008546;
  --wbsf-green-soft: #e9fff3;

  --wbsf-red: #dc2626;
  --wbsf-red-soft: #fff1f2;

  --wbsf-yellow: #f59e0b;
  --wbsf-yellow-soft: #fffbeb;

  --wbsf-navy: #0f172a;
  --wbsf-text: #1e293b;
  --wbsf-muted: #64748b;
  --wbsf-soft: #f6f9fc;
  --wbsf-white: #ffffff;

  --wbsf-border: #dbe5f0;
  --wbsf-border-soft: #edf2f7;

  --wbsf-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --wbsf-shadow-md: 0 18px 48px rgba(15, 23, 42, 0.12);
  --wbsf-shadow-lg: 0 30px 90px rgba(15, 23, 42, 0.18);

  --wbsf-radius-sm: 12px;
  --wbsf-radius-md: 18px;
  --wbsf-radius-lg: 28px;
  --wbsf-radius-xl: 36px;

  --wbsf-transition: 0.25s ease;
}

/* =====================================================
   RESET
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--wbsf-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #ffffff;
}

body.dark-theme {
  --wbsf-text: #e5edf7;
  --wbsf-muted: #a7b4c7;
  --wbsf-soft: #0f172a;
  --wbsf-white: #111827;
  --wbsf-border: rgba(148, 163, 184, 0.24);
  --wbsf-border-soft: rgba(148, 163, 184, 0.16);

  background: #0b1120;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

input,
textarea {
  width: 100%;
}

input,
textarea,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* =====================================================
   PAGE
===================================================== */

.wbsf-page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 91, 170, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 168, 89, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #ffffff 100%);
}

body.dark-theme .wbsf-page {
  background:
    radial-gradient(circle at top left, rgba(0, 168, 89, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 32%),
    linear-gradient(180deg, #0b1120 0%, #111827 54%, #0b1120 100%);
}

/* Joomla full width fix */
.wbsf-page {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* =====================================================
   HEADER
===================================================== */

.wbsf-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  border-bottom: 1px solid rgba(219, 229, 240, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.dark-theme .wbsf-header {
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.9);
}

.wbsf-header-container {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.wbsf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wbsf-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.wbsf-brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wbsf-brand-text strong {
  color: var(--wbsf-navy);
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body.dark-theme .wbsf-brand-text strong {
  color: #f8fafc;
}

.wbsf-brand-text span {
  color: var(--wbsf-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 750;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wbsf-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.wbsf-theme-toggle,
.wbsf-status-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  transition:
    transform var(--wbsf-transition),
    box-shadow var(--wbsf-transition),
    background var(--wbsf-transition),
    color var(--wbsf-transition);
}

.wbsf-theme-toggle {
  color: var(--wbsf-navy);
  background: #f4f8fd;
  border: 1px solid var(--wbsf-border-soft);
}

body.dark-theme .wbsf-theme-toggle {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.wbsf-status-link {
  color: #ffffff;
  background: linear-gradient(135deg, var(--wbsf-primary), var(--wbsf-primary-dark));
  box-shadow: 0 10px 24px rgba(0, 91, 170, 0.22);
}

.wbsf-theme-toggle:hover,
.wbsf-status-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--wbsf-shadow-sm);
}

/* =====================================================
   HERO
===================================================== */

.wbsf-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 110px 18px 74px;
}

.wbsf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--wbsf-hero-image, url("assets/kantor-bg.jpg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.02) brightness(0.98);
}

.wbsf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62) 0%,
      rgba(255, 255, 255, 0.5) 38%,
      rgba(255, 255, 255, 0.44) 68%,
      rgba(255, 255, 255, 0.72) 100%
    ),
    radial-gradient(circle at 50% 8%, rgba(0, 91, 170, 0.1), transparent 42%),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.42)
    );
}

body.dark-theme .wbsf-hero-bg {
  filter: saturate(0.98) contrast(1.04) brightness(0.74);
}

body.dark-theme .wbsf-hero-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.58) 0%,
      rgba(15, 23, 42, 0.52) 40%,
      rgba(15, 23, 42, 0.58) 72%,
      rgba(15, 23, 42, 0.84) 100%
    ),
    radial-gradient(circle at 50% 8%, rgba(0, 168, 89, 0.16), transparent 42%);
}

.wbsf-hero-content {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 34px 28px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
}

body.dark-theme .wbsf-hero-content {
  background: rgba(15, 23, 42, 0.34);
  border-color: rgba(255, 255, 255, 0.1);
}

.wbsf-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--wbsf-primary-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 91, 170, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: var(--wbsf-shadow-sm);
  transition:
    transform var(--wbsf-transition),
    background var(--wbsf-transition),
    box-shadow var(--wbsf-transition);
}

.wbsf-back-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: var(--wbsf-shadow-md);
}

body.dark-theme .wbsf-back-link {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
}

.wbsf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--wbsf-primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 91, 170, 0.12);
  box-shadow: var(--wbsf-shadow-sm);
  font-size: 0.82rem;
  font-weight: 900;
}

.wbsf-hero-badge span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--wbsf-green);
  box-shadow: 0 0 0 6px rgba(0, 168, 89, 0.12);
}

body.dark-theme .wbsf-hero-badge {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}

.wbsf-hero h1 {
  max-width: 920px;
  margin: 0 auto 18px;
  color: var(--wbsf-navy);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.07em;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.25);
}

body.dark-theme .wbsf-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.wbsf-hero p {
  max-width: 760px;
  margin: 0 auto 30px;
  color: #1e293b;
  font-size: clamp(0.96rem, 1.4vw, 1.1rem);
  line-height: 1.8;
  font-weight: 800;
}

body.dark-theme .wbsf-hero p {
  color: #dce7f5;
}

.wbsf-hero-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(880px, 100%);
  margin: 0 auto;
}

.wbsf-info-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px;
  border-radius: 22px;
  color: var(--wbsf-primary-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.wbsf-info-item i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--wbsf-green);
  background: rgba(0, 168, 89, 0.1);
  font-size: 1.08rem;
}

.wbsf-info-item strong {
  color: var(--wbsf-navy);
  font-size: 1rem;
  font-weight: 950;
}

.wbsf-info-item span {
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 650;
}

body.dark-theme .wbsf-info-item {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.18);
}

body.dark-theme .wbsf-info-item strong {
  color: #ffffff;
}

body.dark-theme .wbsf-info-item span {
  color: #cbd5e1;
}

/* =====================================================
   SECTION LAYOUT
===================================================== */

.wbsf-section {
  padding: 82px 18px 90px;
}

.wbsf-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.wbsf-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.wbsf-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

.wbsf-side-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--wbsf-border-soft);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--wbsf-shadow-sm);
}

body.dark-theme .wbsf-side-card {
  background: rgba(17, 24, 39, 0.94);
}

.wbsf-side-main {
  background:
    radial-gradient(circle at top right, rgba(0, 168, 89, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.dark-theme .wbsf-side-main {
  background:
    radial-gradient(circle at top right, rgba(0, 168, 89, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
}

.wbsf-side-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 18px;
  color: var(--wbsf-primary);
  background: var(--wbsf-primary-soft);
  font-size: 1.4rem;
}

.wbsf-side-card h2,
.wbsf-side-card h3 {
  margin: 0 0 10px;
  color: var(--wbsf-navy);
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.wbsf-side-card h2 {
  font-size: 1.35rem;
}

.wbsf-side-card h3 {
  font-size: 1.06rem;
}

body.dark-theme .wbsf-side-card h2,
body.dark-theme .wbsf-side-card h3 {
  color: #ffffff;
}

.wbsf-side-card p {
  margin: 0;
  color: var(--wbsf-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  font-weight: 650;
}

.wbsf-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wbsf-check-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--wbsf-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 750;
}

.wbsf-check-list i {
  color: var(--wbsf-green);
  margin-top: 2px;
}

.wbsf-warning-card {
  border-color: rgba(245, 158, 11, 0.22);
  background: var(--wbsf-yellow-soft);
}

.wbsf-warning-card h3 {
  color: #92400e;
}

.wbsf-warning-card p {
  color: #78350f;
}

body.dark-theme .wbsf-warning-card {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.1);
}

body.dark-theme .wbsf-warning-card h3 {
  color: #facc15;
}

body.dark-theme .wbsf-warning-card p {
  color: #fde68a;
}

/* =====================================================
   FORM CARD
===================================================== */

.wbsf-form-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(0, 91, 170, 0.08);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 91, 170, 0.05), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(0, 168, 89, 0.06), transparent 30%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--wbsf-shadow-md);
}

body.dark-theme .wbsf-form-card {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.08), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(0, 168, 89, 0.08), transparent 30%),
    rgba(17, 24, 39, 0.96);
}

.wbsf-form-header {
  padding: 34px 34px 26px;
  border-bottom: 1px solid var(--wbsf-border-soft);
}

.wbsf-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--wbsf-primary-dark);
  background: var(--wbsf-primary-soft);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dark-theme .wbsf-kicker {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.12);
}

.wbsf-form-header h2 {
  margin: 0 0 12px;
  color: var(--wbsf-navy);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.055em;
}

body.dark-theme .wbsf-form-header h2 {
  color: #ffffff;
}

.wbsf-form-header p {
  max-width: 720px;
  margin: 0;
  color: var(--wbsf-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  font-weight: 650;
}

.wbsf-form-header strong {
  color: var(--wbsf-red);
}

/* =====================================================
   PROGRESS
===================================================== */

.wbsf-progress {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 26px 34px;
  border-bottom: 1px solid var(--wbsf-border-soft);
}

.wbsf-progress-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--wbsf-muted);
}

.wbsf-progress-item span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: var(--wbsf-muted);
  background: #f4f8fd;
  border: 1px solid var(--wbsf-border-soft);
  font-size: 0.9rem;
  font-weight: 950;
  transition:
    background var(--wbsf-transition),
    color var(--wbsf-transition),
    box-shadow var(--wbsf-transition);
}

body.dark-theme .wbsf-progress-item span {
  background: rgba(255, 255, 255, 0.08);
}

.wbsf-progress-item p {
  margin: 0;
  color: inherit;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 900;
}

.wbsf-progress-item.is-active {
  color: var(--wbsf-primary-dark);
}

body.dark-theme .wbsf-progress-item.is-active {
  color: #bfdbfe;
}

.wbsf-progress-item.is-active span {
  color: #ffffff;
  background: linear-gradient(135deg, var(--wbsf-primary), var(--wbsf-primary-dark));
  box-shadow: 0 12px 26px rgba(0, 91, 170, 0.2);
}

.wbsf-progress-item.is-complete span {
  color: #ffffff;
  background: linear-gradient(135deg, var(--wbsf-green), var(--wbsf-green-dark));
  box-shadow: 0 12px 26px rgba(0, 168, 89, 0.22);
}

.wbsf-progress-line {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--wbsf-border-soft);
  overflow: hidden;
}

.wbsf-progress-line::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wbsf-primary), var(--wbsf-green));
  transition: width 0.35s ease;
}

.wbsf-progress.is-step-2 .wbsf-progress-line::before {
  width: 100%;
}

/* =====================================================
   FORM
===================================================== */

.wbsf-form {
  padding: 34px;
}

.wbsf-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wbsf-step {
  display: none;
}

.wbsf-step.is-active {
  display: block;
}

.wbsf-section-title {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin-bottom: 26px;
}

.wbsf-section-title > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--wbsf-primary), var(--wbsf-primary-dark));
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(0, 91, 170, 0.2);
}

.wbsf-section-title h3 {
  margin: 0 0 6px;
  color: var(--wbsf-navy);
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.035em;
}

body.dark-theme .wbsf-section-title h3 {
  color: #ffffff;
}

.wbsf-section-title p {
  margin: 0;
  color: var(--wbsf-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 650;
}

.wbsf-field {
  margin-bottom: 24px;
}

.wbsf-grid {
  display: grid;
  gap: 18px;
}

.wbsf-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wbsf-field label,
.wbsf-fieldset legend {
  display: block;
  margin: 0 0 7px;
  color: var(--wbsf-navy);
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 950;
}

body.dark-theme .wbsf-field label,
body.dark-theme .wbsf-fieldset legend {
  color: #ffffff;
}

.wbsf-field label em {
  color: var(--wbsf-muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
}

.wbsf-required {
  color: var(--wbsf-red);
}

.wbsf-help {
  margin: 0 0 12px;
  color: var(--wbsf-muted);
  font-size: 0.84rem;
  line-height: 1.65;
  font-weight: 650;
}

.wbsf-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* =====================================================
   INPUT / TEXTAREA
===================================================== */

.wbsf-input-wrap,
.wbsf-textarea-wrap {
  position: relative;
}

.wbsf-input-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--wbsf-border);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  transition:
    border-color var(--wbsf-transition),
    box-shadow var(--wbsf-transition),
    background var(--wbsf-transition);
}

body.dark-theme .wbsf-input-wrap {
  background: rgba(15, 23, 42, 0.68);
}

.wbsf-input-wrap:focus-within,
.wbsf-textarea-wrap:focus-within {
  border-color: rgba(0, 91, 170, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 91, 170, 0.09);
}

.wbsf-input-wrap i {
  display: grid;
  place-items: center;
  color: var(--wbsf-primary);
  font-size: 1rem;
}

.wbsf-input-wrap input {
  min-height: 54px;
  padding: 0 16px 0 2px;
  border: 0;
  outline: 0;
  color: var(--wbsf-text);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 700;
}

.wbsf-input-wrap input::placeholder,
.wbsf-textarea-wrap textarea::placeholder {
  color: #94a3b8;
}

.wbsf-textarea-wrap {
  border: 1px solid var(--wbsf-border);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  transition:
    border-color var(--wbsf-transition),
    box-shadow var(--wbsf-transition),
    background var(--wbsf-transition);
}

body.dark-theme .wbsf-textarea-wrap {
  background: rgba(15, 23, 42, 0.68);
}

.wbsf-textarea-wrap textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 0;
  outline: 0;
  color: var(--wbsf-text);
  background: transparent;
  resize: vertical;
  font-size: 0.94rem;
  line-height: 1.7;
  font-weight: 650;
}

.wbsf-field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.wbsf-field-meta small:last-child {
  margin-left: auto;
  color: var(--wbsf-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

/* =====================================================
   NOTE BOX - PENGIRIMAN BUKTI
===================================================== */

.wbsf-note-box {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 91, 170, 0.16);
  background: #eff6ff;
}

.wbsf-note-box i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--wbsf-primary);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.wbsf-note-box span {
  color: #1e3a8a;
  font-size: 0.86rem;
  line-height: 1.65;
  font-weight: 750;
}

body.dark-theme .wbsf-note-box {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(96, 165, 250, 0.12);
}

body.dark-theme .wbsf-note-box i {
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.08);
}

body.dark-theme .wbsf-note-box span {
  color: #bfdbfe;
}

/* =====================================================
   ERROR
===================================================== */

.wbsf-error {
  display: block;
  min-height: 18px;
  color: var(--wbsf-red);
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 850;
}

.wbsf-field.is-invalid .wbsf-input-wrap,
.wbsf-field.is-invalid .wbsf-textarea-wrap,
.wbsf-fieldset.is-invalid .wbsf-check-option,
.wbsf-fieldset.is-invalid .wbsf-statement-option {
  border-color: rgba(220, 38, 38, 0.5);
}

.wbsf-field.is-invalid .wbsf-input-wrap,
.wbsf-field.is-invalid .wbsf-textarea-wrap {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

/* =====================================================
   CHECKBOX OPTION
===================================================== */

.wbsf-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wbsf-check-option,
.wbsf-statement-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--wbsf-border);
  background: #ffffff;
  cursor: pointer;
  transition:
    transform var(--wbsf-transition),
    border-color var(--wbsf-transition),
    box-shadow var(--wbsf-transition),
    background var(--wbsf-transition);
}

body.dark-theme .wbsf-check-option,
body.dark-theme .wbsf-statement-option {
  background: rgba(15, 23, 42, 0.68);
}

.wbsf-check-option {
  min-height: 112px;
  padding: 16px;
  border-radius: 18px;
}

.wbsf-statement-option {
  padding: 16px;
  border-radius: 18px;
}

.wbsf-check-option:hover,
.wbsf-statement-option:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 91, 170, 0.28);
  box-shadow: var(--wbsf-shadow-sm);
}

.wbsf-check-option input,
.wbsf-statement-option input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--wbsf-green);
  cursor: pointer;
}

.wbsf-check-option span,
.wbsf-statement-option span {
  min-width: 0;
}

.wbsf-check-option strong {
  display: block;
  margin-bottom: 5px;
  color: var(--wbsf-navy);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 950;
}

body.dark-theme .wbsf-check-option strong {
  color: #ffffff;
}

.wbsf-check-option small {
  display: block;
  color: var(--wbsf-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 650;
}

.wbsf-statement-option span {
  color: var(--wbsf-text);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 700;
}

.wbsf-check-option:has(input:checked),
.wbsf-statement-option:has(input:checked) {
  border-color: rgba(0, 168, 89, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, var(--wbsf-green-soft) 100%);
  box-shadow: 0 12px 26px rgba(0, 168, 89, 0.1);
}

body.dark-theme .wbsf-check-option:has(input:checked),
body.dark-theme .wbsf-statement-option:has(input:checked) {
  background: rgba(0, 168, 89, 0.12);
}

/* =====================================================
   STEP 2
===================================================== */

.wbsf-statement-box,
.wbsf-privacy-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
}

.wbsf-statement-box {
  border: 1px solid rgba(0, 91, 170, 0.14);
  background: var(--wbsf-primary-soft);
}

body.dark-theme .wbsf-statement-box {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.18);
}

.wbsf-statement-icon,
.wbsf-privacy-card > div {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--wbsf-primary);
  background: #ffffff;
  box-shadow: var(--wbsf-shadow-sm);
}

body.dark-theme .wbsf-statement-icon,
body.dark-theme .wbsf-privacy-card > div {
  background: rgba(255, 255, 255, 0.08);
}

.wbsf-statement-box p,
.wbsf-privacy-card p {
  margin: 0;
  color: var(--wbsf-text);
  font-size: 0.9rem;
  line-height: 1.75;
  font-weight: 700;
}

.wbsf-statement-box strong {
  color: var(--wbsf-primary-dark);
}

body.dark-theme .wbsf-statement-box strong {
  color: #bfdbfe;
}

.wbsf-statement-list {
  display: grid;
  gap: 12px;
}

.wbsf-privacy-card {
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: var(--wbsf-yellow-soft);
}

.wbsf-privacy-card > div {
  color: var(--wbsf-yellow);
}

.wbsf-privacy-card p {
  color: #78350f;
}

body.dark-theme .wbsf-privacy-card {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.22);
}

body.dark-theme .wbsf-privacy-card p {
  color: #fde68a;
}

/* =====================================================
   MESSAGE
===================================================== */

.wbsf-message {
  display: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 800;
}

.wbsf-message.is-visible {
  display: block;
}

.wbsf-message.is-error {
  color: #991b1b;
  background: #fff1f2;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.wbsf-message.is-success {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid rgba(0, 168, 89, 0.2);
}

.wbsf-message.is-info {
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid rgba(0, 91, 170, 0.18);
}

body.dark-theme .wbsf-message.is-error {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.12);
}

body.dark-theme .wbsf-message.is-success {
  color: #bbf7d0;
  background: rgba(0, 168, 89, 0.12);
}

body.dark-theme .wbsf-message.is-info {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.12);
}

/* =====================================================
   BUTTONS
===================================================== */

.wbsf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.wbsf-actions-end {
  justify-content: flex-end;
}

.wbsf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 950;
  transition:
    transform var(--wbsf-transition),
    box-shadow var(--wbsf-transition),
    background var(--wbsf-transition),
    color var(--wbsf-transition),
    border-color var(--wbsf-transition),
    opacity var(--wbsf-transition);
}

.wbsf-btn:hover {
  transform: translateY(-2px);
}

.wbsf-btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.wbsf-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--wbsf-green), var(--wbsf-green-dark));
  box-shadow: 0 16px 34px rgba(0, 168, 89, 0.24);
}

.wbsf-btn-primary:hover {
  box-shadow: 0 22px 46px rgba(0, 168, 89, 0.3);
}

.wbsf-btn-light {
  color: var(--wbsf-primary-dark);
  background: #ffffff;
  border: 1px solid rgba(0, 91, 170, 0.18);
  box-shadow: var(--wbsf-shadow-sm);
}

body.dark-theme .wbsf-btn-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

.wbsf-btn-secondary {
  color: #475569;
  background: #f4f8fd;
  border: 1px solid var(--wbsf-border-soft);
}

body.dark-theme .wbsf-btn-secondary {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

/* =====================================================
   RESULT PANEL
===================================================== */

.wbsf-result-panel {
  display: none;
  padding: 42px 34px 38px;
  text-align: center;
  border-top: 1px solid var(--wbsf-border-soft);
}

.wbsf-result-panel.is-visible,
.wbsf-result-panel.show {
  display: block;
}

.wbsf-form-card.has-result .wbsf-form,
.wbsf-form-card.has-result .wbsf-progress {
  display: none;
}

.wbsf-result-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--wbsf-green), var(--wbsf-green-dark));
  box-shadow: 0 18px 38px rgba(0, 168, 89, 0.24);
}

.wbsf-result-icon i {
  font-size: 2.1rem;
}

.wbsf-result-panel h2 {
  max-width: 680px;
  margin: 0 auto 12px;
  color: var(--wbsf-navy);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.052em;
}

body.dark-theme .wbsf-result-panel h2 {
  color: #ffffff;
}

.wbsf-result-panel > p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: var(--wbsf-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  font-weight: 650;
}

.wbsf-ticket-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 24px;
}

.wbsf-ticket-item {
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(0, 91, 170, 0.32);
  background: #f8fbff;
}

body.dark-theme .wbsf-ticket-item {
  background: rgba(15, 23, 42, 0.68);
}

.wbsf-ticket-item small {
  display: block;
  margin-bottom: 8px;
  color: var(--wbsf-muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wbsf-ticket-item strong {
  display: block;
  margin-bottom: 14px;
  color: var(--wbsf-primary-dark);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0.02em;
  word-break: break-word;
}

body.dark-theme .wbsf-ticket-item strong {
  color: #bfdbfe;
}

.wbsf-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--wbsf-primary-dark);
  background: #ffffff;
  border: 1px solid rgba(0, 91, 170, 0.16);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: var(--wbsf-shadow-sm);
}

body.dark-theme .wbsf-copy-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

.wbsf-result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================================================
   FOOTER
===================================================== */

.wbsf-footer {
  padding: 30px 18px;
  border-top: 1px solid var(--wbsf-border-soft);
  background: #ffffff;
}

body.dark-theme .wbsf-footer {
  background: #0b1120;
}

.wbsf-footer-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wbsf-footer-container p {
  margin: 0;
  color: var(--wbsf-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 650;
}

/* =====================================================
   EFFECTS
===================================================== */

.wbsf-btn.is-pressed,
.wbsf-theme-toggle.is-pressed,
.wbsf-status-link.is-pressed,
.wbsf-copy-btn.is-pressed,
.wbsf-back-link.is-pressed {
  transform: scale(0.96);
}

.wbsf-form-card,
.wbsf-side-card,
.wbsf-hero-content,
.wbsf-info-item {
  transition:
    transform var(--wbsf-transition),
    box-shadow var(--wbsf-transition),
    background var(--wbsf-transition),
    border-color var(--wbsf-transition);
}

.wbsf-form-card.scroll-hidden,
.wbsf-side-card.scroll-hidden,
.wbsf-hero-content.scroll-hidden {
  opacity: 0;
  transform: translateY(22px);
}

.wbsf-form-card.is-visible,
.wbsf-side-card.is-visible,
.wbsf-hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   FOCUS
===================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
label:focus-within {
  outline: 3px solid rgba(0, 91, 170, 0.24);
  outline-offset: 3px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1120px) {
  .wbsf-layout {
    grid-template-columns: 1fr;
  }

  .wbsf-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wbsf-side-main {
    grid-column: span 1;
  }
}

@media (max-width: 920px) {
  .wbsf-sidebar {
    grid-template-columns: 1fr;
  }

  .wbsf-hero-info {
    grid-template-columns: 1fr;
  }

  .wbsf-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .wbsf-grid-2 {
    grid-template-columns: 1fr;
  }

  .wbsf-ticket-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wbsf-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .wbsf-header-container {
    width: min(100% - 24px, 1180px);
    min-height: 70px;
  }

  .wbsf-brand-logo {
    width: 38px;
    height: 38px;
  }

  .wbsf-brand-text strong {
    font-size: 0.74rem;
  }

  .wbsf-brand-text span {
    font-size: 0.66rem;
    line-clamp: 1;
    -webkit-line-clamp: 1;
  }

  .wbsf-theme-toggle {
    width: 40px;
    padding: 0;
  }

  .wbsf-theme-toggle span {
    display: none;
  }

  .wbsf-status-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .wbsf-hero {
    min-height: auto;
    padding: 94px 14px 54px;
  }

  .wbsf-hero-content {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .wbsf-hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
    letter-spacing: -0.055em;
  }

  .wbsf-hero p {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .wbsf-section {
    padding: 58px 14px 70px;
  }

  .wbsf-form-card {
    border-radius: 26px;
  }

  .wbsf-form-header,
  .wbsf-progress,
  .wbsf-form,
  .wbsf-result-panel {
    padding-left: 22px;
    padding-right: 22px;
  }

  .wbsf-progress {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wbsf-progress-line {
    display: none;
  }

  .wbsf-progress-item {
    padding: 12px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--wbsf-border-soft);
  }

  body.dark-theme .wbsf-progress-item {
    background: rgba(255, 255, 255, 0.06);
  }

  .wbsf-section-title {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .wbsf-section-title > span {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .wbsf-section-title h3 {
    font-size: 1.18rem;
  }

  .wbsf-check-option {
    min-height: auto;
  }

  .wbsf-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wbsf-btn {
    width: 100%;
  }

  .wbsf-statement-box,
  .wbsf-privacy-card,
  .wbsf-note-box {
    grid-template-columns: 1fr;
  }

  .wbsf-footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .wbsf-brand-text span {
    display: none;
  }

  .wbsf-status-link {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .wbsf-status-link i {
    font-size: 1rem;
  }

  .wbsf-hero h1 {
    font-size: 1.9rem;
  }

  .wbsf-form-header h2,
  .wbsf-result-panel h2 {
    font-size: 1.55rem;
  }

  .wbsf-form-header,
  .wbsf-progress,
  .wbsf-form,
  .wbsf-result-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wbsf-form {
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .wbsf-input-wrap {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .wbsf-ticket-item {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}