/* Paginile cu macheta „Formular” (offer.mjs): cererea de ofertă ca o singură scenă navy — în stânga titlul, nota și
   contactul, în dreapta formularul în pași — apoi recenziile și întrebările; confirmarea („Mulțumim!”) cu bifa animată. */

/* ═══ Scena: fotografia evenimentului în dreapta, topită în navy; ghirlanda de becuri sus, ca în subsol. */
.o-stage { position: relative; isolation: isolate; overflow: hidden; background: var(--ds-navy); color: rgba(255, 255, 255, .78); }
.o-stage-bg { position: absolute; z-index: -2; inset: 0 0 0 38%; }
.o-stage-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: x-settle 1.8s var(--ease) both; }
.o-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--ds-navy) 0%, var(--ds-navy) 38%, rgba(14, 22, 39, .82) 52%, rgba(14, 22, 39, .55) 72%, rgba(14, 22, 39, .7) 100%), radial-gradient(60% 80% at 0% 100%, rgba(14, 82, 92, .55), transparent 70%); }
.o-stage::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 48px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='48'%3E%3Cpath d='M0 6Q60 36 120 6' fill='none' stroke='%23C1B073' stroke-opacity='.5'/%3E%3Ccircle cx='60' cy='21' r='9' fill='%23F6E7B0' fill-opacity='.14'/%3E%3Ccircle cx='60' cy='21' r='3' fill='%23F6E7B0'/%3E%3C/svg%3E") 0 0 / 120px 48px repeat-x; }
.o-stage-in { padding-block: clamp(40px, 5vw, 68px) clamp(56px, 7vw, 104px); }
.o-stage .ds-crumbs, .o-stage .ds-crumbs a { color: rgba(255, 255, 255, .6); }
.o-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(18px, 2.4vw, 32px); }
.o-text { position: sticky; top: calc(var(--header-h) + 24px); }
.o-text .ds-eyebrow { color: var(--ds-auriu); }
.o-title { margin: 0 0 16px; max-width: 14ch; color: #fff; font-size: clamp(40px, 5vw, 72px); font-weight: 300; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.o-lead { margin: 0; max-width: 42ch; color: rgba(255, 255, 255, .84); font-size: clamp(18px, 1.5vw, 21px); font-weight: 300; line-height: 1.45; }
.o-body { margin-top: 14px; color: rgba(255, 255, 255, .72); }

/* Când răspundem și contactul: sub o linie fină, mic și liniștit. */
.o-info { display: grid; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); max-width: 44ch; }
.o-reply { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: rgba(255, 255, 255, .66); font-size: 15px; line-height: 1.5; }
.o-reply .ds-ico { flex: none; margin-top: 2px; color: var(--ds-auriu); }

/* Formularul: cardul alb, cu pașii (2 sau 3) pe toată lățimea și nota (de exemplu „aceeași adresă de email”). */
.o-card { position: relative; }
.o-card .x-wiz.is-wizard .x-wiz-bar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.o-warn { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: #FBF5E4; border: 1px solid rgba(193, 176, 115, .45); color: var(--ds-navy); font-size: 15px; font-weight: 500; line-height: 1.45; }
.o-warn .ds-ico { flex: none; margin-top: 2px; color: var(--ds-gold-ink); }
.o-card::before { content: ""; position: absolute; z-index: -1; inset: -1px; border-radius: 25px; background: linear-gradient(140deg, rgba(193, 176, 115, .7), rgba(193, 176, 115, 0) 40%); }

/* Bara fixă „Cere oferta »” de pe telefon nu mai are rost: pagina e chiar formularul (sau confirmarea lui). */
.is-offer .ds-offerbar { display: none !important; }

/* Recenziile și întrebările, pe alb, după scenă. */
.is-offer .h-reviews-sec { padding-block: clamp(56px, 7vw, 96px); }

/* ═══ Confirmarea: bifa care se desenează, textul și ce poți face mai departe. */
.o-thanks { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(70% 90% at 50% 0%, rgba(14, 82, 92, .6), transparent 70%), var(--ds-navy); color: rgba(255, 255, 255, .8); text-align: center; }
.o-thanks-in { display: grid; justify-items: center; padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 112px); }
.o-thanks .ds-crumbs { justify-self: start; }
.o-thanks .ds-crumbs, .o-thanks .ds-crumbs a { color: rgba(255, 255, 255, .6); }
.o-check { margin: clamp(24px, 4vw, 48px) 0 22px; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: rgba(193, 176, 115, .12); box-shadow: 0 0 0 14px rgba(193, 176, 115, .06); }
.o-check circle { stroke: var(--ds-auriu); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: o-draw .9s .1s var(--ease) forwards; }
.o-check path { stroke: var(--ds-auriu); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: o-draw .5s .8s var(--ease) forwards; }
@keyframes o-draw { to { stroke-dashoffset: 0; } }
.o-thanks .o-title { max-width: none; }
.o-thanks-text { max-width: 60ch; color: rgba(255, 255, 255, .8); font-size: 18px; }
.o-thanks-text strong { color: #fff; }
.o-gos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; width: min(100%, 900px); margin-top: 34px; text-align: left; }
.o-go { display: grid; gap: 4px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background .25s, transform .3s var(--ease), border-color .25s; }
.o-go .ds-ico { margin-bottom: 8px; color: var(--ds-auriu); }
.o-go b { font-size: 18px; font-weight: 500; }
.o-go span { color: rgba(255, 255, 255, .62); font-size: 14px; }
.o-go:hover { color: #fff; background: rgba(255, 255, 255, .09); border-color: rgba(193, 176, 115, .5); transform: translateY(-3px); }

@media (max-width: 960px) {
  .o-grid { grid-template-columns: 1fr; }
  .o-text { position: static; }
  .o-stage-bg { inset: 0 0 auto 0; height: 340px; }
  .o-stage-bg img { opacity: .4; }
  .o-stage::before { background: linear-gradient(180deg, rgba(14, 22, 39, .55) 0%, var(--ds-navy) 340px); }
  /* Pe telefon: titlul, formularul imediat, apoi ce urmează și contactul (rezumatul nu mai e necesar: pașii arată unde ești). */
  .o-grid { display: flex; flex-direction: column; gap: 22px; }
  .o-text { display: contents; }
  .o-text > * { order: 3; margin-block: 0; }
  .o-text > .ds-eyebrow, .o-text > .o-title, .o-text > .o-lead { order: 1; }
  .o-card { order: 2; }
  .o-info { margin-top: 6px; }
}
@media (max-width: 600px) {
  .o-title { font-size: clamp(36px, 10vw, 46px); }
  .o-card.x-offer-card { margin-inline: -6px; padding: 20px 16px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .o-check circle, .o-check path { animation: none; stroke-dashoffset: 0; } }
