/* IRPF calculator refinements layered on the approved calculator system. */

.irpf-calculator-page .warning-box {
  margin: 32px 32px 0;
  padding: 18px 20px;
  border: 1px solid #ead9a5;
  border-radius: 12px;
  background: #fffbeb;
}

.irpf-calculator-page .warning-box h3 {
  margin-bottom: 6px;
  color: #7a5b12;
  font-size: 16px;
}

.irpf-calculator-page .warning-box p {
  margin: 0;
  color: #5f4d20;
  font-size: 14px;
}

.irpf-calculator-page .warning-box .emoji-icon,
.irpf-calculator-page .results .emoji-icon,
.irpf-calculator-page #irpfForm label .emoji-icon,
.irpf-calculator-page .guide-container .emoji-icon,
.irpf-calculator-page .faq-title .emoji-icon {
  display: none !important;
}

/* The shared system styles the form card by id (#calculatorForm), which this
   page's form does not match, so the card has to be restated here. */
.irpf-calculator-page #irpfForm {
  display: grid;
  gap: 20px;
  margin: 32px;
  padding: 28px;
  border: 1px solid #dce5e1;
  border-radius: 16px;
  background: #f8faf9;
}

.irpf-calculator-page #irpfForm button {
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid #087a55;
  border-radius: 10px;
  background: #087a55;
  box-shadow: none;
  font-family: var(--font-primary);
  font-size: 16px;
  letter-spacing: 0;
}

.irpf-calculator-page #irpfForm button:hover {
  border-color: #075e47;
  background: #075e47;
  filter: none;
}

.irpf-calculator-page #irpfForm .form-row,
.irpf-calculator-page #irpfForm .form-group {
  margin: 0;
}

.irpf-calculator-page #irpfForm > button {
  justify-self: start;
  margin-top: 2px;
}

.irpf-calculator-page #irpfForm small {
  display: block;
  margin-top: 8px;
  color: #64736d;
  font-size: 13px;
  line-height: 1.45;
}

.irpf-calculator-page .breakdown-title {
  color: #075e47;
}

/* Comparison cards: the page's signature element. The winner was marked with
   a teal glow that predates the approved palette; it now reads as a solid
   green border plus a flat badge, consistent with the rest of the system. */
.irpf-calculator-page .comparison-container {
  gap: 22px;
  margin: 22px 0;
}

/* The two cards hold different numbers of deduction rows, so the tax figures
   landed at different heights and could not be compared at a glance. Pinning
   the total to the bottom of each card lines them up on the same baseline. */
.irpf-calculator-page .declaration-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #dce5e1;
  border-radius: 16px;
  background: #f8faf9;
  box-shadow: none;
}

.irpf-calculator-page .declaration-card > div:last-child {
  margin-top: auto;
  padding-top: 8px;
}

.irpf-calculator-page .declaration-card.winner {
  border: 1px solid #8bd0b5;
  background: #eaf6f0;
  box-shadow: none;
}

.irpf-calculator-page .card-badge {
  top: -13px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #087a55;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.irpf-calculator-page .card-title {
  margin-bottom: 18px;
  color: #075e47;
  font-size: 17px;
}

.irpf-calculator-page .deduction-breakdown {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #e2e8e5;
  border-radius: 12px;
  background: white;
}

.irpf-calculator-page .deduction-item {
  padding: 6px 0;
  color: #4a5b55;
  font-variant-numeric: tabular-nums;
}

.irpf-calculator-page .tax-amount {
  margin: 10px 0 0;
  color: #17201d;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.irpf-calculator-page .tax-amount.winner {
  color: #075e47;
}

/* Flat green, not the old gradient — the approved system has no gradients. */
.irpf-calculator-page .savings-highlight {
  margin-top: 22px;
  padding: 24px;
  border-radius: 16px;
  background: #075e47;
}

.irpf-calculator-page .savings-amount {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

/* .guide-container and .faq-title are local to this page, so the shared
   system never reaches them. Matched to .educational-guide / .guide-title. */
.irpf-calculator-page .guide-container {
  margin: 32px;
  padding: 0;
  border-top: 1px solid #e2e8e5;
  border-radius: 0;
  background: white;
}

.irpf-calculator-page .guide-container .guide-title,
.irpf-calculator-page .faq-title {
  margin: 0;
  padding: 32px 0 18px;
  border-bottom: 1px solid #e2e8e5;
  color: #075e47;
  font-size: 28px;
  text-align: left;
}

.irpf-calculator-page .guide-intro {
  margin-top: 20px;
  color: #3d4a45;
}

.irpf-calculator-page .scenario-grid {
  gap: 18px;
  margin: 22px 0;
}

.irpf-calculator-page .scenario-card {
  padding: 20px;
  border: 1px solid #dce5e1;
  border-radius: 14px;
  background: #f8faf9;
}

.irpf-calculator-page .scenario-card h4 {
  color: #075e47;
}

.irpf-calculator-page .scenario-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.irpf-calculator-page .scenario-card li {
  margin-bottom: 6px;
}

/* Was an off-palette teal callout sitting directly under another tinted box.
   It is a references footnote, not an alert, so it reads as plain text —
   matching how the other calculators close their guide sections. */
.irpf-calculator-page .review-note {
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #64736d;
  font-size: 14px;
  line-height: 1.6;
}

.irpf-calculator-page .review-note a {
  color: #087a55;
}

.irpf-calculator-page .faq-container {
  margin: 32px;
}

.irpf-calculator-page .faq-question {
  color: #17201d;
}

.irpf-calculator-page .faq-question:hover {
  color: #075e47;
  opacity: 1;
}

.irpf-calculator-page .sidebar-list {
  padding-left: 20px;
}

.irpf-calculator-page .sidebar-list li {
  margin-bottom: 12px;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .irpf-calculator-page .warning-box,
  .irpf-calculator-page .guide-container,
  .irpf-calculator-page .faq-container {
    margin-right: 18px;
    margin-left: 18px;
  }

  .irpf-calculator-page #irpfForm > button {
    width: 100%;
  }

  .irpf-calculator-page .declaration-card,
  .irpf-calculator-page .savings-highlight {
    padding: 18px 16px;
  }
}
