/* ==========================================================================
   VDSZ – Munkavédelmi AI-asszisztens
   Bootstrap 5.3.6 + projekt-specifikus vizuális réteg.
   A meglévő VDSZ fejléc és lábléc nem része ennek a komponensnek.
   ========================================================================== */

:root {
  --vdsz-navy: #0d3b78;
  --vdsz-blue: #1257a5;
  --vdsz-blue-bright: #1a73c8;
  --vdsz-blue-pale: #e6f3fd;
  --vdsz-blue-card: #e1f1fd;
  --vdsz-blue-plate: #f3f9fd;
  --vdsz-blue-circle: #dceaf5;
  --vdsz-yellow-card: #fdf3dc;
  --vdsz-amber: #f5a623;
  --vdsz-green-strip: #ddf1e9;
  --vdsz-text: #414d63;
  --vdsz-line: rgba(18, 87, 165, .14);
  --vdsz-container: 1140px;
  --vdsz-radius-card: 14px;
  --vdsz-radius-row: 12px;
}

html { overflow-x: hidden; }

body {
  margin: 0;
  background: #fff;
}

a { color: var(--vdsz-blue); }
a:hover { color: var(--vdsz-navy); }

.vdsz-ai-page {
  font-family: "Barlow", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--vdsz-text);
  background: #fff;
}

.vdsz-ai-page *,
.vdsz-ai-page *::before,
.vdsz-ai-page *::after { box-sizing: border-box; }

.vdsz-ai-container {
  width: 100%;
  max-width: var(--vdsz-container);
  padding-right: 20px;
  padding-left: 20px;
}

/* --- HERO ---------------------------------------------------------------- */
.vdsz-ai-hero { background: #fff; }

.vdsz-ai-hero__inner {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
}

.vdsz-ai-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 352;
}

/* --- BEVEZETŐ ------------------------------------------------------------ */
.vdsz-ai-intro {
  --bs-gutter-x: 0;
  margin: 0;
  padding-top: 26px;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 28px;
}

.vdsz-ai-intro__figure-col {
  flex: 0 0 132px;
  width: 132px;
  max-width: 132px;
  padding: 0;
}

.vdsz-ai-intro__copy {
  min-width: 0;
  padding: 0;
}

.vdsz-ai-intro__figure {
  width: 132px;
  background: var(--vdsz-blue-plate);
  border-radius: var(--vdsz-radius-card);
  aspect-ratio: 1 / 1.2;
  display: grid;
  place-items: center;
  padding: 14px;
}

.vdsz-ai-intro__figure svg { width: 100%; height: auto; }

.vdsz-ai-intro__title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--vdsz-blue);
  letter-spacing: -.01em;
}

.vdsz-ai-intro p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.62;
  text-wrap: pretty;
}

.vdsz-ai-intro p:last-child { margin-bottom: 0; }
.vdsz-ai-intro strong { color: var(--vdsz-navy); font-weight: 600; }

/* --- INFÓ KÁRTYÁK -------------------------------------------------------- */
.vdsz-ai-info-grid {
  --bs-gutter-x: 22px;
  --bs-gutter-y: 0;
  margin-top: 26px;
}

.vdsz-ai-info-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 26px;
  border-radius: var(--vdsz-radius-card);
}

.vdsz-ai-info-card--warning { background: var(--vdsz-yellow-card); }
.vdsz-ai-info-card--help { background: var(--vdsz-blue-card); }

.vdsz-ai-info-card__icon { width: 54px; height: 54px; }
.vdsz-ai-info-card__icon svg { display: block; width: 100%; height: auto; }

.vdsz-ai-info-card__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--vdsz-blue);
}

.vdsz-ai-info-card__lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--vdsz-navy);
}

.vdsz-ai-info-card p:not(.vdsz-ai-info-card__lead) {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.66;
  text-wrap: pretty;
}

/* --- TAGSÁGI SÁV --------------------------------------------------------- */
.vdsz-ai-membership {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 22px 0 30px;
  padding: 16px 28px;
  background: var(--vdsz-green-strip);
  border-radius: var(--vdsz-radius-card);
}

.vdsz-ai-membership__icon { flex: 0 0 46px; width: 46px; }
.vdsz-ai-membership__icon svg { display: block; width: 100%; height: auto; }

