/*
 | Formularul de vizionare (<x-vizionare>) și pașii unei vizite (<x-pasi-vizita>).
 |
 | Fișier separat pentru că îl încarcă ambele teme: efficientmotors.ro și
 | leasingautosecondhand.ro. Tema de leasing își pune culoarea prin --viz-accent; fără ea, roșul site-ului
 | principal (valoarea de rezervă din fiecare var()).
 | Stă într-un fișier, nu într-un @push('css') din componentă: formularul e
 | inclus din layout, după ce `@stack('css')` a fost deja scris în <head>.
 */
.viz-modal { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.viz-modal[hidden] { display: none; }
.viz-modal__fundal { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.viz-modal__cutie { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.viz-modal__antet { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--viz-accent, #981a0b); color: #fff; border-radius: 16px 16px 0 0; }
.viz-modal__antet h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.viz-modal__antet p { font-size: .85rem; margin: .25rem 0 0; opacity: .85; }
.viz-modal__inchide { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.viz-modal__form { padding: 1.25rem 1.5rem 1.5rem; }
.viz-modal__intro { font-size: .9rem; color: #374151; margin: 0 0 1rem; }
.viz-camp { margin-bottom: .85rem; }
.viz-camp label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #374151; margin-bottom: .3rem; }
.viz-camp input { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 8px; padding: .6rem .75rem; font-size: 1rem; }
.viz-camp input:focus { outline: 2px solid var(--viz-accent, #981a0b); outline-offset: 1px; }
.viz-camp input.are-eroare { border-color: #dc2626; }
.viz-eroare { color: #dc2626; font-size: .78rem; margin: .3rem 0 0; }
.viz-ajutor { color: #6b7280; font-size: .78rem; margin: .3rem 0 0; }
.viz-acord { display: flex; align-items: flex-start; gap: .6rem; font-size: .8rem; color: #374151; cursor: pointer; margin-top: .25rem; }
.viz-acord input { margin-top: 3px; flex-shrink: 0; accent-color: var(--viz-accent, #981a0b); }
.viz-acord a { color: var(--viz-accent, #981a0b); }
.viz-trimite { width: 100%; margin-top: 1rem; border: 0; border-radius: 10px; padding: .8rem 1rem; background: var(--viz-accent, #981a0b); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; }
.viz-trimite:hover { background: var(--viz-accent-inchis, #7f1609); }
.viz-modal__sau { text-align: center; font-size: .85rem; color: #6b7280; margin: .75rem 0 0; }
.viz-modal__sau a { color: #111827; font-weight: 700; text-decoration: none; white-space: nowrap; }
.viz-toast { position: fixed; left: 1rem; right: 1rem; bottom: 5.5rem; z-index: 9999; max-width: 400px; margin: 0 auto; display: flex; align-items: flex-start; gap: .75rem; background: #fff; border-left: 4px solid #22c55e; border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.viz-toast strong { display: block; color: #166534; font-size: .9rem; }
.viz-toast p { color: #374151; font-size: .82rem; margin: .2rem 0 0; }
.viz-toast a { color: #111827; font-weight: 700; white-space: nowrap; }
.viz-toast button { margin-left: auto; background: none; border: 0; font-size: 1.2rem; line-height: 1; color: #6b7280; cursor: pointer; }
@media (min-width: 768px) { .viz-toast { left: auto; right: 1.5rem; bottom: 1.5rem; margin: 0; } }

/* Pașii unei vizite */
.pasi-vizita { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pasi-vizita li { display: flex; gap: .85rem; align-items: flex-start; }
.pasi-vizita__nr { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--viz-accent, #981a0b); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pasi-vizita strong { display: block; color: #111827; font-size: 1rem; }
.pasi-vizita p { margin: .15rem 0 0; color: #4b5563; font-size: .9rem; line-height: 1.45; }
@media (min-width: 768px) { .pasi-vizita--rand { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* Videoul mașinii (<x-video-masina>) */
.video-masina__titlu { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
/* Cadrul e deschis la culoare: un clip vertical stă centrat în el, nu între
   două benzi negre. Playerul ia forma videoului (--video-raport = lățime /
   înălțime) și nu trece de 70% din înălțimea ecranului. */
.video-masina__cadru { display: flex; justify-content: center; background: #f3f4f6; border-radius: 10px; overflow: hidden; }
.video-masina__player {
    display: block;
    width: min(100%, calc(70vh * var(--video-raport, 1.7778)));
    height: auto;
    aspect-ratio: var(--video-raport, 1.7778);
    background: #000;
    object-fit: contain;
}
