.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.heading {
    width: 100%;
    font-family: 'Balthazar', serif;
    font-weight: 400;
    font-size: 48px;
    text-align: center;
    background: linear-gradient(90deg, #494949 0%, #ffffff 50%, #494949 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 64px 0 32px;
}

/* Form Container */
.contact-form {
    background-color: #000000;
    border: 1px solid #494949;
    border-radius: 12px;
    padding: 40px;
    width: 600px;
    display: flex;
    flex-direction: column;
    font-family: 'Afacad', sans-serif;
    gap: 20px;
}

/* Each label + input pair */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Labels */
.form-row label {
    font-family: 'Afacad', sans-serif;
    color: white;
    font-size: 16px;
    font-weight: 400;
    width: 160px; /* Fixed width for alignment */
    margin-right: 16px;
}

/* Inputs & Textarea */
.form-row input,
.form-row textarea {
    background-color: #171717;
    border: 1px solid #494949;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 16px;
    font-family: 'Afacad', sans-serif;
    flex: 1; /* Take remaining space */
}

.form-row textarea {
    height: 100px; /* Taller for description */
    resize: none;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #32FAC1;
    color: #32FAC1;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #171717 inset !important;
  -webkit-text-fill-color: #32FAC1 !important;
  border-color: #32FAC1 !important;
  transition: background-color 5000s ease-in-out 0s;
}


/* Submit Button */
.contact-form button {
    font-family: 'Afacad', sans-serif;
    background-color: #32FAC1;
    color: black;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
    border: 1px solid #32FAC1;
    border-color: transparent;
}

.contact-form button:hover {
    background-color: black;
    color: #32FAC1;
    border-color: #32FAC1;
    font-weight: 400;
}

/* Footer Spacing */
.footer-container {
    margin-top: 48px;
}


@media (max-width: 767px) {
    .heading {
        width: 80vw; /* Match form width for visual consistency */
        font-size: 32px;
        margin: 40px 0 40px;
        text-align: center;
    }

    .contact-form {
        width: 80vw;
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-row label {
        width: 100%;
        margin-right: 0;
        font-size: 14px;
    }

    .form-row input,
    .form-row textarea {
        width: 100%;
    }

    .contact-form button {
        width: 100%;
        margin-top: 16px;
    }

    .footer-container {
        margin-top: 32px;
        margin-bottom: 24px;
    }
}
