
.form-group {
    position: relative;
    margin-bottom: 20px;

}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea,
.captcha-group input {
    width: 100%;
    padding: 15px 10px !important;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px !important;
    outline: none;
    font-family: Gotham, sans-serif;
    font-weight: 500;
    line-height: 19px;
    text-align: left;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    top: -10px;
    font-size: 12px;
    color: #D11F3E;
    opacity: 1;
}

.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: #D11F3E;
    opacity: 1;
}

.location-contact-form {
    padding: 10px;
}

.general-contact-form button,
.location-contact-form button {
    width: 100%;
    max-width: 225px;
    padding: 10px;
    font-size: 18px;
    color: #FFF;
    background-color: var(--button-color, #D11F3E) !important;
    border: none !important;
    border-radius: 5px;
    cursor: pointer;
}

.general-contact-form button:hover,
.location-contact-form button:hover {
    background-color: #FFF !important;
    color: var(--button-color, #D11F3E) !important;
}

.general-contact-form input::placeholder,
.general-contact-form textarea::placeholder {
    color: black;
}

/* For older browser support (e.g., IE11) */
.general-contact-form input::-ms-input-placeholder,
.general-contact-form textarea::-ms-input-placeholder {
    color: black;
}

/* Optional: Additional browser compatibility */
.general-contact-form input::-webkit-input-placeholder,
.general-contact-form textarea::-webkit-input-placeholder {
    color: black;
}

.general-contact-form input::-moz-placeholder,
.general-contact-form textarea::-moz-placeholder {
    color: black;
}

.general-contact-form-container {
    width: 70%;
    margin: auto;
    padding-bottom: 30px;
}

.captcha-warning {
    color: white;
    font-family: Gotham, sans-serif;
    font-weight: 400;
    line-height: 16px;
    font-size: 12px;
}

.captcha-button-submit {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
    justify-content: space-between; /* Space items evenly when in a row */
    align-items: end; /* Align items vertically in the center */
    gap: 10px; /* Add space between items */
}

.captcha-button-submit .g-recaptcha {
    flex: 1 1 auto; /* Allow the CAPTCHA to grow and shrink as needed */
    min-width: 300px; /* Ensure CAPTCHA has enough space */
}

/* Center items vertically and horizontally when wrapping to a new line */
@media (max-width: 600px) {
    .captcha-button-submit {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .captcha-button-submit .g-recaptcha,
    .captcha-button-submit .contact-form-submit {
        width: 100%; /* Ensure items span the full width */
        text-align: center;
    }
}

.successful-response {
    width: 100%;
    background-color: white;
    border-radius: 10px;
    padding: 35px !important;
    text-align: center;
    color: green;
    font-family: Gotham, sans-serif;
    font-weight: 400;
    line-height: 20px;
    font-size: 18px;
}

.error-message-container {
    color: var(--accent-color, #D11F3E);
    font-family: Gotham, sans-serif;
    font-weight: 400;
    line-height: 19px;
    font-size: 16px;
}

.captcha-group {
    max-width: 300px;
}

.captcha-group label {
    color: white;
    font-family: Gotham, sans-serif;
    font-weight: 400;
    line-height: 19px;
    font-size: 16px;
}