.contact-section {
    padding: 50px 0;
    background-color: #f9f9f9; /* Light background for contrast */
}

.contact-container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
}

.contact-text {
    flex: 1 1 40%; /* Take up 40% of space, grow and shrink */
    padding-right: 30px;
}

.contact-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.contact-text p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
}

.contact-form {
    flex: 1 1 50%; /* Take up 50% of space */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.contact-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--secondary-color);
}

.form-message {
    margin-top: 20px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack text and form */
    }

    .contact-text,
    .contact-form {
        flex: 1 1 100%;
        padding-right: 0;
    }
}