/* --- ALAPSTÍLUSOK ÉS HÁTTÉR --- */
.hka {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 1140px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f4f7f6; /* Az e-mail sablon kellemes háttérszíne */
  color: #333333;
}

.hka * {
  box-sizing: border-box;
}

/* --- DRUPAL FOLYAMATJELZŐ STÍLUS (PROGRESS TRACKER) --- */
.hka .webform-progress {
  margin-bottom: 2.5rem;
}

.hka .webform-progress-tracker {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #eef2f5;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.hka .progress-step {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  opacity: 0.4;
  transition: background-color 0.3s, opacity 0.3s;
}

.hka .progress-step.is-active {
  opacity: 1;
  background-color: #eef9f6; /* Az e-mail kiemelő zöldes-fehér háttere */
}

.hka .progress-marker {
  width: 26px;
  height: 26px;
  background-color: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  border-radius: 50%;
  margin: 0 auto 0.4rem auto;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hka .progress-step.is-active .progress-marker {
  background-color: #009879; /* E-mail szerinti fő zöld */
  border-color: #009879;
  color: #ffffff;
}

.hka .progress-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555555;
}

.hka .progress-step.is-active .progress-title {
  color: #009879;
}

/* --- FŐ SZEKCIÓFEJLÉC (PONTOSAN MINT AZ EMAILBEN) --- */
.hka .form-oldal-cim {
  background: #009879; /* Az e-mail telített zöldje */
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.hka .form-oldal-cim h2 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* --- KÉTOSZLOPOS FLEXBOX ELRENDEZÉS --- */
@media (min-width: 768px) {
  .hka .webform-flexbox {
    display: flex;
    gap: 25px;
    align-items: start;
  }
  
  .hka .webform-flex {
    flex: 1;
    min-width: 0;
  }
}

/* --- FIELDSET KÁRTYÁK (CARDS) --- */
.hka fieldset {
  background: #ffffff;
  border: 1px solid #eef2f5;
  border-radius: 16px; /* Lekerekített e-mail konténer stílus */
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Fieldset feliratok (Card Headers az e-mail alapján) */
.hka legend {
  padding: 0 0 8px 0;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  border-bottom: 2px solid #009879; /* Adós zöld alsó vonal */
  margin-bottom: 20px;
}

.hka #edit-ados legend {
  color: #009879;
  border-bottom-color: #009879;
}

/* Adóstárs narancssárga kiemelése */
.hka #edit-adostars legend {
  color: #ff9800; /* E-mail szerinti narancs */
  border-bottom-color: #ff9800;
}

.hka .fieldset-wrapper {
  margin-top: 0.5rem;
}

/* --- LABELEK ÉS INPUTOK EGYMÁS ALATTI ELRENDEZÉSE --- */
.hka .form-item {
  display: flex;
  flex-direction: column; /* Szigorúan egymás alá rakja őket */
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #edeef0; /* Halvány elválasztó vonal, mint a mailben */
}

.hka .form-item:last-child {
  border-bottom: none;
}

/* Mezők nevei (Label) */
.hka .form-item label {
  font-size: 14px;
  color: #777777; /* Finom szürke az e-mail első oszlopa alapján */
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Beviteli mezők, legördülők formázása az űrlaphoz igazítva */
.hka input[type="text"],
.hka input[type="email"],
.hka input[type="number"],
.hka select {
  width: 100% !important;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 14px;
  font-weight: 600; /* Kicsit vastagabb beírt betűk, mint az e-mail értékek */
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #fafafa; /* Halvány szürkés belső, mint a kártyák háttérszíne */
  color: #222222;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

/* Fókusz állapot */
.hka input:focus,
.hka select:focus {
  outline: none;
  border-color: #009879;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 152, 121, 0.15);
}

/* Rövid mezők (Pl. dátum) fixálása */
.hka .size12 {
  max-width: 180px;
}
@media (max-width: 576px) {
  .hka .size12 {
    max-width: 100%;
  }
}

/* --- KÖVETKEZŐ GOMB (AKCIÓK) --- */
.hka .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef2f5;
}

.hka .form-actions .button {
  background-color: #009879;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.8rem 2.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(0, 152, 121, 0.2);
}

.hka .form-actions .button:hover {
  background-color: #007d63;
}

.hka .form-actions .button:active {
  transform: scale(0.98);
}

/* Drupal kisegítő osztály */
.hka .visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px !important;
  height: 1px !important;
}