.vdsz-ai-membership p {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  color: var(--vdsz-navy);
  font-weight: 400;
  text-wrap: pretty;
}

.vdsz-ai-membership strong { font-weight: 700; }

/* --- TÉMAKÖRÖK ----------------------------------------------------------- */
.vdsz-ai-topics {
  background: var(--vdsz-blue-pale);
  padding: 30px 0 34px;
}

.vdsz-ai-topics__title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--vdsz-blue-bright);
  letter-spacing: -.01em;
}

.vdsz-ai-topics__subtitle {
  margin: 0 0 20px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: var(--vdsz-blue);
}

/* --- HARMONIKA / BOOTSTRAP COLLAPSE ------------------------------------- */
.vdsz-ai-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vdsz-ai-accordion-item {
  background: #fff;
  border-radius: var(--vdsz-radius-row);
  overflow: hidden;
}

.vdsz-ai-accordion-trigger {
  display: grid;
  grid-template-columns: 46px 210px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s ease;
}

.vdsz-ai-accordion-trigger:hover { background: #f4faff; }

.vdsz-ai-accordion-trigger:focus-visible {
  outline: 2px solid var(--vdsz-blue-bright);
  outline-offset: -3px;
}

.vdsz-ai-accordion-icon { width: 46px; height: 46px; color: var(--vdsz-blue); }
.vdsz-ai-accordion-icon svg { display: block; width: 100%; height: auto; }

.vdsz-ai-accordion-text { display: contents; }

.vdsz-ai-accordion-title {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--vdsz-blue);
}

.vdsz-ai-accordion-lead {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--vdsz-text);
  text-wrap: pretty;
}

.vdsz-ai-accordion-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--vdsz-blue-circle);
  display: grid;
  place-items: center;
  color: var(--vdsz-blue);
  transition: transform .25s ease, background-color .18s ease;
}

.vdsz-ai-accordion-arrow svg { display: block; width: 16px; height: 16px; }

.vdsz-ai-accordion-trigger:not(.collapsed) .vdsz-ai-accordion-arrow {
  transform: rotate(180deg);
}

.vdsz-ai-accordion-content.collapsing {
  transition: height .28s ease;
}

.vdsz-ai-accordion-content__inner {
  margin: 0 20px 18px 116px;
  padding: 18px;
  min-height: 72px;
  border: 1px dashed rgba(18, 87, 165, .18);
  border-radius: 10px;
}

.vdsz-ai-accordion-content__placeholder {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(13, 59, 120, .45);
}

/* --- TÉMAKÖR-TARTALOM: kérdés–válasz lista ----------------------------- */
.vdsz-ai-topic-content {
  margin: 0 20px 4px;
  margin-left: clamp(20px, 12vw, 116px);
  padding-top: 4px;
  border-top: 1px solid var(--vdsz-line);
}

.vdsz-ai-topic-content--form {
  margin-bottom: 20px;
  padding-top: 22px;
}

.vdsz-ai-qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vdsz-ai-qa-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(18, 87, 165, .1);
}

.vdsz-ai-qa-item:last-child { border-bottom: 0; }

.vdsz-ai-qa-number {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--vdsz-blue-bright);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.vdsz-ai-qa-question {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--vdsz-navy);
  text-wrap: pretty;
}

.vdsz-ai-qa-answer > div {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--vdsz-text);
  text-wrap: pretty;
}

.vdsz-ai-qa-answer > div:last-child { margin-bottom: 0; }
.alert-info{
  background: var(--vdsz-blue-plate);
}

/* --- SEGÍTSÉGKÉRÉS ŰRLAP ------------------------------------------------ */
.vdsz-help-form {
  background: #fbfdff;
  border: 1px solid var(--vdsz-line);
  border-radius: 12px;
  padding: 26px 28px;
}

.vdsz-help-form__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.vdsz-help-form__head > span {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: var(--vdsz-blue);
}

.vdsz-help-form__head svg { display: block; width: 100%; height: auto; }

.vdsz-help-form__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--vdsz-navy);
}

.vdsz-help-form__grid {
  --bs-gutter-x: 22px;
  --bs-gutter-y: 18px;
}

.vdsz-help-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.vdsz-help-form__label {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--vdsz-navy);
}

