@media screen and (max-width: 1500px) {
    #nav-subscription #successMessage {
        max-width: 29.5%;
    }
}

@media screen and (min-width: 1441px) {
    #form-incepe-gratis,
    .body-register #accordionFlushExample {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1440px) {
    .header-visitor .desktop-only,
    .header-guest .desktop-only {
        display: none !important;
    }

    #nav-subscription #successMessage {
        max-width: 28.5%;
    }

    .header-visitor .mobile-only,
    .header-guest .mobile-only:not(.go-back-button-wrapper) {
        display: block !important;
    }

    .w3-sidebar.menu_open {
        z-index: 90;
        margin: 0;
        visibility: visible;
    }

    .w3-sidebar.menu_open .col-4.px-1 {
        width: auto;
    }

    .w3-sidebar {
        display: flex !important;
        flex-direction: column;
        margin-top: -100vh;
        margin-top: -100dvh;
        z-index: 6;
        right: 0;
        padding-top: 100px;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        transition: .4s all;
        visibility: hidden;
    }

    .w3-sidebar.menu_open .flex-column a {
        margin-left: 40px !important;
        margin-right: 40px !important;
    }
    
    .w3-bar-item {
        background: transparent;
    }

    .menu-link {
        border-top: 1px solid #eaebed;
        padding: 20px 10px;
    }

    .header-guest, .header-visitor {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-visitor > div,
    .header-guest > div {
        margin-left: 40px;
        margin-right: 40px;
    }

    .header-visitor .buttons,
    .header-guest .buttons {
        gap: 16px;
    }

    .chatbot-bg a {
        padding: 18px 30px !important;
    }
}

@media screen and (max-width: 1367px) {
    .header-visitor .desktop-only .vertical-center {
        display: flex;
        gap: 15px;
    }

    .header-visitor .desktop-only .vertical-center > a {
        margin: 0 !important;
    }

    .home-store-div {
        position: relative !important;
        bottom: 0;
        left: 8px;
        margin-top: 30px;
        min-width: 300px;
    }

    #acasa-map .desktop-only .icons {
        justify-content: normal;
    }

    #garantie p {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 1204px) {
    .header-visitor .desktop-only {
        display: none !important;
    }

    .header-visitor .mobile-only {
        display: block !important;
    }

    .header-visitor img.desktop-only,
    .header-guest img.desktop-only,
    .esx-logos img.desktop-only {
        display: block !important;
    }

    .header-visitor img.mobile-only,
    .header-guest img.mobile-only,
    .esx-logos img.mobile-only {
        display: none !important;
    }

    .header-visitor .mobile-only.helper-div {
        display: grid !important;
    }

    .header-visitor > .align-items-center {
        justify-content: space-between;
    }

    #header-visitor-start a.btn {
        margin-left: 0;
    }

    .header-visitor .btn {
        white-space: nowrap !important;
    }

    .features .row {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .features .row .helper {
        display: none;
    }

    .header-visitor .ps-4 {
        padding-left: 10px !important;
    }

    #pachet .ms-md-5 {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    #trial a.btn {
        white-space: nowrap;
    }

    .bg-members {
        background-size: auto 60%;
        background-position: right top;
    }

    #timer-container h2 {
        font-size: 24px !important;
    }

    #timer-container h3 {
        font-size: 18px;
    }

    #timer-container .btn-incepe-gratis a {
        margin-right: 0 !important;
        max-width: inherit;
        padding: 15px 22px !important;
    }

    #acasa-map h1 {
        font-size: 40px !important;
    }

    .social-icons.desktop-only {
        display: flex;
    }

    .tel-form-social {
        flex-direction: column;
        gap: 30px;
    }

    .tel-form-social .col-md-6 {
        width: 100%;
    }
    
    .footer-details .row {
        flex-direction: column;
        gap: 30px;
    }

    .footer-details .row > div {
        width: 100%;
    }

    #nav-subscription #successMessage {
        max-width: 27.5%;
    }

    #chatbot h2,
    #chatbot h3 {
        font-size: 24px !important;
    }
}

