/*
 * Decode Your Job - стиловете на модула.
 * Източник: makets/final/decode.html → <style id="dyj-css">, 1:1; токените от :root са в .dyj{},
 * всички селектори са под .dyj (по-силни от Hello Elementor reset и Elementor kit).
 * Промяна на дизайна = първо макетът, после този файл.
 */

.dyj {
  --dyj-navy: #003870;
  --dyj-green: #0cbe5e;
  --dyj-white: #ffffff;
  --dyj-red: #c3212e;
  --dyj-yellow: #ffcc00;
  --dyj-eu-blue: #00339a;
  --dyj-ink: #003870;
  --dyj-muted: #43566f;
  --dyj-surface: #f2f6fa;
  --dyj-line: #d5dfea;
  --dyj-max: 560px;
  --dyj-radius: 20px;
  --dyj-radius-btn: 30px;
  --dyj-font-display: "Roboto Condensed", "Roboto", sans-serif;
  --dyj-font-head: "Roboto", sans-serif;
  --dyj-font-body: "Inter", sans-serif;
  /* накъсаният ръб от обложката Youth4Future: navy отгоре, зелено отдолу */
  --dyj-tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 32' preserveAspectRatio='none'%3E%3Cpath fill='%23003870' d='M0 0h560v13l-9 3-7-4-11 6-6-2-13 5-8-6-10 4-12-3-6 6-14-4-9 5-10-2-8 4-12-5-7 3-11-2-9 6-13-3-8 2-10-5-12 6-7-3-9 4-14-4-6 5-11-3-10 2-8-5-13 6-9-2-7 4-12-5-10 3-8-2-11 6-9-4-13 3-7-5-10 5-12-2-8 4-9-6-11 3-10-1-13 5-8-4-9 3-11-5-7 4-12-3-10 6-6-4-13 2-9-5-10 4-8-2-12 5-11-6-7 3-9-2-10 5-13-4V0z'/%3E%3Ccircle fill='%23003870' cx='71' cy='25' r='2.4'/%3E%3Ccircle fill='%23003870' cx='238' cy='27' r='1.8'/%3E%3Ccircle fill='%23003870' cx='409' cy='26' r='2.6'/%3E%3Ccircle fill='%23003870' cx='503' cy='28' r='1.6'/%3E%3C/svg%3E");
}

.dyj {
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--dyj-max);
  margin-inline: auto;
  color: var(--dyj-ink);
  font-family: var(--dyj-font-body);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.dyj *, .dyj *::before, .dyj *::after { box-sizing: border-box; }
.dyj :where(h1, h2, h3, h4, p, ol, ul, li, figure) { margin: 0; padding: 0; }
.dyj :where(ol, ul) { list-style: none; }
.dyj :where(button, textarea) { font: inherit; color: inherit; }
.dyj :focus-visible { outline: 3px solid var(--dyj-yellow); outline-offset: 2px; box-shadow: 0 0 0 2px var(--dyj-navy); }

/* ── екран (панел) ─────────────────────────────── */
.dyj .dyj-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 5.5cqi, 32px);
  background: var(--dyj-white);
  border: 1px solid var(--dyj-line);
  border-radius: var(--dyj-radius);
}

