/*
Theme Name: Hello Elementor Child
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
*/

.temp-class-remove {
    padding-top: 130px;
}

/* Section headings styling - applied on all screen sizes */
.menu-heading-ns {
    cursor: default;
    pointer-events: none;
}

.menu-heading-ns a {
    color: black !important;
    font-weight: 600 !important;
}

/* Apply mega menu styles only on screens wider than 1024px */
@media (min-width: 1025px) {
    /* Main columns wrapper - using Grid */
    .mega-menu-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr); /* Exactly 4 equal columns */
        gap: 24px;
        width: 100%;
        padding: 20px;
        overflow: visible !important; /* Allow nested menus to overflow */
    }

    /* Individual column */
    .mega-menu-column {
        position: relative;
        overflow: visible !important; /* Allow nested menus to overflow */
    }

    /* List items inside columns */
    .mega-menu-column > li {
        list-style: none;
        position: relative;
        padding: 8px 0;
    }

    /* Items with nested submenus */
    .mega-menu-column .menu-item-has-children {
        position: relative !important;
    }

    /* Nested submenus (3rd level) - default to right - BACKGROUND COLOR ONLY FOR MEGA MENU */
    .mega-menu-column .menu-item-has-children > .sub-menu {
        position: absolute !important;
        left: 100%;
        right: auto;
        top: 0 !important;
        margin: 0 !important;
        min-width: 200px;
        width: auto;
        z-index: 1001;
        display: none;
        overflow: visible !important; /* Ensure full background visible */
        transition: left 0.2s ease, right 0.2s ease; /* Smooth position change */
        background-color: #ffecec !important;
    }

    /* Show submenu on hover */
    .mega-menu-column .menu-item-has-children:hover > .sub-menu {
        display: block !important;
    }

    /* Menu item hover effect */
    .mega-menu-column > .menu-item:hover > a {
        background-color: #c30b0b !important;
        color: #ffffff !important;
    }

    /* Remove list markers */
    .mega-menu-processed li {
        list-style: none;
    }

    /* Fix parent menu overflow */
    ul.sub-menu.elementor-nav-menu--dropdown.mega-menu-processed {
        overflow: visible !important;
        max-width: max-content !important;      
        width: auto !important;
    }
}

/* Mobile menu: for screens <= 1024px */
@media (max-width: 1024px) {
    .ns-custom-menu .elementor-nav-menu > li:first-child .menu-item-has-children > .sub-menu li:not(.menu-heading-ns):not(.menu-item-has-children) {
        background-color: #ffecec !important;
    }

    .ns-custom-menu .elementor-nav-menu > li:first-child.menu-item-has-children.submenu-open > a {
        background-color: var(--e-global-color-secondary) !important;  
        color: #ffffff !important;
    }

    .elementor-nav-menu--dropdown .sub-menu {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
        margin: 0;
    }

    .menu-item-has-children.submenu-open > .sub-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .menu-heading-ns {
        pointer-events: none;
        cursor: default;
    }
}

/** start hubspot form **/
.ns-hubspot-contact-us-form .hbspt-form input {
    height: 44px !important;
}

.ns-hubspot-contact-us-form .hbspt-form textarea {
    height: 107px !important;
}

.ns-hubspot-contact-us-form .hbspt-form select {
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    height: 44px !important;
    padding-left: 23px !important;
    background-color: #ffffff !important;
    border-color: #808080 !important;
    border-radius: 0px 0px 0px 0px !important;
}

.ns-hubspot-contact-us-form .hbspt-form input,
.ns-hubspot-contact-us-form .hbspt-form textarea {
    background-color: #ffffff !important;
    border-color: #808080 !important;
    border-radius: 0px 0px 0px 0px !important;
}

.ns-hubspot-contact-us-form .hbspt-form input:focus, 
.ns-hubspot-contact-us-form .hbspt-form textarea:focus,
.ns-hubspot-contact-us-form .hbspt-form select:focus {
    outline: none !important;
}

.ns-hubspot-contact-us-form .hbspt-form label {
    display: none;
}

.ns-hubspot-contact-us-form .hbspt-form .field {
    margin-bottom: 10px;
}

.ns-hubspot-contact-us-form .hbspt-form .hs-error-msg {
    color: red;
    display: block;
}


.ns-hubspot-contact-us-form .hbspt-form input[type="submit"] {
    background-color: var(--e-global-color-secondary) !important;
    color: var(--e-global-color-89dbf9e) !important;
    border-color: var(--e-global-color-secondary) !important;
    height: 41px !important;
}