.vdsz-help-form__req { color: var(--vdsz-blue-bright); }

.vdsz-help-form__input,
.vdsz-help-form__select,
.vdsz-help-form__textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  color: #1f2a44;
  background-color: #fff;
  border: 1px solid rgba(18, 87, 165, .25);
  border-radius: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.vdsz-help-form__select {
  padding-right: 2.25rem;
}

.vdsz-help-form__input--email { max-width: 420px; }

.vdsz-help-form__textarea {
  min-height: 168px;
  padding: 13px 14px;
  line-height: 1.65;
  resize: vertical;
}

.vdsz-help-form__input:focus,
.vdsz-help-form__select:focus,
.vdsz-help-form__textarea:focus {
  outline: none;
  border-color: var(--vdsz-blue-bright);
  box-shadow: 0 0 0 3px rgba(26, 115, 200, .15);
}

.vdsz-help-form__consent {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.vdsz-help-form__consent-legend {
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--vdsz-navy);
}

.vdsz-help-form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--vdsz-text);
  cursor: pointer;
  text-wrap: pretty;
}

.vdsz-help-form__check input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border-color: rgba(18, 87, 165, .35);
  accent-color: var(--vdsz-blue);
  cursor: pointer;
}

.vdsz-help-form__check input:checked {
  background-color: var(--vdsz-blue);
  border-color: var(--vdsz-blue);
}

.vdsz-help-form__notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--vdsz-blue-pale);
  border: 1px solid var(--vdsz-line);
  border-radius: 10px;
}

.vdsz-help-form__notice > span {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--vdsz-blue);
}

.vdsz-help-form__notice svg { display: block; width: 100%; height: auto; }

.vdsz-help-form__notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vdsz-navy);
  text-wrap: pretty;
}

.vdsz-help-form__actions { margin-top: 22px; }

.vdsz-help-form__submit,
.vdsz-help-form__submit.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: var(--vdsz-blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .18s ease;
}

.vdsz-help-form__submit:hover,
.vdsz-help-form__submit.btn:hover {
  color: #fff;
  background: var(--vdsz-navy);
}

.vdsz-help-form__submit:focus-visible {
  outline: 2px solid var(--vdsz-blue-bright);
  outline-offset: 3px;
  box-shadow: none;
}

/* --- RESPONSZÍV ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .vdsz-ai-intro {
    gap: 20px;
  }

  .vdsz-ai-intro__figure-col {
    flex-basis: 104px;
    width: 104px;
    max-width: 104px;
  }

  .vdsz-ai-intro__figure { width: 104px; }
  .vdsz-ai-intro__title { font-size: 23px; }

  .vdsz-ai-info-grid {
    --bs-gutter-y: 16px;
    margin-top: 10px;
  }

  .vdsz-ai-membership p { font-size: 17px; }
  .vdsz-ai-topics__title { font-size: 30px; }

  .vdsz-ai-accordion-trigger {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    gap: 16px;
    align-items: start;
  }

  .vdsz-ai-accordion-icon { width: 42px; height: 42px; }
  .vdsz-ai-accordion-title { margin-bottom: 6px; }
  .vdsz-ai-accordion-lead { font-size: 13.5px; }
  .vdsz-ai-accordion-text { display: block; grid-column: 2; }
  .vdsz-ai-accordion-content__inner { margin-left: 20px; }
}

@media (max-width: 575.98px) {
  .vdsz-ai-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .vdsz-ai-intro {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
  }

  .vdsz-ai-intro__figure-col {
    flex: 0 0 96px;
    width: 96px;
    max-width: 96px;
  }

  .vdsz-ai-intro__figure { width: 96px; }

  .vdsz-ai-intro__copy {
    flex: 0 0 100%;
    width: 100%;
  }

  .vdsz-ai-info-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .vdsz-ai-membership {
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
  }

  .vdsz-ai-membership p { font-size: 16px; }
  .vdsz-ai-topics__title { font-size: 26px; }
  .vdsz-ai-accordion-trigger { padding: 14px 16px; gap: 12px; }


  .vdsz-ai-qa-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 20px 0;
  }

  .vdsz-help-form { padding: 20px 18px; }
  .vdsz-help-form__submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vdsz-ai-page *,
  .vdsz-ai-page *::before,
  .vdsz-ai-page *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}
