/* ===================================================== */
/* 1️⃣ HEADER & MENU (Stilurile Tale)                     */
/* ===================================================== */
.container-header .mod-menu ul li a { color: rgb(36, 74, 156); }
.container-header .mod-menu ul li a:hover { color: rgb(36, 74, 156); }
.container-header .navbar-toggler { color: #943B00; border: 1px solid #000000; }
.container-header .site-description { color: #943B00 !important; font-size: 1.2rem; white-space: normal; }

.container-topbar { background-color: #ffffff !important; border-bottom: 1px solid #dddddd; }

/* ===================================================== */
/* COMPACT FORM CARD DESIGN - CUSTOM BLUE                */
/* ===================================================== */

/* Main Form Card Container */
.com-contact__form {
    background-color: rgb(36, 74, 156) !important;
    padding: 20px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    color: #ffffff !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Horizontal Row Alignment */
.com-contact__form .control-group {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

/* Labels on the Left */
.com-contact__form .control-label,
.com-contact__form label {
    flex: 0 0 38% !important;
    text-align: left !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding-right: 10px !important;
    margin-bottom: 0 !important;
}

/* Controls wrapper on the Right */
.com-contact__form .controls {
    flex: 1 1 62% !important;
}

/* Inputs, Dropdowns, and Textareas */
.com-contact__form input[type="text"],
.com-contact__form input[type="email"],
.com-contact__form input[type="number"],
.com-contact__form select,
.com-contact__form textarea {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #cccccc !important;
    border-radius: 3px !important;
    padding: 4px 8px !important;
    height: 30px !important;
    font-size: 16px !important; /* Forces 16px to prevent mobile browser zoom-induced layout shifts */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Compact Dimension Boxes (Length, Width, Thickness) */
#jform_contact_fields_length_input,
#jform_contact_fields_width_input,
#jform_contact_fields_thickness_input,
.com-contact__form input[id*="length"],
.com-contact__form input[id*="width"],
.com-contact__form input[id*="thickness"] {
    max-width: 80px !important;
    width: 80px !important;
    display: inline-block !important;
}

/* Textarea height */
.com-contact__form textarea {
    height: 45px !important;
}

/* Checkboxes */
.com-contact__form input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

/* Captcha and Security Section */
.com-contact__form .control-group:has(#altcha-container),
.com-contact__form .control-group:has(.g-recaptcha) {
    display: block !important;
}
.com-contact__form .control-group:has(#altcha-container) label,
.com-contact__form .control-group:has(.g-recaptcha) label {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    padding-bottom: 5px !important;
}

/* ===================================================== */
/* SUBMIT BUTTON DESIGN: FORCED WHITE BG & BLACK TEXT    */
/* ===================================================== */

.com-contact__form .control-group-buttons {
    display: flex !important;
    justify-content: flex-end !important;
    padding-left: 38% !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

.com-contact__form .control-group-buttons button,
.com-contact__form .control-group-buttons input[type="submit"],
.com-contact__form .btn.btn-primary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    width: 100% !important;
    padding: 6px 12px !important;
    border-radius: 3px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer;
    box-shadow: none !important;
}

.com-contact__form .control-group-buttons button:hover,
.com-contact__form .control-group-buttons input[type="submit"]:hover,
.com-contact__form .btn.btn-primary:hover {
    background-color: #f1f1f1 !important;
    color: #000000 !important;
    border-color: #999999 !important;
}

/* ===================================================== */
/* MOBILE RESPONSIVE FIX (Prevents side-shifting)        */
/* ===================================================== */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        position: relative !important;
    }

    .com-contact__form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    .com-contact__form .control-group {
        display: block !important;
    }
    
    .com-contact__form .control-label,
    .com-contact__form label {
        width: 100% !important;
        flex: none !important;
        padding-right: 0 !important;
        margin-bottom: 4px !important;
    }
    
    .com-contact__form .controls {
        width: 100% !important;
        flex: none !important;
    }
    
    .com-contact__form .control-group-buttons {
        padding-left: 0 !important;
    }

    .so-wrapper, 
    .footer-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
}

/* Forces the logo wrapper or container to stay on the top left */
.logo, 
.header .logo, 
.navbar-brand, 
.site-logo {
    float: left !important;
    text-align: left !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    display: inline-block !important;
}

/* Ensures the logo image itself doesn't drift */
.logo img, 
.header .logo img, 
.navbar-brand img, 
.site-logo img {
    float: left !important;
    display: block !important;
}

#mod-custom110 img {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Fix header container layout to align items properly to the left */
.container-header .container-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px;
}

/* Force the logo module to appear first on the left */
#mod-custom110 {
    order: 1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Push menu and search to follow naturally */
.container-header .container-nav nav {
    order: 2 !important;
}

.container-header .container-nav .container-search {
    order: 3 !important;
    margin-left: auto !important;
}

/* Force all links inside your page wrappers to look clean and professional */
.pocket-page-wrapper a,
.memory-page-wrapper a,
.poliuretan-page-wrapper a,
.contact-page-wrapper a,
.product-page-wrapper a {
    color: rgb(36, 74, 156);
    text-decoration: underline;
}

.pocket-page-wrapper a:hover,
.memory-page-wrapper a:hover,
.poliuretan-page-wrapper a:hover,
.contact-page-wrapper a:hover,
.product-page-wrapper a:hover {
    color: #1d3875;
}