.np-portal,
.np-calculator {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: #22313f;
}

.np-portal *,
.np-calculator * {
  box-sizing: inherit;
}

.np-portal-grid {
  display: grid;
  gap: 24px;
}

.np-history-section {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.np-portal-card,
.np-history-card,
.np-form-card,
.np-result-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  border: 1px solid #dce9e2;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(24, 63, 52, 0.08);
}

.np-portal-card {
  padding: 24px;
}

.np-history-card {
  padding: 24px;
}

.np-portal-card > h4 {
  margin: 0 0 10px;
  color: #114b3a;
}

.np-history-card > h4 {
  margin: 0 0 16px;
  color: #114b3a;
}

.np-portal-card > p {
  margin: 0 0 20px;
  color: #4d635c;
}

.np-form-card,
.np-result-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
}

.np-form-card h3,
.np-result-card h4,
.np-result-card h5,
.np-result-card h6 {
  margin-top: 0;
  color: #114b3a;
}

.np-field {
  margin-bottom: 18px;
  text-align: left;
}

.np-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #203731;
}

.np-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8d8d0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.np-field input:focus {
  outline: none;
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

.np-form button,
.np-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #198754;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.np-form button:hover,
.np-reset-button:hover {
  background: #146c43;
  box-shadow: 0 10px 24px rgba(20, 108, 67, 0.2);
  transform: translateY(-1px);
}

.np-form button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

.np-result-card hr {
  border: 0;
  border-top: 1px solid #dce9e2;
  margin: 18px 0;
}

.np-highlight {
  color: #198754;
  font-weight: 700;
}

.np-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.np-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
}

.np-history-table th,
.np-history-table td {
  padding: 12px 14px;
  border: 1px solid #dce9e2;
  text-align: left;
  vertical-align: top;
}

.np-history-table th {
  background: #eff8f3;
  color: #114b3a;
  font-weight: 700;
}

.np-history-empty {
  margin: 0;
  color: #4d635c;
}

.np-welcome-text,
.np-dob-text,
.np-luck-text,
.np-result-card p {
  word-break: break-word;
}

@media (max-width: 640px) {
  .np-portal-card,
  .np-form-card,
  .np-result-card {
    padding: 20px;
  }
}
