body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure it takes full viewport height */
    margin: 0;
    background-color: #f4f4f4; /* Light grey background */
    color: #333; /* Dark grey text */
    text-align: center;
}

.container {
    max-width: 960px;
    padding: 40px 20px; /* More padding top/bottom for overall box */
    background-color: #fff; /* White background for the content box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-radius: 8px; /* Rounded corners */
    margin: 20px; /* Add some margin around the entire container on smaller screens */
}

.name {
    font-size: 3.5em; /* Larger font size for your name */
    margin-bottom: 5px;
    color: #0056b3; /* A professional blue */
    letter-spacing: 2px; /* Slightly spaced letters */
    text-transform: uppercase; /* Ensure all caps */
}

.title {
    font-size: 1.5em; /* Good size for the title */
    margin-top: 0;
    margin-bottom: 40px;
    color: #555; /* Slightly lighter grey than body text */
}

.icon-grid {
    display: flex;
    flex-wrap: wrap; /* Allows icons to wrap to the next line on smaller screens */
    justify-content: center;
    gap: 30px; /* Space between icons */
    margin-bottom: 40px; /* Space below the icon grid before contact info */
    /* Add transition for smooth hide/show */
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden; /* Hide overflow when collapsing */
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px; /* Fixed width for each icon block */
    height: 150px; /* Fixed height */
    padding: 15px;
    border: 1px solid #ddd; /* Light border */
    border-radius: 10px; /* Slightly rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
    cursor: pointer; /* Indicates it's clickable */
    text-decoration: none; /* In case we make it a link later */
    color: inherit; /* Inherit text color */
}

.icon-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.icon {
    font-size: 3.5em; /* Large icon size */
    color: #007bff; /* Bright blue for icons */
    margin-bottom: 10px;
}

.icon-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

/* Contact Info Styling */
.contact-info {
    margin-top: 40px; /* Space above contact info */
    padding-top: 30px; /* Padding inside the contact info section */
    border-top: 1px solid #eee; /* A subtle line to separate from icons */
    color: #555;
}

.contact-info h2 {
    font-size: 1.8em;
    color: #0056b3; /* Matching the name color */
    margin-bottom: 20px;
}

.contact-info p {
    margin: 8px 0;
    line-height: 1.5;
}

.contact-info a {
    color: #007bff; /* Matching the icon color */
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info i {
    margin-right: 10px;
    color: #007bff; /* Icon color in contact info */
}


/* In-Place Form Section Styling */
.inquiry-form-section {
    display: none; /* THIS IS THE KEY LINE - Ensures it's hidden by default */
    text-align: left; /* Align form elements to the left */
    padding: 20px 0;
    margin-bottom: 40px; /* Space below the form section */
    opacity: 0; /* For fade-in transition */
    max-height: 0; /* For collapse/expand transition */
    overflow: hidden; /* Hide content when collapsed */
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.inquiry-form-section.show {
    opacity: 1;
    max-height: 1000px; /* Large enough value to show content */
    display: block; /* Show as block when 'show' class is added by JS */
}

.inquiry-form-section h3 {
    text-align: center;
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 2em;
}

.inquiry-form-section p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1em;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"], /* Added for mobile input */
.form-group textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus, /* Added for mobile input */
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.back-button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px 0;
    margin-bottom: 20px;
    text-align: left;
    display: block; /* Make it a block element to control its margin/padding */
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Success/Error Message Styling */
.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    display: none; /* Hidden by default */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .name {
        font-size: 2.5em;
    }

    .title {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    .icon-item {
        width: 120px;
        height: 120px;
        font-size: 1em;
    }

    .icon {
        font-size: 3em;
    }

    .contact-info h2 {
        font-size: 1.5em;
    }

    .contact-info p {
        font-size: 0.9em;
    }

    .inquiry-form-section h3 {
        font-size: 1.5em;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea,
    .submit-button {
        font-size: 1em;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .icon-grid {
        gap: 20px;
    }
    .icon-item {
        width: 100px;
        height: 100px;
    }
    .icon {
        font-size: 2.5em;
    }
    .icon-label {
        font-size: 0.9em;
    }
    .contact-info h2 {
        font-size: 1.3em;
    }
    .contact-info p {
        font-size: 0.8em;
    }
}