/*Contact Section */

#contact-container {
    width:100%;
    height: 800px;
    background-color: black;
    color: white;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-section {
    background-color: #1a1a1a;
    width: 60%;
    height: 70%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#contact-form {
    width: 60%;
    height: 80%;
}

#contact-form input, textarea {
    color: white;
}

.form-group {
    height: 20px;
    margin-bottom: 60px;
    position: relative;
}

.form-message {
    height: 80px;
    margin-bottom: 60px;
    position: relative;
}

.form-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    border: 1px solid #a1a1a1;
    outline: none;
    padding: 16px;
    border-radius: 5px;
    z-index: 1;
}

.form-label {
    position: absolute;
    left: 13px;
    top: 15px;
    color: #a1a1a1;
    background-color: #1a1a1a;
    padding: 0 6px;
    font-size: 14px;
    transition: .3s;
}

.form-control:focus+ .form-label {
    top: -8px;
    z-index: 4;
    color: #3781C2;
    font-weight: 500;
    font-size: 12px;
}

.form-control:focus {
    border: 2px solid #3781C2;
}

.form-control:not(:focus):valid+label {
    top: -13px;
    z-index: 4;
}


.send-btn {
    background-color: #3781C2;
    color: white;
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.direct-email {
    font-size: 14px;
    font-weight: 400;
    position: relative;
    right: 85px;
    color: #666666;
}

.direct-email a {
    font-size: 14px;
    font-weight: 400;
}

/* Target autofilled input fields and textareas */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  /* This overrides the browser's forced background color */
  -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset !important;
  
  /* This controls the text color inside the autofilled input */
  -webkit-text-fill-color: #ffffff !important;
  
  /* Optional: Smooth transition for the background if it flashes briefly */
  transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 820px) {
    .contact-section {
        width: 90%;
    }

    #contact-form {
        position: relative;
        right: 15px;
    }

    .direct-email {
        position: relative;
        left: -60px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        width: 90%;
    }

    #contact-form {
        position: relative;
        right: 15px;
    }

    .form-control, .form-message {
        width: 100%;
    }

    .direct-email {
        position: relative;
        left: -10px;
        display: flex;
        flex-direction: column;
    }
}
