<style>
.form-container {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  color: black;
}

.form-container h2 {
  margin-top: 0;
  text-align: center;
}

.form-container label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  color: black;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"] {
  width: 75%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.checkboxes {
  margin-top: 15px;
}

.checkboxes label {
  display: block;
  margin-top: 5px;
  color: black;
}

button[type="submit"] {
  margin-top: 20px;
  width: 75%;
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

.error-msg {
  color: red;
  margin-top: 10px;
  font-size: 14px;
}



#content, .sidebar, #overlay {
    transition: all 0.3s ease-in-out !important;
}



table {
    border-collapse: collapse;
    width: 100%;
    border: none; /* Elimină border-ul tabelului */
    color: black;
}

th, td {
    border: none; /* Elimină border-ul celulelor */
    padding: 8px; /* Adaugă spațiere pentru aspect mai aerisit */
    text-align: left;
}

th {
    background-color: #f4f4f4; /* Opțional: culoare de fundal pentru header */
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
}
.menu-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.pret2 {
    position: absolute;
    top: -30px;
    left: 400px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.3s;
    z-index:1000;
}
.overlay-content {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-height: 90vh;
    overflow-y: auto;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
 @media only screen and (max-width: 768px) {
    .sidebar {
        width: 30%;
        left: -25%;
        font-size: 12px;
        padding-top: 10px; /* Poate mai mic pe mobil */
    }
   .containerim {
            position: relative;
            width: 600px; /* Dublat față de inițial */
            overflow: hidden;
            right: 15%; /* Offset stânga relativ */
            height: 600px; /* Dublat față de inițial */
            top:-6%;
        }

     .pret2 {
     left: 70%;
     top:2%;

    
}
 
}
        .containerim img {
            filter: contrast(1.1) saturate(1) drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
            width: 100%; /* Ajustăm dimensiunea implicită */
            height: auto;
            display: block;
            position: absolute;
            top: 0;
            transition: transform 0.8s ease-in-out;
            clip-path: inset(0 0 50% 0); /* Inițial doar partea superioară */
        }

.containerim img.tcc
{
    width: 50%; /* Mărim imaginea de două ori */
    left:-12px;
    height: auto; /* Păstrăm proporțiile */
}
        .containerim img.rotated-view {
            clip-path: inset(50% 0 0 0);       /* păstrează doar jumătatea de jos */
             transform: translateY(-50%) scaleY(1) scaleX(-1); /* mută jumătatea jos în sus, fără să oglindești */
}
        .toggle-button {
            position: absolute;
            top: 20px;
            left: 15%;
            transform: translateX(-50%);
            background: rgb(111 0 0 / 95%);
            color: white;
            padding: 8px 12px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            border-radius: 5px;
            z-index: 10; /* Se asigură că butonul este vizibil peste imagini */
        }
        .toggle-button1 {
            position: absolute;
            top: 10px;
            left: 25%;
            transform: translateX(-50%);
            background: rgb(111 0 0 / 95%);
            color: white;
            padding: 8px 12px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            border-radius: 5px;
            z-index: 10; /* Se asigură că butonul este vizibil peste imagini */
        }

.fixed-top {
    position: fixed; /* Poziție fixă față de fereastra browserului */
    top: 20px; /* Distanța față de partea de sus a ferestrei */
}

.color-box {
    width: 100px;
    height: 50px;
    border: 1px solid #000;
    display: inline-block;
}

.color-box.fallback {
    background: repeating-linear-gradient(45deg, #ccc, #ccc 10px, #fff 10px, #fff 20px);
}


/* Fereastră extinsă pentru multe opțiuni */
.option-container-large {
    display: grid; /* Organizăm sub formă de grilă */
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Coloane flexibile care se încadrează în container */
    gap: 0px;
    max-height: 300px; /* Limităm înălțimea */
    overflow-y: auto; /* Scroll doar pe verticală */
    overflow-x: hidden; /* Eliminăm scroll-ul pe orizontală */
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
    transition: max-height 0.3s ease-out;
    box-sizing: border-box;
}

.option-container-large.expanded {
    max-height: 700px; /* Extindere mare pentru multe opțiuni */
}

.option-container-large.collapsed {
    max-height: 200px; /* Afișăm doar o parte */
}

/* Stilurile pentru fiecare opțiune */
.option-item-large {
    text-align: center;
    border: 2px solid transparent;
    padding: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item-large img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0px;
}

.option-item-large span {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color:black;
}

.option-item-large:hover {
    border-color: #ccc;
}

.option-item-large.selected {
    border-color: red;
}

.option-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.option-container.expanded {
    max-height: 500px;
}

.option-container.collapsed {
    max-height: 250px;
}

.option-item {
    text-align: center;
    border: 2px solid transparent;
    padding: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item img {
    width: 80px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 0px;
}

.option-item span {
    display: block; /* Asigură că textul se comportă ca un bloc */
    font-size: 12px;
    font-weight: bold;
    color: black;
    width: 100px; /* Setează o lățime fixă pentru a forța textul pe două rânduri */
    white-space: normal; /* Permite trecerea la rând nou */
    word-wrap: break-word; /* Împarte cuvintele lungi dacă e nevoie */
}

.option-item:hover {
    border-color: #ccc;
}

.option-item.selected {
    border-color: red;
}


img.tcc{
    position: fixed;
   
    top: 20px;
    height: 605px;
    width: 372px;
    z-index: -8;
}


.conti {
    position: absolute;
    left:800px;
    top: 100px;
    
}
.menu-container-acc {
    width: 100%;
    max-width: 800px;
    margin: auto;
    border: 1px solid #ccc;
    max-height: 500px; /* Setează o înălțime maximă */
    overflow-y: auto;
}

.menu-acc {
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    padding: 1px;
}

.menu-item-acc {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    background: #f6ffdc;
    transition: background 0.3s;
    color:black;
}

.menu-item-acc:hover {
    background: #ddd;
}

.content-container-acc {
    display: none;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #ccc;
    max-height: 300px; /* Limitează înălțimea */
    overflow-y: auto; /* Activează bara de derulare pe verticală */
}

.content-container-acc.active {
    display: block;
}

.menu-container-acc1 {
    width: 100%;
    max-width: 800px;
    margin: auto;
    border: 1px solid #ccc;
    max-height: 500px; /* Setează o înălțime maximă */
    overflow-y: auto;
}

.menu-acc1 {
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    padding: 1px;
}

.menu-item-acc1 {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    background: #f6ffdc;
    transition: background 0.3s;
    color:black;
}

.menu-item-acc1:hover {
    background: #ddd;
}

.content-container-acc1 {
    display: none;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #ccc;
    max-height: 300px; /* Limitează înălțimea */
    overflow-y: auto; /* Activează bara de derulare pe verticală */
}

.content-container-acc1.active {
    display: flex;
    flex-wrap: wrap; /* Permite elementelor să ocupe spațiul disponibil */
    gap: 10px; /* Distanță între elemente */
}
.menu-item-acc1.active span {
    color: red; /* Culoarea dorită când este activ */
    font-weight: bold; /* Opțional: îngroșează textul */
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.image-grid img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}
.config-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px; /* implicit desktop */
}

@media (max-width: 780px) {
  .config-table {
    font-size: 12px; /* mai mic pe mobil */
  }
}


#usa-preview {
  position: relative;
  display: inline-block;
  max-width: 100%;
  min-height: 50vh;   /* 40% din înălțimea ecranului */
  min-width: 50vw;    /* 40% din lățimea ecranului */
}

#usa-preview.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}





*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color:black;
}
body {
    font-family: Arial, sans-serif;
}
body, html {
    overflow: hidden;
   
}


