:root {
  --bn-font: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", "Kalpurush", Arial, sans-serif;
}

.wsp-wrap {
  font-family: var(--bn-font);
  max-width: 1000px;
  margin: 0 auto;
}

.wsp-alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 15px;
}

.wsp-alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.wsp-alert-success a {
  font-weight: bold;
  color: #1b5e20;
}

.wsp-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wsp-form-title {
  margin: 0 0 20px;
  font-size: 22px;
  color: #111;
  border-bottom: 2px solid #ee1c2a;
  padding-bottom: 12px;
}

.wsp-sub-title {
  margin: 24px 0 10px;
  font-size: 17px;
  color: #111;
}

.wsp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wsp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wsp-field-full {
  grid-column: 1 / -1;
}

.wsp-field label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.wsp-field input[type="text"],
.wsp-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--bn-font);
  font-size: 15px;
  box-sizing: border-box;
}

.wsp-field input[type="text"]:focus,
.wsp-field textarea:focus {
  border-color: #ee1c2a;
  outline: none;
  box-shadow: 0 0 0 2px rgba(238, 28, 42, 0.12);
}

.wsp-logo-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wsp-logo-row input[type="text"] {
  flex: 1;
}

.wsp-logo-preview img {
  max-width: 150px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px;
  background: #fff;
}

.wsp-heirs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 14px;
}

.wsp-heirs-table th {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 6px;
  font-size: 13px;
}

.wsp-heirs-table td {
  border: 1px solid #ddd;
  padding: 5px;
}

.wsp-heirs-table input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--bn-font);
  font-size: 14px;
  box-sizing: border-box;
}

.wsp-serial {
  text-align: center;
  font-weight: 600;
}

.wsp-remove-row {
  background: #f44336;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.wsp-remove-row:hover {
  background: #d32f2f;
}

.wsp-actions {
  margin-top: 22px;
  text-align: center;
}

.wsp-btn {
  display: inline-block;
  border: none;
  border-radius: 6px;
  padding: 11px 24px;
  font-family: var(--bn-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.wsp-btn-primary {
  background: #ee1c2a;
  color: #fff;
}

.wsp-btn-primary:hover {
  background: #c91521;
  color: #fff;
}

.wsp-btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ccc;
}

.wsp-btn-secondary:hover {
  background: #e8e8e8;
}

.wsp-print-toolbar {
  max-width: 1000px;
  margin: 20px auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.print_area {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px;
  background: #fff;
  color: #000;
  font-family: var(--bn-font);
}

.heading {
  width: 90%;
  margin: 10px auto;
}

.heir-summary {
  margin-top: 15px;
  margin-left: 30px;
  font-size: 16px;
  line-height: 28px;
  text-align: justify;
  word-break: break-word;
}

@media (max-width: 768px) {
  .wsp-grid {
    grid-template-columns: 1fr;
  }

  .print_area {
    padding: 20px;
  }

  .heir-summary {
    margin-left: 0;
    font-size: 14px;
    line-height: 24px;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  .wsp-print-toolbar {
    display: none !important;
  }

  @page {
    size: auto;
    margin: 20px !important;
  }
}