/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

header {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    /* Added display flex to align items horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    display: flex; /* Enables flexbox layout */
    align-items: center; /* Centers items vertically */
    justify-content: center; /* Centers items horizontally */
}

.header-image {
    width: 100px; /* Adjust the width as needed */
    margin-right: 20px; /* Adds some space between the image and the text */
    border-radius: 10px; /* Adds slightly rounded corners to the image */
}

header h1 {
    margin: 0;
}

section {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
}

section h2 {
    color: #333;
}

footer {
    text-align: center;
    padding: 20px 0;
    background: #333;
    color: #fff;
}

footer p {
    margin: 5px 0; /* Adds a little space between lines of text */
}

footer a {
    color: #fff; /* Sets the link color to white */
    text-decoration: none; /* Optional: Removes the underline from links */
}

footer a:hover {
    color: #dddddd; /* Light grey color for hover effect */
    text-decoration: underline; /* Optional: Adds underline on hover */
}

.domain-sale {
    font-size: 0.8rem; /* Smaller font size for the domain sale notice */
    color: #bbb; /* Lighter color for less emphasis */
}

@media (min-width: 600px) {
    body {
        padding: 40px;
    }
    section {
        margin: 20px 0;
    }
}

/* Base styles for 'Contact Us' form */
#contactForm {
    display: flex;
    flex-direction: column; /* Stacks elements vertically by default */
    gap: 10px; /* Adds space between items */
}

#contactForm .form-group {
    display: flex;
    flex-direction: column; /* Stacks label and input vertically */
    gap: 5px; /* Adds space between label and input */
}

/* Responsive styles for smaller screens */
@media (max-width: 599px) {
    /* Order the elements */
    #contactForm .form-group:nth-child(1) { /* Name field */
        order: 1;
    }
    #contactForm .form-group:nth-child(2) { /* Email field */
        order: 2;
    }
    #contactForm .form-group:nth-child(3) { /* Message field */
        order: 3;
    }
    #contactForm .submit-group { /* Submit button */
        order: 4;
    }
}

/* Responsive styles using Flexbox */
@media (min-width: 600px) { /* Adjusts layout for larger screens */
    #contactForm {
        flex-direction: row; /* Arranges elements side by side */
        gap: 20px; /* Adds more space between columns */
    }

    #contactForm .left-column {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #contactForm .right-column {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Specifically targeting the message field for full width */
    #contactForm .right-column textarea {
        flex-basis: 100%; /* Ensures the message field takes the full width of the column */
    }
}

/* Adjustments for input fields and buttons */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea,
#contactForm button[type="submit"] {
    width: 100%; /* Ensures elements take full width of their parent */
    /* ... other styles ... */
}

