:root{
  --blue1:#0c5a9f;
  --blue2:#2b74c8;
  --yellow:#ffd200;
  --border:#cfd6dd;
}

*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#fff;color:#111}

.header{
  background:var(--blue1);
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.header h1{
  margin:0;color:var(--yellow);
  font-size:40px;font-weight:800;
  text-transform:uppercase;
}

.nav{
  background: linear-gradient(#4f8fe3, #1f5fb5);
  height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-top:1px solid rgba(255,255,255,.35);
  border-bottom:1px solid rgba(0,0,0,.15);
  font-size:14px;
}
.nav a{color:#fff;text-decoration:none;margin-right:14px}
.lang a{margin-right:0;margin-left:10px}

.container{max-width:1200px;margin:0 auto;padding:22px 18px 70px}

.h2{font-weight:700;margin:0 0 16px}

.form-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.field{display:flex;align-items:center;gap:10px}
label{min-width:140px;font-weight:600}

input[type="text"], input[type="email"], input[type="tel"]{
  height:26px;border:1px solid var(--border);
  padding:2px 8px;font-size:13px;width:220px
}
input.small{width:160px}

.btn{
  height:26px;border:1px solid #aeb6bf;
  background: linear-gradient(#f8fafc, #dfe6ee);
  padding:0 14px;cursor:pointer
}

.result-msg{ text-align:center;font-weight:700;margin-top:28px }
.card{ border:1px solid var(--border); padding:14px; margin-top:18px; max-width:780px }
.smalltxt{font-size:12px;color:#333;margin-top:8px}

.footer{
  position:fixed;left:0;right:0;bottom:0;
  background:#1c5a86;color:#fff;
  height:36px;display:flex;align-items:center;justify-content:center;
  font-size:12px
}

/* ==== Polished certificate layout ==== */

.cert-wrap{
  max-width: 880px;
  margin: 18px auto 22px;
  border: 1px solid #cfd6dd;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.cert-head{
  padding: 18px 18px 14px;
  border-bottom: 1px solid #cfd6dd;
  background: #f7f9fc;
}

.cert-title{
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  letter-spacing: .4px;
  color:#1f4e9c;
}

.cert-sub{
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  color: #334155;
}

.cert-body{ padding: 18px; }

.cert-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.cert-col{
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  background:#fff;
}

.cert-col-title{
  font-weight: 900;
  font-size: 13px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  color:#1f4e9c;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.cert-row{
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}

.cert-label{ font-weight: 700; color:#475569; }
.cert-value{ color:#0f172a; word-break: break-word; }

.cert-divider{
  margin: 16px 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

.cert-foot{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  border-top: 1px solid #cfd6dd;
  background:#fff;
}

.cert-note{
  font-size: 12px;
  color: #334155;
  line-height: 1.35;
}

/* Result box (top one) aligned to cert width */
.result-box{
  max-width: 880px;
  margin: 18px auto 10px;
  border: 1px solid #cfd6dd;
  background:#fff;
  border-left: 4px solid #16a34a;
  padding: 12px 14px;
}

/* Stamp smaller + aligned */
.demo-stamp{ width:120px; height:120px; flex: 0 0 120px; opacity:.9; }

/* Mobile: stack columns under each other */
@media (max-width: 820px){
  .cert-grid{ grid-template-columns: 1fr; }
  .cert-row{ grid-template-columns: 1fr; gap:4px; }
  .cert-foot{ flex-direction: column; align-items: flex-start; }
  .demo-stamp{ align-self: flex-end; }
}
.demo-stamp{ margin-left:auto; }



