
        :root {
            --primary-blue: #171a51;
            --primary-red: #ff224a;
            --text-dark: #333333;
            --bg-light: #f8f9fa;
            --bg-green: #3ae3a0;
            --gray: #00000026;
            --border-color: #e2e8f0;
            --card-shadow: rgba(0,0,0,0.1);
            --card-hover-shadow: rgba(0,0,0,0.15);
            --transition: all 0.3s ease;
            --search-width: 300px;
        }

        * { box-sizing: border-box; }

        body {
            font-family: Helvetica Neue, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
            margin: 0;
            padding: 0;
        }

.hero-section {
    background-color: white;
    padding: 60px 5%; /* Reduced padding to give columns more room */
    display: flex;
    flex-direction: row; /* Forces side-by-side */
    flex-wrap: nowrap; /* Prevents the form from dropping down */
    gap: 40px;
    align-items: flex-start; /* Aligns the tops of both columns */
    justify-content: center;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.05);
}
        .hero-text { flex: 1; min-width: 300px; }
        .hero-text h1 { color: var(--primary-blue); font-size: 2.75rem; font-weight: bold; margin-bottom: 20px; line-height: 1.2; }
        .hero-text p { color: #555; font-size: 1.1rem; line-height: 1.6; margin-bottom: 25px; }

        /* Contact Form */

        html body div.hero-form-container form textarea {

            min-height: 80px !important;
            height: 80px;
            resize: vertical !important;
            display: block !important;
            overflow: auto !important;
        }

.hero-content {
    flex: 1; /* Takes up all remaining space */
    min-width: 0; /* Important for flex child behavior */
}

.hero-form-container {
    flex: 0 0 450px; /* Form stays exactly 450px wide */
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

        body .hero-form-container form input,
        body .hero-form-container form select,
        body .hero-form-container form textarea {
            width: 100% !important;
            box-sizing: border-box !important;
            padding: 10px !important;
            margin: 2px 0 !important;
            border: 1px solid #ccc !important;
            border-radius: 4px !important;
        }

        body .hero-form-container form textarea {
            min-height: 80px;
            width: 100% !important;
            resize: vertical !important;
            overflow: auto;
        }

        body .hero-form-container form .submit-btn {
            padding: 10px !important;
            background-color: var(--primary-red) !important;
            color: white !important;
            border: none !important;
            border-radius: 35px !important;
            cursor: pointer !important;
        }

        body .hero-form-container form .submit-btn:hover {
            background-color: #0056b3 !important;
        }

        .form-heading-text h2 { color: var(--primary-blue) !important; font-size: 24px !important; text-align: center; margin-top: 0; margin-bottom:20px; }

.partner-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.partner-left {
    flex: 1;
}

#partner-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-green);
    display: inline-block;
    padding-bottom: 5px;
}

#partner-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568; /* Slightly softer than pure black */
    margin-bottom: 25px;
}

/* Wallit Sales Contact Box */
.sales-contact-box {
    background-color: #f0fdf4; /* Very light green tint */
    border-left: 4px solid var(--bg-green);
    padding: 15px 20px;
    border-radius: 4px;
    display: inline-block;
}

.sales-contact-box p {
    margin: 0;
    font-weight: 600;
    color: var(--primary-blue);
}

.sales-contact-box a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

.sales-contact-box a:hover {
    text-decoration: underline;
}

/* Partner Header Spacing (Name + Category) */
#partner-display-name {
    margin-top: 20px !important; /* Space above name */
}

