body {
  background-color: #0e1117;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

.kereso-kontener {
  max-width: 1600px;
  margin: 0 auto;

}

.service-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 3rem;
}

.component-info,
.service-history-accordion {
  flex: 1 1 45%;
  background: #1b1f29;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .component-info,
  .service-history-accordion {
    flex: 1 1 100%;
  }
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffd947;
}

.alkatresz-id {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.alkatresz-field,
.szerviz-field {
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.alkatresz-note {
  margin-top: 1.2rem;
  padding: 1rem;
  background: #232832;
  border-left: 4px solid #ffd947;
  border-radius: 6px;
}

.szerviz-item {
  background: #1b1f29;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #ffffff;
}

.szerviz-summary {
  cursor: pointer;
  padding: 12px 16px;
  background-color: #2a2f3a;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.szerviz-summary:hover {
  color: #ffd947;
}

.szerviz-summary .arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.szerviz-item[open] .arrow {
  transform: rotate(180deg);
}

.szerviz-details {
  padding: 16px;
  background-color: #1b1f29;
  font-size: 16px;
  line-height: 1.6;
}

.szerviz-field ul {
  padding-left: 20px;
  margin: 8px 0 0 0;
}

.szerviz-field li {
  list-style-type: disc;
  margin-bottom: 4px;
}

.szerviz-kepek {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.szerviz-kepek img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #555;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.szerviz-kepek img:hover {
  transform: scale(1.05);
  border-color: #ffd947;
}

.no-service {
  background: #2b2e38;
  padding: 1rem;
  border-radius: 8px;
  color: #aaa;
  font-style: italic;
}

.error-message {
  color: red;
  font-weight: bold;
  margin: 1rem 0;
}

/* KERESO FORM */


/* ---- KERESŐ – egységes, mobilbarát layout ---- */

/* A form maga blokkszintű */
.kereso-form {
  display: block;
}

/* Cím a mező fölött (ha levesszük a label inline stílusát, ez elég lesz) */
.kereso-form > label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 20px;
  color: white;
}

/* A sor: desktopon egymás mellett, mobilon oszlop */
.kereso-form__row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

/* Input alapstílus (megtartva a korábbiakat) */
.kereso-form input[type="text"] {
  flex: 1 1 auto;
  background: #222631;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.4;
  min-width: 0;
}

/* Gomb */
.kereso-form button {
  background: #f9cf47;
  color: black;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobil törés – a gomb BIZTOSAN új sorba kerül és minden 100% széles */
@media (max-width: 768px) {
  .kereso-form__row {
    flex-direction: column;
    align-items: stretch;   /* input 100% széles marad */
    gap: 12px;
  }

  /* Input marad teljes szélességű */
  .kereso-form input[type="text"] {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  /* Gomb NE legyen 100%, csak „valódi” gomb */
  .kereso-form button {
    width: auto;              /* <- ez veszi le a nyúlást */
    max-width: max-content;   /* a szöveghez igazodik */
    align-self: flex-start;   /* balra igazítja az oszlopban */
    flex: 0 0 auto;
    padding: 12px 24px;       /* kényelmes érintési felület */
    white-space: nowrap;      /* ne törjön két sorba */
  }
}



