/* General Styles for Contact Section */

.contact-section-wrapper {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px; /* Space between form and info */
}

.contact-form-container {
    flex: 1; /* Takes up available space */
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left; /* Form elements look better left-aligned */
}

.contact-form-container h3 {
    text-align: left; /* Override general h3 centering */
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-form-container p {
    margin-bottom: 30px;
    color: #ccc;
    font-size: 1.1em; /* Slightly larger paragraph text */
}

/* Primary form fields, button, file label, and file count */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea,
.contact-form .btn,
.contact-form .file-upload-label,
.contact-form #fileCount {
    display: block; /* Ensures each element is on its own line */
    width: 100%;
    padding: 14px; /* Slightly more padding */
    margin-bottom: 20px;
    border: 1px solid #555; /* Slightly softer border color */
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border-radius: 5px; /* Slightly rounder corners */
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Specific styling for the file upload label */
.contact-form .file-upload-label {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 12px 25px; /* Adjusted padding for label appearance */
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
    margin-bottom: 10px; /* Space between label and file count */
}

.contact-form .file-upload-label:hover {
    background-color: #C8FF66;
}

/* Hide the actual file input element visually */
.contact-form input[type="file"] {
    display: none; /* Hide the actual file input */
}

/* Ensure the file upload container and its direct children are block elements */
.contact-form .file-upload-container {
    display: block; /* Ensure the container itself is a block element */
    margin-bottom: 20px;
}

/* The label and span inside are already covered by the main selector group above for display: block */

.contact-info-container {
    flex-basis: 350px; /* Fixed width for info */
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.contact-info-container h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: left; /* Override general h3 centering */
}

.contact-info-block {
    margin-bottom: 30px;
}

.contact-info-block p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 1.05em;
}

.contact-info-block a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-info-block a:hover {
    color: #C8FF66;
}

/* Mobile adjustments for contact section */
@media (max-width: 768px) {
    .contact-section-wrapper {
        flex-direction: column; /* Stack form and info vertically */
        gap: 30px;
    }

    .contact-form-container,
    .contact-info-container {
        width: 100%;
        flex-basis: auto; /* Reset flex-basis */
        padding: 30px 20px; /* Slightly reduced padding */
    }

    .contact-form-container h3,
    .contact-info-container h4 {
        text-align: center; /* Center headings on mobile */
    }
    
    .contact-form .btn {
        font-size: 1em; /* Adjust button size for mobile */
    }
}

/* Add this for the main section padding on contact page if .section-padding isn't sufficient */
#contact {
    padding-top: 80px;
    padding-bottom: 80px;
}
