:root{
  --bg:#f4f7fb; --card:#fff; --text:#111827; --muted:#6b7280; --border:#e5e7eb;
  --focus:#2563eb; --primary:#e11d2e; --primaryHover:#c81726;
  --shadow:0 18px 50px rgba(17,24,39,.10); --radius:18px;
  --ok:#16a34a; --warn:#f59e0b; --bad:#ef4444;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden}
.bg-waves{position:fixed;inset:0;pointer-events:none;z-index:-1}
.bg-waves::before{
  content:"";position:absolute;right:-160px;top:120px;width:720px;height:720px;border-radius:999px;
  background-image:url('{{ asset("assets/images/perbasi/logo167x167.png") }}');
  background-repeat:no-repeat;background-position:center;background-size:520px;opacity:.10;transform:rotate(-10deg);
}

.wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:42px 16px}
.card{width:min(540px,100%);background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid rgba(229,231,235,.85);overflow:hidden}
.header{padding:26px 26px 10px;text-align:center}
.logo{width:84px;height:84px;border-radius:16px;object-fit:contain;display:block;margin:0 auto 10px;background:#fff;border:1px solid rgba(229,231,235,.9);box-shadow:0 10px 24px rgba(17,24,39,.06);padding:10px}
.title{margin:6px 0 4px;font-size:20px;font-weight:800;letter-spacing:.3px}
.subtitle{margin:0;font-size:13px;color:var(--muted);line-height:1.5}
.content{padding:18px 26px 26px}
.badge{display:inline-block;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;background:#f3f4f6;color:#374151;margin-top:10px}
.divider{height:1px;background:#eef2f7;margin:18px 0}

.step-title{font-size:14px;font-weight:800;margin:0 0 8px}
.profesi-chooser{display:flex;gap:10px;margin-top:12px}
.choice{flex:1;border:1px solid rgba(229,231,235,.9);border-radius:14px;padding:14px 12px;background:#fff;cursor:pointer;text-align:left;transition:.15s ease;box-shadow:0 10px 22px rgba(17,24,39,.06)}
.choice:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(17,24,39,.10)}
.choice .big{font-weight:800;font-size:14px;margin:0}
.choice .small{margin:6px 0 0;font-size:12px;color:var(--muted);line-height:1.4}
.choice.was{border-left:6px solid #2563eb}
.choice.pel{border-left:6px solid #e11d2e}

.form-container{display:none;animation:fadeIn .18s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

label{display:block;font-size:13px;font-weight:800;margin-bottom:8px}
.req{color:var(--bad);font-weight:900}
.hint{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.45}

.row{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:520px){.row.two{grid-template-columns:1fr 1fr}}

input[type="text"], input[type="date"], select{
  width:100%;height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;outline:none;font-size:14px;transition:.15s ease;background:#fff;color:var(--text)
}
select:invalid{color:#9ca3af}
input:focus,select:focus{border-color:rgba(37,99,235,.55);box-shadow:0 0 0 4px rgba(37,99,235,.12)}

.file{
  display:flex;align-items:center;gap:10px;border:1px dashed #d1d5db;border-radius:14px;padding:12px;background:#fcfcfd
}

.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;padding:12px;border:1px solid rgba(229,231,235,.9);border-radius:14px;background:#fbfdff}
.topbar .kecil{font-size:12px;color:var(--muted)}
.topbar .besar{font-size:13px;font-weight:900}
.btn-mini{border:1px solid rgba(229,231,235,.9);background:#fff;border-radius:12px;height:36px;padding:0 12px;font-weight:900;font-size:12px;cursor:pointer}
.btn-mini:hover{background:#f9fafb}

.btn{width:100%;height:48px;border:none;border-radius:12px;background:var(--primary);color:#fff;font-weight:900;font-size:14px;cursor:pointer;transition:.15s ease;box-shadow:0 12px 28px rgba(225,29,46,.20)}
.btn:hover{background:var(--primaryHover)}
.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.footer-note{margin-top:14px;font-size:12px;color:var(--muted);text-align:center;line-height:1.5}

.mb-3{margin-bottom:12px}
.is-invalid{border-color:var(--bad)}
.invalid-feedback{color:var(--bad);font-size:12px;margin-top:6px}
.form-label{font-weight:800}
.fw-bold{font-weight:800}
.form-select{appearance:auto}

/* ===== Preview File ===== */
.file-preview{
  display:none;
  margin-top:10px;
  border:1px solid rgba(229,231,235,.9);
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
}
.file-preview .rowp{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.file-preview .meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.file-preview .name{
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:340px;
}
.file-preview .size{
  font-size:12px;
  color:var(--muted);
}
.file-preview .tag{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  padding:4px 10px;
  border-radius:999px;
  background:#f3f4f6;
  color:#374151;
  margin-top:4px;
  width:max-content;
}
.file-preview .tag.ok{ background:rgba(22,163,74,.12); color:var(--ok); }
.file-preview .tag.warn{ background:rgba(245,158,11,.14); color:#b45309; }
.file-preview .tag.bad{ background:rgba(239,68,68,.12); color:var(--bad); }

.btn-clear{
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  border-radius:12px;
  height:34px;
  padding:0 10px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  white-space:nowrap;
}
.btn-clear:hover{ background:#f9fafb; }

/* ✅ pastikan input email/tel ikut gaya sama */
input[type="email"], input[type="tel"], input[type="number"]{
  width:100%;
  height:44px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  outline:none;
  font-size:14px;
  transition:.15s ease;
  background:#fff;
  color:#111827;
}
input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus{
  border-color:rgba(37,99,235,.55);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

/* ====== Klub dropdown searchable (search di dalam dropdown) ====== */
.combo-wrap{position:relative}
.combo-field{
  display:flex; align-items:center; gap:8px;
  border:1px solid #e5e7eb; border-radius:12px;
  padding:8px 10px; background:#fff;
}
.combo-field input.combo-display{
  border:none !important; box-shadow:none !important;
  outline:none !important;
  height:28px !important;
  padding:0 !important;
  width:100%;
  background:transparent !important;
  font-size:14px;
  cursor:pointer;
}
.combo-toggle{
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  border-radius:10px;
  width:36px; height:34px;
  cursor:pointer;
  font-weight:900;
}
.combo-panel{
  position:absolute;
  left:0; right:0;
  top:calc(100% + 8px);
  background:#fff;
  border:1px solid rgba(229,231,235,.95);
  border-radius:14px;
  box-shadow:0 18px 50px rgba(17,24,39,.12);
  padding:10px;
  z-index:50;
}
.combo-search{
  width:100%;
  height:40px;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  outline:none;
  font-size:14px;
}
.combo-search:focus{
  border-color:rgba(37,99,235,.55);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.combo-list{
  margin-top:10px;
  max-height:220px;
  overflow:auto;
  border-radius:12px;
  border:1px solid rgba(229,231,235,.7);
  background:#fff;
}
.combo-item{
  padding:10px 12px;
  cursor:pointer;
  font-size:14px;
  border-bottom:1px solid rgba(229,231,235,.6);
}
.combo-item:last-child{border-bottom:none}
.combo-item:hover{background:#f9fafb}
.combo-meta{margin-top:8px;font-size:12px;color:#6b7280;line-height:1.45}
.combo-loading{font-size:12px;color:#6b7280;margin-top:8px}
.combo-error{font-size:12px;color:#ef4444;margin-top:8px}

/* ====== Preview File box ====== */
.file-preview{display:none;margin-top:10px;border:1px solid rgba(229,231,235,.9);border-radius:14px;padding:10px 12px;background:#fff}
.file-preview .rowp{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.file-preview .meta{display:flex;flex-direction:column;gap:4px;min-width:0}
.file-preview .name{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px}
.file-preview .size{font-size:12px;color:#6b7280}
.file-preview .tag{display:inline-block;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;background:#f3f4f6;color:#374151;margin-top:4px;width:max-content}
.file-preview .tag.ok{background:rgba(22,163,74,.12);color:#16a34a}
.file-preview .tag.warn{background:rgba(245,158,11,.14);color:#b45309}
.btn-clear{border:1px solid rgba(229,231,235,.9);background:#fff;border-radius:12px;height:34px;padding:0 10px;font-weight:900;font-size:12px;cursor:pointer;white-space:nowrap}
.btn-clear:hover{background:#f9fafb}

/* ===== Foto thumb ===== */
.thumb{
  width:44px;height:44px;border-radius:12px;object-fit:cover;
  border:1px solid rgba(229,231,235,.9); background:#fff;
}

/* ===== Modal Crop ===== */
.modal-backdrop[hidden]{display:none}
.modal-backdrop{
  position:fixed; inset:0; z-index:9999;
  background:rgba(17,24,39,.55);
  display:flex; align-items:center; justify-content:center;
  padding:16px;
}
.modal-card{
  width:min(820px,100%);
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(229,231,235,.9);
  box-shadow:0 30px 80px rgba(0,0,0,.20);
  overflow:hidden;
}
.modal-head{
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-bottom:1px solid rgba(229,231,235,.8);
}
.modal-title{font-weight:900}
.modal-body{padding:14px 16px;}
.crop-wrap{
  width:100%;
  height:min(62vh,520px);
  background:#0b1220;
  border-radius:14px;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.crop-wrap img{max-width:100%; display:block;}
.modal-foot{
  padding:14px 16px;
  display:flex; gap:10px; justify-content:flex-end;
  border-top:1px solid rgba(229,231,235,.8);
  flex-wrap:wrap;
}
.btn-secondary{
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  border-radius:12px;
  height:42px;
  padding:0 14px;
  font-weight:900;
  cursor:pointer;
}
.btn-secondary:hover{background:#f9fafb}
.btn-primary{
  border:none;
  background:#e11d2e;
  color:#fff;
  border-radius:12px;
  height:42px;
  padding:0 14px;
  font-weight:900;
  cursor:pointer;
}
.btn-primary:hover{background:#c81726}

/* klub chips */
.klub-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid rgba(229,231,235,.9);
  border-radius:999px;
  background:#fff;
  font-size:13px;
  font-weight:700;
}
.klub-chip button{
  border:none;
  background:transparent;
  font-weight:900;
  cursor:pointer;
  font-size:16px;
  line-height:1;
}
.combo-field.is-disabled{
  opacity:.65;
  pointer-events:none;
}