/* Wspólne style dla wszystkich kalkulatorów */

/* Container kalkulatora */
.calculator-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.calculator-form {
  max-width: 800px;
}

/* Sekcje formularza */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #dee2e6;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2C2824;
}

.form-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #2C2824;
}

/* Wiersze formularza */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Grupy formularza */
.form-group {
  margin-bottom: 1.5rem;
}

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

.required {
  color: #e74c3c;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
  font-style: italic;
}

/* Pola formularza */
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #ffffff;
  color: #333333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #9B6E5A;
  box-shadow: 0 0 0 3px rgba(155, 110, 90, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: #e74c3c;
}

.error-message {
  display: block;
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Checkboxy (dla kalkulatora kosztów) */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  border-color: #9B6E5A;
  background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: #9B6E5A;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
  border-color: #9B6E5A;
  background: #fff5f0;
}

/* Akcje formularza */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Przyciski */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #9B6E5A;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #8a5f4d;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #6c757d;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Wyniki kalkulatora */
.calculator-results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.calculator-results h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #2C2824;
}

.results-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.results-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.results-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #2C2824;
}

/* Siatka wyników */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* Elementy wyników */
.result-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-item.highlight {
  grid-column: 1 / -1;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #9B6E5A;
}

.result-label {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.9rem;
}

.result-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2C2824;
}

.result-item.highlight .result-value {
  font-size: 1.5rem;
  color: #9B6E5A;
}

/* Szczegóły wyników (dla kalkulatora zasłon) */
.results-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #6c757d;
}

.detail-value {
  font-weight: 600;
  color: #2C2824;
}

/* Standardowe rozmiary (dla kalkulatora rolet) */
.standard-sizes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.standard-size-item {
  padding: 0.75rem;
  background: #f8f9fa;
  border: 2px solid #9B6E5A;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  color: #2C2824;
}

/* Koszt całkowity (dla kalkulatora kosztów) */
.total-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #9B6E5A 0%, #8a5f4d 100%);
  border-radius: 8px;
  color: #ffffff;
}

.total-label {
  font-size: 1.125rem;
  font-weight: 500;
}

.total-value {
  font-size: 2rem;
  font-weight: 700;
}

/* Podział kosztów (dla kalkulatora kosztów) */
.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #9B6E5A;
}

.cost-item-label {
  font-weight: 500;
  color: #2C2824;
}

.cost-item-value {
  font-weight: 600;
  color: #9B6E5A;
  font-size: 1.125rem;
}

/* Porównanie wariantów (dla kalkulatora kosztów) */
.variants-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .variants-comparison {
    grid-template-columns: 1fr;
  }
}

.variant-card {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  text-align: center;
}

.variant-card h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #2C2824;
}

.variant-cost {
  font-size: 1.75rem;
  font-weight: 700;
  color: #9B6E5A;
  margin-bottom: 0.5rem;
}

.variant-desc {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* Boxy informacyjne */
.info-box {
  padding: 1rem;
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 4px;
  color: #004085;
  line-height: 1.6;
}

.info-box ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.info-box li {
  margin-bottom: 0.25rem;
}

.warning-box {
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
}

.info-text {
  margin-top: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

/* Informacje o kalkulatorze */
.calculator-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #dee2e6;
}

.calculator-info h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2C2824;
}

.calculator-info h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #2C2824;
}

.calculator-info ol,
.calculator-info ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.calculator-info li {
  margin-bottom: 0.5rem;
}