#partner-subtitle {
    margin-bottom: 30px !important; /* Space below category */
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Ensure the partner image looks crisp */
#partner-image {
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
        .contact-form {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Two equal-width columns */
            column-gap: 15px;
            row-gap: 15px;
            align-items: start;
        }

        .contact-form input,
        .contact-form select,
        .contact-form textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 0.95rem;
            background-color: #fafafa;
        }

        .contact-form textarea,
        .submit-container {
            grid-column: span 2; /* Spans the textarea across both columns */
        }

        /* Ensure Company Name and State are on the same row */
        .contact-form input[type="text"]:nth-child(5) {
            grid-column: span 1; /* Span 1 column */
        }

        .contact-form select:nth-child(6) {
            grid-column: span 1; /* Span 1 column */
        }

        .submit-btn {
            background: var(--primary-red); color: white; padding: 14px 30px;
            font-weight: bold; font-size: 16px; width: auto; min-width: 180px;
            margin: 10px auto 0; display: block; border: none; border-radius: 30px;
            cursor: pointer; transition: var(--transition);
        }
        .submit-btn:hover { background: var(--primary-blue); transform: scale(1.05); }

        .image-section {
            width: 100%;
            margin-top: -160px; /* Push the image up to position it below the hero section */
            transform: translateY(-70px); /* Move the image down slightly to stick out below */
            position: relative;
            z-index: -1; /* Send it behind the hero section */
        }

        .image-section img {
            width: 120vw; /* Make the image 120% of the viewport width to extend off the edges */
            max-width: none; /* Remove the max-width restriction */
            height: auto;
            display: block;
            margin-left: -10vw; /* Pull the image 10% of the viewport width to the left */
            margin-right: -10vw; /* Pull the image 10% of the viewport width to the right */
        }

        .section-divider { height: 1px; margin: 60px 10%; }

        /* Toolbar */
        .toolbar { padding: 20px 10%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
        .toolbar-left { display: flex; align-items: center; gap: 20px; }
        .toolbar-left h2 { margin: 0; color: var(--primary-blue); font-size: 1.5rem; }

        .filter-toggle-btn {
            background: var(--primary-blue); color: white; padding: 10px 22px;
            border-radius: 35px; cursor: pointer; border: none;
            display: flex; align-items: center; gap: 10px; font-weight: 600;
            transition: var(--transition);
        }
        .filter-toggle-btn:hover { background: var(--bg-green); color: var(--primary-blue); }

        .filter-drawer { max-height: 0; overflow: hidden; transition: var(--transition); background: none; }
        .filter-drawer.open { max-height: 300px; padding-bottom: 40px; border-bottom: 1px solid var(--border-color); }
        .filter-content { padding: 20px 10%; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }

        .filter-item input[type="checkbox"] {
            -webkit-appearance: none; /* Remove default checkbox appearance in Webkit browsers */
            -moz-appearance: none; /* Remove default checkbox appearance in Firefox */
            appearance: none; /* Remove default checkbox appearance */

            width: 20px; /* Increase size of checkbox */
            height: 20px; /* Match the width */
            background-color: #ddd; /* Set background to light grey */
            border: 2px solid #ddd; /* Light grey border */
            border-radius: 4px; /* Optional: rounded corners */
            cursor: pointer; /* Change cursor to pointer */
            position: relative; /* Make it possible to position the checkmark */
            transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transitions */
        }

        /* Create the checkmark icon when checked */
        .filter-item input[type="checkbox"]:checked::before {
            content: '\2713'; /* Unicode for checkmark symbol */
            font-size: 16px; /* Make the checkmark size match the checkbox */
            color: white; /* Set checkmark color to white */
            position: absolute; /* Position it inside the checkbox */
            top: 50%; /* Vertically center it */
            left: 50%; /* Horizontally center it */
            transform: translate(-50%, -50%); /* Offset it to perfectly center */
        }

        /* Change background color when checked */
        .filter-item input[type="checkbox"]:checked {
            background-color: #171a51; /* Dark blue when checked */
            border-color: #171a51; /* Dark blue border when checked */
        }

        /* Focus styling */
        .filter-item input[type="checkbox"]:focus {
            outline: none; /* Remove outline on focus */
        }

        /* Label styling */
        .filter-item label {
            font-size: 1.1rem; /* Slightly bigger text */
            color: var(--text-dark); /* Use dark text color for the label */
            display: flex;
            align-items: center;
            gap: 10px; /* Space between checkbox and label */
        }

          .search-wrapper { position: relative; width: var(--search-width); }
        #partner-search {
            width: 100%; padding: 10px 35px 10px 15px; border: 1px solid var(--border-color);
            border-radius: 20px; outline: none;
        }
        .clear-search { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #999; display: none; }

        /* Product Grid & Taller Tiles */
        .content-wrap { padding: 0 10% 80px 10%; }
        .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

        .product-card {
            background: white; border-radius: 16px; padding: 40px 30px;
            border: 1px solid var(--border-color); box-shadow: 0 4px 12px var(--card-shadow);
            transition: var(--transition);
            display: flex; flex-direction: column; align-items: center; text-align: center;
            min-height: 500px; /* Ensures all tiles are tall and same shape */
        }
        .product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px var(--card-hover-shadow); }

        .card-logo { height: 60px; margin-bottom: 60px; display: flex; align-items: center; justify-content: center; }
        .card-logo img { max-height: 100%; }

        .card-divider { width: 350px; height: 1px; background: var(--gray); margin-bottom: 20px; }

        .card-title { color: var(--primary-blue); font-size: 30px; font-weight: bold; margin: 0 0 8px 0; }
        .card-category { font-size: 16px; color: var(--bg-green); font-weight: 500; line-height: 24px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 15px; }

        .card-description {
            font-size: 0.95rem; color: #666; line-height: 1.6; margin-bottom: 30px;
            flex-grow: 1; /* Pushes button to the bottom */
        }

        .card-btn {
            width: 100%; background: var(--primary-blue); color: white; padding: 14px;
            border-radius: 8px; font-weight: bold; text-decoration: none; transition: var(--transition);
        }
        .card-btn:hover { background-color: var(--bg-green); color: var(--primary-blue); }

        @media (max-width: 900px) {
            .hero-section { flex-direction: column; padding: 40px 5%; gap: 40px;}
            .toolbar { flex-direction: column; align-items: stretch; gap: 15px; padding: 20px 5%;}
            .toolbar-left {
                flex-direction: row; /* Keep title and button side-by-side on tablets */
                justify-content: space-between;
                width: 100%;
            }
            .search-wrapper { width: 100%; }
            .filter-content {
                    grid-template-columns: 1fr 1fr; /* Two columns for filters on mobile */
                    padding: 20px 5%;
                }
        }

        @media (max-width: 480px) {
    .toolbar-left {
        flex-direction: column; /* Stack title and button on small phones */
        align-items: flex-start;
        gap: 10px;
    }

    .filter-toggle-btn {
        width: 100%; /* Make button full width on small phones */
        justify-content: center;
    }

    .filter-content {
        grid-template-columns: 1fr; /* Single column for filters on small phones */
    }
}
@media (max-width: 992px) {
    .hero-section {
        flex-wrap: wrap;
        padding: 40px 20px;
    }

    .hero-form-container {
        flex: 1 1 100%; /* Form takes full width on mobile */
        max-width: 100%;
    }
}
        @media (max-width: 768px) {
        .image-section {
            margin-top: -120px; /* Adjust position for mobile devices */
            transform: translateY(-40px); /* Move image up slightly for mobile */
        }

        .image-section img {
            width: 100vw; /* Make the image 100% of the viewport width on mobile */
            margin-left: 0; /* No overflow on smaller screens */
            margin-right: 0; /* No overflow on smaller screens */
        }
}

