/* FeedbackAZ – pagina publică de review. Culorile/fontul/imaginea vin din variabile CSS setate per minisite. */

:root {
    --brand: #0f766e;
    --brand-ink: #fff;
    --brand-text: var(--brand);
    --accent: var(--brand);
    --font: system-ui;
    --ink: #101828;
    --muted: #5b6472;
    --line: #e4e7ec;
    --star-off: #dde1e7;
    --gold: #f5b301;
    --danger: #b42318;
    --radius: 28px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: color-mix(in srgb, var(--brand) 55%, #000);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- fundal: poza clientului, estompată și îmbrăcată în culoarea brandului ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 92%, #fff) 0%, color-mix(in srgb, var(--brand) 60%, #000) 100%);
    overflow: hidden;
}
.bg.has-image::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: center / cover no-repeat;
    filter: blur(7px) saturate(1.1);
}
.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 12% -8%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%),
        linear-gradient(180deg, color-mix(in srgb, var(--brand) 70%, transparent), color-mix(in srgb, var(--brand) 88%, #000 12%));
}
.bg:not(.has-image)::after { opacity: .9; }

/* ---------- card ---------- */
.shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(clamp(14px, 4vw, 40px), env(safe-area-inset-top)) clamp(14px, 4vw, 40px) max(clamp(14px, 4vw, 40px), env(safe-area-inset-bottom));
}
.card {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(26px, 5vw, 44px) clamp(20px, 5vw, 42px) 20px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .35) inset,
        0 40px 80px -30px rgba(0, 0, 0, .55),
        0 14px 28px -14px rgba(0, 0, 0, .3);
    animation: card-in .6s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

.brand { min-height: 56px; display: flex; align-items: center; justify-content: center; }
.logo { display: block; max-width: min(280px, 78%); max-height: 76px; width: auto; height: auto; object-fit: contain; }
.wordmark { font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; color: var(--brand-text); }

h1 {
    margin: 1.5rem 0 .4rem;
    font-size: clamp(1.4rem, 4.9vw, 1.85rem);
    line-height: 1.14;
    letter-spacing: -.025em;
    font-weight: 700;
    text-wrap: balance;
}
h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.35rem, 4.6vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.biz { color: var(--brand-text); }
/* numele afacerii pe rând propriu, dar „?" rămâne lipit de el */
h1 .biz { font-size: 1.1em; }
h1 .biz::before { content: "\A"; white-space: pre; }
.sub, .panel p { margin: 0 0 1.1rem; color: var(--muted); font-size: 1.02rem; line-height: 1.55; text-wrap: pretty; }

/* ---------- stele ---------- */
.stars {
    display: flex;
    justify-content: center;
    gap: clamp(2px, 1.2vw, 8px);
    margin: 1.4rem 0 .6rem;
}
.star {
    appearance: none;
    background: none;
    border: 0;
    padding: 4px;
    margin: 0;
    width: clamp(46px, 14.5vw, 64px);
    height: clamp(46px, 14.5vw, 64px);
    border-radius: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .25s var(--ease);
}
.star svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--star-off);
    stroke: var(--star-off);
    stroke-width: 1.4;
    stroke-linejoin: round;
    transition: fill .18s, stroke .18s, transform .3s var(--ease);
    filter: drop-shadow(0 0 0 rgba(245, 179, 1, 0));
}
.star.on svg {
    fill: var(--gold);
    stroke: var(--gold);
    filter: drop-shadow(0 4px 8px rgba(245, 179, 1, .35));
}
.star:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
@media (hover: hover) { .star:hover { transform: translateY(-2px) scale(1.08); } }
.star.pop svg { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.3) rotate(-8deg); } 100% { transform: scale(1) rotate(0); } }

.stars.locked { pointer-events: none; }

.rating-label {
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 650;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    color: var(--muted);
}
.rating-label .emoji { font-size: 1.5rem; line-height: 1; }
.rating-label .txt { transition: color .2s; }
.rating-label.bump { animation: bump .35s var(--ease); }
.rating-label[data-tone="low"] .txt { color: #b42318; }
.rating-label[data-tone="mid"] .txt { color: #9a5b00; }
.rating-label[data-tone="high"] .txt { color: #067647; }
@keyframes bump { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- panouri (pasul următor) ---------- */
.panel {
    margin-top: 1.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    animation: rise .5s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 12%, #fff);
    display: grid;
    place-items: center;
}
.badge svg { width: 44px; height: 44px; }
.badge circle { stroke: var(--brand-text); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s .05s var(--ease) forwards; }
.badge path { stroke: var(--brand-text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 52px;
    padding: .9rem 1.5rem;
    border: 0;
    border-radius: 15px;
    background: var(--brand);
    color: var(--brand-ink);
    font: 650 1.02rem/1 var(--font), system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent);
    transition: transform .18s var(--ease), box-shadow .18s, filter .18s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 26px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }

.link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--brand-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.redirect { margin-top: 1.1rem; }
.progress { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i {
    display: block;
    height: 100%;
    background: var(--brand);
    transform-origin: left;
    animation: shrink var(--dur, 5s) linear forwards;
}
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- formular ---------- */
form { text-align: left; }
.field { margin-bottom: .9rem; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 480px) { .field.two { grid-template-columns: 1fr; gap: .9rem; } }
label { display: block; margin: 0 0 .35rem; font-size: .86rem; font-weight: 600; color: #344054; }
input, textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    font: 1rem/1.4 var(--font), system-ui, sans-serif;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #98a2b3; }
input:hover, textarea:hover { border-color: #cfd4dc; }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.err { min-height: 0; margin-top: .3rem; font-size: .84rem; color: var(--danger); }
.err:empty { display: none; }
.form-err { margin: 0 0 .8rem; padding: .7rem .9rem; border-radius: 10px; background: #fef3f2; }
.hint { margin: -.2rem 0 1rem !important; font-size: .88rem !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recaptcha { display: flex; justify-content: center; margin-bottom: 1rem; transform-origin: center; }
@media (max-width: 360px) { .recaptcha { transform: scale(.88); } }

.spin {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid color-mix(in srgb, var(--brand-ink) 35%, transparent);
    border-top-color: var(--brand-ink);
    animation: spin .7s linear infinite;
}
.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.fine { font-size: .82rem; color: #7a8494; line-height: 1.5; }
.alt { margin: 1rem 0 0 !important; }
.privacy { margin: 1.6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}
