@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

body {
  background: #f4f7fb;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 10px;
}

.header {
  background: #0a3d62;
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.header h1 {
  font-size: 24px;
}

.form-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.form-card h2 {
  color: #0a3d62;
  margin-bottom: 15px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
}

.row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.field {
  flex: 1;
  min-width: 220px;
}

label {
  font-size: 14px;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
}

textarea {
  resize: vertical;
}

/* Upload */
.upload-box {
  display: flex;
  gap: 20px;
  align-items: center;
}

.photo-preview {
  width: 140px;
  height: 160px;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
#letterPreview1{
  width: 140px;
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    margin-top: 4px; /* fine-tune vertical alignment */
}


.upload-btn {
  background: #0a3d62;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
}

input[type="file"] {
  display: none;
}
input[type="checkbox"] {
  margin-right: -300px;
  margin-left: -200px;
  /* margin-top: 10px; */
}
.letter{
  margin: 20px;
}
.letterPara{
  font-size: 14px;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}
/* Declaration */
.declaration {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

@media (min-width: 300px) and (max-width: 1000px){
  .declaration {
    flex-direction: column;
  }
  .letter{
    display: flex;
    flex-direction: column;
  }
  input[type="checkbox"] {
    margin: 0;
  }
}

/* Submit */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: #0a3d62;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}