body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}
.container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 840px; /* Increased to accommodate two columns */
    width: 100%;
    text-align: center;
}
.container img {
    max-width: 40%;
    height: auto;
    width: 100%;
}
h1 {
    color: #333;
}
form {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    gap: 15px;
}
.form-group {
    flex: 1 1 45%; /* Take up 45% width, allowing for space */
    display: flex;
    flex-direction: column;
    text-align: left;
}
.four-column-row{
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    gap: 15px;
}
.four-column-form .form-group {
    flex: 1 1 22%; /* Take up 45% width, allowing for space */
    display: flex;
    flex-direction: column;
    text-align: left;
}
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}
.form-group input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form-group input:focus {
    border-color: #84A6BD;
}
.error {
    color: red;
    font-size: 0.9em;
    padding: 10px 0;
}
.btn-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.btn-group input {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.btn-group input[type="submit"] {
    background-color: #84A6BD;
    color: white;
}
.btn-group input[type="reset"] {
    background-color: #ccc;
}
.recaptcha-row {
    width: 100%;
    text-align: left;
}
.form_title{
    width: 100%;
}
.btn-group a {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
}
.form-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.form-grid .form_title{
    grid-column: span 4 / span 4;
}
.form-grid .form-group{
    flex: unset !important;
    width: 100%;
}
.form-grid .form-group input{
    width: 100%;
    max-width: fit-content;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-group {
        flex: 1 1 100%; /* Take up full width on mobile */
    }
    .btn-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
    .btn-group input {
        width: 100%; /* Make buttons full width on mobile */
        margin-bottom: 10px; /* Add space between buttons */
    }
}