@import url('/fonts/fonts.css');

:root {
  --night: #0f1b33;
  --night-2: #182a4d;
  --red: #c0392b;
  --red-dark: #962d22;
  --gold: #f2c14e;
  --cream: #fffaf2;
  --ink: #3a1d14;
  --muted: #7a5a4a;
  --line: #ecdccb;
  --green: #2f6b4f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--night);
  min-height: 100vh;
}
.sky {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 120%, #2b4a7e 0%, var(--night-2) 40%, var(--night) 75%);
  overflow: hidden;
}
.snow { position: absolute; top: -10px; color: #fff; opacity: .8; user-select: none; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } }

header.hero { text-align: center; color: #fff; padding: 56px 20px 24px; }
header.hero .badge { display: inline-block; background: rgba(242,193,78,.15); color: var(--gold); border: 1px solid rgba(242,193,78,.4); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .03em; }
header.hero h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 18px auto 14px; max-width: 760px; }
header.hero h1 em { color: var(--gold); font-style: normal; }
header.hero p { font-size: 19px; opacity: .85; max-width: 600px; margin: 0 auto; }

.steps-mini { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; color: #cfd9ee; margin: 30px 0 0; font-size: 15px; }
.steps-mini span b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; margin-right: 8px; font-size: 14px; }

main { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--cream); border-radius: 22px; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.card h2 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; margin: 0 0 6px; }
.card .sub { color: var(--muted); margin: 0 0 22px; }

