/* Premium Styling for Interactive Tools */
.tool-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: inherit;
  color: #1f2937;
}

.tool-header {
  text-align: center;
  margin-bottom: 48px;
}

.tool-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tool-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Calculator Grid */
.tool-calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  margin-bottom: 64px;
}

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

/* Inputs Card */
.tool-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), 0 12px 24px -4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.tool-input-group {
  margin-bottom: 24px;
}

.tool-input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

.tool-input-group .hint {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.tool-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background: #f9fafb;
}

.tool-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

.tool-range {
  width: 100%;
  margin-top: 12px;
  accent-color: #3b82f6;
}

/* Result Card */
.tool-result-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 16px;
  padding: 40px 32px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
}

.tool-result-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
}

.tool-result-value {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.tool-result-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.tool-result-details {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 32px;
}

.tool-result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.tool-result-row:last-child {
  margin-bottom: 0;
}

.tool-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: white;
  color: #1e3a8a;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Static Content */
.tool-content {
  max-width: 800px;
  margin: 0 auto;
}

.tool-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 60px 0 24px;
  color: #111827;
}

.tool-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 16px;
}

.tool-content ul {
  margin-bottom: 32px;
  padding-left: 24px;
}

.tool-content li {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 8px;
}

.tool-faq {
  margin-top: 60px;
}

.tool-faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
}
.tool-faq-item:last-child {
  border-bottom: none;
}

.tool-faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.tool-faq-answer {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.6;
}

.tool-cta {
  margin-top: 64px;
  padding: 48px;
  background: #f0f7ff;
  border-radius: 16px;
  text-align: center;
}

.tool-cta h2 {
  margin-top: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.tool-cta p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 32px;
}

.tool-cta a {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background 0.2s;
}

.tool-cta a:hover {
  background: #1d4ed8;
}
