/* redesign.css v19 — 8 septembrie 2026 (v15: 7 sept). Ecranul 2: etichete de disponibilitate,
   subtitlul de sub banda verde, pop-up-ul nou, apasarea pe poze.
   v3/v4: + fasia „Bine ai revenit" (ecranul 1, revenire.js) — la sfarsitul fisierului.
   Fisier nou, chemat din structura/header.php. Nu suprascrie nimic din programari.css. */

/* eticheta de sub "Senior" — acelasi chenar la toti, textul difera */
.bb-et {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 9px;
    font-size: 12.5px;
    line-height: 1.3;
    font-weight: 500;
    color: #1A1D21;
    background: #EFE6D2;
    border: 1px solid #B6A07A;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0;
}
.bb-et::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #6B5B3A;
    margin: 0 6px 1px 0;
    vertical-align: middle;
}
.bb-et.bb-ok::before   { background: #2E8B57; }
.bb-et.bb-plin::before { background: #C2711C; }
.bb-et.bb-off::before  { background: #8A8A8A; }

/* pe fundal inchis (lista "Selecteaza barbierul preferat") textul e alb */
.bb-et-dark {
    color: #EDE7DE;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.22);
}

/* subtitlul de sub banda "Barbieri disponibili la ora X" */
.bb-sub {
    text-align: center;
    color: #C9B98D;
    font-size: 13px;
    margin: -4px 0 8px;
}

/* apasarea pe poza: se strange putin. Fara nimic care sa se miste de la sine. */
.barber-card { transition: transform .12s ease-out; }
a:active .barber-card, button:active .barber-card { transform: scale(.96); }

/* pop-up-ul nou (SweetAlert2, care exista deja pe site) — inchis, ca restul aplicatiei */
.bb-pop .swal2-popup { background: #1A1D21; color: #fff; border-radius: 12px; padding: 22px 20px 18px; border: 1px solid rgba(182,160,122,.45); }
.bb-pop .swal2-close { color: #9a9a9a; }
.bb-pop .bb-sigla { display: block; width: 78px; margin: 0 auto 12px; }
.bb-pop .bb-foto { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; display: block; margin: 0 auto 12px; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.bb-pop .swal2-title { color: #fff; font-size: 21px; line-height: 1.2; padding: 0 0 6px; }
.bb-pop .bb-urm { color: #A39B90; font-size: 15px; margin: 0 0 4px; }
.bb-pop .bb-urm b { color: #F2C94C; }
.bb-pop .swal2-actions { flex-direction: column; gap: 8px; width: 100%; margin-top: 16px; }
.bb-pop .swal2-actions button { width: 100%; margin: 0; border-radius: 8px; padding: 13px 14px; font-weight: 700; font-size: 15px; }
.bb-pop .swal2-confirm { background: #B6A07A !important; color: #fff !important; }
.bb-pop .swal2-confirm:disabled { opacity: .7; }
.bb-pop .swal2-deny { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.35) !important; }
.bb-pop .swal2-deny small { display: block; font-weight: 400; font-size: 12.5px; color: #C9B98D; margin-top: 2px; }

/* dupa "Alt frizer": grupul de sus se aprinde scurt, ca sa se vada unde a ajuns omul */
#barber-calendar-barbers.bb-aprins .barber-card { animation: bb-aprindere 1.6s ease-out; }
@keyframes bb-aprindere { 0% { box-shadow: 0 0 0 0 rgba(102,181,94,0); } 20% { box-shadow: 0 0 0 4px rgba(102,181,94,.9); } 100% { box-shadow: 0 0 0 0 rgba(102,181,94,0); } }

/* ===== ecranul 1: fasia „Bine ai revenit" (revenire.js v2) — 7 sept 2026 ===== */
header { position: relative; }
.bb-rev-salut {
    position: absolute; left: 16px; top: 22px;
    color: #C9A961; font-size: 14px; font-weight: 600; letter-spacing: .01em;
    animation: bb-rev-in .28s ease-out;
}
.bb-rev-row { margin-bottom: 10px; }
.bb-rev {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #FFF8E6;
    border: 1px solid #C9A961;
    border-radius: 12px;
    padding: 9px 9px 9px 16px;
    color: #4A3B22;
    animation: bb-rev-in .28s ease-out;
}
.bb-rev-text { font-size: 17px; line-height: 1.25; }
.bb-rev-text b { font-weight: 700; color: #7A5C1E; }
/* v19: eticheta de disponibilitate din fasie */
.bb-rev-text { display: block; flex: 1; }
.bb-rev-et { display: block; font-size: 12px; line-height: 1.2; color: #6b6b6b; font-weight: 500; margin-top: 3px; }
.bb-rev-et-azi { color: #3f7d3b; }
.bb-rev-da {
    display: inline-flex; align-items: center; gap: 8px;
    flex: 0 0 auto;
    padding: 5px 16px 5px 5px;
    border: 2px solid #8A6A2E;
    border-radius: 999px;
    background: transparent;
    color: #6B4F1A !important;
    font-weight: 700; font-size: 16px;
    text-decoration: none !important;
    transition: background .12s, color .12s, transform .12s;
}
.bb-rev-da:active, .bb-rev-da.bb-rev-apasat { background: #8A6A2E; color: #fff !important; transform: scale(.97); }
.bb-rev-av {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 34px;
    background-size: cover; background-position: center;
}
.bb-rev-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-rev-jos { text-align: right; padding: 4px 4px 0; }
.bb-rev-uita {
    background: none; border: 0; padding: 4px 2px;
    font-size: 12.5px; color: #9A9A9A; text-decoration: underline; cursor: pointer;
}
/* anuntul „Azi nu mai sunt locuri libere" cat e fasia sus: fara cutie, doar text auriu */
.bb-anunt-gol {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    color: #E5C56B !important; font-weight: 700; text-align: center;
}
.bb-rev-plecat { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes bb-rev-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== ecranul 1: asezarea paginii de start (revenire.js v4) — 7 sept 2026 ===== */
.bb-titlu-loc { margin-bottom: 14px !important; }
.bb-locatii { display: flex; gap: 10px; justify-content: center; }
.bb-locatii .bb-loc {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    margin: 0 !important; white-space: nowrap;
}
.bb-pin { flex: 0 0 auto; opacity: .85; }
.bb-alege {
    display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; margin: 0 !important; padding: 12px 14px 12px 18px !important;
    border: 1.5px solid #C9A961 !important; border-radius: 10px !important;
    background: transparent !important; color: #E5C56B !important; font-weight: 700;
    text-align: left;
}
.bb-alege-text { flex: 1 1 auto; }
.bb-alege-poze { display: inline-flex; flex: 0 0 auto; padding-left: 8px; }
.bb-alege-poza {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
    border: 2px solid #1A1D21; margin-left: -9px; background: transparent; display: block;
    opacity: 0; transition: opacity .35s ease-out;
}
.bb-alege-poza.bb-gata { opacity: 1; }
.bb-rev-av img { opacity: 0; transition: opacity .35s ease-out; }
.bb-rev-av img.bb-gata { opacity: 1; }
.bb-alege-poza:first-child { margin-left: 0; }
.bb-titlu-cal-row { margin-top: 4px; }
.bb-titlu-cal { text-align: center; color: #fff; font-size: 20px; font-weight: 700; margin: 0 0 10px; }
/* pe telefon, coloana locatiilor (col-8) e prea ingusta pentru doua pilule pe un rand */
@media (max-width: 575.98px) { .bb-locatii { flex: 0 0 100%; max-width: 100%; } .bb-loc { font-size: 15px; padding-left: 10px !important; padding-right: 10px !important; } }

/* ===== ecranul 2, hainele noi (7 sept, dupa-amiaza): banda mai subtire, cei liberi 3 pe rand,
   ceilalti ca lista compacta. Doar CSS peste cardurile desenate de calendar.js (index.php). ===== */

/* banda verde: cat un rand de ore, apare cu fade */
#barber-calendar-barber-time {
    font-size: 16px; line-height: 20px; font-weight: 700;
    padding: 10px 8px; margin-top: 12px !important; margin-bottom: 0 !important;
    animation: bb-rev-in .28s ease-out;
}

/* cei liberi la ora aleasa: fundal inchis, 3 pe rand, poza mai mica */
#barber-calendar-barbers {
    background: #1A1D21;
    margin-left: calc(var(--barber-calendar-padding-x) * -1);
    margin-right: calc(var(--barber-calendar-padding-x) * -1);
    padding: 14px 8px 8px;
    justify-content: center;
    animation: bb-rev-in .28s ease-out;
}
#barber-calendar-barbers:empty { display: none; }   /* goala pana apesi o ora — altfel ramane o dunga inchisa sub ore */
#barber-calendar-barbers > div { flex: 0 0 33.333%; max-width: 33.333%; margin-top: 0 !important; padding: 0 5px 8px; }
#barber-calendar-barbers .barber-card img { border-radius: 20px; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
#barber-calendar-barbers .barber-card-name { color: #EDE7DE !important; font-size: 15px; font-weight: 700; margin-top: 2px; line-height: 1.25; }
#barber-calendar-barbers .barber-card-name > span { font-size: 11px !important; top: -3px !important; }

/* ceilalti: lista compacta — poza mica rotunda, nume + nivel, eticheta in dreapta */
#unavailable-barbers-wrapper {
    background: #22262B;
    margin: 0 calc(var(--barber-calendar-padding-x) * -1);
    padding: 0 0 6px;
    border-top: 1px solid rgba(255,255,255,.05);
}
#unavailable-barbers-wrapper .barber-calendar-title-bar {
    background: transparent; color: #9A9184;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
    text-align: left !important; padding: 12px 16px 2px; margin: 0 !important;
}
#unavailable-barbers-container { padding: 0 12px !important; display: block; }
#unavailable-barbers-container > div {
    width: 100%; max-width: 100%; flex: none; margin-top: 0 !important; padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
#unavailable-barbers-container > div:last-child { border-bottom: 0; }
#unavailable-barbers-container .barber-card { flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 9px 2px; }
#unavailable-barbers-container .barber-card:hover { transform: none; }
#unavailable-barbers-container .barber-card img { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; object-fit: cover; }
#unavailable-barbers-container .barber-card-name {
    color: #EDE7DE !important; font-size: 15px; font-weight: 700; line-height: 1.2;
    flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0;
}
#unavailable-barbers-container .barber-card-name br { display: none; }
#unavailable-barbers-container .barber-card-name > span:not(.bb-et) { font-size: 11px !important; top: 0 !important; }
#unavailable-barbers-container .bb-et {
    margin: 0 0 0 auto; white-space: normal; text-align: right; max-width: 50%;
    color: #EDE7DE; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22);
}

/* ===== ecranul 3: pagina de servicii + date (formular.js) — 7 sept 2026 ===== */
.bb-f-ascuns { display: none !important; }

/* cardul frizerului */
.bb-f-card {
    display: flex; align-items: center; gap: 14px;
    background: #22262B; border: 1px solid rgba(201,169,97,.45); border-radius: 14px;
    padding: 12px 14px; margin: 4px auto 16px; max-width: 640px; color: #EDE7DE;
}
.bb-f-av { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex: 0 0 72px; background: linear-gradient(160deg,#5A4A3A,#2B2622); box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.bb-f-av img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; }
.bb-f-av img.bb-gata { opacity: 1; }
.bb-f-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.bb-f-nume { font-size: 21px; font-weight: 700; line-height: 1.1; }
.bb-f-nivel { font-size: 11.5px; line-height: 1; padding: 4px 9px; border-radius: 10px; background: #afafaf; color: #121212; font-weight: 600; }
.bb-f-expert { background: #fcc500; }
.bb-f-cand { color: #C9B98D; font-size: 14px; }

/* serviciile ca randuri: nume stanga, pret dreapta */
.bb-f-servicii .row.gy-2 > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.bb-f-serv.checkbox-label {
    flex-direction: row !important; justify-content: space-between !important; align-items: center !important;
    width: 100%; padding: 14px 16px !important; border-radius: 12px !important;
    font-size: 17px; font-weight: 700; text-align: left; border: 2px solid transparent !important;
    transform: none !important;
}
.bb-f-serv .service-name { flex: 1 1 auto; order: 1; }
.bb-f-serv .bb-pret { flex: 0 0 auto; order: 2; margin-left: 12px; font-variant-numeric: tabular-nums; }
.bb-f-servicii input:checked + .bb-f-serv { border-color: #6FAE64 !important; transform: none !important; box-shadow: 0 0 0 2px rgba(111,174,100,.3); } /* v18: verde (era alb) */

/* randul „Adauga spalat … +10 lei" */
.bb-f-extra.form-check {
    display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 12px 14px;
    background: #22262B; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; min-height: 0;
}
.bb-f-extra .form-check-input { margin: 0; width: 22px; height: 22px; flex: 0 0 22px; float: none; cursor: pointer; }
.bb-f-extra .form-check-input:checked { background-color: #fcc500; border-color: #fcc500; }
.bb-f-extra .form-check-label { flex: 1; display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #EDE7DE; cursor: pointer; margin: 0; }
.bb-f-extra .service-name { order: 1; }
.bb-f-extra .bb-pret { order: 2; color: #C9B98D; font-weight: 600; font-variant-numeric: tabular-nums; }
.bb-f-extra.bb-f-aprins { animation: bb-aprindere 1.6s ease-out; }

/* totalul */
.bb-f-total.form-label { display: block; text-align: right; margin: 14px 0 0 !important; font-size: 18px !important; color: #EDE7DE; }
.bb-f-total .services-total-price { font-size: 28px; font-weight: 700; color: #F2C94C !important; margin: 0 2px; font-variant-numeric: tabular-nums; }
.bb-f-servicii hr { display: none !important; }

/* numele si telefonul, in continuare pe acelasi ecran */
.bb-f-date { margin-top: 8px; }
.bb-f-date .form-label { color: #EDE7DE; font-weight: 600; }
.bb-f-date .form-control { padding: 12px 14px; font-size: 17px; border-radius: 10px; }

/* v18 (8 sept): liniutele de sub telefon + verde pe ce e completat */
.bb-f-on .bb-cifre { display: none; gap: 5px; align-items: center; margin: 8px 2px 0; }
.bb-f-on .bb-cifre.bb-vazut { display: flex; }
.bb-f-on .bb-cifre span { flex: 0 0 22px; max-width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); transition: background .15s; }
.bb-f-on .bb-cifre span.plin { background: #E5C56B; }
.bb-f-on .bb-cifre.gata span { background: #6FAE64; }
.bb-f-on .bb-cifre small { margin-left: auto; color: #9c9c9c; font-size: 12px; white-space: nowrap; }
.bb-f-on .bb-cifre.gata small { color: #6FAE64; font-weight: 700; }
.bb-f-on .bb-f-date .form-control.bb-ok, .bb-f-on .bb-f-date .iti.bb-ok .form-control { border: 2px solid #6FAE64 !important; box-shadow: 0 0 0 3px rgba(111,174,100,.22); }
.bb-f-on #termeni.bb-ok { background-color: #6FAE64 !important; border-color: #6FAE64 !important; }

/* pop-up-ul de spalat al lor, imbracat ca al nostru */
.swal2-popup.wash-modal { background: #1A1D21 !important; color: #fff !important; border-radius: 12px; border: 1px solid rgba(182,160,122,.45); width: min(92vw, 420px) !important; }
.swal2-popup.wash-modal .swal2-title { color: #fff; font-size: 22px; }
.swal2-popup.wash-modal .swal2-actions { flex-direction: row-reverse; gap: 10px; width: 100%; }
.swal2-popup.wash-modal .swal2-actions button { flex: 1; margin: 0 !important; border-radius: 10px !important; padding: 13px 14px !important; font-weight: 700; font-size: 17px !important; }
.swal2-popup.wash-modal .swal2-confirm { background: #6DB36A !important; }
.swal2-popup.wash-modal .swal2-deny { background: transparent !important; border: 1.5px solid rgba(255,255,255,.35) !important; color: #fff !important; }

/* ecranul 3, v2 */
.bb-f-cand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bb-f-cand i { color: #C9A961; margin-right: 5px; font-size: 13px; }
.bb-f-cand em { font-style: normal; color: #6B5B3A; margin: 0 4px; }
.bb-f-tva { text-align: right !important; font-size: 12.5px !important; color: #9A9184 !important; font-style: italic; margin: 2px 0 0 !important; }
#title-price, #title-services, #header-discount-breakdown, #promo-feedback { display: none !important; }
/* Finalizeaza: inchis pana e totul completat (finalizeaza.js il tine .btn-primary + opacity), verde cand e bun */
.bb-f-on #submitFormButton.bb-f-btn {
    display: flex !important; align-items: center; justify-content: center;
    width: 100%; margin: 18px 0 0 !important; padding: 15px 14px !important;
    border-radius: 14px !important; font-size: 19px !important; font-weight: 900 !important; letter-spacing: .01em;
    opacity: 1 !important; transition: background .25s, color .25s, box-shadow .25s, transform .12s;
}
.bb-f-on #submitFormButton.bb-f-btn.btn-primary { background: #2A2E34 !important; border: 1px solid #3A3F46 !important; color: #8E877C !important; box-shadow: none; }
.bb-f-on #submitFormButton.bb-f-btn.btn-success { background: linear-gradient(180deg,#78C274,#5FA85B) !important; border-color: #5FA85B !important; color: #fff !important; box-shadow: 0 8px 22px rgba(109,179,106,.35); }
.bb-f-on #submitFormButton.bb-f-btn.btn-success:active { transform: scale(.98); }
.bb-f-btn-t { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.bb-f-sub { display: block; font-weight: 500; font-size: 12.5px; opacity: .8; letter-spacing: 0; margin-top: 3px; }
/* campul gresit tremura scurt */
.bb-scutur { animation: bb-scutur .5s ease-in-out; }
.bb-scutur.iti, .bb-scutur.form-control { border-color: #dc3545 !important; box-shadow: 0 0 0 3px rgba(220,53,69,.25); border-radius: 10px; }
@keyframes bb-scutur { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .bb-scutur { animation: none; } }
.bb-f-on #termeni ~ label a { color: #E5C56B; }
/* v16/v17 (8 sept): eticheta scurta a termenilor — linkuri albe ca textul, fara subliniere (decizia lui Marius) */
.bb-f-on label.bb-f-termeni { font-size: 13.5px; line-height: 1.35; }
.bb-f-on label.bb-f-termeni a, .bb-f-on #termeni ~ label.bb-f-termeni a { color: #fff; text-decoration: none; }

/* apasarea pe un rand din „Alti barbieri": se aprinde auriu pe loc si ramane ~1 s (redesign.js v5) */
#unavailable-barbers-container .barber-card { border-radius: 12px; transition: background .12s, box-shadow .12s; margin: 0 -6px; padding-left: 8px; padding-right: 8px; }
#unavailable-barbers-container .barber-card:active,
#unavailable-barbers-container .barber-card.bb-apasat { background: rgba(201,169,97,.12); box-shadow: inset 0 0 0 1.5px #C9A961; }
#barber-calendar-barbers .barber-card.bb-apasat img { box-shadow: 0 0 0 3px #C9A961, 0 6px 14px rgba(0,0,0,.45); }

/* ===== DESKTOP (ecran lat) — 7 sept seara. Doar peste 768 px; telefonul nu e atins. ===== */
@media (min-width: 768px) {
    /* pagina de start: locatiile, „Alege" si fasia late cat calendarul (col-md-8), centrate */
    .bb-locatii { max-width: 66.666%; flex: 0 0 66.666%; margin: 0 auto; }
    .btn-alege-barbier.bb-alege { max-width: 66.666%; margin: 0 auto !important; }
    .bb-rev-row .col-md-8, .bb-titlu-cal-row .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    /* salutul: in coloana continutului, nu in coltul ecranului */
    .bb-rev-salut { left: 24px; top: 26px; }

    /* sub ore: cei liberi raman 3 pe rand, dar poza nu creste peste 150 px */
    #barber-calendar-barbers > div { flex: 0 0 auto; max-width: 190px; padding: 0 12px 8px; }
    #barber-calendar-barbers .barber-card img { max-width: 150px; margin: 0 auto; }

    /* formular: cardul, serviciile, totalul si campurile pe aceeasi latime (cea a campurilor: col-lg-8) */
    /* cardul e in afara formularului: latimea campurilor = 7/12 din rand × 8/12 din formular ≈ 38.9% */
    /* cardul e un element din randul flexibil, langa formular: ii dam 38.9% + margini care umplu restul,
       ca formularul sa cada pe randul urmator, nu langa el */
    .bb-f-card { flex: 0 0 38.9%; max-width: 38.9%; margin-left: 30.55% !important; margin-right: 30.55% !important; align-self: flex-start; }
    .bb-f-servicii .row.gy-2, .bb-f-servicii > label.form-label, .bb-f-total.form-label, .bb-f-tva { max-width: 66.666%; margin-left: auto !important; margin-right: auto !important; }
    .bb-f-servicii > label.form-label { display: block; }
    .bb-f-extra.form-check { max-width: none; }
    .bb-f-servicii .row.gy-2 { margin-left: auto !important; margin-right: auto !important; }
    .bb-f-servicii .row > .col-12 { max-width: 66.666%; margin: 0 auto; }
    .bb-f-total.form-label { display: block; }
    .bb-f-date .form-check.mt-3, .bb-f-on #submitFormButton.bb-f-btn { max-width: 66.666%; margin-left: auto !important; margin-right: auto !important; }
    .bb-f-on #submitFormButton.bb-f-btn { display: flex !important; }
}
@media (min-width: 1140px) { .bb-rev-salut { left: 50%; margin-left: -540px; } }