/* ── бутони ────────────────────────────────────── */
.dyj .dyj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: var(--dyj-radius-btn);
  font-family: var(--dyj-font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.dyj .dyj-btn--primary { background: var(--dyj-navy); border-color: var(--dyj-navy); color: var(--dyj-white); }
.dyj .dyj-btn--primary:hover { background: #002a55; border-color: #002a55; }
.dyj .dyj-btn--primary:disabled { background: var(--dyj-line); border-color: var(--dyj-line); color: var(--dyj-muted); cursor: not-allowed; }
.dyj .dyj-btn--secondary { background: var(--dyj-white); border-color: var(--dyj-navy); color: var(--dyj-navy); }
.dyj .dyj-btn--secondary:hover { background: var(--dyj-surface); }
.dyj .dyj-btn--text { background: transparent; color: var(--dyj-navy); padding-inline: 6px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.dyj .dyj-btn--text:hover { text-decoration-thickness: 2px; }
.dyj .dyj-btn--block { width: 100%; }
.dyj .dyj-btn svg { flex: none; width: 20px; height: 20px; }

.dyj .dyj-note { font-size: 14px; color: var(--dyj-muted); }

/* ── #start ────────────────────────────────────── */
.dyj .dyj-start { padding: 0; gap: 0; background: var(--dyj-navy); border: 0; }
.dyj .dyj-start-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 8cqi, 48px) clamp(20px, 6.5cqi, 40px) clamp(20px, 5cqi, 28px);
  color: var(--dyj-white);
}
.dyj .dyj-title {
  font-family: var(--dyj-font-display);
  font-weight: 800;
  font-size: clamp(46px, 14.5cqi, 80px);
  line-height: .9;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.dyj .dyj-subtitle {
  text-wrap: balance;
  font-family: var(--dyj-font-head);
  font-weight: 700;
  font-size: clamp(20px, 4.4cqi, 24px);
  line-height: 1.25;
  color: var(--dyj-green);
}
.dyj .dyj-lead { max-width: 44ch; color: #e4ecf5; }
.dyj .dyj-tear { height: 32px; background: var(--dyj-green) var(--dyj-tear) top / 100% 100% no-repeat; }
.dyj .dyj-start-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 4px clamp(20px, 6.5cqi, 40px) clamp(24px, 6cqi, 32px);
  background: var(--dyj-green);
  border-radius: 0 0 var(--dyj-radius) var(--dyj-radius);
}
.dyj .dyj-start-cta .dyj-btn { padding-inline: 34px; }
.dyj .dyj-start-cta .dyj-note { color: var(--dyj-navy); font-weight: 600; }

.dyj .dyj-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  padding: 20px 4px 4px;
}
.dyj .dyj-logos img { display: block; height: 44px; width: auto; }
.dyj .dyj-logo-y4f { font-family: var(--dyj-font-display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .01em; color: var(--dyj-navy); }
.dyj .dyj-logo-eu { display: flex; align-items: center; gap: 8px; font-family: Arial, sans-serif; font-weight: 700; font-size: 11px; line-height: 1.2; color: var(--dyj-eu-blue); }
.dyj .dyj-logo-eu svg { flex: none; width: 42px; }

/* ── въпрос ────────────────────────────────────── */
.dyj .dyj-progress { display: flex; align-items: center; gap: 14px; }
.dyj .dyj-progress-count { font-family: var(--dyj-font-display); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--dyj-muted); white-space: nowrap; }
.dyj .dyj-progress-count b { font-weight: 800; color: var(--dyj-navy); font-size: 22px; }
.dyj .dyj-progress-track { position: relative; flex: 1; height: 8px; border-radius: 8px; background: var(--dyj-surface); box-shadow: inset 0 0 0 1px var(--dyj-line); }
.dyj .dyj-progress-fill { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--dyj-green); }

.dyj .dyj-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--dyj-radius-btn);
  background: var(--dyj-surface);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dyj-navy);
}
.dyj .dyj-qtext {
  font-family: var(--dyj-font-head);
  font-weight: 700;
  font-size: clamp(21px, 4.6cqi, 26px);
  line-height: 1.28;
  color: var(--dyj-navy);
  text-wrap: pretty;
}
.dyj .dyj-answers { display: flex; flex-direction: column; gap: 12px; }
.dyj .dyj-answer {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--dyj-line);
  border-radius: 14px;
  background: var(--dyj-white);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--dyj-navy);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.dyj .dyj-answer:hover { border-color: var(--dyj-navy); }
.dyj .dyj-radio { flex: none; width: 22px; height: 22px; border: 2px solid var(--dyj-muted); border-radius: 50%; background: var(--dyj-white); }
.dyj .dyj-answer[aria-checked="true"] { background: var(--dyj-navy); border-color: var(--dyj-navy); color: var(--dyj-white); }
.dyj .dyj-answer[aria-checked="true"] .dyj-radio { border-color: var(--dyj-green); background: var(--dyj-green) radial-gradient(circle, var(--dyj-navy) 0 4px, transparent 4.5px); }

.dyj .dyj-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.dyj .dyj-nav .dyj-btn--primary { margin-left: auto; min-width: 9.5em; }

/* ── резултат ──────────────────────────────────── */
.dyj .dyj-badge { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 20px; border-radius: 16px; }
.dyj .dyj-badge-label { font-size: 14px; font-weight: 600; line-height: 1.3; }
.dyj .dyj-badge-title { font-family: var(--dyj-font-display); font-weight: 800; font-size: clamp(30px, 7.6cqi, 40px); line-height: 1; text-wrap: balance; }
.dyj .dyj-badge--green { background: var(--dyj-green);  color: var(--dyj-navy); }
.dyj .dyj-badge--yellow { background: var(--dyj-yellow); color: var(--dyj-navy); }
.dyj .dyj-badge--red { background: var(--dyj-red);    color: var(--dyj-white); }
.dyj .dyj-profile-text { font-size: 17px; }

