/* Main container for the form section */
main {
    position: relative;
    z-index: 1;
}

/* Form container styling from the screenshot */
#contact-form {
    max-width: 800px;
    width: 90%;
    margin: 4rem auto 0;
    padding: 3rem 4rem;
    /* Dark, glassy blue background */
    background: rgba(10, 25, 60, 0.8);
    border-radius: 25px; /* Softer, larger radius */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact-form h1 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
}

#contact-form form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Input, textarea, and select fields styling from screenshot */
#contact-form input,
#contact-form textarea,
#contact-form select {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    /* Dark, transparent background for inputs */
    background: rgba(0, 10, 40, 0.7);
    color: #ffffff;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form select {
    width: 100%; /* Make select full-width like other inputs */
}

/* Focus effect for inputs, creating a blue glow */
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

#contact-form textarea {
    min-height: 200px;
    resize: vertical;
}

/* File input styling */
#contact-form input[type="file"] {
    background: rgba(0, 10, 40, 0.7);
    cursor: pointer;
}

#contact-form input[type="file"]::file-selector-button {
    background: linear-gradient(45deg, #000562, #005cbf);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-right: 1rem;
}

#contact-form input[type="file"]::file-selector-button:hover {
    background: linear-gradient(45deg, #005cbf, #0d3a83);
}

/* Submit button styling */
#contact-form button {
    padding: 1.2rem;
    background: linear-gradient(45deg, #0d3a83, #005cbf);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

#contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

#contact-form button:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Responsive adjustments for the form */
@media (max-width: 768px) {
    #contact-form {
        width: 100%;
        padding: 2rem;
        margin-top: 2rem;
    }

    #contact-form h1 {
        font-size: 2.5rem;
    }

    #contact-form button {
        font-size: 1.1rem;
    }
}
