/* Aurora Alkotó – személyiségteszt és tesztprogram (0.2.4)
   Az Aurora arculata: meleg bézs háttér, türkiz és visszafogott arany.
   Betűk: a kérdések Cormorant Garamond, a válaszok Roboto – a weboldal már betöltött betűit használja,
   külső betöltés nincs. A sablon címsorstílusait (pl. csupa nagybetű) a tesztben felülírjuk. */

.aurora-alkoto {
  --aa-bg: #F4ECE5;
  --aa-card: #FFFAF6;
  --aa-ink: #3A3130;
  --aa-muted: #6E625D;
  --aa-teal: #1C9A9E;
  --aa-teal-dark: #137B7F;
  --aa-gold: #B8913F;
  --aa-gold-soft: #E9D7A8;
  --aa-line: #E6D9CE;
  --aa-radius: 16px;
  --aa-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --aa-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  background: var(--aa-bg);
  color: var(--aa-ink);
  font-family: var(--aa-sans);
  font-size: 18px;
  line-height: 1.55;
  padding: clamp(24px, 5vw, 56px) 16px;
  min-height: 70vh;
  box-sizing: border-box;
}
.aurora-alkoto *, .aurora-alkoto *::before, .aurora-alkoto *::after { box-sizing: border-box; }

/* A sablon címsor- és gombstílusainak semlegesítése a teszten belül */
.aurora-alkoto h1, .aurora-alkoto h2, .aurora-alkoto h3, .aurora-alkoto h4,
.aurora-alkoto p, .aurora-alkoto button, .aurora-alkoto a, .aurora-alkoto label {
  text-transform: none !important;
  letter-spacing: normal !important;
}
.aurora-alkoto h1, .aurora-alkoto h2, .aurora-alkoto h3, .aurora-alkoto h4 {
  font-family: var(--aa-serif) !important;
  color: var(--aa-ink);
}

.aa-app { max-width: 620px; margin: 0 auto; }
.aa-view.aa-enter { animation: aa-fade .45s ease both; }
@keyframes aa-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

[data-focus]:focus { outline: none; }
.aurora-alkoto button:focus-visible, .aurora-alkoto a:focus-visible, .aurora-alkoto textarea:focus-visible {
  outline: 3px solid var(--aa-teal); outline-offset: 3px;
}

/* ---------- Bevezető ---------- */
.aa-intro { text-align: center; padding: 5vh 0 3vh; }
.aurora-alkoto .aa-title {
  font-weight: 500; font-size: clamp(30px, 5.4vw, 42px); line-height: 1.15; margin: 0 0 16px;
}
.aa-sub { font-size: clamp(17px, 2.2vw, 19px); font-weight: 300; color: var(--aa-muted); margin: 0 auto 28px; max-width: 30em; }

/* ---------- Gombok: mindig középen, egységes méretben ---------- */
.aa-actions { display: flex; justify-content: center; margin: 22px 0 6px; }
.aa-actions:empty { display: none; }
.aurora-alkoto .aa-btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 16px/1.2 var(--aa-sans) !important; text-decoration: none; text-align: center;
  padding: 13px 30px; min-width: 160px; max-width: 100%;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.aurora-alkoto .aa-btn-primary { background: var(--aa-teal); color: #fff; box-shadow: 0 4px 14px rgba(28,154,158,.22); }
.aurora-alkoto .aa-btn-primary:hover { background: var(--aa-teal-dark); color: #fff; transform: translateY(-1px); }
.aurora-alkoto .aa-link { background: none; border: 0; color: var(--aa-teal-dark); text-decoration: underline; cursor: pointer; font: 400 15px var(--aa-sans); padding: 8px; }

/* ---------- Kérdés ---------- */
.aa-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.aurora-alkoto .aa-back { background: none; border: 0; color: var(--aa-muted); cursor: pointer; font: 400 15px var(--aa-sans); padding: 8px 4px; }
.aurora-alkoto .aa-back:hover { color: var(--aa-teal-dark); }
.aa-progress-label { font: 500 14px var(--aa-sans); color: var(--aa-gold); }
.aa-progress { height: 3px; background: var(--aa-line); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.aa-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--aa-gold-soft), var(--aa-gold)); transition: width .5s ease; }

