 :root {
        --a-primary-button-color: #007bff; /* Define var if not already; adjust as needed */
        --a-text-color: #333; /* Define var if not already; adjust as needed */
    }

    .contact-form-block { 
        font-family: Arial, sans-serif; 
        max-width: 600px; 
        margin: 0; 
        padding: 0px; 
    }

    .contact-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .search_f_wrap {
        display: inline-block;
        position: relative;
        margin: 3px 0 0 0;
        width: 100%;
        grid-column: span 1; /* Default for desktop */
    }

    .search_f_wrap:last-child { /* For textarea, full width */
        grid-column: span 2;
    }

    .gpr-wrap {
        display: flex;
        align-items: center;
        position: relative;
        margin: 10px 0;
        grid-column: span 2;
    }

    .gpr-label {
        display: flex;
        align-items: center;
        font-size: 14px;
        cursor: pointer;
    }

    .gpr-label input[type="checkbox"] {
        margin-right: 8px;
        width: auto;
        border: 1px solid var(--a-grey2);
    }

    label.search_f {
        background: white;
        color: var(--a-grey4);
        padding: 0 2px;
        left: 7px;
        margin: 0 0 -6px 0;
        font-size: var(--a-font-size-normal);
        line-height: var(--a-font-size-normal);
        top: -7px;
        position: absolute;
        z-index: 1;
    }

    input.search_f, select.search_f, textarea.search_f {
        border: 1px solid var(--a-grey2);
        color: var(--a-text-color);
        padding: 6px 16px 3px 16px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        z-index: 0;
    }

    textarea.search_f {
        padding: 12px 16px; /* Extra padding for textarea */
        resize: vertical;
    }

    button {
        padding: 10px 20px; 
        background-color: #007bff; 
        color: white; 
        border: none; 
        border-radius: 4px; 
        cursor: pointer;
        grid-column: span 2; /* Full width for submit button */
        justify-self: start;
    }

    button:hover { 
        background-color: #0056b3; 
    }

    #formMessage { 
        margin-top: 10px; 
    }

    .error { 
        color: red; 
        background: #ffe6e6; 
        border: 1px solid red; 
        border-radius: 4px; 
    }

    .success { 
        color: green; 
        background: #e6ffe6; 
        border: 1px solid green; 
        border-radius: 4px;
        padding: 20px;
    }

    #contactForm select{
      padding-left: 30px;
    }

    /* Mobile responsive: 1fr for mobile */
    @media (max-width: 768px) {
        .contact-form-grid {
            grid-template-columns: 1fr;
        }

        .search_f_wrap, .search_f_wrap:last-child, button {
            grid-column: span 1;
        }

        .gpr-wrap {
            grid-column: span 1;
        }
    }