.ns-hubspot-contact-us-form .hbspt-form input[type="submit"] {
    background-color: var(--e-global-color-secondary) !important;
    color: var(--e-global-color-89dbf9e) !important;
    border-color: var(--e-global-color-secondary) !important;
    height: 41px !important;
    width: 100% !important;
}

.ns-hubspot-contact-us-form .hbspt-form input[type="submit"] {
    line-height: 1 !important;
}

.ns-hubspot-contact-us-form .hbspt-form input[type="submit"]:hover {
    color: #ffffff !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
}


.ns-hubspot-form-1 .hbspt-form input,
.ns-hubspot-form-1 .hbspt-form textarea {
    border-color: #DFDFDF !important;
    font-family: "Roboto", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    color: #828282 !important;
}

.ns-hubspot-form-1 .hbspt-form .field {
    margin-bottom: 20px;
}

.ns-hubspot-form-1 .hbspt-form input[type="submit"] {
    font-family: "Poppins", Sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    line-height: 18px !important;
    letter-spacing: 1px !important;
    border-radius: 0px 0px 0px 0px !important;
    height: 47px !important;
}

/* Chrome, Safari, Opera */
.ns-hubspot-form-1 .hbspt-form input::-webkit-input-placeholder,
.ns-hubspot-form-1 .hbspt-form textarea::-webkit-input-placeholder,
.ns-hubspot-form-2 .hbspt-form input::-webkit-input-placeholder,
.ns-hubspot-form-2 .hbspt-form textarea::-webkit-input-placeholder {
  color: #a1a1a1 !important;
  opacity: 1 !important;
}

/* Firefox 4-18 */
.ns-hubspot-form-1 .hbspt-form input:-moz-placeholder,
.ns-hubspot-form-1 .hbspt-form textarea:-moz-placeholder,
.ns-hubspot-form-2 .hbspt-form input:-moz-placeholder,
.ns-hubspot-form-2 .hbspt-form textarea:-moz-placeholder {
  color: #a1a1a1 !important;
  opacity: 1 !important;
}

/* Firefox 19+ */
.ns-hubspot-form-1 .hbspt-form input::-moz-placeholder,
.ns-hubspot-form-1 .hbspt-form textarea::-moz-placeholder,
.ns-hubspot-form-2 .hbspt-form input::-moz-placeholder,
.ns-hubspot-form-2 .hbspt-form textarea::-moz-placeholder  {
  color: #a1a1a1 !important;
  opacity: 1 !important;
}

/* Internet Explorer 10-11 */
.ns-hubspot-form-1 .hbspt-form input:-ms-input-placeholder,
.ns-hubspot-form-1 .hbspt-form textarea:-ms-input-placeholder,
.ns-hubspot-form-2 .hbspt-form input:-ms-input-placeholder,
.ns-hubspot-form-2 .hbspt-form textarea:-ms-input-placeholder {
  color: #a1a1a1 !important;
  opacity: 1 !important;
}

/* Microsoft Edge */
.ns-hubspot-form-1 .hbspt-form input::-ms-input-placeholder,
.ns-hubspot-form-1 .hbspt-form textarea::-ms-input-placeholder,
.ns-hubspot-form-2 .hbspt-form input::-ms-input-placeholder,
.ns-hubspot-form-2 .hbspt-form textarea::-ms-input-placeholder {
  color: #a1a1a1 !important;
  opacity: 1 !important;
}

.ns-hubspot-form-1 .hbspt-form input::placeholder,
.ns-hubspot-form-1 .hbspt-form textarea::placeholder,
.ns-hubspot-form-2 .hbspt-form input::placeholder,
.ns-hubspot-form-2 .hbspt-form textarea::placeholder {
  color: #a1a1a1 !important;
  opacity: 1 !important;
}

.ns-hubspot-form-2 {
    background-color: #ffffff;
    padding: 10px 15px 15px;
}

.ns-hubspot-form-2 .hbspt-form input,
.ns-hubspot-form-2 .hbspt-form textarea {
    border-color: #DDE1E0 !important;
    border-radius: 10px !important;
}

.ns-hubspot-form-2 .hbspt-form input[type="submit"] {
    background-color: #EA003A !important;
    font-family: "Inter", Sans-serif !important;
    font-weight: 600 !important;
    font-style: normal !important;
}
/** end hubspot form **/