@media screen and (max-width: 992px) {
    .features .row {
        flex-wrap: wrap;
    }

    #home-about .col-md-6 {
        width: 100%;
    }

    .phone-sali-partenere {
        transform: scale(1.5) translateY(25%);
    }

    #footer > div > div > .row > .col-md-6:first-child {
        width: 60%;
    }

    #footer > div > div > .row > .col-md-6:last-child {
        width: 40%;
    }

    .footer-download-links > div {
        width: 50%;
    }

    #footer > div > div {
        padding-bottom: 24px!important;
    }

    #timer-container .row {
        flex-wrap: wrap;
        justify-content: space-between;
        padding-bottom: 42px;
        padding-top: 42px;
    }

    #timer-container .row > div:last-child {
        flex-grow: 1;
        width: 100%;
        text-align: center;
    }

    .body-acasa #timer-container .timer {
        min-width: 250px;
    }

    #member-count h2 {
        font-size: 40px !important;
    }

    .bg-members {
        background-size: auto 50%;
    }

    #trial h1 {
        font-size: 32px !important;
    }

    #trial .row {
        flex-direction: column;
        gap: 30px;
    }

    #trial .row > div {
        width: auto;
    }

    #recenzii .col-md-6 {
        width: 100%;
        margin-bottom: 30px;
    }

    .body-acasa #guarantee > div > div:nth-child(2) {
        flex-wrap: wrap;
    }

    #garantie .col-md-6 {
        width: 100%;
    }
     
    #garantie p {
        font-size: 16px !important;
    }

    #garantie .mb-4 {
        margin-bottom: 0 !important;
    }

    #subscription-header > div {
        width: 100%;
    }

    #subscription-header + div > div {
        width: 100%;
        margin: 0;
    }

    #beneficii .col-md-6 {
        width: 100%;
    }

    #harta .desktop-only {
        display: none;
    }

    #harta .mobile-only {
        display: flex !important;
    }

    .body-acasa .map-row .home-map-view {
        height: 424px !important;
    }

    #acasa-map .map-row > div:first-child {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
        background-color: #F7F7FB;;
    }

    #referralModal .modal-content > div {
        flex-direction: column;
    }

    #referralModal .modal-content > div > img {
        object-fit: cover;
        object-position: top;
    }

    #referralModal .rf-mob {
        display: block;
    }

    #referralModal .rf-desk {
        display: none;
    }

    #referralModal .modal-body h2 {
        position: absolute;
        top: -20px;
        line-height: 1.3;
        transform: translateY(-100%);
        color: #fff;
        left: 0;
        padding: 0 15px;
    }

    #referralModal .modal-body {
        padding: 0;
        margin-bottom: 24px !important;
    }

    #referralModal .referral-features {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    #referralModal .modal-header .btn-close {
        background-color: #fff !important;
        border-radius: 100%;
        background-size: 35%;
    }

    #referralModal .modal-body .btn {
        display: block !important;
        margin-left: 16px;
    }

    #referralModal .referral-features .item img {
        width: 40px;
        height: 40px;
    }

    .chatbot-bg a {
        margin-top: 12px;
        padding: 11px 30px !important;
        font-size: 16px !important;
    }

    #chatbot .container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
    .body-acasa .fs-desktop-60 {
        font-size: 40px !important;
    }
}

@media screen and (min-width: 576px) and (max-width: 768px) {
    .body-acasa .members img {
        left: 0;
        width: 100% !important;
    }
}

