.contact-form-widget {
max-width: 800px;
margin: 20px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: #f9f9f9;
font-family: Arial, sans-serif;
}

.contact-form-widget h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.contact-form-widget label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9em;
    text-align: left;
}

.contact-form-widget input,
.contact-form-widget textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.contact-form-widget textarea {
    height: 100px;
    resize: vertical;
}

.contact-form-widget {
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.contact-form-widget .checkbox-container input {
    margin-right: 8px;
    vertical-align: middle;
    /* Ensure the checkbox stays in line with the label text */
    margin-top: 0;
    /* Ensure no unnecessary top margin is added */
}

.checkbox-container label {
    margin: 0;
    /* Remove any default margins on the label */
    display: flex;
    align-items: center;
    /* Align the children (like the star and text) vertically in the center */
    vertical-align: middle;
    /* Ensure the checkbox stays in line with the label text */
    gap: 3px;
    /* Add spacing between the star and text */
}

.checkbox-container label span:first-child {
    font-size: 1.7em;
    font-weight: bold;
    color: #d9534f;
    vertical-align: middle;
    /* Ensure the checkbox stays in line with the label text */
    line-height: 1;
    /* Ensures consistent line-height */
    position: relative;
    /* Allows fine-tuning of position */
    top: 0.2em;
    /* Adjusts the vertical alignment */
}

.lead-form-container input[type="radio"] {
    accent-color: #063088 !important;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.radio-group label {
    /*  flex: 1 1 calc(50% - 0.75rem); */
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 500;
    margin-right: 40px;
}

.radio-group input[type="radio"] {
    margin: 0;
}

input[type="radio"] {
    accent-color: #063088 !important;
}

.success-message {
    text-align: center;
    padding: 30px;
    background-color: #f0f8ff;
    border: 2px solid #063088;
    border-radius: 12px;
}

.success-message h2 {
    color: #063088;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .radio-group label {
        flex: 1 1 100%;
    }
}

.contact-form-widget .disclaimer {
    font-size: 0.75em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
    margin-top: 0px;
}

.contact-form-widget button {
    display: block;
    width: 40%;
    margin: 0 auto;
    padding: 10px;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    background-color: #063088;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.contact-form-widget button:hover {
    background-color: #0056b3;
}

.contact-form-widget button:disabled {
    opacity: 0.3;
}

.captcha-container {
    margin-top: 5px;
    text-align: center;
}
/* End Contact Form Widget Styles */

/* NEW Contact Form Widget Style */
/* Form Container */
.lead-form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

/* Make the anchor link take the header into account */
h2[id="FAQ"] {
    scroll-margin-top: 125px;
}

/* Form Row */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

/* Labels */
.lead-form-container label {
    display: block;
    font-weight: bold;
    font-size: 0.9em;
    color: #063088;
    margin-bottom: 5px;
    text-align: left;
}

/* Required Field Indicator */
.lead-form-container label.required::after {
    content: " *";
    color: red;
}

/* Inputs & Textarea */
.lead-form-container input,
.lead-form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    color: #063088;
}

input::placeholder,
textarea::placeholder {
    color: #063088;
    opacity: 0.7;
}

.lead-form-container textarea {
    height: 80px;
    resize: vertical;
}

/* Submit Button */
.lead-form-container button {
    display: block;
    width: 50%;
    margin: 0 auto;
    padding: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fa9f15;
    background-color: #063088;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.lead-form-container button:hover {
    background-color: #05276d;
}

/* Consent Text */
.consent-text {
    font-size: 10px;
    font-family: Raleway, sans-serif;
    color: #063088;
    font-weight: bold;
    text-align: center;
    width: 70%;
    margin-top: 10px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
}

/* Google Places Autocomplete */
#address-autocomplete-host {
    width: 100%;
    min-height: 42px;
    border-radius: 4px;
    margin: 0;
}

#address-autocomplete-host gmp-place-autocomplete,
#address-autocomplete-host .gmp-place-autocomplete {
    display: block;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    color: #063088;
}

.form-group {
    position: relative;
}

.address-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 260px;
    overflow-y: auto;
}

.address-autocomplete-item {
    padding: 10px;
    font-size: 0.9em;
    color: #063088;
    cursor: pointer;
}

.address-autocomplete-item:hover {
    background: #f3f6fb;
}