/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Make sure it occupies the full height */
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Keeps the header on top */
}

/* Contact Form Container */
.contactform {
    position: relative;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
   margin: 10% auto;
    box-sizing: border-box; /* Include padding and border in width */
}

/* Form Title */
.contactform h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* Button Styles */
button[type="submit"] {
    background-color: #333;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #28a745;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    /* Medium screens (tablets or smaller desktops) */
    .contactform {
        padding: 30px;
        margin: 15% auto;
    }

    .contactform h1 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    /* Small screens (like tablets in portrait mode) */
    .contactform {
        padding: 30px;
        margin: 20% auto;
    }

    .contactform h1 {
        font-size: 20px;
    }

    button[type="submit"] {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Very small screens (mobile devices) */
    .contactform {
        padding: 30px;
        margin: 30% auto;
    }

    .contactform h1 {
        font-size: 18px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px;
    }

    button[type="submit"] {
        font-size: 12px;
        padding: 10px;
    }
}

