/* Percentage Calculator Tool Styles */

.calculator-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.calculator-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.calculator-header {
  padding: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-align: center;
}

.calculator-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.calculator-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.calc-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.calc-tab {
  padding: 15px 20px;
  background: transparent;
  border: none;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.calc-tab:hover {
  color: #10b981;
  background: #e2e8f0;
}

.calc-tab.active {
  color: #10b981;
  background: white;
  border-bottom-color: #10b981;
}

.calculator-content {
  padding: 40px;
}

.calc-panel {
  display: none;
}

.calc-panel.active {
  display: block;
}

.calc-form {
  max-width: 600px;
  margin: 0 auto 30px;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.input-group label {
  min-width: 80px;
  font-weight: 500;
  color: #374151;
}

.input-group span {
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #10b981;
}

.calc-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.result-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.result-label {
  font-size: 14px;
  color: #059669;
  font-weight: 600;
  margin-bottom: 8px;
}

.result-value {
  font-size: 28px;
  font-weight: 700;
  color: #047857;
}

.calc-example {
  background: #f8fafc;
  border-left: 4px solid #10b981;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.calc-example h4 {
  color: #374151;
  margin-bottom: 8px;
  font-size: 16px;
}

.calc-example p {
  color: #6b7280;
  font-size: 14px;
}

.quick-calculators {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.quick-calculators h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 40px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.quick-calc {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-calc:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quick-calc h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  text-align: center;
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quick-form input {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.quick-form input:focus {
  outline: none;
  border-color: #10b981;
}

.quick-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.quick-result {
  background: white;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.quick-result span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.quick-result span:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

.quick-result .saved,
.quick-result .tip,
.quick-result .tax {
  color: #059669;
}

.quick-result .final,
.quick-result .total {
  color: #047857;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.features {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
}

.feature-description {
  color: #64748b;
  line-height: 1.6;
}

.common-uses {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.use-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.use-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.use-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.use-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
}

.use-card p {
  color: #64748b;
  line-height: 1.6;
}

.how-it-works {
  padding: 80px 0;
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.step-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
}

.step-description {
  color: #64748b;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .calculator-container {
    margin: 0 20px;
    border-radius: 15px;
  }
  
  .calculator-header {
    padding: 30px 20px;
  }
  
  .calculator-title {
    font-size: 2rem;
  }
  
  .calculator-content {
    padding: 20px;
  }
  
  .calc-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .calc-tab {
    font-size: 14px;
    padding: 12px 16px;
  }
  
  .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .input-group label {
    min-width: auto;
  }
  
  .quick-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .uses-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .calc-tabs {
    justify-content: flex-start;
  }
  
  .result-value {
    font-size: 24px;
  }
}
