/* ============================================
 * Hőszivattyú Kalkulátor – calculator-styles.css
 * Verzió: 2026-01-26 – egységes hibajelzés + tooltip finomítás
 * ============================================ */

/* === 1. Alap konténer és struktúra === */

.heatpump-calculator-container {
  background: #f9f9f9 url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"%3E%3Ccircle cx="10" cy="10" r="1" fill="%23e0e0e0"/%3E%3C/svg%3E');
  padding: 25px;
  border-radius: 12px;
  max-width: 640px;
  margin: 30px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* === 2. Űrlapmezők === */

.heatpump-calculator-container fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.heatpump-calculator-container legend {
  font-size: 18px;
  color: #00cbcb;
  font-weight: 600;
  border-bottom: 2px solid #00cbcb;
  margin-bottom: 10px;
  padding-bottom: 2px;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #444;
  font-weight: 600;
}

/* === 3. Bemeneti mezők === */

.heatpump-calculator-container input[type="number"],
.heatpump-calculator-container select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.heatpump-calculator-container input:focus,
.heatpump-calculator-container select:focus {
  border-color: #f47629;
  box-shadow: 0 0 8px rgba(244, 118, 41, 0.3);
  outline: none;
  transform: scale(1.01);
}

/* === 4. Számítás gomb === */

.calculate-btn {
  background: linear-gradient(135deg, #00cbcb, #007a7a);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 203, 203, 0.3);
}

.calculate-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === 5. Eredménymező === */

.heatpump-result {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #e6f7f7, #d0eaea);
  border-radius: 8px;
  animation: fadeIn 0.5s ease-in;
  line-height: 1.6;
  text-align: left;
}

.heatpump-result p {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 10px 0;
}

.heatpump-result p#kw-result {
  color: #f47629;
  font-weight: 700;
}

/* === 6. Hibák / validációk (JS által generált elemekhez) === */

.heatpump-result .error {
  padding: 12px 14px;
  background: #fff4f0;
  border-left: 4px solid #f47629;
  border-radius: 6px;
  color: #8a1f11;
  font-weight: 700;
}

.field-warning {
  margin-top: 6px;
  padding: 8px 10px;
  background: #fff4f0;
  border-left: 4px solid #f47629;
  border-radius: 6px;
  color: #8a1f11;
  font-weight: 600;
  font-size: 0.85em;
}

/* === 7. Orion modell kártya === */

.orion-model {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  animation: fadeIn 0.4s ease-in;
  text-align: left;
}

.orion-model h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: bold;
  color: #f47629;
}

.orion-model p {
  margin: 6px 0;
  font-size: 15px;
  color: #444;
}

.orion-model img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto 10px;
  border-radius: 6px;
}

/* === 8. Figyelmeztető doboz === */

.warning-box {
  margin-top: 20px;
  padding: 12px;
  background: #fff4f0;
  border-left: 4px solid #f47629;
  border-radius: 6px;
  color: #a30000;
  font-weight: 600;
}

/* === 9. Lábléc === */

.calculator-footer {
  margin-top: 20px;
  text-align: center;
}

.copyright-notice {
  font-size: 12px;
  color: #888;
}

/* === 10. Tooltip ikon stílus (stabil, hozzáférhető) === */

.heatpump-calculator-container label .tooltip-icon {
  box-sizing: content-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  background-color: #e2e8f0 !important;
  color: #4a5568 !important;
  margin-left: 0.5rem !important;
  padding: 0 !important;
  transition: background-color 0.2s !important;
}

.heatpump-calculator-container label .tooltip-icon:hover {
  background-color: #cbd5e0 !important;
}

.heatpump-calculator-container label .tooltip-icon:focus {
  outline: 2px solid #00cbcb !important;
  outline-offset: 2px !important;
}

/* === 11. Animációk === */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === 12. Mobil reszponzív megjelenés === */

@media (max-width: 768px) {
  .heatpump-calculator-container {
    padding: 15px;
    margin: 5px;
  }

  .input-group label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .input-group .tooltip-icon {
    margin: 0.25rem 0 0 !important;
  }

  .heatpump-calculator-container input[type="number"],
  .heatpump-calculator-container select {
    padding: 8px;
    font-size: 0.9rem;
  }

  .calculate-btn {
    padding: 12px;
    font-size: 0.95rem;
  }

  .heatpump-result p {
    font-size: 16px;
  }

  .orion-model p {
    font-size: 14px;
  }

  .orion-model h3 {
    font-size: 17px;
  }

  .orion-model img {
    max-width: 100%;
    height: auto;
  }
}
