/* Contact form container */
.contactContainer {
    max-width: 600px; /* Fixed max-width in pixels */
    width: 90%; /* Percentage width with max-width limit */
    margin: 2rem auto; /* Ensures centering */
    padding: 2rem;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
  }
  
  /* Form styling */
  #contactForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Labels */
  #contactForm label {
    display: block;
    font-size: 1rem;
    text-align: left;
    color: #ffffff;
  }
  
  /* Input fields */
  #contactForm input[type="text"],
  #contactForm textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
  }
  
  /* Textarea specific styling */
  #contactForm textarea {
    min-height: 150px;
  }
  
  /* Focus states */
  #contactForm input[type="text"]:focus,
  #contactForm textarea:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
  }
  
  /* Submit button */
  #contactForm button[type="submit"] {
    background-color: #4a9eff;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  #contactForm button[type="submit"]:hover {
    background-color: #357abd;
  }
  
  /* Responsive design */
  @media screen and (max-width: 768px) {
    .contactContainer {
      margin: 1rem auto; /* Ensure auto margin for centering */
      padding: 1.5rem;
      width: 95%; /* Slightly wider on smaller screens */
    }
  
    #contactForm input[type="text"],
    #contactForm textarea {
      padding: 0.7rem;
    }
  
    #contactForm button[type="submit"] {
      padding: 0.8rem;
    }
  }
  
  @media screen and (max-width: 480px) {
    .contactContainer {
      margin: 0.5rem auto; /* Ensure auto margin for centering */
      padding: 1rem;
      width: 95%; /* Slightly wider on smaller screens */
    }
  }