/* ========================== */
/* Styles for Contact Page    */
/* ========================== */

.contact-content
{
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 2rem; /* Space between details and form */
    margin-top: 2rem;
}

.contact-details,
.contact-form-container
{
    flex: 1; /* Allow both sections to share space */
    min-width: 300px; /* Minimum width before wrapping */
}

.contact-details h2,
.contact-form-container h2
{
    font-size: 1.8em; /* Slightly smaller than page title h1 */
    color: var(--textColor);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--linkColor);
    padding-bottom: 0.3rem;
}

.contact-details ul {
    list-style: none;
    padding-left: 0;
}

.contact-details ul li {
    margin-bottom: 0.75rem;
    font-size: 1em;
    line-height: 1.6;
}

.contact-details ul li strong {
    color: var(--textColor);
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--textColor);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit; /* Use body font */
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--textColor);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--linkColor);
    box-shadow: 0 0 5px rgba(var(--linkColorRGB, 105, 81, 0), 0.5); /* Fallback if --linkColorRGB not set */
}

.submit-button {
    display: inline-block;
    background-color: var(--linkColor);
    color: var(--backgroundColor); /* Using background color for text for contrast */
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: var(--link-hover);
}

/* Style for the active navigation link */
nav ul li a.active {
    font-weight: bold;
    color: var(--link-hover);
    border-bottom: 1px solid var(--link-hover);
}

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

    .contact-details,
    .contact-form-container {
        min-width: auto; /* Reset min-width */
        width: 100%;
    }
}