.dyj .dyj-h3 { font-family: var(--dyj-font-head); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--dyj-navy); padding-top: 4px; }
.dyj .dyj-areas { display: flex; flex-direction: column; gap: 12px; }
.dyj .dyj-area { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; border-radius: 16px; background: var(--dyj-surface); }
.dyj .dyj-area-head { display: flex; align-items: flex-start; gap: 12px; }
.dyj .dyj-area-num { flex: none; display: flex; justify-content: center; width: 32px; padding: 4px 0; border-radius: 50%; background: var(--dyj-navy); color: var(--dyj-green); font-family: var(--dyj-font-display); font-weight: 800; font-size: 18px; line-height: 24px; }
.dyj .dyj-area-name { padding-top: 3px; font-family: var(--dyj-font-head); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--dyj-navy); }
.dyj .dyj-area-text { font-size: 15px; color: var(--dyj-muted); }
.dyj .dyj-ask { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 3px solid var(--dyj-green); }
.dyj .dyj-ask-label { font-size: 13px; font-weight: 600; color: var(--dyj-muted); }
.dyj .dyj-ask-q { font-size: 15px; font-weight: 600; color: var(--dyj-navy); }
.dyj .dyj-more { align-self: flex-start; font-size: 15px; font-weight: 600; color: var(--dyj-navy); text-decoration: underline; text-underline-offset: 4px; }
.dyj .dyj-more:hover { text-decoration-thickness: 2px; }

/* ── карта (визуализация на canvas 1080×1350) ──── */
.dyj .dyj-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 1080 / 1350;
  border-radius: 14px;
  background: var(--dyj-navy);
  color: var(--dyj-white);
  box-shadow: 0 10px 30px rgba(0, 56, 112, .18);
}
.dyj .dyj-card-main { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 5cqw; padding: 7cqw 6.5cqw 3cqw; }
.dyj .dyj-card-head, .dyj .dyj-card-areas { display: flex; flex-direction: column; gap: 3.4cqw; }
.dyj .dyj-card-title { font-family: var(--dyj-font-display); font-weight: 800; font-size: 10.5cqw; line-height: .92; letter-spacing: -.01em; }
.dyj .dyj-card-badge { align-self: flex-start; padding: 1.6cqw 3.4cqw; border-radius: 10cqw; font-family: var(--dyj-font-head); font-weight: 700; font-size: 3.8cqw; line-height: 1.2; }
.dyj .dyj-card-h { font-family: var(--dyj-font-head); font-weight: 700; font-size: 3.3cqw; line-height: 1.25; color: var(--dyj-green); }
.dyj .dyj-card-list { display: flex; flex-direction: column; gap: 2cqw; margin-top: -1.2cqw; }
.dyj .dyj-card-list li { display: grid; grid-template-columns: 5.4cqw 1fr; gap: 1.8cqw; font-family: var(--dyj-font-head); font-weight: 700; font-size: 4.2cqw; line-height: 1.22; }
.dyj .dyj-card-list b { font-family: var(--dyj-font-display); font-weight: 800; color: var(--dyj-green); }
.dyj .dyj-card-tear { height: 5cqw; background: var(--dyj-green) var(--dyj-tear) top / 100% 100% no-repeat; }
.dyj .dyj-card-bottom { display: flex; flex-direction: column; gap: 1.6cqw; padding: 1cqw 6.5cqw 5.5cqw; background: var(--dyj-green); color: var(--dyj-navy); border-radius: 0 0 14px 14px; }
.dyj .dyj-card-ask-label { font-family: var(--dyj-font-head); font-weight: 700; font-size: 3.1cqw; line-height: 1.25; }
.dyj .dyj-card-ask { font-family: var(--dyj-font-head); font-weight: 700; font-size: 4.6cqw; line-height: 1.22; }
.dyj .dyj-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1cqw 3cqw; padding-top: 2cqw; font-size: 2.9cqw; font-weight: 600; line-height: 1.3; }
.dyj .dyj-card-foot b { font-family: var(--dyj-font-display); font-weight: 800; font-size: 3.8cqw; }

.dyj .dyj-card-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dyj .dyj-card-actions .dyj-btn { flex: 1 1 180px; }

/* ── отворен въпрос ────────────────────────────── */
.dyj .dyj-textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--dyj-line);
  border-radius: 14px;
  background: var(--dyj-white);
  font-size: 17px;
  line-height: 1.5;
  color: var(--dyj-navy);
  resize: vertical;
}
.dyj .dyj-textarea::placeholder { color: var(--dyj-muted); }
.dyj .dyj-textarea:hover { border-color: var(--dyj-navy); }
.dyj .dyj-counter { margin-top: -12px; text-align: right; font-size: 14px; color: var(--dyj-muted); }

