/* Property Tax Calculator Styles (PIT 19% od sprzedaży nieruchomości) */

/* Hero */
.pt-hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #1E88E5 50%, #059669 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.pt-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.pt-hero .lead {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.pt-hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.pt-hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Calculator Section */
.pt-calculator-section {
  padding: 48px 0;
  background: #f8faff;
}

/* Calculator Card */
.pt-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pt-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pt-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.pt-card-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Form Groups */
.pt-form-group {
  margin-bottom: 1.75rem;
}

.pt-form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.pt-form-input {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.pt-form-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  transform: translateY(-1px);
}

select.pt-form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.pt-form-hint {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.5;
}

.pt-value-display {
  font-size: 0.95rem;
  font-weight: 700;
  color: #059669;
  text-align: right;
  min-width: 120px;
}

.pt-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.pt-slider-row input[type="range"] {
  flex: 1;
}

/* Inheritance info note */
.pt-inheritance-note {
  background: #ecfdf5;
  border-left: 3px solid #059669;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #065f46;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

/* Custom Range Slider */
input[type="range"].pt-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  margin: 8px 0;
}

input[type="range"].pt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #1E88E5);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
  transition: transform 0.15s ease;
}

input[type="range"].pt-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"].pt-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #1E88E5);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

/* Section Divider */
.pt-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 16px;
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* Primary Button */
.btn-pt-primary {
  background: linear-gradient(135deg, #059669, #1E88E5);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-pt-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

/* Disclaimer */
.pt-disclaimer {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: #5d4037;
  margin-top: 24px;
  line-height: 1.6;
}

/* Result Card */
.pt-result-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 2px solid #e5e7eb;
  margin-top: 24px;
}

/* Decision Indicator */
.pt-decision {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 12px;
}

.pt-decision-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pt-decision-text {
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  flex: 1;
}

.pt-decision-green {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.pt-decision-green .pt-decision-icon {
  background: #059669;
  color: white;
}

.pt-decision-green .pt-decision-text {
  color: #065f46;
}

.pt-decision-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.pt-decision-blue .pt-decision-icon {
  background: #1E88E5;
  color: white;
}

.pt-decision-blue .pt-decision-text {
  color: #1e3a8a;
}

.pt-decision-red {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.pt-decision-red .pt-decision-icon {
  background: #dc2626;
  color: white;
}

.pt-decision-red .pt-decision-text {
  color: #991b1b;
}

/* Tax-free / Loss info boxes */
.pt-status-info {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f7ff 100%);
  border-left: 4px solid #059669;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #065f46;
}

.pt-status-info.loss {
  background: linear-gradient(135deg, #eff6ff 0%, #f8faff 100%);
  border-left-color: #1E88E5;
  color: #1e3a8a;
}

.pt-status-info strong {
  font-weight: 700;
}

.pt-status-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
}

.pt-status-info-row:last-child {
  border-bottom: none;
}

.pt-status-info-row-value {
  font-weight: 700;
  color: #1E3A5F;
}

/* Result Stats */
.pt-result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.pt-result-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E3A5F;
}

.pt-result-stat-value.savings {
  color: #059669;
}

.pt-result-stat-value.warning {
  color: #d97706;
}

.pt-result-stat-value.danger {
  color: #dc2626;
}

.pt-result-stat-label {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Breakeven callout */
.pt-breakeven-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f7ff 100%);
  border: 1px solid #a7f3d0;
  border-left: 4px solid #059669;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-top: 24px;
  line-height: 1.7;
  color: #065f46;
}

.pt-breakeven-box strong {
  color: #065f46;
}

.pt-breakeven-amount {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: #059669;
  margin: 6px 0;
}

.pt-breakeven-deadline {
  font-size: 0.88rem;
  color: #047857;
  margin-top: 8px;
}

/* Breakdown section */
.pt-breakdown-section {
  margin-top: 24px;
}

.pt-breakdown-toggle {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pt-breakdown-toggle:hover {
  background: #f8faff;
  border-color: #059669;
  color: #059669;
}

.pt-breakdown-table {
  margin-top: 16px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  display: none;
}

.pt-breakdown-table.open {
  display: table;
}

.pt-breakdown-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.pt-breakdown-table tr:last-child td {
  border-bottom: none;
  background: rgba(5, 150, 105, 0.08);
  font-weight: 700;
  font-size: 1rem;
  color: #065f46;
}

.pt-breakdown-table td:first-child {
  color: #475569;
}

.pt-breakdown-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: #1E3A5F;
}

