/* Modern CSS for Bad Hire Calculator - Ferretly Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f8fafc;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}

.header {
  text-align: center;
  margin-bottom: 2rem;
  color: #1a202c;
}

.header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.header p {
  font-size: 1rem;
  font-weight: 400;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.input-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

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

.input-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d3748;
  border-bottom: 2px solid #3182ce;
  padding-bottom: 0.5rem;
}

.input-group {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 3px solid #3182ce;
}

.input-group h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #4a5568;
}

.input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.input-row label {
  font-weight: 500;
  color: #4a5568;
  flex: 1;
  min-width: 180px;
  font-size: 0.9rem;
}

.input-row input {
  width: 100px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: right;
  transition: all 0.2s ease;
  background: white;
}

.input-row input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.1);
}

.results-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 1.5rem;
}

.results-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d3748;
  border-bottom: 2px solid #3182ce;
  padding-bottom: 0.5rem;
}

.total-cost {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #3182ce, #2b6cb0);
  border-radius: 8px;
  color: white;
}

.total-cost h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.cost-amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.cost-breakdown {
  margin-bottom: 1.5rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #f7fafc;
  border-radius: 6px;
  border-left: 3px solid #3182ce;
  transition: all 0.2s ease;
}

.cost-item:hover {
  background: #edf2f7;
}

.cost-label {
  font-weight: 500;
  color: #4a5568;
  font-size: 0.9rem;
}

.cost-value {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
}

.prevention-section {
  background: #f0fff4;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #68d391;
  margin-bottom: 1.5rem;
}

.prevention-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #22543d;
}

.prevention-cost,
.expected-savings,
.roi-multiple,
.net-roi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #c6f6d5;
}

.prevention-cost:last-child,
.expected-savings:last-child,
.roi-multiple:last-child,
.net-roi:last-child {
  border-bottom: none;
}

.prevention-label,
.savings-label,
.roi-label,
.net-roi-label {
  font-weight: 500;
  color: #22543d;
  font-size: 0.9rem;
}

.prevention-value,
.savings-value,
.roi-value,
.net-roi-value {
  font-weight: 600;
  color: #22543d;
  font-size: 1rem;
}

.roi-value {
  color: #38a169;
  font-size: 1.1rem;
}

.cta-section {
  text-align: center;
}

.cta-button {
  background: linear-gradient(135deg, #3182ce, #2b6cb0);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
  text-transform: none;
  letter-spacing: 0.3px;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .results-section {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 0.9rem;
  }

  .input-section,
  .results-section {
    padding: 1rem;
  }

  .input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .input-row input {
    width: 100%;
  }

  .cost-amount {
    font-size: 2rem;
  }

  .cost-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.5rem;
  }

  .prevention-cost,
  .expected-savings,
  .roi-multiple,
  .net-roi {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}

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

  .cost-amount {
    font-size: 1.8rem;
  }

  .input-group {
    padding: 0.75rem;
  }

  .input-section,
  .results-section {
    padding: 0.75rem;
  }
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-section,
.results-section {
  animation: fadeInUp 0.6s ease-out;
}

.results-section {
  animation-delay: 0.2s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}
