/* Cable Cross-Section Calculator Styles */

.calculator-container {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.voltage-selector,
.material-selector {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
}

.voltage-selector .form-check,
.material-selector .form-check {
  margin-bottom: 8px;
}

.voltage-selector .form-check:last-child,
.material-selector .form-check:last-child {
  margin-bottom: 0;
}

.power-helper {
  background-color: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
}

.results {
  background-color: #f8fafc;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 25px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results h3 {
  color: #1e293b;
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.result-total {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 25px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.result-total strong {
  font-size: 3.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.result-unit {
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  margin-top: 5px;
  opacity: 0.95;
}

.result-breakdown {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 15px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: #64748b;
  font-size: 0.95rem;
}

.result-value {
  color: #1e293b;
  font-weight: 600;
  font-size: 1rem;
}

.warning-box {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 15px;
  color: #991b1b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.warning-box strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

/* ServiceZoid Promo Banner Styles */
.sz-promo-container {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 24px;
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sz-promo-content {
  flex: 1 1 300px;
  margin-right: 20px;
}

.sz-promo-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 1.25rem;
}

.sz-promo-content p {
  margin-bottom: 0;
  color: #475569;
  line-height: 1.6;
}

.sz-promo-action {
  flex: 0 0 auto;
  text-align: center;
}

.sz-promo-button {
  display: inline-block;
  background-color: #0d6efd;
  color: #ffffff !important;
  padding: 12px 24px;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.sz-promo-button:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4);
}

.sz-promo-action small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.85rem;
}

/* Button styling */
.btn-block {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
}

/* Form improvements */
.form-control:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.form-check-label {
  font-weight: 400;
  cursor: pointer;
}

.form-check-input {
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calculator-container {
    padding: 20px;
  }

  .result-total strong {
    font-size: 2.5rem;
  }

  .result-unit {
    font-size: 1.2rem;
  }

  .sz-promo-container {
    flex-direction: column;
    text-align: center;
  }

  .sz-promo-content {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .result-value {
    font-size: 1.1rem;
  }
}