.progress { display: flex; gap: 8px; margin-bottom: 24px; }
.progress div { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.progress div.on { background: var(--red); }

label { display: block; font-weight: 700; margin: 16px 0 6px; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
textarea { resize: vertical; min-height: 80px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .card { padding: 22px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 28px; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; transition: transform .1s, background .2s; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 26px; }

.script-box { background: #fff; border: 1.5px dashed var(--gold); border-radius: 16px; padding: 4px; }
.script-box textarea { border: 0; min-height: 210px; font-family: 'Fraunces', Georgia, serif; font-size: 18px; line-height: 1.55; }
.counter { text-align: right; font-size: 13px; color: var(--muted); margin-top: 6px; }

.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.scene { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; border: 3px solid transparent; background: #ddd; aspect-ratio: 4/3; }
.scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-weight: 700; font-size: 14px; }
.scene input { position: absolute; opacity: 0; }
.scene.sel { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.25); }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); }

.price { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 16px 18px; margin-top: 22px; border: 1.5px solid var(--line); }
.price b { font-size: 26px; color: var(--red); font-family: 'Fraunces', Georgia, serif; }

.err { background: #fdecea; color: #8a1c13; padding: 12px 14px; border-radius: 12px; margin-top: 16px; display: none; }
.err.show { display: block; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.demo-banner { background: var(--gold); color: var(--ink); text-align: center; padding: 8px; font-weight: 800; font-size: 14px; }

.hidden { display: none !important; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.timeline { list-style: none; padding: 0; margin: 20px 0; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--muted); }
.timeline li i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 14px; flex: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done i { background: var(--green); border-color: var(--green); color: #fff; }
.timeline li.now { color: var(--ink); font-weight: 800; }
.timeline li.now i { border-color: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(192,57,43,.2); } }
video { width: 100%; border-radius: 16px; background: #000; margin: 10px 0 18px; }

footer { text-align: center; color: #8ea0c4; font-size: 14px; padding: 10px 16px 40px; }
footer a { color: #cfd9ee; }
.faq { max-width: 720px; margin: 0 auto; padding: 0 16px 30px; color: #dfe7f7; }
.faq h3 { font-family: 'Fraunces', Georgia, serif; color: #fff; font-size: 24px; text-align: center; }
.faq details { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; opacity: .85; }
.legal { max-width: 760px; margin: 30px auto; }
.legal h1 { font-family: 'Fraunces', Georgia, serif; }

/* ---------- Informare cookie-uri (comun) ---------- */
.cookie-notice { position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: 420px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(15,27,51,.94); color: #e6edff; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); backdrop-filter: blur(8px); font-size: 14.5px; line-height: 1.45;
  opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s; }
.cookie-notice.show { opacity: 1; transform: none; }
.cookie-notice.hide { opacity: 0; transform: translateY(14px); }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: var(--gold); font-weight: 700; }
.cookie-ico { margin-right: 6px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-btn { border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 800; cursor: pointer; background: var(--gold); color: var(--ink); }
.cookie-btn:hover { filter: brightness(1.05); }
.cookie-btn.ghost { background: transparent; color: #e6edff; border: 1px solid rgba(255,255,255,.3); }
.cookie-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .cookie-notice { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-notice { transition: none; } }

/* tabele în paginile legale */
.table-wrap { overflow-x: auto; margin: 8px 0 18px; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cookie-table th { text-align: left; background: #f6efe4; padding: 10px; font-size: 13px; }
.cookie-table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: top; }
.legal code { background: #f3ece2; padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.legal .sub { color: var(--muted); margin-top: -6px; }

/* logo pe paginile secundare */
.site-logo { display: block; width: max-content; margin: 22px auto 0; line-height: 0; }
.site-logo img { height: 40px; width: auto; display: block; }
@media (max-width: 560px) { .site-logo img { height: 32px; } }

/* ---------- cererea de corectură (pagina videoclipului) ---------- */
.fix { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; }
.fix-open { display: block; margin: 0 auto; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px 12px; border-radius: 10px; }
.fix-open b { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.fix-open:hover { background: #fff3e6; }
.fix-form h3 { font-family: 'Fraunces', Georgia, serif; margin: 0 0 10px; }
.fix-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fix-cats label { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.fix-cats label:has(input:checked) { border-color: var(--red); background: #fff5f3; }
.fix-cats input { accent-color: var(--red); }
.fix-state { border-radius: 14px; padding: 14px 16px; background: #eef6f0; color: #1e4d33; text-align: center; }
.fix-state.open, .fix-state.regenerating { background: #fff6e0; color: #6b4a00; }
.fix-state.rejected { background: #f3f0ec; color: var(--ink); }
.fix-state p { margin: 6px 0 0; white-space: pre-wrap; }
@media (max-width: 560px) { .fix-cats { grid-template-columns: 1fr; } }

/* plicul cu sigiliu din butoane */
.env-ico { width: 26px; height: auto; flex: none; display: inline-block; vertical-align: -4px; filter: drop-shadow(0 1px 1px rgba(58,29,20,.25)); transition: transform .2s; }
.btn:hover .env-ico { transform: rotate(-8deg) translateY(-1px); }
.badge .env-ico { width: 20px; vertical-align: -4px; margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .env-ico { transition: none; } }

/* Partajare videoclip (pagina comenzii) */
.share { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; text-align: center; }
.share h3 { margin: 0 0 12px; font-size: 18px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-btn { padding: 10px 18px; font-size: 15px; font-weight: 700; }
.share-site { border-top: 0; padding-top: 4px; margin-top: 10px; }
.share-site p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

/* Footer: legături, pictograma SAL (ANPC), datele firmei */
.site-footer { line-height: 1.7; }
.site-footer .footer-links { margin-bottom: 12px; }
.site-footer .footer-anpc { margin: 10px 0 12px; }
.site-footer .footer-anpc img { display: inline-block; width: 250px; height: 50px; max-width: 100%; vertical-align: middle; }
.site-footer .footer-company { font-size: 12.5px; margin: 0; }
.site-footer .footer-company b { color: #cfd9ee; font-weight: 700; }

/* Setările bannerului de cookie-uri */
.cookie-options { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.cookie-options.hidden { display: none; }
.cookie-opt { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; cursor: pointer; }
.cookie-opt input { margin-top: 2px; accent-color: var(--gold); }
