
/* Form Container */
.contact-form {
    float: right;
    width: 30%;
    margin-left: 40px;
    margin-bottom: 20px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    overflow: hidden; /* Keeps header corners rounded */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header & Body Backgrounds */
.form-hheader {
    background-color: #5a6d26; /* Magnolia Slate Green */
    color: #ffffff !important;
    padding: 15px 20px;
}

.form-hheader h2 {
    margin: 0 !important;
    font-size: 1.4rem !important;
    font-family: 'Georgia', serif !Important;
	color: #ffffff !important;
}

.form-body {
    background-color: #f4f4f4; /* Light Grey/Off-white background */
    padding: 20px;
	
}

/* Typography & Labels */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.required {
    font-size: 0.75rem;
    color: #d93025; /* Red required text */
    font-weight: normal;
}

/* Inputs & Selects */
.contact-form input, 
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    height: 125px !important;
}

/* Error States (Server Side) */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border: 2px solid #d93025 !important;
    background-color: #fff8f8;
}

.hherror-hhmsg {
    display: block;
    color: #d93025;
    font-size: 0.8rem;
    margin-top: 5px;
    font-style: italic;
}

/* Submit Button */
.contact-form button {
    background-color: #5a6d26;
    color: white;
    padding: 12px;
    border: none;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact-form button:hover {
    opacity: 0.9;
}

/* Responsive Rules (< 900px) */
@media (max-width: 900px) {
    .contact-form {   
        width: 40% !important;   
    }


}
/* Responsive Rules (< 750px) */
@media (max-width: 750px) {
    .contact-form {   
        width: 50% !important;    
    }
}


/* Responsive Rules (< 600px) */
@media (max-width: 600px) {
    .contact-form {
        float: none;
        width: 90% !important; /* Force 90% width */
        max-width: 400px;      /* Restrict growth */
        margin: 0 auto 30px auto; /* Center the div */
    }

    .row {
        flex-direction: column;
        gap: 10px;
    }
}