/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */ /* Removed height to allow content to dictate height */
    background: #030a15;
    min-height: 100vh; /* Ensure body takes full viewport height for centering */
    padding: 0; /* Add some padding to body to prevent content from touching edges */
}

.contact-container {
    display: flex;
    background: white;
    width: 680px; /* Base width for larger screens */
    height: 530px; /* Base height for larger screens */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 3rem 0px;
    flex-wrap: nowrap; /* Prevent wrapping by default */
}

.contact-info {
    background: #4d44f2;
    color: white;
    padding: 30px;
    width: 40%; /* Base width for larger screens */
    display: flex; /* Use flex for internal alignment */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: flex-start; /* Align items to start */
}

.contact-info h2 {
    margin-bottom: 20px;
    font-size: 20px;
    text-align: left;
}

.contact-info p,
.contact-info a {
    font-size: 14px;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    text-align: left;
}

.contact-form {
    padding: 30px;
    width: 65%; /* Base width for larger screens */
}

.contact-form h2 {
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center; /* Center form heading */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background: #4d44f2;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1em;
}

.contact-form button:hover {
    background: #231487;
}

/* --- Media Queries --- */

/* For screens smaller than 768px (e.g., tablets in portrait, large phones) */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack items vertically */
        width: 90%; /* Make container take up more width */
        height: auto; /* Auto height to accommodate stacked content */
        margin: 2rem 0px; /* Adjust margin */
    }

    .contact-info {
        width: 100%; /* Contact info takes full width */
        padding: 20px; /* Slightly reduced padding */
        text-align: center; /* Center text for stacked layout */
        align-items: center; /* Center items for stacked layout */
    }

    .contact-info h2 {
        font-size: 18px; /* Smaller font size for headings */
        margin-bottom: 15px;
    }

    .contact-info p,
    .contact-info a {
        font-size: 13px; /* Smaller font size for text */
        margin-bottom: 8px;
        text-align: center; /* Center text for stacked layout */
    }

    .contact-form {
        width: 100%; /* Contact form takes full width */
        padding: 20px; /* Slightly reduced padding */
    }

    .contact-form h2 {
        font-size: 18px; /* Smaller font size for form heading */
        margin-bottom: 8px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 8px; /* Slightly reduced padding for inputs */
        font-size: 13px; /* Smaller font for inputs */
        margin: 8px 0; /* Adjusted margin */
    }

    .contact-form button {
        padding: 8px; /* Slightly reduced padding for button */
        font-size: 14px; /* Smaller font for button */
        margin-top: 0.8em; /* Adjusted margin */
    }
}

/* For screens smaller than 480px (e.g., small phones) */
@media (max-width: 480px) {
    body {
        padding: 10px; /* Reduce body padding for very small screens */
    }

    .contact-container {
        width: 95%; /* Make container slightly wider */
        margin: 1rem 0; /* Further reduce margin */
    }

    .contact-info {
        padding: 15px; /* Further reduce padding */
    }

    .contact-info h2 {
        font-size: 16px; /* Smaller heading */
    }

    .contact-info p,
    .contact-info a {
        font-size: 12px; /* Smallest font size for text */
    }

    .contact-form {
        padding: 15px; /* Further reduce padding */
    }

    .contact-form h2 {
        font-size: 16px; /* Smaller form heading */
    }

    .contact-form input,
    .contact-form textarea {
        padding: 6px; /* Minimal padding for inputs */
        font-size: 12px; /* Smallest font for inputs */
        margin: 6px 0; /* Adjusted margin */
    }

    .contact-form button {
        font-size: 13px; /* Smallest font for button */
        padding: 7px;
    }
}


#message {
  padding: 0px 5rem;
  padding-top: 3rem;
  line-height: 2em;
}

#message a{
  text-decoration: underline;
}