/**
 * services.css – Szolgáltatás választó (2. lépés)
 *
 * Felelős:
 *   - .service-list (görgethető lista)
 *   - .service-card (egy szolgáltatás kártya)
 *   - .service-card.selected (kiválasztott állapot)
 *   - .service-price-range (ár sáv a kártyán)
 *   - .service-none-card ("Nem találom" opció)
 *   - .service-note-wrap (megjegyzés mező)
 */

/* ==========================================================================
   SZOLGÁLTATÁS LISTA
   ========================================================================== */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Skeleton betöltés állapot */
.service-list .skeleton-card {
  height: 72px;
}

/* ==========================================================================
   SZOLGÁLTATÁS KÁRTYA
   ========================================================================== */

.service-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.service-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card.selected {
  background: var(--red-light);
  border-color: var(--card-border-active);
}

/* Kiválasztás jelző pipa */
.service-card::after {
  content: '\f00c'; /* fa-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: white;
  background: var(--red);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.service-card.selected::after {
  opacity: 1;
}

/* Ikon kör */
.service-icon {
  width: 38px;
  height: 38px;
  background: rgba(200, 16, 46, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-red);
  font-size: 16px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.service-card.selected .service-icon {
  background: rgba(200, 16, 46, 0.25);
}

/* Kártya szöveg terület */
.service-body {
  flex: 1;
  min-width: 0; /* ellipsis engedélyezéséhez */
  padding-right: 24px; /* hely a pipának */
}

.service-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-title);
  letter-spacing: 0.3px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  /* max 2 sor */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ár sáv */
.service-price-range {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.service-price-min,
.service-price-max {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.service-price-sep {
  font-size: 11px;
  color: var(--text-muted);
}

.service-price-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   "NEM TALÁLOM" KÁRTYA
   ========================================================================== */

.service-none-card {
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.service-none-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.service-none-card.selected {
  border-color: rgba(232, 160, 32, 0.5);
  background: var(--gold-light);
}

.service-none-icon {
  width: 32px;
  height: 32px;
  background: rgba(232, 160, 32, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}

.service-none-text {
  flex: 1;
}

.service-none-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.service-none-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   MEGJEGYZÉS MEZŐ (ha "Nem találom" van választva)
   ========================================================================== */

.service-note-wrap {
  display: none;
  animation: fadeInStep 0.25s ease;
  margin-top: 14px;
}

.service-note-wrap.visible {
  display: block;
}

/* ==========================================================================
   BETÖLTÉSI HIBAÁLLAPOT
   ========================================================================== */

.service-load-error {
  display: none;
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.service-load-error.visible {
  display: block;
}

.service-load-error i {
  font-size: 24px;
  color: var(--text-red);
  display: block;
  margin-bottom: 8px;
}

.btn-retry-services {
  margin-top: 10px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--text-red);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-retry-services:hover {
  background: rgba(200, 16, 46, 0.2);
}

/* ==========================================================================
   SZOLGÁLTATÁS GRID KONTÉNER
   ========================================================================== */

/* Skeleton betöltés */
.services-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Kártyák listája (flexbox oszlop) */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

/* ==========================================================================
   EGYEDI IGÉNY SZEKCIÓ ("Nem találom a listában")
   ========================================================================== */

.custom-service-card {
  /* A .form-card osztálytól örökli a hátteret és a keretet */
}

.custom-service-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0;
  text-align: left;
  transition: color var(--transition);
}

.custom-service-toggle:hover {
  color: var(--text-primary);
}

.custom-service-toggle i:first-child {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}

.custom-service-toggle span {
  flex: 1;
}

.toggle-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.custom-service-body {
  animation: fadeInStep 0.25s ease;
}