/* ── връзки ────────────────────────────────────── */
.dyj .dyj-links { display: flex; flex-direction: column; gap: 12px; }
.dyj .dyj-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--dyj-line);
  border-radius: 14px;
  background: var(--dyj-white);
  font-family: var(--dyj-font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--dyj-navy);
  text-decoration: none;
  transition: border-color .15s ease;
}
.dyj .dyj-link:hover { border-color: var(--dyj-navy); }
.dyj .dyj-link svg { flex: none; width: 22px; height: 22px; color: var(--dyj-green); }

/* ── зареждане / грешка / край ─────────────────── */
.dyj .dyj-skel { display: block; border-radius: 10px; background: var(--dyj-surface); }
.dyj .dyj-skel--bar { height: 8px; }
.dyj .dyj-skel--tag { width: 46%; height: 26px; border-radius: 30px; }
.dyj .dyj-skel--line { height: 22px; }
.dyj .dyj-skel--short { width: 62%; }
.dyj .dyj-skel--answer { height: 60px; border-radius: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .dyj .dyj-skel { background: linear-gradient(90deg, var(--dyj-surface) 0%, #e3ebf4 40%, var(--dyj-surface) 80%) 0 0 / 200% 100%; animation: dyj-shimmer 1.4s linear infinite; }
  @keyframes dyj-shimmer { to { background-position: -200% 0; } }
}
.dyj .dyj-status { font-size: 15px; font-weight: 600; color: var(--dyj-muted); }

.dyj .dyj-msg { align-items: flex-start; }
.dyj .dyj-msg-title { font-family: var(--dyj-font-display); font-weight: 800; font-size: clamp(34px, 9cqi, 48px); line-height: 1; color: var(--dyj-navy); }
.dyj .dyj-msg--error { border-color: var(--dyj-red); border-left-width: 6px; }
.dyj .dyj-msg--error .dyj-msg-title { font-family: var(--dyj-font-head); font-weight: 700; font-size: 22px; line-height: 1.3; }
.dyj .dyj-msg--thanks { background: var(--dyj-navy); border-color: var(--dyj-navy); color: var(--dyj-white); }
.dyj .dyj-msg--thanks .dyj-msg-title { color: var(--dyj-green); }
.dyj .dyj-msg--thanks .dyj-btn--primary { background: var(--dyj-green); border-color: var(--dyj-green); color: var(--dyj-navy); }
.dyj .dyj-msg--thanks .dyj-btn--primary:hover { background: #2ad074; border-color: #2ad074; }

/* ── само в плъгина (не е в макета) ────────────────
 * 1) Hello Elementor reset дава на button white-space:nowrap и розов фон при :hover/:focus;
 *    тук бутоните и отговорите си пазят цветовете от макета.
 * 2) Картата на живо е <canvas> 1080×1350 (в макета е <div class="dyj-card">).
 * 3) Elementor kit дава цвят на h1/h2, който бие наследяването; заглавията тук имат изричен цвят по макета.
 * 4) Shortcode widget-ът е flex елемент с align-items:normal и заради container-type на .dyj
 *    получава грешна височина на 390 px; width:100% му дава височина = съдържанието. */
.dyj .dyj-title { color: var(--dyj-white); }
.dyj .dyj-badge--green .dyj-badge-title, .dyj .dyj-badge--yellow .dyj-badge-title { color: var(--dyj-navy); }
.dyj .dyj-badge--red .dyj-badge-title { color: var(--dyj-white); }
.elementor-widget-shortcode:has(> .elementor-shortcode > .dyj) { width: 100%; }
.dyj button.dyj-btn, .dyj button.dyj-answer { white-space: normal; text-transform: none; letter-spacing: normal; }
.dyj .dyj-btn--primary:not(:disabled):is(:hover, :focus) { color: var(--dyj-white); }
.dyj .dyj-btn--primary:not(:disabled):focus:not(:hover) { background: var(--dyj-navy); border-color: var(--dyj-navy); }
.dyj .dyj-btn--secondary:is(:hover, :focus) { color: var(--dyj-navy); }
.dyj .dyj-btn--secondary:focus:not(:hover) { background: var(--dyj-white); }
.dyj .dyj-btn--text:is(:hover, :focus) { background: transparent; color: var(--dyj-navy); }
.dyj .dyj-answer:is(:hover, :focus) { background: var(--dyj-white); color: var(--dyj-navy); }
.dyj .dyj-answer[aria-checked="true"]:is(:hover, :focus) { background: var(--dyj-navy); border-color: var(--dyj-navy); color: var(--dyj-white); }
.dyj .dyj-msg--thanks .dyj-btn--primary:is(:hover, :focus) { color: var(--dyj-navy); }
.dyj .dyj-msg--thanks .dyj-btn--primary:focus:not(:hover) { background: var(--dyj-green); border-color: var(--dyj-green); }
.dyj .dyj-card-canvas { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 56, 112, .18); }