.aurora-alkoto .aa-qtext { font-weight: 500; font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
.aa-extra { color: var(--aa-muted); margin: 0 0 6px; font-size: 16px; font-weight: 300; }

.aa-answers { display: grid; gap: 10px; margin: 18px 0; }
.aurora-alkoto .aa-answer {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--aa-card); color: var(--aa-ink); border: 1.5px solid var(--aa-line); border-radius: var(--aa-radius);
  padding: 14px 18px; font: 400 20px/1.35 var(--aa-sans) !important;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.aurora-alkoto .aa-answer:hover { border-color: var(--aa-gold-soft); transform: translateY(-1px); }
.aurora-alkoto .aa-answer.is-selected { border-color: var(--aa-teal); box-shadow: 0 0 0 3px rgba(28,154,158,.15); }
.aa-answer-text { display: flex; gap: 10px; align-items: baseline; }
.aa-emoji { flex: 0 0 auto; }

/* 2. kérdés: négy kisebb képes kártya, 2×2 */
.aa-answers-img { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; margin-left: auto; margin-right: auto; }
.aurora-alkoto .aa-answers-img .aa-answer { flex-direction: column; align-items: stretch; padding: 8px 8px 12px; font-size: 17px !important; text-align: center; }
.aa-answers-img .aa-answer-text { justify-content: center; }
.aa-answer-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #F3E9E0; }
.aa-answer-svg svg { display: block; width: 100%; height: 100%; border-radius: 10px; }
.aa-answer-svg { overflow: hidden; }

.aa-reaction { min-height: 1px; }
.aa-reaction-box {
  margin: 4px 0 4px; padding: 14px 18px; border-left: 3px solid var(--aa-gold); background: rgba(255,250,246,.75);
  border-radius: 0 12px 12px 0; animation: aa-fade .4s ease both;
}
.aa-reaction-text { font-family: var(--aa-serif); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.35; color: var(--aa-teal-dark); margin: 0; }
.aa-reaction-note { font-size: 15px; color: var(--aa-muted); margin: 6px 0 0; }
.aa-other-label { display: block; font-weight: 500; font-size: 16px; margin: 6px 0; }
.aa-other { width: 100%; border: 1.5px solid var(--aa-line); border-radius: 12px; padding: 12px; font: 400 17px var(--aa-sans); background: #fff; }
.aa-hint { font-size: 14px; color: var(--aa-muted); margin: 6px 0 0; }


/* ---------- A teszt vége: kinyíló fény, a látogató lép tovább ---------- */
.aa-ending { text-align: center; padding: 6vh 0; }
.aa-bloom { position: relative; width: 160px; height: 160px; margin: 0 auto 28px; }
.aa-bloom-img { width: 100%; height: 100%; object-fit: contain; animation: aa-open 2.6s ease-out both; }
.aa-bloom-glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,215,168,.95) 0%, rgba(184,145,63,.35) 45%, rgba(244,236,229,0) 70%);
  animation: aa-open 2.6s ease-out both;
}
.aa-shimmer {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  background-size: 250% 100%; animation: aa-shine 2.2s ease-in-out .9s both;
}
@keyframes aa-open { from { opacity: 0; transform: scale(.55) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes aa-shine { from { background-position: 120% 0; opacity: 0; } 30% { opacity: 1; } to { background-position: -40% 0; opacity: 0; } }
.aa-end1 { font-family: var(--aa-serif); font-style: italic; font-size: 26px; color: var(--aa-muted); margin: 0 0 8px; animation: aa-fade .8s ease .8s both; }
.aa-end-actions { animation: aa-fade .8s ease 1.8s both; }

/* ---------- Eredmény ---------- */
.aa-result-head { text-align: center; padding: 1vh 0 6px; }
.aa-result-emoji { font-size: 34px; margin: 0; }
.aurora-alkoto .aa-result-name { font-weight: 500; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; margin: 4px 0 14px; color: var(--aa-teal-dark); }
.aa-tagline { font-family: var(--aa-serif); font-style: italic; font-size: clamp(21px, 3.2vw, 25px); line-height: 1.3; margin: 0 auto 16px; max-width: 26em; }
.aa-desc { margin: 0 auto 12px; max-width: 32em; font-weight: 300; }
.aa-closing { color: var(--aa-gold); font-weight: 500; margin: 0 auto 8px; max-width: 32em; }

/* 0.2.3: lenyitható részletes elemzés */
.aa-more-wrap { margin: 4px auto 8px; max-width: 34em; }
.aurora-alkoto .aa-btn-soft { background: #fff; color: var(--aa-teal-dark); border: 1.5px solid var(--aa-teal); box-shadow: none; }
.aurora-alkoto .aa-btn-soft:hover, .aurora-alkoto .aa-btn-soft.is-open { background: rgba(28,154,158,.08); color: var(--aa-teal-dark); }
.aa-more::after { content: ' ▾'; }
.aa-more.is-open::after { content: ' ▴'; }
.aa-long { background: var(--aa-card); border: 1px solid var(--aa-line); border-radius: var(--aa-radius); padding: 20px 22px 12px; margin: 14px 0 6px; text-align: left; animation: aa-long-in .35s ease; }
.aa-long p { margin: 0 0 12px; font-weight: 300; line-height: 1.65; }
.aa-long .aa-closing { text-align: center; margin-top: 16px; }
.aurora-alkoto .aa-long-h { font-size: 22px; font-weight: 600; color: var(--aa-teal-dark); margin: 22px 0 8px; line-height: 1.25; }
.aurora-alkoto .aa-long-h:first-child { margin-top: 4px; }
.aa-long .aa-long-em { font-family: var(--aa-serif); font-size: 20px; line-height: 1.45; color: var(--aa-ink); font-weight: 400; }
.aa-long .aa-long-key { text-align: center; font-family: var(--aa-serif); font-size: 21px; line-height: 1.4; color: var(--aa-gold); margin: 14px 0; }
.aa-long .aa-long-key strong { font-weight: 600; }
@media (max-width: 600px) { .aurora-alkoto .aa-long-h { font-size: 20px; } .aa-long .aa-long-em { font-size: 18px; } .aa-long .aa-long-key { font-size: 19px; } }
@keyframes aa-long-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.aa-apply-gate { margin: 8px 0 0; }
.aurora-alkoto [hidden] { display: none !important; }
/* 0.2.4: önálló jelentkezési oldal – az űrlap az oldal tetején kezdődik */
.aurora-alkoto.aa-standalone .aa-program { border-top: 0; margin-top: 0; padding-top: 0; }
.aurora-alkoto.aa-standalone .aa-form-wrap { margin-top: 0; }
.aurora-alkoto .aa-quiz-first a.aa-link { display: inline-block; } /* a rejtett elemek a sablon stílusától függetlenül rejtve maradnak */
@media (max-width: 600px) { .aa-long { padding: 16px 16px 8px; } .aa-long p { font-size: 16px; } }
/* Óvatos Álmodozó: apró, csillogó türkiz-arany ajtó a zárómondat végén */
.aa-door { display: inline-block; width: 1.15em; height: 1.55em; margin-left: .3em; vertical-align: -.35em; }
.aa-door svg { display: block; width: 100%; height: 100%; }

.aa-reco { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--aa-line); }
.aurora-alkoto .aa-reco-title { font-weight: 500; font-size: 26px; text-align: center; margin: 0 0 16px; }
.aa-product { background: var(--aa-card); border: 1px solid var(--aa-line); border-radius: var(--aa-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(58,49,48,.07); }
.aa-product-img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.aa-product-body { padding: 18px 20px 20px; }
.aurora-alkoto .aa-product-name { font-weight: 500; font-size: 24px; margin: 0 0 4px; }
.aa-product-price { color: var(--aa-gold); font-weight: 500; margin: 0 0 10px; }
.aa-product-why { margin: 0; font-weight: 300; }
.aa-reco-note { text-align: center; color: var(--aa-muted); font-size: 15px; margin: 16px 0 6px; }
.aa-all { text-align: center; margin: 0; }
.aa-all a { color: var(--aa-teal-dark); font-weight: 500; }

/* ---------- Tesztprogram rész ---------- */
.aa-program { max-width: 620px; margin: 56px auto 0; padding: 24px 20px; text-align: center; border-top: 1px solid var(--aa-line); }
.aa-program-text { font-family: var(--aa-serif); font-size: 23px; margin: 0 0 10px; }

/* ---------- Jelentkezési űrlap ---------- */
.aurora-alkoto .aa-form-wrap { max-width: 620px; margin: 40px auto 0; background: var(--aa-card); border: 1px solid var(--aa-line); border-radius: 18px; padding: 28px 24px 26px; box-shadow: 0 10px 30px rgba(58,49,48,.06); }
.aurora-alkoto .aa-form-title { font-weight: 500; font-size: 28px; line-height: 1.2; text-align: center; margin: 0 0 10px; }
.aa-form-intro { text-align: center; color: var(--aa-muted); font-weight: 300; margin: 0 0 16px; }
.aa-facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.aa-facts li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.aa-facts li span:first-child { flex: 0 0 auto; }
.aa-field { margin: 0 0 20px; border: 0; padding: 0; }
.aa-field > label:not(.aa-choice):not(.aa-check), .aa-field > legend { display: block; font-weight: 500; font-size: 17px; margin: 0 0 6px; padding: 0; }
.aa-req { color: var(--aa-teal-dark); }
.aa-opt { color: var(--aa-muted); font-weight: 300; font-size: 15px; }
.aa-help { font-size: 14px; color: var(--aa-muted); font-weight: 300; margin: 4px 0 8px; }
.aa-input, .aa-textarea { width: 100%; border: 1.5px solid var(--aa-line); border-radius: 12px; padding: 12px 14px; font: 400 17px var(--aa-sans); background: #fff; color: var(--aa-ink); }
.aa-input:focus, .aa-textarea:focus { outline: none; border-color: var(--aa-teal); box-shadow: 0 0 0 3px rgba(28,154,158,.15); }
.aa-choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--aa-line); border-radius: 12px; padding: 12px 14px; margin: 0 0 8px; background: #fff; cursor: pointer; font-size: 16px; line-height: 1.4; }
.aa-choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--aa-teal); flex: 0 0 auto; }
.aa-choice.is-on { border-color: var(--aa-teal); box-shadow: 0 0 0 3px rgba(28,154,158,.12); }
.aa-note { font-size: 15px; background: rgba(233,215,168,.25); border-left: 3px solid var(--aa-gold); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 6px 0 0; }
.aa-sub-field { margin: 4px 0 0 30px; }
.aa-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; margin: 0 0 14px; }
.aa-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--aa-teal); flex: 0 0 auto; }
.aa-check-title { font-family: var(--aa-serif); font-size: 21px; font-weight: 500; margin: 18px 0 6px; }
.aa-privacy { font-size: 14px; color: var(--aa-muted); text-align: center; margin: 18px 0 0; }
.aa-privacy a, .aa-check a { color: var(--aa-teal-dark); }
@media (max-width: 600px) { .aa-form-wrap { padding: 22px 16px; } .aurora-alkoto .aa-form-title { font-size: 24px; } .aa-sub-field { margin-left: 0; } }

