body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
}

/* Adjust top margin to prevent overlap with the navbar */
.contact-us {
    max-width: 800px;
    margin: 100px auto 50px auto; /* Increased top margin */
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.contact-us h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

.contact-us p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 5px;
    color: #b0b0b0;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    font-size: 1em;
    background-color: #2c2c2c;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0E9294;
    outline: none;
}

.submit-btn {
    padding: 12px 20px;
    background-color: #0E9294;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.submit-btn:hover {
    background-color: #085859;
}

.contact-form textarea {
    resize: vertical;
}

.error-message {
    color: #ff4d4d;
    text-align: center;
}

.success-message {
    color: #4caf50;
    text-align: center;
}

/* Success box styles */
.success-box {
    display: block;
    padding: 20px;
    background-color: #1e1e1e; /* Adjust this based on your site's color scheme */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    color: #4caf50; /* Ensure the text color is visible against the background */
    font-family: 'Poppins', sans-serif;
}

.success-box h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4caf50; /* Ensure the header text color is visible */
}

.success-box p {
    font-size: 1.2em;
    color: #b0b0b0; /* Ensure the paragraph text color is visible */
}


/* For devices with a max width of 768px (tablets) */
@media (max-width: 768px) {
    .contact-us {
        margin: 30px 20px;
        padding: 15px;
    }

    .contact-us h1 {
        font-size: 1.8em;
    }

    .contact-us p {
        font-size: 1em;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9em;
        padding: 8px;
    }

    .submit-btn {
        font-size: 1em;
        padding: 10px 15px;
    }
}

/* For devices with a max width of 576px (large phones) */
@media (max-width: 576px) {
    .contact-us {
        margin: 20px 15px;
        padding: 10px;
    }

    .contact-us h1 {
        font-size: 1.6em;
    }

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

    .form-group label {
        font-size: 0.9em;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.85em;
        padding: 7px;
    }

    .submit-btn {
        font-size: 0.95em;
        padding: 8px 12px;
    }
}

/* For devices with a max width of 480px (small phones) */
@media (max-width: 480px) {
    .contact-us {
        margin: 15px 10px;
        padding: 8px;
    }

    .contact-us h1 {
        font-size: 1.4em;
    }

    .contact-us p {
        font-size: 0.85em;
    }

    .form-group label {
        font-size: 0.85em;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.8em;
        padding: 6px;
    }

    .submit-btn {
        font-size: 0.9em;
        padding: 7px 10px;
    }
}


/* Style for select elements in the form */
.form-group select {
    padding: 10px;
    font-size: 1em;
    background-color: #2c2c2c;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    appearance: none; /* Remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23b0b0b0" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* Custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

/* Focus state for select elements */
.form-group select:focus {
    border-color: #0E9294;
    outline: none;
}

/* Hover state for select elements */
.form-group select:hover {
    border-color: #666666;
    transition: border-color 0.3s ease;
}

/* Style for the disabled/selected placeholder option */
.form-group select option[disabled][selected] {
    color: #b0b0b0;
}

/* Ensure options have a consistent background and text color */
.form-group select option {
    background-color: #2c2c2c;
    color: #ffffff;
}

/* Responsive adjustments for select elements */
@media (max-width: 768px) {
    .form-group select {
        font-size: 0.9em;
        padding: 8px;
        background-size: 14px;
    }
}

@media (max-width: 576px) {
    .form-group select {
        font-size: 0.85em;
        padding: 7px;
        background-size: 12px;
    }
}

@media (max-width: 480px) {
    .form-group select {
        font-size: 0.8em;
        padding: 6px;
        background-size: 10px;
    }
}

/* Style for the unordered list in the feature description */
.contact-us ul {
    list-style-type: disc;
    margin: 10px 0 10px 20px;
    padding-left: 0;
    color: #b0b0b0;
    font-size: 1em;
}

.contact-us ul li {
    margin-bottom: 5px;
}

/* Responsive adjustments for the list */
@media (max-width: 768px) {
    .contact-us ul {
        font-size: 0.9em;
        margin: 8px 0 8px 15px;
    }
}

@media (max-width: 576px) {
    .contact-us ul {
        font-size: 0.85em;
        margin: 6px 0 6px 12px;
    }
}

@media (max-width: 480px) {
    .contact-us ul {
        font-size: 0.8em;
        margin: 5px 0 5px 10px;
    }
}

/* Contact Card Styles */
.contact-card {
    margin-top: 30px;
    padding: 20px;
    background-color: #252525;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.contact-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 1em;
    color: #b0b0b0;
    margin: 8px 0;
}

.contact-card .contact-name {
    font-weight: 600;
    color: #e0e0e0;
    margin: 10px 0;
}

.contact-card a {
    color: #0E9294;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #085859;
    text-decoration: underline;
}

.contact-card i {
    margin-right: 8px;
    color: #0E9294;
}

/* Responsive adjustments for contact card */
@media (max-width: 768px) {
    .contact-card {
        margin-top: 25px;
        padding: 15px;
    }

    .contact-card h3 {
        font-size: 1.3em;
    }

    .contact-card p {
        font-size: 0.95em;
    }
}

@media (max-width: 576px) {
    .contact-card {
        margin-top: 20px;
        padding: 12px;
    }

    .contact-card h3 {
        font-size: 1.2em;
    }

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

@media (max-width: 480px) {
    .contact-card {
        margin-top: 15px;
        padding: 10px;
    }

    .contact-card h3 {
        font-size: 1.1em;
    }

    .contact-card p {
        font-size: 0.85em;
    }
}