.form-paper {
  background: #fff;
  max-width: 980px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid #d6dbe4;
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.company-form-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 2px solid #111827;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.company-form-header img {
  max-width: 260px;
  max-height: 74px;
  object-fit: contain;
}

.company-form-title {
  text-align: right;
  font-size: 12px;
  color: #374151;
}

.application-title {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .04em;
  text-decoration: underline;
  margin: 12px 0 16px;
}

.form-topline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.form-section-title {
  background: #eef3fb;
  color: #0b3a75;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid #aeb8c8;
  border-bottom: 0;
  padding: 7px 10px;
  margin-top: 16px;
}

.saral-form-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 12px;
}

.saral-form-table th,
.saral-form-table td {
  border: 1px solid #aeb8c8;
  padding: 7px 8px;
  vertical-align: middle;
  font-size: 14px;
}

.saral-form-table th {
  background: #f7f9fc;
  font-weight: 700;
  text-align: center;
}

.saral-form-label {
  width: 32%;
  background: #fafafa;
  font-weight: 700;
  color: #1f2937;
}

.saral-form-input .form-control,
.saral-form-input .form-select,
.saral-form-table .form-control,
.saral-form-table .form-select {
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 4px 2px;
  background: transparent;
  box-shadow: none;
}

.saral-form-table textarea.form-control {
  min-height: 62px;
  resize: vertical;
}

.form-paper-actions {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-top: 18px;
}

.print-friendly .display-value {
  min-height: 24px;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .form-paper { padding: 14px; }
  .company-form-header { grid-template-columns: 1fr; text-align: center; }
  .company-form-header img { max-width: min(240px, 100%); justify-self: center; }
  .company-form-title { text-align: center; }
  .application-title { font-size: 17px; line-height: 1.25; }
  .form-topline { grid-template-columns: 1fr; }
  .saral-form-table,
  .saral-form-table tbody,
  .saral-form-table tr,
  .saral-form-table td {
    display: block;
    width: 100%;
  }
  .saral-form-table thead { display: none; }
  .saral-form-table tr { border: 1px solid #aeb8c8; margin-bottom: 10px; }
  .saral-form-table td { border: 0; border-bottom: 1px solid #e5e7eb; }
  .saral-form-label { width: 100%; }
  .saral-form-table .form-control,
  .saral-form-table .form-select {
    min-height: 42px;
    padding: 6px 0;
  }
  .form-paper-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-paper-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .form-paper {
    padding: 10px;
    border-radius: 0;
  }
  .company-form-header {
    gap: 10px;
  }
  .application-title {
    font-size: 15px;
  }
  .saral-form-table th,
  .saral-form-table td {
    font-size: 13px;
  }
}
