/* General Body and Layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc; /* Light background */
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #FF6433; /* Primary blue */
    color: #ffffff;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #FF6433; /* Primary blue for headings */
    margin-bottom: 15px;
}

main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

/* Contact Info Section Layout */
.contact-info-section {
    display: flex;
    flex-wrap: wrap; /* Allows sections to wrap on smaller screens */
    gap: 40px; /* Space between the two main columns */
    margin-bottom: 40px;
    justify-content: center; /* Center items horizontally */
    align-items: flex-start; /* Align content to the top */
}

.company-overview,
.contact-form-container {
    flex: 1; /* Allows both sections to grow and shrink */
    min-width: 320px; /* Minimum width before wrapping */
}

.company-photo {
    max-width: 100%; /* Ensure image fits container */
    height: auto;
    display: block;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.company-overview h2 {
    text-align: center;
    margin-top: 0;
}

.company-overview p {
    margin-bottom: 10px;
    text-align: center; /* Center all text in overview */
}

.company-overview p strong {
    color: #007bff; /* Brighter blue for contact details */
}

/* Contact Form Styling */
.contact-form-container h3 {
    text-align: center;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c9d6de; /* Light grey border */
    border-radius: 6px;
    box-sizing: border-box; /* Includes padding in element's total width */
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #007bff; /* Highlight on focus */
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing by user */
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff; /* Bright blue for button */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

button[type="submit"]:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
}

/* Social Media Section */
.social-media-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee; /* Separator line */
}

.social-media-section h3 {
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px; /* Space between icons */
    flex-wrap: wrap; /* Allow icons to wrap on small screens */
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px; /* Center text vertically */
    background-color: #007bff; /* Default blue background */
    color: white;
    border-radius: 50%; /* Make them circular */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em; /* Adjust font size if text is too big */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center text horizontally */
    overflow: hidden; /* Hide overflow if text is too long */
    white-space: nowrap; /* Prevent text from wrapping inside the circle */
    text-overflow: ellipsis; /* Add ellipsis if text overflows */
}

/* Specific colors for social icons */
.social-icon.facebook { background-color: #3b5998; }
.social-icon.twitter { background-color: #1da1f2; }
.social-icon.linkedin { background-color: #0077b5; }
.social-icon.instagram { background-color: #e4405f; }

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 25px;
    background-color: #FF6433; /* Dark footer */
    color: #ffffff;
    margin-top: 40px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-info-section {
        flex-direction: column; /* Stack columns on smaller screens */
        align-items: center; /* Center items when stacked */
    }

    .company-overview,
    .contact-form-container {
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Take full width */
    }

    main {
        margin: 20px;
        padding: 20px;
    }

    .company-overview p {
        text-align: left; /* Allow text to wrap naturally on smaller screens */
        padding: 0 15px; /* Add some padding */
    }
    .company-photo {
        max-width: 80%; /* Adjust photo size for smaller screens */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2, h3 {
        font-size: 1.5em;
    }
    .social-icon {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 0.8em;
    }
    button[type="submit"] {
        padding: 12px;
        font-size: 1em;
    }
}