.aa-form-wrap { text-align: left; }
.aa-form-message, .aa-thanks { text-align: center; font-size: 18px; }
.aa-thanks p { margin: 0; line-height: 1.6; }
.aa-thanks:focus { outline: none; }
.aa-quiz-first { text-align: center; margin: -10px 0 18px; }
.aa-field.has-error .aa-input, .aa-field.has-error .aa-textarea, .aa-field.has-error .aa-choice { border-color: #B5523F; }
.aa-err, .aa-form-status { color: #9C3B2B; font-size: 15px; margin: 6px 0 0; }
.aa-form-status { text-align: center; background: #FBEDEA; border-radius: 10px; padding: 10px 14px; margin: 12px 0 0; }
.aa-field-check { margin-bottom: 8px; }
.aa-field-check .aa-check { margin-bottom: 6px; }
.aa-terms { font-size: 14.5px; line-height: 1.55; background: #fff; border: 1px solid var(--aa-line); border-radius: 12px; padding: 12px 16px; margin: 0 0 8px 30px; }
.aa-terms p { margin: 0; }
.aa-xmas { text-align: center; font-family: var(--aa-serif); font-size: 19px; line-height: 1.4; margin: 20px 0 4px; }
.aa-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.aa-form-wrap { position: relative; }
.aurora-alkoto .aa-btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.aa-form fieldset.aa-field { min-width: 0; }
@media (max-width: 600px) { .aa-terms { margin-left: 0; } .aa-program { padding: 20px 0 0; margin-top: 40px; } .aa-xmas { font-size: 18px; } }

/* ---------- Csak adminnak ---------- */
.aa-admin-note { font-size: 14px; color: #8A4B4B; background: #FBEDEA; border-radius: 10px; padding: 10px 14px; }
.aa-debug { margin-top: 28px; font-size: 14px; background: #fff; border: 1px dashed #C9B8A8; border-radius: 10px; padding: 10px 14px; }
.aa-debug summary { cursor: pointer; font-weight: 500; color: var(--aa-muted); }
.aa-debug table { border-collapse: collapse; margin: 8px 0; }
.aa-debug td, .aa-debug th { border-bottom: 1px solid var(--aa-line); padding: 4px 12px 4px 0; text-align: left; }
.aa-debug tr.is-top td { font-weight: 600; color: var(--aa-teal-dark); }
.aa-debug p { margin: 6px 0; }
.aa-debug-note { color: var(--aa-muted); }
.aa-noscript { text-align: center; }

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  .aurora-alkoto { font-size: 16px; }
  .aurora-alkoto .aa-qtext { font-size: 23px; }
  .aurora-alkoto .aa-answer { font-size: 17px !important; padding: 12px 14px; }
  .aurora-alkoto .aa-answers-img .aa-answer { font-size: 15px !important; padding: 6px 6px 10px; }
  .aa-answers-img { gap: 10px; }
  .aa-reaction-text { font-size: 19px; }
  .aurora-alkoto .aa-btn { padding: 12px 26px; font-size: 15px !important; }
  .aa-end1 { font-size: 22px; }
}

/* ---------- Csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora-alkoto *, .aurora-alkoto *::before, .aurora-alkoto *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important;
  }
}

/* 0.2.8: névmező a kedvezményértesítőhöz */
.aurora-alkoto .aa-rm-name[hidden] { display: none !important; }
.aurora-alkoto .aa-rm-name { margin: -4px 0 14px 30px; }
/* 0.3.0: eredménylevél-hozzájárulás */
.aurora-alkoto .aa-rm-mconsent { margin: 4px 0 10px; }
.aurora-alkoto .aa-rm-mconsent .aa-check a { color: var(--aa-teal-dark); text-decoration: underline; }

/* 0.3.2: bemutatóvideó és beszélgetés-meghívás az eredményben */
.aa-cs-video { margin: 0 0 24px; text-align: center; }
.aa-cs-thumb { display: block; max-width: 560px; margin: 0 auto 10px; border-radius: 14px; overflow: hidden; }
.aa-cs-thumb img { display: block; width: 100%; height: auto; }
.aa-cs-invite { background: #FFFCF9; border: 1.5px solid #1C9A9E; border-radius: 16px; padding: 22px 20px; text-align: center; }
.aa-consult .aa-form-wrap { margin-top: 0; }
