/* Marian School ID Card Generator - styles */
* { box-sizing: border-box; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #eef1f5;
  margin: 0;
  padding: 24px;
  color: #111;
}

/* ---------- Form ---------- */
.form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
}
.form-wrap h1 { margin: 0 0 4px; color: #1b3a8a; }
.form-wrap .sub { margin: 0 0 18px; color: #666; }
.id-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}
.id-form input, .id-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #cfd6e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.id-form .row { display: flex; gap: 12px; }
.id-form .row label { flex: 1; }
.id-form button {
  width: 100%;
  padding: 11px;
  background: #1b3a8a;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.id-form button:hover { background: #16306f; }

/* ---------- Toolbar ---------- */
.toolbar {
  max-width: 360px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.btn {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #cfd6e0;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
  font-size: 13px;
  cursor: pointer;
}
.btn.primary { background: #1b3a8a; color: #fff; border-color: #1b3a8a; }

/* ---------- ID Card ---------- */
.card-body { background: #eef1f5; }
.id-card {
  width: 360px;
  min-height: 580px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
  padding-bottom: 16px;
}

/* Header */
.card-header {
  position: relative;
  background: #1b3a8a;
  color: #fff;
  padding: 12px 14px 26px;
  border-bottom: 0;
}
.card-header .logo {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffd000;
}
.crest {
  width: 50px; height: 50px;
  background: #1b3a8a;
  color: #ffd000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; text-align: center; line-height: 1.1;
}
.school-text { padding-left: 70px; }
.school-text h2 {
  margin: 0; font-size: 18px; letter-spacing: .5px;
}
.school-text p { margin: 2px 0; font-size: 12px; }

/* Yellow curved band */
.yellow-curve {
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 30px;
  background: #ffd000;
  border-bottom-left-radius: 60% 100%;
  border-bottom-right-radius: 0;
}

/* Title */
.title-band {
  margin-top: 18px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #0d2452;
}
.session-pill {
  margin: 6px auto 10px;
  width: fit-content;
  padding: 3px 14px;
  background: #1b3a8a;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  font-weight: 600;
}

/* Photo */
.photo-box {
  width: 130px;
  height: 150px;
  margin: 4px auto 10px;
  border: 2px solid #d63a3a;
  background: #f7f7f7;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { color: #888; font-size: 13px; }

/* Details */
.details { padding: 4px 16px 0; }
.row-d {
  display: grid;
  grid-template-columns: 115px 10px 1fr;
  font-size: 13.5px;
  margin-bottom: 3px;
}
.row-d .lbl { font-weight: 700; color: #111; }
.row-d .val { color: #0d3aa8; font-weight: 700; }

/* Address */
.address-block {
  padding: 10px 16px 0;
  font-size: 13px;
}
.addr-title { font-weight: 700; text-decoration: underline; margin-bottom: 2px; }
.addr-text { color: #0d3aa8; font-weight: 600; line-height: 1.35; }

/* Principal */
.principal {
  text-align: right;
  padding: 8px 16px 0;
  font-size: 12px;
  color: #0d3aa8;
  font-weight: 700;
}
.principal .sign {
  font-family: 'Brush Script MT', cursive;
  color: #111;
  font-size: 18px;
  margin-bottom: -2px;
}

/* Print */
@media print {
  body { background: #fff; padding: 0; }
  .no-print { display: none !important; }
  .id-card { box-shadow: none; border: none; }
}