.menu-btn {
    position: absolute;
    top: 50px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    background: #800020; /* Vișiniu */
    color: white; /* Text alb */
    border: none;
    border-radius: 10px; /* Colțuri rotunjite */
    padding: 1px 10px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.menu-btn:hover {
    background: #66001a; /* O nuanță mai închisă de vișiniu pentru hover */
}
.sidebar {
    position: fixed;
    top: 40px;
    left: -10%;
    width: 10%;
    height: 100%;
    background: #333;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 81px;
    transition: left 0.3s;
    z-index: 1000;
}

/* Stiluri pentru ecrane mai mici (mobile) */
.ab-form {
    max-height: 800px;
    max-width: 800px; 
    overflow-y: auto; 
    padding: 10px; 
    border: 1px solid #ccc;
    background: #fefefe;
}
@media only screen and (max-width: 768px) {
    .ab-form {
        max-width: 300px;
    }

    table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
  }

  td {
    text-align: left;
   
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
  }

  td::before {
    display: none;
  }

  input[type="text"], select, textarea, input[type="number"] {
    width: 100%;
    margin-top: 5px;
    box-sizing: border-box;
  }

  input[type="submit"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
  }


    .sidebar {
        width: 30%;  /* Bara laterală ocupă 30% din ecran */
        left: -30%;  /* Ajustează poziția pentru a rămâne ascunsă */
        font-size: 12px; /* Diminuăm textul pentru ecrane mai mici */
    }
    .menu-btn {
    font-size: 32px;
    top:1%;}
}
.sidebar .close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
.sidebar button {
    background: white;
    color: black;
    border: none;
    padding: 5px;
    margin: 2px;
    cursor: pointer;
    width: 80%;
    font-size:14px;
}


 .content {
            width: 100%;
            height: 100vh;
            background: #80008000;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: margin-left 0.3s;
        }

