:root{
  --bg: #eaf6ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;

  --primary: #2b7bb9;
  --primary-2: #5fb3e6;
  --border: #cfe9fb;

  --shadow: 0 18px 40px rgba(2, 20, 40, 0.12);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(95,179,230,0.25), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(43,123,185,0.18), transparent 60%),
    var(--bg);
}

.page{
  padding: 28px 16px 60px;
}

.biodata-card{
  max-width: 980px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header{
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(95,179,230,0.14), rgba(43,123,185,0.10));
}

.badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(43,123,185,0.12);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.title{
  margin: 10px 0 6px;
  font-size: 28px;
  line-height: 1.2;
}

.subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.header-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section{
  padding: 18px 22px 10px;
}

.section-head{
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.section-head h2{
  margin: 0;
  font-size: 18px;
  color: var(--primary);
}

.section-head p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.top-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: start;
}

.panel{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.grid{
  display: grid;
  gap: 12px;
}

.grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field{
  display: grid;
  gap: 6px;
}

.field-full{
  grid-column: 1 / -1;
}

label{
  font-weight: 700;
  font-size: 12.5px;
  color: #1f2a44;
}

input, select, textarea{
  width: 100%;
  padding: 10px 10px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .02s;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(43,123,185,0.75);
  box-shadow: 0 0 0 4px rgba(95,179,230,0.22);
}

textarea{ resize: none; }

.photo-panel{
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.photo-wrap{
  width: 190px;
  height: 230px;
  border-radius: 14px;
  border: 1px dashed rgba(43,123,185,0.55);
  background: rgba(95,179,230,0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.photo-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file{
  width: 100%;
  max-width: 240px;
}

.upload{
  width: 100%;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(95,179,230,0.08);
  cursor: pointer;
  user-select: none;
  display: grid;
  gap: 2px;
}

.upload-title{
  font-weight: 800;
  color: var(--primary);
}

.upload-sub{
  font-size: 12px;
  color: var(--muted);
}

.file-name{
  font-size: 12px;
  color: var(--muted);
}

.btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.btn-secondary{
  background: var(--primary);
  color: white;
}

.btn-ghost{
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(43,123,185,0.25);
  color: var(--primary);
}

.btn:active{
  transform: translateY(1px);
}

.card-footer{
  padding: 12px 22px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footnote{
  margin: 0;
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 900px){
  .top-grid{ grid-template-columns: 1fr; }
  .photo-panel{ justify-items: start; text-align: left; }
  .photo-wrap{ width: 100%; max-width: 320px; height: 240px; }
}

@media (max-width: 640px){
  .grid-2{ grid-template-columns: 1fr; }
  .title{ font-size: 22px; }
}

/* Print-friendly */
@media print{
  body{ background: white; }
  .page{ padding: 0; }
  .biodata-card{ box-shadow: none; border: 0; }
  .header-actions, .file, .upload, .file-name{ display: none !important; }
  input, select, textarea{
    border: 1px solid #cbd5e1;
    box-shadow: none !important;
  }
}