@media screen and (max-width: 768px) {
    #beneficii .banner-promo img {
        margin-bottom: 42px;
    }
    
    #beneficii .col-md-6.mt-5 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    #nav-subscription #successMessage {
        width: 100%;
        max-width: 100%;
        left: 0;
        bottom: 0;
        transform: none;
    }
    
    .header-visitor .ps-4 {
        padding-left: 20px !important;
    }

    .w3-sidebar.mobile-only.menu_open .flex-column a {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    #top .home-bg h1 {
        font-size: 24px;
    }

    .banner-content-mobile .banner-features {
        display: flex;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .banner-content-mobile .banner-features > div {
        padding: 0;
    }

    #footer > div > div > .row > .col-md-6 {
        width: 100% !important;
    }

    #footer .footer-download-links {
        flex-wrap: nowrap;
    }

    .footer-download-links > div {
        width: auto;
    }

    #footer .social-icons > div {
        width: auto;
    }

    .footer-details > .my-4 {
        margin: 0 auto !important;
    }

    .container {
        max-width: 100%;
    }

    .bg-mobile,
    #top .home-bg h1 {
        width: 100%;
        max-width: 100%;
    }

    #member-count .row {
        flex-direction: column-reverse;
    }

    #footer .col-md-5 a img:last-child {
        width: auto !important;
    }

    #top .home-bg h1 {
        left: 0;
        margin: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    #trial h1 {
        font-size: 21px !important;
    }

    #trial .row {
        gap: 10px;
    }

    #member-count h2 {
        font-size: 28px !important;
    }

    #timer-container .btn-incepe-gratis a {
        margin-bottom: 0;
    }

    #timer-container h3 {
        margin-top: 0 !important;
    }

    .body-pret-abonament .benefits p,
    .body-pret-abonament .differences p,
    .fs-1_125rem,
    .fs-1-25 {
        font-size: 18px !important;
        line-height: 1.33 !important;
    }

    #trial .my-4 {
        margin: 10px 0 !important;
    }

    .body-companii-in-forma .bg-white-gradiant img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
        height: 150px;
        object-fit: contain;
    }

    .body-companii-in-forma .bg-white-gradiant {
        text-align: center;
    }

    .member-card-img {
        max-height: 53px;
        margin-top: 10px;
        margin-bottom: 10px;
        box-shadow: none !important;
        width: auto !important;
        margin-left: 10px;
        margin-right: 20px;
    }

    .body-sali-partenere .try-free-bottom a {
        font-size: 15px !important;
    }

    .footer-details .row {
        gap: 15px;
    }

    .footer-details .mobile-only p:last-child {
        margin-top: 0 !important;
    }

    .body-benefits .l_header .left {
        text-align: center !important;
    }

    img[src="/web/assets/img/logo.svg"] {
        max-width: 87px;
        margin-left: 0;
    }

    .header-visitor > div,
    .header-guest > div {
        margin-left: 20px;
        margin-right: 20px;
    }

    #header-visitor-start a.btn {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        font-size: 12px;
        line-height: 1.3;
    }

    .w3-sidebar.menu_open {
        padding-top: 70px !important;
    }

    .w3-sidebar.menu_open .flex-column a {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    #chatbot h2 {
        font-size: 16px !important;
    }

    #chatbot h3 {
        font-size: 14px !important;
    }

    #chatbot svg {
        max-width: 72px;
        max-height: 72px;
    }

    #chatbot .gap-4 {
        gap: 12px !important;
    }

    #nav-subscription-upgrade-pro,
    #nav-subscription-upgrade-pro a.btn {
        font-size: 13px;
        padding: 4px;
        padding-left: 12px;
    }

    #nav-subscription-upgrade-pro .row > div p {
        font-size: 14px;
    }

    .header-visitor .buttons,
    .header-guest .buttons {
        gap: 8px;
    }
}

@media screen and (max-width: 375px) {
    .body-acasa .header-visitor > div,
    .body-acasa .header-guest > div {
        margin-left: 24px;
        margin-right: 24px;
    }

    #footer .footer-tab-columns > div.mobile-only > .row > .col-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    #chatbot .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 360px) {
    .header-visitor img.desktop-only,
    .esx-logos img.desktop-only {
        display: none !important;
    }

    .header-visitor img.mobile-only,
    .esx-logos img.mobile-only {
        display: block !important;
    }

    img[src="/web/assets/img/logo.svg"] {
        display: none !important;
    }

    img[src="/web/assets/img/logo-mobile.svg"] {
        display: block !important;
        max-width: 32px;
        height: 32px;
    }
}

@media screen and (max-width: 350px) {
    #header-visitor-start a.btn {
        margin-right: 0;
    }
}