.pt-breakdown-table td.minus {
  color: #dc2626;
}

/* Educational Section */
.pt-edu-section {
  padding: 64px 0;
  background: white;
}

.pt-edu-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 16px;
  margin-top: 32px;
}

.pt-edu-section h2:first-child {
  margin-top: 0;
}

.pt-edu-section p {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.pt-edu-definition {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f7ff 100%);
  border-left: 4px solid #059669;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 20px 0 32px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #1E3A5F;
}

.pt-edu-callout {
  background: #f0f4ff;
  border-left: 3px solid #1E88E5;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: #1e3a8a;
  line-height: 1.7;
}

.pt-edu-list {
  margin: 16px 0 24px 24px;
  color: #555;
  line-height: 1.9;
}

.pt-edu-list li {
  margin-bottom: 6px;
}

/* Formula box — readable, friendly, not a code block */
.pt-formula-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1E88E5;
  border-radius: 12px;
  padding: 8px 24px;
  margin: 20px 0 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pt-formula-box > div {
  padding: 14px 0;
  border-bottom: 1px dashed #cbd5e1;
}

.pt-formula-box > div:last-child {
  border-bottom: none;
}

.pt-formula-highlight {
  margin: 12px -16px -4px !important;
  padding: 16px 20px !important;
  background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
  color: #065f46;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 8px;
  border-bottom: none !important;
}

.pt-formula-source {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}

.pt-formula-highlight .pt-formula-source {
  background: rgba(255, 255, 255, 0.7);
  color: #065f46;
}

/* Steps */
.pt-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}

.pt-step-card {
  background: #f8faff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.pt-step-num {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #059669, #1E88E5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 12px;
}

.pt-step-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 8px;
}

.pt-step-card p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
}

/* Legal sources box */
.pt-legal-sources {
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 32px;
  line-height: 1.7;
}

.pt-legal-sources strong {
  color: #1E3A5F;
}

/* FAQ Section */
.pt-faq-section {
  background: #f8faff;
  padding: 64px 0;
}

.pt-faq-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1E3A5F;
  text-align: center;
  margin-bottom: 12px;
}

.pt-faq-lead {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.pt-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}

.pt-faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1E3A5F;
  font-size: 0.95rem;
  transition: background 0.15s;
  gap: 16px;
}

.pt-faq-question:hover {
  background: #ecfdf5;
}

.pt-faq-answer {
  padding: 0 24px 0;
  color: #555;
  font-size: 0.93rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  line-height: 1.7;
}

.pt-faq-answer.open {
  max-height: 1500px;
  padding: 0 24px 18px;
}

.pt-faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.pt-faq-question.active .pt-faq-chevron {
  transform: rotate(180deg);
}

/* CTA Section */
.pt-final-cta {
  background: linear-gradient(135deg, #1E3A5F 0%, #1E88E5 50%, #059669 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.pt-final-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.pt-final-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.pt-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-pt-cta-white {
  background: white;
  color: #059669;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pt-cta-white:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #059669;
}

.btn-pt-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pt-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
  .pt-card {
    padding: 1.5rem;
  }

  .pt-result-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .pt-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .pt-hero h1 {
    font-size: 1.9rem;
  }

  .pt-hero .lead {
    font-size: 1rem;
  }

  .pt-result-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pt-steps {
    grid-template-columns: 1fr;
  }

  .pt-decision {
    flex-direction: column;
    text-align: center;
  }

  .pt-decision-text {
    text-align: center;
  }

  .pt-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .pt-formula-box {
    font-size: 0.92rem;
    padding: 4px 18px;
  }
  .pt-formula-box > div {
    padding: 12px 0;
  }
  .pt-formula-highlight {
    font-size: 1rem;
    margin: 10px -12px -2px !important;
    padding: 14px 16px !important;
  }
  .pt-formula-source {
    font-size: 0.7rem;
    margin-left: 6px;
  }

  .pt-breakdown-table {
    font-size: 0.82rem;
  }

  .pt-breakdown-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .pt-hero h1 {
    font-size: 1.6rem;
  }

  .pt-breakeven-amount {
    font-size: 1.15rem;
  }
}
