.map{
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    padding: 20px;
}

/* Contact Section */
#contact {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure it takes at least full viewport height */
}

.contact-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px; /* Space between info and form */
    max-width: 1200px;
    width: 100%;
    background-color: black; /* White background for the container */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft shadow */
    padding: 40px;
    border: 1px solid #333;
}

/* Contact Information Section */
.contact-info {
    flex: 1; /* Allows it to grow and shrink */
    min-width: 300px; /* Minimum width before wrapping */
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between info items */
    padding-right: 20px; /* Space from the form */
}

.info-item {
    display: flex;
    align-items: flex-start; /* Align icon and text to the top */
    gap: 20px;
}

.info-item i {
    font-size: 28px;
    color: #f2a65a; /* Light purple/blue icon color from image */
    width: 40px; /* Fixed width for icons for alignment */
    text-align: center;
    padding-top: 5px; /* Adjust icon vertical alignment */
}

.info-text h3 {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.info-text p {
    font-size: 15px;
    color: white;
    line-height: 1.4;
}

/* Contact Form Section */
.contact-form {
    flex: 2; /* Allows it to take more space than contact-info */
    min-width: 300px; /* Minimum width before wrapping */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between form rows */
}

.contact-form .form-row {
    display: flex;
    flex-direction: column; /* Stack inputs vertically by default */
    gap: 20px; /* Space between inputs in a row */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #f2a65a; /* Light border */
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #fdfdfd; /* Slightly off-white background */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f2a65a; /* Highlight border on focus */
    box-shadow: 0 0 0 3px rgba(160, 168, 224, 0.2); /* Soft focus ring */
    outline: none;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px; /* Minimum height for textarea */
}

.contact-form button[type="submit"] {
    padding: 15px 30px;
    background-color: #f2a65a; /* Button color from image */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end; /* Align button to the right */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(160, 168, 224, 0.3);
}

.contact-form button[type="submit"]:hover {
   background-color: #ff9747;
    transform: scale(1.05);
    box-shadow: 0 0 10px #f2a65a, 0 0 20px #f2a65a, 0 0 30px #f2a65a;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    /* On larger screens, inputs in a row should be side-by-side */
    .contact-form .form-row:not(:last-child) { /* Apply to rows with multiple inputs */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-fit columns */
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .contact-container {
        flex-direction: column; /* Stack info and form vertically */
        padding: 30px;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Take full width */
        padding-right: 0; /* Remove extra padding */
    }

    .contact-form button[type="submit"] {
        align-self: center; /* Center button on smaller screens */
        width: 100%; /* Make button full width */
        max-width: 300px; /* Limit button width */
    }
}

@media (max-width: 576px) {
    .contact-container {
        padding: 20px;
    }

    .info-item {
        flex-direction: column; /* Stack icon and text vertically */
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .info-item i {
        margin-bottom: 5px;
        padding-top: 0;
    }

    .info-text h3 {
        font-size: 17px;
    }

    .info-text p {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 15px;
    }

    .contact-form button[type="submit"] {
        padding: 12px 20px;
        font-size: 16px;
    }
}