.overlay {
    position: fixed;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.3s;
}
.overlay-content {
    text-align: center;
    padding: 20px;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
.option-container1 {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    overflow-y: auto;
}
.option-container1 img {
    width: 80px;
    height: 120px;
    object-fit: contain;
}
.option-container1 span {
    display: block;
    text-align: center;
    color: black;
}
.hidden-section {
    display: none;
}
.container-slider {
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.slider-group {
    margin-bottom: 15px;
}
.slider-group.hidden {
    display: none;
}
.slider-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color:black;
}
.slider-group input[type=range] {
    width: 300px;
    
}

.infobox {
    position: absolute;
    background-color: #fefefe;
    color: #333;
    border: 1px solid #aaa;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 600px;
}  
.grup-options {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}
.grup-options-maner {
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
 .grup-image {
    flex: 0 0 200px; 
    margin-right: 2px;
 }
@media only screen and (max-width: 768px) {
    .grup-image {
      flex: 0 0 125px; 
      margin-right: 2px;
    }
    .grup-options {
         display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
     }
     .grup-options-maner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
         gap: 2px;
        }
     .overlay{
        width:90%;
        left:-90%;
     }

    .slider-group input[type=range] {
        width: 200px;
    }
    .slider-value {
        text-align: right;
        font-size: 14px;
        color: #333;
    }
    .toggle-button {
        left: 70%;
    }

}

.option-container2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-item2 {
    display: flex;
    flex-direction: row; /* Punem imagine+titlu si lista pe orizontala */
    align-items: flex-start;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.2s;
    color: black;
    width: 90%;
    gap: 20px; /* spatiu intre imagine+titlu si lista */
}

.imagine-titlu {
    display: flex;
    flex-direction: column; /* Imaginea deasupra titlului */
    align-items: center;
}

.imagine-titlu img {
    width: 250px;
    height: 250px;
    margin-bottom: 10px;
}

.option-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0;
    color: black;
    text-align: center;
}

.descriere-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: black;
    text-align: left;
}

.descriere-list li {
    margin-bottom: 5px;
    font-size: 15px;
    color: black;
}

.selected-item2 {
    border: 2px solid red;
    border-radius: 12px;
    background-color: #fff0f0;
}


#content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Zona cu ușa configurată */
.containerim {
  flex: 1;
}


.sidebar_right {
  width: 400px;
  max-height: 100vh;
  background: #f9f9f9;
  border-left: 2px solid #ddd;
  padding: 15px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
  position: fixed;
  top: 80px;
  right:10px;
  display: block; /* important vizibil pe toate ecranele */
  z-index: -5;

}

.sidebar_right .promo-item img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

.sidebar_right .promo-item p {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #333;
}

.logo_f {
  position: absolute; /* sau relative/fixed, după caz */
  top: -50px;          /* modifică după nevoie */
  left: 10%;
  z-index: 1000;      /* dacă vrei să stea deasupra altor elemente */
}

.logo_f img {
  height: 60px;       /* sau ce dimensiune dorești */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .sidebar_right {
    display: none; /* se ascunde doar pe telefoane */
  }
   .logo_f {
    top: auto;            /* eliminăm poziționarea de sus */
    bottom: 120px;         /* îl poziționăm jos */
    left: 50%;
    transform: translateX(-50%); /* centrare orizontală */
  }
}


@media (max-width: 768px) {
  .tcc {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
 .containerim img.tcc{
    width: 167%;
    height: auto;
    left: -33%;
    top: -10%;
}
  #usa-preview {
    height: 80vh;
    overflow: hidden;
  }
  .topbar {display:none !important;;}
}



.topbar, .bottombar {
  height: 40px;
  width: 100%;
  background-color: #222;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
}

.topbar {
  position: relative; /* lasă bara sus în fluxul normal */
}

.bottombar {
  position: fixed;
  top:95%; /* stă jos, împinge conținutul */
}

.tcc-ambele {
  width: 167%;
  left: -33%;
  top: -8%;
  position: absolute;
}

.tcc-sus-stanga {
  width: 214%;
  left: -43%;
  top: 7%;
  position: absolute;
}

.tcc-sus-dreapta {
  width: 214%;
  left: -73%;
  top: 7%;
  position: absolute;
}

.tcc-sus-ambele {
  width: 167%;
  left: -33%;
  top: 7%;
  position: absolute;
}

.tcc-fara {
  width: 251%;
  left: -73%;
  top: -10%;
  position: absolute;
}

.tcc-stanga {
  width: 214%;
  left: -43%;
  top: -3%;
  position: absolute;
}

.tcc-dreapta {
  width: 214%;
  left: -73%;
  top: -3%;
  position: absolute;
}

.tcc-sus {
  width: 251%;
  left: -73%;
  top: -5%;
  position: absolute;
}



    </style>