﻿#overlay {
    position: fixed;
    top:0;
    left:0;
    width: 100vw;
    height: 100vh;
    display:flex;
    justify-content: space-evenly;
    align-content: center;
    align-items:center;
    justify-content:center;
    z-index: 1000;
}
#overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2d3436;
    opacity: 0.8;
    z-index: -1; /* Behind the content */
}
#modal {
    display: flex;
    position: relative;
    padding: 0rem 1rem 0.2rem 1rem;
    width: 50%;
    height: 25rem;
    flex-direction: column;
    justify-content: space-evenly;
    align-content: center;
    background-color: #dcdde1;
    z-index: 1001; /* Ensure modal is on top of the overlay */
    box-sizing:border-box;
}
#modalForm{
    display:flex;
    gap:0.7rem;
    flex-direction:column;
    justify-content:center;
    align-content:center;
}
#modalForm input {
    width:100%;
    height:40px;
    border:#2d3436;
    padding-left: 1rem;
    color:#353b48;
}
#modalForm input:focus {
    border:1px solid white;
    border-color: #fdcb6e; 
    outline: none;
    transform: none;
}
#modalForm textarea {
    text-align:left;
    overflow-x: hidden;  /* Remove horizontal scrollbar */
    overflow-y: auto;    /* Keep vertical scrollbar */
    border:#2d3436;
    resize:none;
    color:#353b48;
    padding: 0.5rem;
    direction: ltr;
    transform: none;
}
#modalForm textarea:focus {
    border:1px solid white;
    border-color: #fdcb6e; 
    outline: none;
}
#name{
    display:flex;
    gap: 0.7rem;
    justify-content:space-between;
}

#name input {
  flex: 1;              /* Make both inputs expand equally */
  min-width: 0;         /* Prevent overflow on smaller screens */
}

@media(max-width: 768px){
    #modal {
        width: 95%;
    }
}
#closeModal{
    width:20px;
    height:20px;
    padding:0.5rem;
}
#contactTitle{
    display:flex;
    justify-content:space-between;
    align-content:center;
    align-items:center;
}
input::placeholder {
    transition: all 0.3s ease-in-out; 
}
input:hover::placeholder {
    transform: translateX(5px); 
}

