/* Calculator Styles */

.calculator-page {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.calculator-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.calculator-header {
  text-align: center;
  margin-bottom: 50px;
}

.calculator-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1a1d2e;
}

.calculator-header p {
  font-size: 1.1rem;
  color: #5a6780;
  max-width: 600px;
  margin: 0 auto;
}

.calculator-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-section {
  margin-bottom: 40px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1a1d2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section h2 .icon {
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #1a1d2e;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: #1a1d2e;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #5a6780;
  font-size: 0.85rem;
}

.calculate-btn {
  width: 100%;
  padding: 16px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.calculate-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

.results {
  display: none;
  margin-top: 40px;
}

.results.show {
  display: block;
}

.results-header {
  text-align: center;
  margin-bottom: 30px;
}

.results-header h2 {
  font-size: 2rem;
  color: #1a1d2e;
  margin-bottom: 10px;
}

.results-header p {
  color: #5a6780;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.result-card {
  background: #f5f7fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.result-card.highlight {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
}

.result-label {
  font-size: 0.9rem;
  color: #5a6780;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1d2e;
  margin-bottom: 5px;
}

.result-card.highlight .result-value {
  color: #667eea;
}

.result-subtitle {
  font-size: 0.85rem;
  color: #5a6780;
}

.result-breakdown {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result-breakdown h3 {
  font-size: 1.3rem;
  color: #1a1d2e;
  margin-bottom: 20px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.breakdown-item:last-child {
  border-bottom: none;
  padding-top: 20px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}

.breakdown-label {
  color: #5a6780;
}

.breakdown-value {
  color: #1a1d2e;
  font-weight: 600;
}

.cta-box {
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 35px;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.6rem;
  color: #1a1d2e;
  margin-bottom: 15px;
}

.cta-box p {
  color: #5a6780;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.cta-btn {
  display: inline-block;
  padding: 14px 30px;
  background: #667eea;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .calculator-header h1 {
    font-size: 2rem;
  }

  .calculator-form {
    padding: 25px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-value {
    font-size: 1.8rem;
  }
}