@media (max-width: 600px) {
    .contact-form {
        grid-template-columns: 1fr; /* Force form to one column */
    }
    .contact-form textarea,
    .submit-container,
    .contact-form input[type="text"]:nth-child(5),
    .contact-form select:nth-child(6) {
        grid-column: span 1; /* Reset spans for single column */
    }
}

    /* Reviewed adapter for the existing typed form and shared frame. Only loaded on partner pages. */
.custom-page-partner { display:grid;grid-template-columns:minmax(0,1fr) 450px;gap:40px;align-items:start;padding:152px 5% 0;background:#fff; }
.widget-partnerProfile, .hero-content { min-width:0; }
.widget-partnerForm .hero-form-container { width:100%; }
.widget-partnerGraphic { grid-column:1/-1; margin-inline:-5.56%; overflow:hidden; }
.widget-partnerGraphic .image-section { margin-top:-160px; transform:none; position:relative; z-index:0; pointer-events:none; }
.widget-partnerProfile,.widget-partnerForm {position:relative;z-index:1;}
.page-partner .contact-form {max-width:none;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:18px 15px;}
.page-partner .contact-form label {margin:0;display:block;min-width:0;}
.page-partner .contact-form .field-label {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}
.page-partner .contact-form input,.page-partner .contact-form select,.page-partner .contact-form textarea {margin:0;width:100%;font:14px/1.5 'Helvetica Neue',sans-serif;box-shadow:none;background:#f9f9f9;padding:10px;border:1px solid #ccc;border-radius:4px;height:45px;}
.page-partner .contact-form label:has(textarea),.page-partner .contact-form .form-status {grid-column:1/-1;}
.page-partner .contact-form textarea {height:80px;}
.page-partner .contact-form button {grid-column:1/-1;justify-self:center;background:#ff224a;color:white;border-radius:30px;padding:12px 40px;font-size:14px;line-height:20px;margin:10px 0 0;min-height:44px;}
.page-partner .form-status {font-size:14px;}
.page-partner .form-status:empty {display:none;}
.page-partner #partner-logo[hidden] {display:none;}
@media(max-width:992px){.custom-page-partner{grid-template-columns:1fr;padding-top:140px;}.widget-partnerForm{width:100%;}.widget-partnerGraphic .image-section{margin-top:0;}}
@media(max-width:600px){.page-partner .contact-form{grid-template-columns:1fr;}.custom-page-partner{padding-top:110px;}.page-partner .hero-content{padding:0;}.page-partner .hero-form-container{padding:24px;}}

.page-partner .hero-content h1,.page-partner .hero-content h3,.page-partner .form-heading-text h2 {font-weight:400;}
.page-partner .hero-content h3,.page-partner .hero-content p {margin-top:0;}
