/* Salary After Tax – tool styling */

.tool-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.tool-intro {
  max-width: 720px;
  margin-bottom: 2rem;
  color: #555;
  line-height: 1.6;
}

/* ======================
   Grid layout
   ====================== */

/* Slightly wider input card on desktop */
.tool-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
}

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

/* ======================
   Cards
   ====================== */

.tool-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Subtle emphasis for input card */
.tool-card:first-child {
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tool-card h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* ======================
   Inputs
   ====================== */

.tool-card label {
  display: block;
  font-weight: 600;
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
}

.tool-card input,
.tool-card select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.tool-card input:focus,
.tool-card select:focus {
  outline: none;
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255,122,0,0.2);
}

/* ======================
   Pill-style pay toggle
   ====================== */

.pill-toggle {
  display: inline-flex;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.2rem;
}

.pill-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-toggle label {
  margin: 0;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  color: #555;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pill-toggle input:checked + label {
  background: #ff7a00;
  color: #111;
  box-shadow: 0 3px 10px rgba(255,122,0,0.25);
}

.pill-toggle label:hover {
  color: #111;
}

/* ======================
   Button
   ====================== */

.tool-button {
  margin-top: 1.4rem;
  background: #ff7a00;
  color: #111;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.tool-button:hover {
  opacity: 0.9;
}

/* ======================
   Results
   ====================== */

.tool-results .result-highlight {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.tool-results .result-highlight small {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.result-grid div {
  background: #f8f8f8;
  padding: 0.75rem;
  border-radius: 8px;
}

.result-grid strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* ======================
   Breakdown
   ====================== */

.breakdown {
  padding-left: 1.1rem;
}

.breakdown li {
  margin-bottom: 0.4rem;
}

/* ======================
   Disclaimer
   ====================== */

.tool-disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}
