/* ── Base ─────────────────────────────────────────────── */
body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-x: hidden;
  padding-top: 0;
  color: #1f2937;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navbar ───────────────────────────────────────────── */
.ua-navbar {
  background-color: #1a1a2e !important;
  border-bottom: 2px solid #79cbd4;
  padding: 0.6rem 0;
}

.ua-navbar-brand {
  padding: 0;
}

.ua-navbar-logo {
  max-height: 48px;
  width: auto;
}

.ua-navbar .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem;
  transition: opacity 0.15s ease;
}

.ua-navbar .nav-link:hover {
  opacity: 0.85;
}

/* ── Page layout ──────────────────────────────────────── */
.ua-page {
  max-width: 860px;
  padding: 2.75rem 15px 4rem;
}

.ua-alert {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.ua-page-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.ua-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.ua-title-divider {
  width: 48px;
  height: 3px;
  background-color: #374151;
  border: none;
  margin: 0 auto;
  opacity: 0.6;
}

/* ── Content section ──────────────────────────────────── */
.ua-content-section {
  margin-bottom: 3.25rem;
}

.ua-content-body {
  color: #374151;
}

.ua-content-body p,
.ua-content-body li {
  text-align: justify;
  line-height: 1.75;
  font-size: 0.975rem;
  margin-bottom: 0.9rem;
  color: #4b5563;
}

.ua-content-body a {
  word-break: break-all;
}

.ua-content-body strong {
  color: #111827;
  font-weight: 600;
}

.ua-intro {
  margin-bottom: 0.75rem;
  font-size: 0.975rem;
  color: #374151;
}

.ua-parties-list {
  padding-left: 1.35rem;
  margin-bottom: 1.75rem;
}

.ua-parties-list li {
  margin-bottom: 0.85rem;
}

.ua-ordered-list {
  list-style-type: decimal;
}

.ua-nested-list {
  margin-top: 0.65rem;
  margin-bottom: 0.25rem;
}

.ua-nested-list li {
  list-style-type: disc;
}

.ua-terms-list {
  padding-left: 1.35rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.ua-terms-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.15rem;
}

.ua-terms-list li::marker {
  color: #6b7280;
}

.ua-section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  padding-left: 0.85rem;
  border-left: 3px solid #374151;
  line-height: 1.4;
}

.ua-acknowledgment {
  margin-top: 1.25rem;
  color: #374151;
}

.ua-consent-note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid #374151;
  background: #f9fafb;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Form section ─────────────────────────────────────── */
.ua-form-section {
  padding-top: 2.75rem;
  border-top: 1px solid #e5e7eb;
}

.ua-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ua-form-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.ua-form-subheading {
  color: #6b7280;
  font-size: 0.925rem;
  margin-bottom: 0.35rem;
}

.ua-form-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0;
}

.ua-form-body {
  max-width: 680px;
  margin: 0 auto;
}

.ua-form-section form > * {
  margin: 0;
}

.ua-form-grid .form-group {
  margin-bottom: 1.1rem;
}

.ua-form-grid label,
.ua-upload-group > label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #374151;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.ua-required {
  color: #dc3545;
  font-weight: 600;
}

.ua-form-grid .form-control,
.ua-id-input {
  border-radius: 4px;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.85rem;
  height: auto;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ua-id-input {
  max-width: 320px;
}

.ua-aadhar-input {
  letter-spacing: 0.04em;
}

.ua-doc-group {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.ua-doc-group-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.ua-doc-group .ua-upload-group {
  margin-bottom: 0;
}

.ua-signature-group {
  margin-top: 2rem;
}

.ua-signature-hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.ua-signature-wrap {
  max-width: 420px;
}

.ua-signature-canvas {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 160px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.ua-signature-clear {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ua-form-grid .form-control::placeholder {
  color: #adb5bd;
  font-size: 0.9rem;
}

.ua-form-grid .form-control:focus,
.ua-id-input:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
  outline: none;
}

#pan_number {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ua-upload-group {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.ua-file-drop {
  position: relative;
  border: 1.5px dashed #d1d5db;
  border-radius: 5px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ua-file-drop:hover,
.ua-file-drop.is-dragover {
  border-color: #9ca3af;
  background: #f5f5f5;
}

.ua-file-drop.has-file {
  border-color: #6b7280;
  border-style: solid;
  background: #fff;
}

.ua-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.ua-file-drop-content {
  pointer-events: none;
}

.ua-file-icon {
  font-size: 1.75rem;
  color: #adb5bd;
  margin-bottom: 0.45rem;
  display: block;
}

.ua-file-prompt {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.2rem;
}

.ua-file-hint {
  display: block;
  font-size: 0.78rem;
  color: #9ca3af;
}

.ua-file-name {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
}

.ua-file-error {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  padding: 0.3rem 0.5rem;
}

.ua-form-footer {
  max-width: 680px;
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.ua-acceptance {
  margin-bottom: 1.35rem;
}

.ua-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #374151;
  cursor: pointer;
}

.ua-checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.ua-submit-wrap {
  text-align: center;
}

.ua-submit-btn {
  min-width: 240px;
  padding: 0.7rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  margin-bottom: 0.25rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.ua-submit-btn:active {
  transform: scale(0.98);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  .ua-page {
    padding: 1.75rem 15px 2.5rem;
  }

  .ua-page-title {
    font-size: 1.65rem;
  }

  .ua-section-heading {
    font-size: 1.025rem;
  }

  .ua-id-input {
    max-width: 100%;
  }

  .ua-navbar-logo {
    max-height: 40px;
  }

  .ua-submit-btn {
    width: 100%;
    min-width: unset;
  }
}

/* ── Utilities ────────────────────────────────────────── */
.disable-scroll-body {
  overflow-y: hidden;
  position: relative;
}

canvas#signature {
  border: 2px solid black;
}

#signatureCanvas {
  border: 1px solid #000;
}

.loader-hide {
  display: none;
}

.progress {
  height: 2rem;
  margin-top: 0.75rem;
}

.show-error {
  display: block;
}

.hide-error {
  display: none;
}

.text-gray {
  color: #374151;
}

.hr-style {
  width: 20%;
  background-color: #374151;
  margin: 0 auto;
}

.printBtn {
  border: solid red 4px;
  text-align: right;
}

/* ── Buttons ──────────────────────────────────────────── */
.main-btn {
  background-color: #279B48;
  color: #fff;
}

.main-btn:hover,
.main-btn:focus {
  background-color: #078F2D;
  color: #fff;
}

.main-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── OTP modal ────────────────────────────────────────── */
.otp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.otp-modal.is-open {
  display: flex;
}

.otp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.otp-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.otp-modal-content {
  background: #fff;
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.otp-modal-title {
  margin-bottom: 0.4rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
}

.otp-modal-message {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.15rem;
  color: #6b7280;
}

.otp-input {
  max-width: 100%;
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem;
  border-radius: 4px;
}

.otp-modal-status {
  min-height: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

.otp-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.15rem;
}

.otp-modal-actions .main-btn {
  width: 100%;
}

.otp-modal-actions .btn-link {
  font-size: 0.875rem;
}

.otp-modal-actions .btn-secondary {
  font-size: 0.875rem;
}
