/**
 * ROI Calculator Styles
 */

/* Container */
.roi-calculator-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Header */
.roi-calculator-header {
  text-align: center;
  margin-bottom: 2rem;
}

.roi-calculator-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.roi-calculator-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Content */
.roi-calculator-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.roi-calculator-form,
.roi-calculator-results {
  flex: 1;
  min-width: 300px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

/* Form Header */
.roi-calculator-form-header,
.roi-calculator-results-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.roi-calculator-form-header h3,
.roi-calculator-results-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.roi-calculator-form-header p,
.roi-calculator-results-header p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.roi-calculator-icon {
  margin-bottom: 0.5rem;
}

/* Form Body */
.roi-calculator-form-body {
  padding: 1.5rem;
}

.roi-calculator-form-group {
  margin-bottom: 1.5rem;
}

.roi-calculator-form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.roi-calculator-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.roi-calculator-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
}

.roi-calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
}

.roi-calculator-value {
  min-width: 80px;
  text-align: right;
  font-weight: 500;
}

.roi-calculator-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
}

.roi-calculator-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Results Body */
.roi-calculator-results-body {
  padding: 1.5rem;
}

.roi-calculator-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.roi-calculator-result-item {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
}

.roi-calculator-result-item h4 {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.5rem 0;
  font-weight: normal;
}

.roi-calculator-result-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.roi-positive {
  color: #2e7d32;
}

.roi-negative {
  color: #c62828;
}

.roi-calculator-results-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.roi-calculator-note {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.roi-calculator-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Theme: Purple */
.roi-calculator-theme-purple .roi-calculator-slider::-webkit-slider-thumb {
  background: #6200ea;
}

.roi-calculator-theme-purple .roi-calculator-button {
  background-color: #6200ea;
  color: white;
}

.roi-calculator-theme-purple .roi-calculator-button:hover {
  background-color: #5000d0;
}

.roi-calculator-theme-purple .roi-calculator-link {
  color: #6200ea;
}

/* Theme: Blue */
.roi-calculator-theme-blue .roi-calculator-slider::-webkit-slider-thumb {
  background: #1976d2;
}

.roi-calculator-theme-blue .roi-calculator-button {
  background-color: #1976d2;
  color: white;
}

.roi-calculator-theme-blue .roi-calculator-button:hover {
  background-color: #1565c0;
}

.roi-calculator-theme-blue .roi-calculator-link {
  color: #1976d2;
}

/* Theme: Green */
.roi-calculator-theme-green .roi-calculator-slider::-webkit-slider-thumb {
  background: #2e7d32;
}

.roi-calculator-theme-green .roi-calculator-button {
  background-color: #2e7d32;
  color: white;
}

.roi-calculator-theme-green .roi-calculator-button:hover {
  background-color: #1b5e20;
}

.roi-calculator-theme-green .roi-calculator-link {
  color: #2e7d32;
}

/* Theme: Red */
.roi-calculator-theme-red .roi-calculator-slider::-webkit-slider-thumb {
  background: #c62828;
}

.roi-calculator-theme-red .roi-calculator-button {
  background-color: #c62828;
  color: white;
}

.roi-calculator-theme-red .roi-calculator-button:hover {
  background-color: #b71c1c;
}

.roi-calculator-theme-red .roi-calculator-link {
  color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
  .roi-calculator-content {
    flex-direction: column;
  }

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

  .roi-calculator-results-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
