/*
 * Corecție vizuală pentru paginile celor 4 teste (nu schimbă logica PHP).
 * Footerul nou folosește clase .footer-modern__*, iar unele fișiere CSS
 * instalate folosesc încă stilurile vechi .site-footer__*.
 * Regulile sunt limitate la footer, contact și controale flotante.
 */

/* 1. Footer: fundalurile foto rămân sub toate textele. */
.site-footer.footer-modern {
  position: relative;
  display: block;
  width: 100%;
  min-height: 660px !important;
  overflow: hidden;
  isolation: isolate;
  background: #111820;
  color: #f7f9ff;
  font-family: Inter, Arial, sans-serif;
  text-align: center;
}
.site-footer.footer-modern::before { display:none !important; }
.footer-modern .site-footer__carousel,
.footer-modern .site-footer__carousel-overlay {
  position: absolute;
  inset: 0;
  width:100%;height:100%;
  pointer-events: none;
}
.footer-modern .site-footer__carousel { z-index:0; overflow:hidden; }
.footer-modern .footer3c-slide {
  position: absolute;
  inset: 0;
  min-height: 0 !important;
  width:100%;height:100%;
  opacity:0;
  background-image: var(--footer-bg-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.1s ease;
}
.footer-modern .footer3c-slide.is-active {opacity:1;}
.footer-modern .site-footer__carousel-overlay {
  z-index:1;
  background: linear-gradient(180deg,rgba(8,13,20,.68),rgba(8,13,20,.81) 53%,rgba(8,13,20,.93));
}
.footer-modern .footer-modern__inner {
  position:relative;
  z-index:3;
  box-sizing:border-box;
  width:min(1200px,calc(100% - 40px));
  margin:0 auto;
  padding: 65px 0 35px;
}
.footer-modern .footer-modern__statement { margin:0 auto 37px; max-width:780px; }
.footer-modern .footer-modern__statement-label {
  display:block;
  font-size:12px;font-weight:800;letter-spacing:.13em;
  color:#bfcee1;text-transform:uppercase;
}
.footer-modern .footer-modern__statement p {
  margin:20px auto 22px;
  color:#fff;
  font: italic clamp(23px,3vw,34px)/1.38 Lora,Georgia,serif;
}
.footer-modern .footer-modern__statement-line {
  width:78px;height:3px;margin:0 auto;
  border-radius:5px;
  background:linear-gradient(90deg,#4192ff 0%,#46f484 55%,#e1ff58 100%);
}
.footer-modern .footer-modern__legal {
  display:flex;justify-content:center;align-items:center;flex-wrap:wrap;
  gap:17px 27px;
  padding:24px 15px;
  margin:0 auto 16px;
  border-top:1px solid rgba(255,255,255,.20);
  border-bottom:1px solid rgba(255,255,255,.20);
}
.footer-modern .footer-modern__legal a,
.footer-modern .footer-modern__legal-contact {
  display:inline-flex;align-items:center;justify-content:center;
  padding:0;
  border:0;background:transparent;
  color:#e4eaf2;font:600 13px/1.45 Inter,Arial,sans-serif;
  text-decoration:none;cursor:pointer;
}
.footer-modern .footer-modern__legal a:hover,
.footer-modern .footer-modern__legal-contact:hover {color:#90ffbd;}
.footer-modern .footer-modern__business { margin:12px auto 25px; }
.footer-modern .footer-modern__business-details {margin:auto;width:fit-content;max-width:100%;}
.footer-modern .footer-modern__business-details > summary {
  display:flex;justify-content:center;align-items:center;gap:9px;
  color:#cfe8e0;font-size:13px;font-weight:700;
  list-style:none;cursor:pointer;
}
.footer-modern .footer-modern__business-details > summary::-webkit-details-marker{display:none;}
.footer-modern .footer-modern__business-content {
  margin:14px auto 0;padding:16px 20px;
  width:min(550px,100%);border-radius:16px;
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);
  text-align:left;color:#fff;
}
.footer-modern .footer-modern__business-content-inner {display:grid;gap:13px;}
.footer-modern .footer-modern__business-content-inner > div {display:grid;gap:3px;}
.footer-modern .footer-modern__business-content-inner span {color:#a9bfd4;font-size:11px;}
.footer-modern .footer-modern__business-content-inner strong {color:#fff;font-size:13px;font-weight:600;}
.footer-modern .footer-modern__trust {
  display:flex;justify-content:center;align-items:center;
  gap:35px;flex-wrap:wrap;margin:25px auto 23px;
}
.footer-modern .footer-modern__trust-item {display:grid;justify-items:center;align-items:center;gap:11px;min-width:150px;}
.footer-modern .footer-modern__trust-label {color:#c2cfde;font-weight:700;text-transform:uppercase;letter-spacing:.07em;font-size:11px;}
.footer-modern .footer-modern__sal-logo,.footer-modern .footer-modern__netopia {
  display:grid;place-items:center;min-height:48px;
}
.footer-modern .footer-modern__sal-logo img {display:block;width:180px;max-width:100%;max-height:55px;object-fit:contain;}
.footer-modern .footer-modern__netopia img {max-width:160px;max-height:60px;object-fit:contain;}
.footer-modern .footer-modern__bottom {
  display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;
  margin-top:24px;padding-top:18px;
  border-top:1px solid rgba(255,255,255,.16);
  color:#b6c5d6;font-size:12px;
}
.footer-modern .footer-modern__bottom a {color:#e6edff;text-decoration:none;}

/* 2. Panoul lateral Contact: închis implicit, afișat doar prin JS. */
.contact-sidenav-backdrop {
  position:fixed;inset:0;z-index:99990;
  background:rgba(9,18,33,.55);opacity:0;visibility:hidden;
  pointer-events:none;transition:opacity .22s,visibility .22s;
}
.contact-sidenav {
  position:fixed;right:0;top:0;bottom:0;z-index:99991;
  width:min(440px,100%);height:100vh;height:100dvh;
  overflow:auto;box-sizing:border-box;
  padding:25px 27px 18px;background:#fff;
  color:#21354d;text-align:left;
  box-shadow:-18px 0 55px rgba(7,21,42,.2);
  transform:translateX(105%);visibility:hidden;
  transition:transform .28s,visibility .28s;
  font:400 14px/1.6 Inter,Arial,sans-serif;
}
body.contact-sidenav-open .contact-sidenav-backdrop {opacity:1;visibility:visible;pointer-events:auto;}
body.contact-sidenav-open .contact-sidenav {transform:translateX(0);visibility:visible;}
.contact-sidenav .contact-sidenav__accent {position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#4192ff,#46f484,#e1ff58);}
.contact-sidenav .contact-sidenav__header {display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin:12px 0 22px;}
.contact-sidenav .contact-sidenav__eyebrow {display:block;color:#2975ce;font-size:11px;font-weight:800;letter-spacing:.1em;}
.contact-sidenav .contact-sidenav__header h2 {margin:8px 0 0;font:800 27px/1.2 Manrope,Arial,sans-serif;color:#172f52;}
.contact-sidenav .contact-sidenav__close {border:1px solid #dbe8f6;background:#f5f9ff;border-radius:10px;width:38px;height:38px;cursor:pointer;font-size:21px;color:#3b5572;}
.contact-sidenav .contact-sidenav__intro {margin:0 0 20px;color:#687c95;}
.contact-sidenav .contact-sidenav__primary {display:flex;align-items:center;gap:15px;padding:16px;text-decoration:none;background:#edf9f3;color:#19523b;border:1px solid #c7efd7;border-radius:16px;}
.contact-sidenav .contact-sidenav__primary-copy {display:grid;gap:3px;}
.contact-sidenav .contact-sidenav__primary-copy small {font-size:11px;}
.contact-sidenav .contact-sidenav__primary-copy strong {font-size:14px;}
.contact-sidenav .contact-sidenav__social-section {padding:24px 0 17px;}
.contact-sidenav .contact-sidenav__section-label {display:block;font-size:12px;font-weight:800;color:#6e8093;margin-bottom:10px;}
.contact-sidenav .contact-sidenav__socials {display:flex;gap:9px;flex-wrap:wrap;}
.contact-sidenav .contact-sidenav__socials a {display:inline-flex;align-items:center;gap:5px;padding:8px 11px;border:1px solid #dfe9f5;border-radius:12px;text-decoration:none;color:#345477;}
.contact-sidenav .contact-sidenav__separator {display:flex;align-items:center;gap:12px;color:#8998a8;margin:0 0 14px;}
.contact-sidenav .contact-sidenav__separator span {height:1px;flex:1;background:#dfe7f1;}
.contact-sidenav .contact-sidenav__email summary {display:flex;align-items:center;gap:14px;font-weight:750;cursor:pointer;color:#1c3551;}
.contact-sidenav .contact-sidenav__email-content {padding:16px 0;}
.contact-sidenav .contact-sidenav__form {display:grid;gap:10px;}
.contact-sidenav .contact-sidenav__form input,
.contact-sidenav .contact-sidenav__form textarea {box-sizing:border-box;width:100%;padding:12px 13px;border:1px solid #d8e5f1;border-radius:10px;background:#fff;color:#223753;}
.contact-sidenav .contact-sidenav__form button {padding:13px;border:0;border-radius:12px;background:#297bf0;color:#fff;font-weight:800;cursor:pointer;}
.contact-sidenav .contact-sidenav__footer {padding-top:22px;display:flex;gap:9px;flex-wrap:wrap;font-size:11px;color:#6c829a;}

/* 3. Butoanele plutitoare: același container, ambele icoane vizibile. */
.floating-3c-controls {
  position:fixed;right:18px;bottom:23px;z-index:9999;
  display:flex;flex-direction:column;align-items:center;gap:7px;
  padding:7px;
  border-radius:36px;
  border:1px solid rgba(118,168,236,.54);
  background:rgba(255,255,255,.79);
  box-shadow:0 8px 24px rgba(19,45,87,.19);
  backdrop-filter:blur(13px);
  pointer-events:auto;
}
.floating-3c-controls .floating-3c-btn {
  position:relative;
  display:grid;place-items:center;
  width:48px;height:48px;padding:3px;margin:0;
  border:1px solid #d6e6fa;border-radius:50%;
  background:linear-gradient(140deg,#f9fdff,#e7f2ff);
  box-shadow:0 3px 9px rgba(33,80,139,.11);
  opacity:1;cursor:pointer;
}
.floating-3c-controls .floating-3c-btn__icon {
  display:grid;place-items:center;
  width:100%;height:100%;border-radius:50%;
  background:rgba(255,255,255,.8);
  color:#337cce;
}
.floating-3c-controls .floating-3c-btn i {font-size:22px;color:#337cce;line-height:1;margin:0;}
.floating-3c-controls .floating-3c-scroll i {color:#279965;}
.floating-3c-controls .floating-3c-btn:hover {transform:translateY(-2px);}
.floating-3c-controls .floating-3c-audio::after {display:none;}
.floating-3c-controls #myBtn {display:none;}

@media (max-width:768px) {
  .site-footer.footer-modern {min-height:690px!important;}
  .footer-modern .footer3c-slide {background-image:var(--footer-bg-mobile);background-attachment:scroll;}
  .footer-modern .footer-modern__inner {width:calc(100% - 32px);padding:48px 0 30px;}
  .footer-modern .footer-modern__legal {gap:13px 17px;}
  .footer-modern .footer-modern__trust {gap:22px;}
  .floating-3c-controls {right:10px;bottom:13px;}
}
@media(prefers-reduced-motion:reduce) {
 .footer-modern .footer3c-slide,.contact-sidenav,.contact-sidenav-backdrop{transition:none;}
}

/* Netopia: ascunde numai imaginea de rezerva, nu badge-ul oficial creat de npId.js. */
.footer-modern .footer-modern__netopia-fallback {display:none!important;}

/* v44 — controalele celor patru teste rămân ancorate la fereastră. */
/* v45 — elimină lățimea/înălțimea fantomă creată de footer și păstrează
   controalele în viewport, indiferent de scroll. */
html:has(body #test3c),
body:has(#test3c) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}
body:has(#test3c) .floating-3c-controls {
    inset: auto max(18px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) auto !important;
    position: fixed !important;
    width: 64px !important;
    height: auto !important;
    max-height: calc(100dvh - 28px);
    contain: layout paint;
}
body:has(#test3c) .floating-3c-controls {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: max(18px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 64px;
    max-width: calc(100vw - 20px);
    height: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 7px;
    gap: 7px;
    overflow: visible;
    transform: none !important;
    animation: none !important;
    pointer-events: none;
}
body:has(#test3c) .floating-3c-controls > audio { display: none; }
body:has(#test3c) .floating-3c-controls .floating-3c-btn {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box;
    flex: 0 0 48px;
    width: 48px !important;
    min-width: 48px;
    max-width: 48px;
    height: 48px !important;
    min-height: 48px;
    max-height: 48px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    text-align: center;
    vertical-align: middle;
    line-height: 1;
    overflow: hidden;
    transform: none !important;
    animation: none !important;
    pointer-events: auto;
}
body:has(#test3c) .floating-3c-controls :is(.floating-3c-btn__icon, .floating-3c-btn__inner) {
    position: absolute;
    inset: 3px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
    pointer-events: none;
}
body:has(#test3c) .floating-3c-controls .floating-3c-btn i {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1em;
    height: 1em;
    margin: 0 !important;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    text-align: center;
    transform: none !important;
    animation: none !important;
}
body:has(#test3c) .floating-3c-controls .floating-3c-scroll { order: 0; }
body:has(#test3c) .floating-3c-controls .floating-3c-audio { order: 1; }
body:has(#test3c) .floating-3c-controls #myBtn::before { content: none !important; display: none !important; }
body:has(#test3c) .floating-3c-controls .floating-3c-btn:focus-visible {
    outline: 3px solid #4192ff;
    outline-offset: 3px;
}

body:has(#test3c) .footer-modern,
body:has(#test3c) .footer-modern * { box-sizing: border-box; }
body:has(#test3c) .site-footer.footer-modern { width: 100%; max-width: 100%; margin: 0; text-align: center; }
body:has(#test3c) .footer-modern :is(.footer-modern__inner, .footer-modern__statement, .footer-modern__business, .footer-modern__business-details, .footer-modern__trust, .footer-modern__bottom) { margin-inline: auto; }
body:has(#test3c) .footer-modern :is(.footer-modern__statement, .footer-modern__legal, .footer-modern__business-details > summary, .footer-modern__trust, .footer-modern__trust-item, .footer-modern__bottom) { text-align: center; justify-content: center; }
body:has(#test3c) .footer-modern .footer-modern__trust-item { justify-items: center; max-width: 100%; }

body:has(#test3c) {
    overflow-x: hidden !important;
}

body:has(#test3c) .p3app__content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body:has(#test3c) .p3app {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}
@media (max-width: 768px) {
    body:has(#test3c) .floating-3c-controls {
        inset: auto max(10px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) auto !important;
    }
    body:has(#test3c) .floating-3c-controls {
        right: max(10px, env(safe-area-inset-right, 0px)) !important;
        bottom: max(14px, env(safe-area-inset-bottom, 0px)) !important;
    }
}
