/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #c4e8a7;
  color: #333;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2.3rem;
  font-family: Roboto;
  margin-bottom: 30px;
  color: #075B5E;
  word-spacing: 0.75rem;
  
}

/* Form Styling */
form#visaForm {
  border: 3px solid #075B5E ;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 5px;
  box-shadow: 2px 2px 4px rgba(14, 13, 13, 0.1);
  max-width: 60%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input[type="text"],
form input[type="date"],
form input[type="email"],
form input[type="file"] {
  padding: 10px 14px;
  border: 3px solid #2e2c2c;
  border-radius: 6px;
  font-size: 15px;
  transition: border 0.3s ease;
  
}

form input:focus {
  border-color: #0077cc;
  outline: none;
}

form label {
  font-weight: 600;
  margin: 10px 0px 0px 2px;
  font-size: 18px;
}

form button[type="submit"] {
  background-color: #075B5E;
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: #005fa3;
}

/* Output Section */
#visaOutputContainer {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.visa-template {
  width: 90%;
  min-height: 90%;
  margin: 20px 50px 20px 50px;
}
#visaOutputContainer {
  margin-top: 30px;
  background: white;
  padding: 20px;
  border: 3px solid #075B5E ;
  width: 1200px;
  height: 1300px;
}
.visa-template {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  position: relative; /* Needed for positioning the pseudo-element */
  z-index: 1; /* Ensure content stays above */
}

.visa-template::before {
  content: "";
  position: absolute;
  inset: 0; /* Full size of parent */
  background-image: url("VisaBackground.svg");
  background-repeat: no-repeat;
  background-size: 460px;
  background-position: center;
  opacity: 0.16; /* Adjust transparency only for background */
  z-index: -1; /* Keep it behind text */
  margin-right: 5%;
  margin-bottom: 5%;
}

.header {
  width: 90%;
  background-color: #123b64;
  border-left: 15px solid #123b64;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  font-size: 12px;
  height: 150px;
}
.header img {
  height: 150px;
  margin-right: 20px; 
  margin-left: 20px;
 
}
.section {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.row {
  display:flex;
  border-bottom: 0;
  font-size: 16px;
  margin:2px;
  padding: 10px 0px 0px 5px;
}
.label {
  width: 380px;
  height: 45px;
  background: #ddd;
  padding: 0px;
  justify-content: left;
  font-weight:650;
}
.value {
  flex: 1;
  padding: 5px;
  margin-left: 50px;
  font-size: 16px;
  font-weight: 600;
}
/* Reduce width for first 7 .row labels only */
.section1 .row:nth-of-type(-n+7) .label {
 height: 25px !important;
}

.qr-section {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.actions {
  margin-bottom: 20px;
}
.applicant-photo img {
  width: 200px;
  height: 400ps;
  border:0;
  margin-top: 10px;
  justify-content: right;

}
/* QR Code Styling */
.qr-section{
    background-color: white;
    height: 200px;
    width:800px;
    border: 1px solid white;
}
.qr-section p {
   margin-left:5px;
   font-size: 13px;
}
#qrcode {
  width: 200px;
  height:120px;
  margin-top: 5px;
  text-align: right;
  margin-left: 40px;
}

/* Actions */
.actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.actions button {
  background-color: #01585b;
  color: rgb(255, 248, 248);
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  font-family: arial;
  border: 3px solid #FFE6E1;
  border-radius: 6px;
  cursor: pointer;
}

.actions button:hover {
  background-color: #054042;

}
button:hover {
  background-color: #054042;
}

/* Responsive Design */
@media (max-width: 600px) {
  form#visaForm,
  #visaOutputContainer {
    padding: 20px;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions button {
    width: 100%;
  }
}



/* Optional: control widths */

.section1 {
  width: 100%; /* or flex: 2; */
}

.section2 {
  width: 25%; /* or flex: 1; */
}

.section1 {
  flex: 1; /* or set width: 60%; */
  margin-top: -280px; 
  padding-top: 0;}
  .row {
    margin: 2px 0; /* or even 0 if needed */
  }

.section2 {
  flex: 50%; /* or set width: 30%; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  border:0;
  margin-left: 650px;
}
.section2 img {
  margin-top: 30px;
  width: 180px;
  height: 2200px;
}
