/* /home/mgijimi/my_flask_app/static/assets/css/contact.css */

/* Note: This file relies on variables defined in main.css for general styles */

/* Main Contact Section Layout */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-gray); /* Light background for the whole section */
    border-bottom: 5px solid var(--primary-red); /* Consistent border-bottom for clear separation with footer */
}

.contact-section .container {
    display: flex;
    gap: 40px; /* Space between the form and contact info */
    align-items: flex-start; /* Align items to the top (form and info block) */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center the main blocks when they wrap */
}

/* Form Container - Uses global .form-container from main.css */
.contact-section .form-container {
    flex: 2; /* Form takes more space */
    min-width: 450px; /* Ensure a minimum width for the form */
    margin: 0; /* Override margin from main.css to fit flex layout */
    padding: 40px; /* Consistent padding */
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header .form-title {
    font-size: 2.5rem; /* Larger title for contact form */
    margin-bottom: 10px;
    color: var(--primary-black);
}

.form-header .form-subtitle {
    font-size: 1.1em;
    color: var(--text-color);
    opacity: 0.9;
}

/* Character Counter for Elaboration field */
.character-counter {
    text-align: right;
    font-size: 0.85em;
    color: var(--text-color);
    margin-top: 5px;
    opacity: 0.7;
}
.character-counter #char-count {
    font-weight: 600;
    color: var(--primary-red);
}

/* Contact Details Sidebar Section - Now light, matching form aesthetic */
.contact-details-sidebar { /* RENAMED CLASS HERE */
    flex: 1; /* Contact info takes less space */
    min-width: 300px; /* Minimum width for contact info block */
    background-color: var(--primary-white); /* CHANGED: White background to match form */
    color: var(--text-color); /* CHANGED: Default text color for light background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);

    display: flex; /* Use flexbox for internal layout */
    flex-direction: column; /* Stack items vertically */
    gap: 20px; /* Space between info cards */
    align-items: center; /* Center items horizontally within this block */

    text-align: center; /* Center text within the info block */
}

.contact-details-sidebar .info-header {
    margin-bottom: 30px;
}

.contact-details-sidebar .info-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-black); /* CHANGED: Black title for contrast */
}

.contact-details-sidebar .info-subtitle {
    font-size: 1em;
    opacity: 0.9;
    color: var(--text-color); /* CHANGED: Default text color */
}

.contact-details-sidebar .info-card {
    background-color: var(--light-gray); /* CHANGED: Light gray for cards on white background */
    border-radius: 8px;
    padding: 25px;
    width: 100%; /* Full width within its parent */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-red); /* Added accent border for cards */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow for individual cards */
}

.contact-details-sidebar .info-card:hover {
    background-color: var(--medium-gray); /* Slightly darker gray on hover */
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* More pronounced shadow on hover */
}

.contact-details-sidebar .info-card i {
    font-size: 2.5em;
    color: var(--primary-red); /* CHANGED: Red icon color for consistency with brand */
    margin-bottom: 15px;
}

.contact-details-sidebar .info-card h3 {
    font-size: 1.4em;
    margin-bottom: 8px;
    color: var(--primary-black); /* CHANGED: Black heading */
    font-weight: 600;
}

.contact-details-sidebar .info-card p {
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 0; /* Remove default paragraph margin */
    color: var(--text-color); /* CHANGED: Default text color */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-section .container {
        flex-direction: column; /* Stack form and info vertically */
        align-items: center; /* Center items when stacked */
    }
    .contact-section .form-container {
        min-width: 0; /* ADDED: Allow form to shrink on mobile */
        width: 100%; /* Take full width when stacked */
        max-width: 700px; /* Limit max width for better readability on larger screens */
        margin: 0 auto 40px auto; /* Center with bottom margin */
    }
    .contact-details-sidebar {
        width: 100%; /* Take full width when stacked */
        max-width: 700px; /* Limit max width for better readability on larger screens */
        margin: 0 auto 40px auto; /* Center with bottom margin */
    }
    .contact-details-sidebar:last-child {
        margin-bottom: 0; /* No bottom margin for the last element */
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    .contact-section .form-container,
    .contact-details-sidebar {
        padding: 30px;
    }
    .form-header .form-title {
        font-size: 2rem;
    }
    .contact-details-sidebar .info-title {
        font-size: 1.8rem;
    }
    .contact-details-sidebar .info-card i {
        font-size: 2em;
    }
    .contact-details-sidebar .info-card h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }
    .contact-section .form-container,
    .contact-details-sidebar {
        padding: 20px;
    }
    .form-header .form-title {
        font-size: 1.8rem;
    }
    .contact-details-sidebar .info-title {
        font-size: 1.5rem;
    }
    .contact-details-sidebar .info-card i {
        font-size: 1.8em;
    }
}

