/* LAPORAN WBS PAGE STYLES */

:root {
  --wb-dark: #001228;
  --wb-red:  #e30613;
  --wb-red2: #c0021a;
}

/* ── Page ───────────────────────────────────── */
.wbl-page { background: #f0f3f8; padding: 60px 0 100px; }

/* ── Hero mini ──────────────────────────────── */
.wbl-hero {
  background: linear-gradient(135deg, #001228 0%, #002448 55%, #001830 100%);
  padding: 200px 0 80px; border-bottom: 3px solid var(--wb-red);
  position: relative; overflow: hidden;
}
.wbl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 100% at 90% 50%, rgba(227,6,19,0.10) 0%, transparent 70%);
}
.wbl-hero-inner { position: relative; z-index: 1; }
.wbl-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 14px;
}
.wbl-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.wbl-breadcrumb a:hover { color: #ff6b6b; }
.wbl-breadcrumb i { font-size: 10px; }
.wbl-hero h1 {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(22px, 3.5vw, 36px); color: #fff; margin-bottom: 10px;
}
.wbl-hero h1 span { color: var(--wb-red); }
.wbl-hero p { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0; max-width: 520px; line-height: 1.7; }

/* Confidentiality note */
.wbl-notice {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 10px 18px; margin-top: 20px;
  font-size: 12px; color: rgba(255,255,255,0.65);
}
.wbl-notice i { color: #4caf50; font-size: 15px; flex-shrink: 0; }

/* ── Stepper ────────────────────────────────── */
.wbl-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 44px 0 40px; position: relative;
}
.wbl-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; flex: 1; max-width: 140px; position: relative; z-index: 1;
}
.wbl-step-circle {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; border: 3px solid #dde2ea;
  background: #fff; color: #aaa; transition: all .3s;
}
.wbl-step.active .wbl-step-circle {
  background: var(--wb-red); border-color: var(--wb-red); color: #fff;
  box-shadow: 0 4px 16px rgba(227,6,19,0.35);
}
.wbl-step.done .wbl-step-circle {
  background: #2e7d32; border-color: #2e7d32; color: #fff;
}
.wbl-step-label {
  font-size: 11px; font-weight: 700; color: #aaa; text-align: center;
  transition: color .3s;
}
.wbl-step.active .wbl-step-label { color: var(--wb-red); }
.wbl-step.done  .wbl-step-label { color: #2e7d32; }
.wbl-step-line {
  flex: 1; height: 3px; background: #dde2ea;
  transition: background .3s; margin-bottom: 28px;
}
.wbl-step-line.done { background: #2e7d32; }

/* ── Form container ─────────────────────────── */
.wbl-form-wrap {
  background: #fff; border-radius: 24px;
  box-shadow: 0 6px 40px rgba(0,0,0,0.08); overflow: hidden;
}
.wbl-form-head {
  background: linear-gradient(90deg, #001228, #002448);
  padding: 24px 36px; display: flex; align-items: center; gap: 14px;
}
.wbl-form-head-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--wb-red); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.wbl-form-head h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 18px; color: #fff; margin: 0 0 3px;
}
.wbl-form-head p { font-size: 12px; color: rgba(255,255,255,0.55); margin: 0; }

.wbl-form-body { padding: 36px; }

/* ── Field styles ───────────────────────────── */
.wbl-field { margin-bottom: 24px; }
.wbl-label {
  font-size: 13px; font-weight: 700; color: #0f1f3d;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.wbl-label .req { color: var(--wb-red); }
.wbl-label .tip {
  font-size: 10px; font-weight: 500; color: #aaa;
  margin-left: auto; font-style: italic;
}
.wbl-input, .wbl-select, .wbl-textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid #dde2ea; font-size: 13.5px;
  font-family: inherit; color: #0f1f3d; background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.wbl-input:focus, .wbl-select:focus, .wbl-textarea:focus {
  border-color: var(--wb-red); box-shadow: 0 0 0 3px rgba(227,6,19,0.1);
}
.wbl-textarea { resize: vertical; min-height: 120px; }
.wbl-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23aaa' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.wbl-hint { font-size: 11.5px; color: #999; margin-top: 6px; }

/* ── Radio / option cards ───────────────────── */
.opt-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width:767px) { .opt-cards { grid-template-columns: 1fr; } }
.opt-card { position: relative; }
.opt-card input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.opt-card label {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 16px; border-radius: 14px;
  border: 2px solid #dde2ea; cursor: pointer;
  transition: all .22s; background: #fafafa;
}
.opt-card input:checked + label {
  border-color: var(--wb-red); background: rgba(227,6,19,0.04);
  box-shadow: 0 4px 16px rgba(227,6,19,0.12);
}
.opt-card label:hover { border-color: #bbb; }
.opt-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.opt-card-title { font-size: 13px; font-weight: 700; color: #0f1f3d; }
.opt-card-desc { font-size: 11.5px; color: #777; line-height: 1.5; }
.opt-card input:checked + label .opt-card-title { color: var(--wb-red); }

/* ── Violation category chips ───────────────── */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip { position: relative; }
.cat-chip input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.cat-chip label {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 100px;
  border: 1.5px solid #dde2ea; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: #555;
  background: #fff; transition: all .2s;
}
.cat-chip label:hover { border-color: var(--wb-red); color: var(--wb-red); }
.cat-chip input:checked + label {
  background: var(--wb-red); border-color: var(--wb-red);
  color: #fff; box-shadow: 0 3px 12px rgba(227,6,19,0.3);
}

/* ── Date + time row ────────────────────────── */
.wbl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:575px) { .wbl-row { grid-template-columns: 1fr; } }

/* ── File upload ────────────────────────────── */
.wbl-upload {
  border: 2px dashed #dde2ea; border-radius: 14px;
  padding: 32px; text-align: center;
  background: #fafbfc; cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.wbl-upload:hover { border-color: var(--wb-red); background: rgba(227,6,19,0.02); }
.wbl-upload input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.wbl-upload-icon { font-size: 36px; color: #ccc; margin-bottom: 12px; }
.wbl-upload p { font-size: 13px; color: #888; margin: 0; }
.wbl-upload strong { color: var(--wb-red); }
.wbl-upload-hint { font-size: 11px; color: #bbb; margin-top: 6px; }

/* ── Identity conditional ───────────────────── */
.wbl-identity-fields { display: none; margin-top: 20px; }
.wbl-identity-fields.show { display: block; }

/* ── Step panels ────────────────────────────── */
.wbl-step-panel { display: none; }
.wbl-step-panel.active { display: block; }

/* ── Navigation buttons ─────────────────────── */
.wbl-form-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 36px; border-top: 1px solid #f0f0f0;
  background: #fafbfc; gap: 12px;
}
.btn-prev {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #555; font-size: 13px; font-weight: 700;
  padding: 12px 24px; border-radius: 12px;
  border: 1.5px solid #dde2ea; cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.btn-prev:hover { border-color: #aaa; color: #333; }
.btn-next {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wb-red); color: #fff; font-size: 13px; font-weight: 700;
  padding: 12px 28px; border-radius: 12px; border: none;
  cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 16px rgba(227,6,19,0.3);
}
.btn-next:hover { background: var(--wb-red2); transform: translateY(-1px); }
.btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2e7d32; color: #fff; font-size: 13px; font-weight: 700;
  padding: 12px 32px; border-radius: 12px; border: none;
  cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 16px rgba(46,125,50,0.3);
}
.btn-submit:hover { background: #1b5e20; transform: translateY(-1px); }

/* ── Summary panel (Step 4) ─────────────────── */
.summary-block {
  background: #f8fafc; border-radius: 14px;
  padding: 20px 24px; margin-bottom: 16px;
}
.summary-block h4 {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: #aaa; margin-bottom: 12px;
}
.summary-row {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid #eee; font-size: 13px;
}
.summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.summary-key { color: #888; font-weight: 600; min-width: 140px; flex-shrink: 0; }
.summary-val { color: #0f1f3d; font-weight: 500; }

/* ── Success screen ─────────────────────────── */
.wbl-success {
  text-align: center; padding: 60px 36px;
}
.wbl-success-icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: #fff; margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(46,125,50,0.35);
}
.wbl-success h2 {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 26px; color: #0f1f3d; margin-bottom: 12px;
}
.wbl-success p { font-size: 14px; color: #666; max-width: 480px; margin: 0 auto 10px; line-height: 1.7; }
.wbl-ticket {
  display: inline-block; background: #f0f3f8; border-radius: 12px;
  padding: 14px 28px; margin: 20px 0; font-size: 15px; font-weight: 800;
  color: var(--wb-red); letter-spacing: 2px; font-family: 'Poppins', sans-serif;
}

/* ── Sidebar tips ───────────────────────────── */
.wbl-sidebar { position: sticky; top: 100px; }
.wbl-tip-card {
  background: #fff; border-radius: 18px;
  padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  margin-bottom: 18px;
}
.wbl-tip-card h4 {
  font-size: 13px; font-weight: 800; color: #0f1f3d;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.wbl-tip-card h4 i { color: var(--wb-red); }
.wbl-tip-item {
  display: flex; gap: 10px; margin-bottom: 10px;
  font-size: 12.5px; color: #555; line-height: 1.55;
}

/* ── Sidebar contact rows ───────────────────── */
.wbl-contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; font-size: 12.5px; color: #333;
}
.wbl-contact-row i {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(227,6,19,0.08); color: var(--wb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.wbl-contact-row a {
  color: #0f1f3d; text-decoration: none; font-weight: 600;
  font-size: 12.5px;
}
.wbl-contact-row a:hover { color: var(--wb-red); }

.wbl-tip-divider {
  border: none; border-top: 1px solid #eee; margin: 8px 0;
}

/* ── Sidebar guarantee card ─────────────────── */
.wbl-guarantee-card {
  background: linear-gradient(135deg, #001228, #002448);
  border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.wbl-guarantee-card h4 {
  font-size: 13px; font-weight: 800; color: #fff;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.wbl-guarantee-card h4::before {
  content: '\f3ed';
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--wb-red); font-size: 14px;
}
.wbl-guarantee-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px; font-size: 12px;
  color: rgba(255,255,255,0.75); line-height: 1.55;
}
.wbl-guarantee-item:last-child { margin-bottom: 0; }
.wbl-guarantee-item i {
  color: #4caf50; font-size: 13px; margin-top: 2px; flex-shrink: 0;
}
