header{
    position: initial !important;
}
.row-flex{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
h5{
    font-size: 18px;
    margin-bottom: 10px;
}
h4{
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}
.d-none{
    display: none;
}
.d-block{
    display: block;
}
.rosu{
    color: #d00;
}
.ww10{
    width: 10%;
}
.ww20{
    width: 20%;
}
.ww30{
    width: 30%;
}
.ww40{
    width: 40%;
}
.ww50{
    width: 50%;
}
.ww60{
    width: 60%;
}
.ww70{
    width: 70%;
}
.ww80{
    width: 80%;
}
.ww90{
    width: 90%;
}
.ww100{
    width: 100%;
}
.z-12{
    z-index: 12;
}
.position-relative{
    position: relative;
}
.form-group{
    display: grid;
    grid-template-columns: 200px auto;
    align-items: center;
    gap: 10px;
}
.form-group2{
    grid-template-columns: 300px auto;
}
.form-group .text{
    font-weight: bold;
    position: relative;
    padding-left: 10px;
    font-size: 14px;
}
.form-group .text:before{
    content: '*';
    position: absolute;
    left: 0;
    color: #d00;
}
.form-group .text2{
    font-weight: bold;
    padding-left: 10px;
    font-size: 14px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea{
    /* width: 100%; */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}
.selectorAgentie{
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}
.selectorAgentie svg{
    transition: all 0.5s ease;
}
.selectorAgentie.active svg{
    transform: rotate(180deg);
}
.listaAgentii{
    position: absolute;
    top: 46px;
    left: 0px;
    background: #ffffff;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 250px;
    overflow-y: scroll;
    display: none;
}
.listaAgentii ul{
    line-height: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}
.listaAgentii ul li{
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}
.listaAgentii ul li.active, .listaAgentii ul li:hover{
    background-color: #1abc9c;
    color: #fff;
    font-weight: bold;
}
.selectorAgentie.active ~ .listaAgentii{
    display: block;
}

.listaModele{
    position: absolute;
    top: 46px;
    left: 0px;
    background: #ffffff;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 250px;
    overflow-y: scroll;
    display: none;
}
.listaModele ul{
    line-height: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}
.listaModele ul li{
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}
.listaModele ul li.active, .listaModele ul li:hover{
    background-color: #1abc9c;
    color: #fff;
    font-weight: bold;
}
.ttlAnunt.active ~ .listaModele{
    display: block;
}

.model-anunt{
    cursor: pointer;
}
.mModalMask{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.mModalMask.active {
    display: flex;
}
.mModalMask > div.content {
    background-color: #fff;
    max-width: 800px;
    display: flex;
    padding: 45px 15px 15px;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow-y: scroll;
    max-height: 100%;
}
.mModalMask > div.content > svg{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
.mModalMask > div.blockClickContent{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 11;
    display: none;
}
.ttlAnunt{
    border-top: 1px solid #ddd;
    font-size: 14px;
    font-weight: bold;
    padding-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ttlAnunt svg{
    transition: all 0.5s ease;
}
.ttlAnunt.active svg{
    transform: rotate(180deg);
}

.txtAnunt{
    line-height: 2rem;
    line-height: 2rem;
    padding: 10px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}
.cmpTxt{
    border-bottom: 1px solid #ddd;
    text-align: center;
    background-color: #eff5e7;
    outline: none;
    margin: 0px 7px 8px;
    font-size: 14px;
}
.box-check{
    line-height: 1.8rem;
}
.priceAnunt{
    font-size: 18px;
}
.priceAnunt .price-new{
    font-weight: bold;
    color: #d00;
}
.priceAnunt .price-old{
    text-decoration: line-through;
    color: #777;
}
.priceAnunt .price-final{
    font-weight: bold;
    color: #1abc9c;
    font-size: 22px;
}
select[name="rubrica"]{
    width: 50%;
}
ul.modele{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 7px;
}
ul.modele > li{
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}
ul.modele > li span{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    height: 39px;
    overflow: hidden;
    line-height: 1.5;
    text-align: center;
}


ul.agentii{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px 8px;
}
ul.agentii > li{
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

ul.agentii > li > div{
    display: flex;
    gap: 7px;
    align-items: center;
}

.bloc1{
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 5px;
}
.bloc1 .antet{
    display: grid;
    grid-template-columns: auto 40px;
    align-items: center;
}
.bloc1 .antet div.icon{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
}
.bloc1 .continut{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* calendar */
#calendar {
    max-width: 350px;
}

.month {
    padding: 10px;
    width: 100%;
    background: #1abc9c;
    text-align: center;
}

.month ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

.month ul li {
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#weekdays {
    margin: 0;
    padding: 10px 0;
    background-color: #ddd;
}

#weekdays li {
    color: #666;
    text-align: center;
    font-size: 14px;
}

#days {
    padding: 10px 0;
    background: #eee;
    margin: 0;
}

#days li {
    list-style-type: none;
    text-align: center;
    font-size: 14px;
    color: #777;
    padding: 9px;
    margin: 3px;
    border: 1px solid #ccc;
    cursor: pointer;
}

#days li.empty {
    border: none;
    cursor: default;
}

#days li.active, #days li:hover {
    background: #1abc9c;
    color: white !important;
}

#days li.disabled_day{
    color: #ccc;
    cursor: not-allowed;
    border: none;
    pointer-events: none;
}

#select {
    font-weight: bold;
    /* color: #1abc9c; */
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.selectedDay{
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
}

.selectedDay svg{
    cursor: pointer;
    width: 20px;
    height: 20px;
    color: #d00;
}
.pil-drag-upload-zone{
    padding: 20px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    margin-top: 20px;
    background: #afe0d6;
    text-align: center;
    position: relative;
    display: block;
}

.pil-drag-upload-zone input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    opacity: 0;
    cursor: pointer;
}
.pilbtnDdelete {
    width: auto !important;
    border: none;
    background: rgb(232, 31, 65);
    border-radius: 16px;
    text-transform: none;
    text-align: center;
    font-size: 12px;
    padding: 8px 12px;
    margin: 10px auto 0px;
    color: #fff;
    display: block;
    cursor: pointer;
}

#next,
#prev {
    cursor: pointer;
}

/* Add media queries for smaller screens */

@media screen and (max-width: 1024px) {
    select[name="rubrica"]{
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .form-group{
        grid-template-columns: 100%;
    }
}

@media screen and (max-width: 475px) {
    #days li .active {
        padding: 2px;
    }
   .mModalMask > div{
        overflow-y: scroll;
        height: 100%;
   }
}

#days,
#weekdays {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

@media all and (-ms-high-contrast: none) {
    #days {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        -ms-grid-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}

/* calendar */