/* ── NCASS Savings Calculator ── */

.ncass-sc-wrap {
  font-family: inherit;
  margin: 0 auto;
  box-sizing: border-box;
}

.ncass-sc-wrap *, .ncass-sc-wrap *::before, .ncass-sc-wrap *::after {
  box-sizing: border-box;
}

/* Card */
.ncass-sc-card {
  background: #ffffff;
  border: 1.5px solid #dce8d9;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(87,183,69,0.1), 0 1px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}

.ncass-sc-card-head {
  background: #57b745;
  padding: 20px 24px;
}

.ncass-sc-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 5px;
}

.ncass-sc-card-title {
  font-family: inherit;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.ncass-sc-card-body {
  padding: 22px 24px;
}

.ncass-sc-card-sub {
  margin: 0 0 14px;
  line-height: 1.4;
}

/* Select */
.ncass-sc-select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  border: 1.5px solid #dce8d9;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1c221d;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6b5c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  height: 46px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ncass-sc-select:focus {
  border-color: #57b745;
  box-shadow: 0 0 0 3px rgba(87,183,69,0.15);
}

/* Savings panel */
.ncass-sc-panel {
  background: #f4faf2;
  border: 1px solid rgba(87,183,69,0.18);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.4s ease;
  pointer-events: none;
}

.ncass-sc-panel.active {
  opacity: 1;
  max-height: 400px;
  pointer-events: auto;
}

/* Rows */
.ncass-sc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(87,183,69,0.1);
  font-size: 12px;
  gap: 10px;
}

.ncass-sc-row:last-of-type {
  border-bottom: none;
}

.ncass-sc-row-label {
  color: #1c221d;
  line-height: 1.3;
  flex: 1;
}

.ncass-sc-row-val {
  font-weight: 600;
  color: #1c221d;
  white-space: nowrap;
}

.ncass-sc-row-val.hi {
  color: #57b745;
}

/* Total block */
.ncass-sc-total {
  background: #57b745;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.ncass-sc-total-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 3px;
}

.ncass-sc-total-val {
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.ncass-sc-total-aside {
  font-size: 10px;
  color: #ffffff;
  text-align: right;
  line-height: 1.4;
}

.ncass-sc-disclaimer {
  font-size: 11px;
  color: #5a6b5c;
  margin: 8px 0 0;
  line-height: 1.45;
  font-style: italic;
}

/* Divider */
.ncass-sc-divider {
  border: none;
  border-top: 1px solid #dce8d9;
  margin: 16px 0;
}

/* Form heading */
.ncass-sc-form-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1c221d;
  margin: 0 0 14px;
}

/* Label */
.ncass-sc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1c221d;
  margin-bottom: 5px;
}

/* Field wrapper */
.ncass-sc-field {
  display: flex;
  flex-direction: column;
}

/* Form */
.ncass-sc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inputs */
.ncass-sc-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dce8d9;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #1c221d;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ncass-sc-input:focus {
  border-color: #57b745;
  box-shadow: 0 0 0 3px rgba(87,183,69,0.12);
}

.ncass-sc-input::placeholder {
  color: #a8b8a6;
}

/* Actions */
.ncass-sc-actions {
  display: flex;
  justify-content: center;
}

/* Submit button */
.ncass-sc-btn {
  width: 70%;
  padding: 14px;
  background: #57b745;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
  line-height: 1.2;
}

.ncass-sc-btn:hover  { background: #3a7d2e; }
.ncass-sc-btn:active { transform: scale(0.99); }

/* Error */
.ncass-sc-error {
  font-size: 12px;
  color: #c0392b;
  padding: 8px 12px;
  background: #fdf0ef;
  border-radius: 6px;
  border: 1px solid rgba(192,57,43,0.2);
}

/* Confirmation */
.ncass-sc-confirm {
  text-align: center;
  padding: 24px 16px;
}

.ncass-sc-confirm-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.ncass-sc-confirm p {
  font-size: 15px;
  color: #1c221d;
  line-height: 1.6;
}

/* Explore button */
.ncass-sc-explore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.ncass-sc-explore-btn {
  display: inline-block;
  width: 70%;
  padding: 13px 20px;
  background: #ffffff;
  color: #57b745;
  border: 2px solid #57b745;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1.2;
}

.ncass-sc-explore-btn:hover {
  background: #eef8eb;
  color: #3a7d2e;
  border-color: #3a7d2e;
}

/* Responsive */
@media (max-width: 480px) {
  .ncass-sc-card-body { padding: 18px; }
  .ncass-sc-btn,
  .ncass-sc-explore-btn { width: 100%; }
}
