body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #f4f6f9;
	display: block;
	justify-content: center;
	align-items: flex-start;
	min-height: 100vh;
	margin: 0;
	padding: 20px;
} 

/* body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #f4f6f9;
	justify-content: center;
	align-items: flex-start;
} */

h2 {
	text-align: center;
	color: #333;
	margin-bottom: 10px;
}

/* Card form */
form {
	background: #fff;
	padding: 24px;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.1);
	max-width: 420px; /* 600px; */
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px; /* more space between sections */
}

/* Section blocks */
.section {
	background: #fafafa;
	padding: 20px;
	border-radius: 10px;
	border: 1px solid #eee;
	display: flex;
	flex-direction: column;
	gap: 16px; /* more vertical space inside section */
}

.section h3{
	margin: 0 0 12px 0; /* space below heading */
	font-size: 16px;
	color: #4a90e2;
}

/* Labels */
label {
	font-weight: 600;
	color: #444;
	margin-bottom: 8px; /*  adds space below label */
	display: block;
}

/* Inputs and textarea */
input[type="email"],
textarea,
select {
	width: 100%;
	padding-bottom: 13px;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
	margin-bottom: 16px; /* extra spacing after each input */

	appearance: none;      /* remove default arrow (works in most browsers) */
  	-webkit-appearance: none; 
  	-moz-appearance: none;
	/* background: url('assets/arrow-down.svg') no-repeat right 10px center; */
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
}

/* Textarea */
textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.4;
}

/* Submit button */
button {
	background: #4a90e2;
	color: #fff;
	border: none;
	width: 320px;
	height: 50px;
	display: block;
	margin: 0 auto; /* centers horizontally */
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	margin-bottom: 0; /* last element shouldn’t add spacing */
}

button:hover {
	background: #3b7dc2;
}

/* Responsive tweaks */
@media (max-width: 600px) {
	form {
		padding: 18px;
		gap: 18px;
	}
	.section {
		padding: 5px;
		gap: 12px;
	}
	.ocr-container {
		flex-direction: column;
		gap: 5px;
	}
	.preview, #ocr-form {
		max-width: 100%;
	}
	#ocr-form input,
	#ocr-form textarea,
	#ocr-form button {
      font-size: 18px; /* slightly larger on small screens */
    }
}

/* Add space ABOVE labels so they don't hug the previous input */
#ocr-form .section label {
  display: block;
  margin: 14px 0 8px;   /* top | sides | bottom */
  font-weight: 600;
  color: #444;
}

/* Don't push the first label in a section down */
#ocr-form .section label:first-of-type {
  margin-top: 0;
}

/* Extra safety: if a label comes right after any input/textarea/select, add top margin */
#ocr-form input[type="text"] + label,
#ocr-form textarea + label,
#ocr-form select + label {
  margin-top: 14px;
}

/* Keep inputs comfy */
#ocr-form input[type="text"],
#ocr-form textarea,
#ocr-form select {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: 18px; /* 👈 adjust size here */
}
#ocr_data {
	display: none;
}

/* Container for preview + form */
.ocr-container {
  display: flex;
  gap: 10px;              /* space between preview and form */
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  flex-wrap: wrap;        /* allows wrapping on smaller screens */
}

/* Preview area */
.preview {
  flex: 1;
  /* min-width: 280px;       ensures it doesn’t shrink too small */
  max-width: 500px;
}

.preview img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Form area */
#ocr-form {
  flex: 1;
  /* min-width: 320px;       makes sure form is readable */
  max-width: 420px;        /* 🚀 limit form width */
  /* max-width: 600px; */
}

#fileInput {
  display: block;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.subhead {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-style: oblique;
}

.success-box {
      max-width: 400px;
      margin: 50px auto;
      padding: 20px;
      border: 2px solid #6CAEDD; /* pastel blue border */
      border-radius: 12px;
      background-color: #f0f8ff; /* light pastel background */
      text-align: center;
      font-family: Arial, sans-serif;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.success-box h2 {
	color: #333;
	margin-bottom: 10px;
}

.success-box p {
	color: #555;
	font-size: 16px;
	line-height: 1.4;
}

.checkmark {
	  font-size: 50px;
      color: #6CAEDD; /* pastel blue checkmark */
	  margin-bottom: 10px;
}

/* ✅ Apply Great Vibes only here */
.thank-you {
      font-family: 'Great Vibes', cursive;
      font-size: 36px;
      color: #6CAEDD; /* pastel blue text */
      margin-top: 15px;
}

@font-face {
	  font-family: 'Great Vibes';
	  src: url('fonts/GreatVibes-Regular.woff2') format('woff2'),
		   url('fonts/GreatVibes-Regular.woff') format('woff');
	  font-weight: normal;
	  font-style: normal;
}

.error {
    color: red;
    font-size: 14px;
}

/*#headerimg {
	display: flex;
	justify-content: center; /* center horizontally */
/*	align-items: center;     /* center vertically */
/*	height: 300px;           /* give the div some height */
/*	border: 1px solid #ccc;  /* just to visualize */
/* } */

#headerimg {
  	display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    width: 800px; /* Take full width of its parent/container */
    height: 1024px; /* Take full height of the viewport */
}

#headerimg img {
  	 max-width: 800px; /* Ensure the image does not overflow */
    height: 1024px; /* Maintain aspect ratio */
}

.checkbox-wrap {
	display: flex;
	align-items: center;
	margin-top: -5px;
}

#anon {
	/* margin-top: -3px; */
	font-style: italic;
	font-weight: normal;
	margin-bottom: 22px;
}

label[for="anon"] {
      font-style: italic;
	  font-weight: normal;
	  margin-bottom: 20px;
}