body{
  margin:0;
  background:#eef3fb;
  font-family:Arial,"Noto Sans Devanagari",sans-serif;
  color:#111827;
}

.page{
  max-width:1050px;
  margin:35px auto;
  background:#fff;
  padding:35px;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.12);
}

.form-header{
  display:flex;
  justify-content:space-between;
  gap:25px;
  border-bottom:4px solid #164597;
  padding-bottom:20px;
  margin-bottom:25px;
}

.form-header h1{
  margin:0;
  color:#164597;
  font-size:32px;
}

.form-header p{
  margin:8px 0 0;
  color:#f20535;
  font-size:20px;
  font-weight:700;
}

.photo-box{
  width:130px;
  height:150px;
  border:2px dashed #164597;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  cursor:pointer;
  overflow:hidden;
}

.photo-box input{
  display:none;
}

.photo-box img{
  width:100%;
  height:100%;
  object-fit:cover;
}

h2{
  background:linear-gradient(90deg,#164597,#f20535);
  color:#fff;
  padding:12px 18px;
  border-radius:10px;
  font-size:22px;
  margin-top:30px;
}

.top-row,
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

label{
  font-weight:700;
}

input,
select,
textarea{
  width:100%;
  margin-top:6px;
  padding:12px;
  border:1px solid #cfd8e3;
  border-radius:9px;
  font-size:16px;
  box-sizing:border-box;
}

table{
  width:100%;
  border-collapse:collapse;
  margin-top:15px;
}

th,
td{
  border:1px solid #cfd8e3;
  padding:10px;
  text-align:left;
}

th{
  background:#f1f5ff;
}

.declare{
  background:#fff8e6;
  padding:18px;
  border-left:5px solid #f20535;
  line-height:1.8;
}

.signature-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.actions{
  margin-top:30px;
  display:flex;
  gap:15px;
}

button,
.actions a{
  background:#164597;
  color:#fff;
  padding:13px 25px;
  border:0;
  border-radius:9px;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
}

button[type="submit"]{
  background:#f20535;
}

.signature-print{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  margin-top:30px;
}

.signature-print img{
  max-width:180px;
  max-height:100px;
  border:1px solid #ccc;
}

@media(max-width:800px){
  .top-row,
  .grid,
  .signature-row{
    grid-template-columns:1fr;
  }

  .form-header{
    flex-direction:column;
  }
}

@media print{
  body{
    background:#fff;
  }

  .page{
    box-shadow:none;
    margin:0;
    max-width:100%;
    border-radius:0;
  }

  .no-print,
  .actions{
    display:none!important;
  }
}