body {
  margin: 0;
  padding: 0;
  background-color: #1c2d59;
  font-family: Georgia, serif;
}

.application-form .container {
  position: relative;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  max-width: 1080px;
  margin: 40px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Headings */
.application-form h2 {
  font-weight: 600;
  font-size: 1.75rem;
  color: #1c2d59;
}

.application-form p,
.application-form label {
  color: #333;
  font-size: 0.95rem;
}

.application-form label {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Watermark */
.dignity-watermark {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  width: min(85%, 760px);
  height: auto;
  max-height: 80%;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Inputs and selects */
.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="tel"],
.application-form input[type="date"],
.application-form input[type="file"],
.application-form select,
.application-form textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease-in-out;
  background-color: #fff;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: #1c2d59;
  outline: none;
}

/* File input */
input[type="file"] {
  background-color: #f8f8f8;
  padding: 12px;
  border: 2px dashed #ccc;
  cursor: pointer;
}

/* Checkboxes */
.application-form .form-check-input {
  margin-top: 6px;
}
.application-form .form-check-label {
  margin-left: 6px;
  font-weight: normal;
}

/* Upload box */
.custom-upload-box {
  position: relative;
  border: 2px dashed #999;
  background-color: #f8f9fc;
  border-radius: 8px;
  padding: 40px 20px;
  cursor: pointer;
  transition: border-color 0.3s ease-in-out;
  text-align: center;
}
.custom-upload-box:hover {
  border-color: #1c2d59;
}
.upload-icon {
  font-size: 2rem;
  color: #8a8d91;
  margin-bottom: 10px;
}
.upload-title {
  font-weight: 600;
  color: #1c2d59;
  font-size: 1.1rem;
  margin: 0;
}
.upload-hint {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0;
}
.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Buttons  */
.dignity-button {
  background-color: #1c2d59 !important;
  color: #fff !important;
  border-color: #1c2d59 !important;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.dignity-button:hover {
  background-color: #f27b21 !important;
  border-color: #f27b21 !important;
  color: #fff !important;
}

.application-form .mb-4,
.application-form .mb-3,
.application-form .mb-2 {
  margin-bottom: 1.2rem !important;
}

/* Prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .application-form .container {
    padding: 25px 15px;
    margin: 20px;
  }
  .application-form .row {
    flex-direction: column;
  }
  .application-form .col-md-3,
  .application-form .col-md-4,
  .application-form .col-md-6 {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Wizard styling          */

.wizard-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Brand line */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  margin: 0 auto;
  height: auto;
  max-height: 90px;
  width: auto;
}

.custom-heading {
  display: inline-block;
  font-size: 32px;
  color: #1c2d59;
  font-weight: bold;
}
.custom-paragraph {
  font-size: 20px;
  color: black;
  line-height: 1.6;
}

/* Progress  */
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 16px 0 0;
}
.wizard-step {
  height: 6px;
  background: #e9ecef;
  border-radius: 999px;
}
.wizard-step.active {
  background: #1c2d59;
}

.step {
  display: none;
}
.step.active {
  display: block;
}

.boxed {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  z-index: 1;
  background: #fff;
}
.question-title {
  font-weight: 600;
  color: #1c2d59;
  margin-bottom: 0.5rem;
}

/* Prev/Next bar */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 576px) {
  .wizard-nav {
    flex-direction: column-reverse;
  }
  .wizard-nav .btn {
    width: 100%;
  }
}

/* Signature pad */
.signature-box {
  position: relative;
}
#signaturePad {
  width: 100%;
  height: 200px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  touch-action: none;
}
