/* General Section Styling */
#Panel {
    background-image: url('assets/img/hero-bg-4.jpg'); /* Replace with your image path */
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 60px 20px;
    font-family: 'Roboto', sans-serif; /* Modern font */
  }
  
  #Panel .section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    position: relative;
  }
  
  #Panel .section-title h2::after {
    content: "";
    width: 50px;
    height: 3px;
    background-color: #007bff;
    display: block;
    margin: 10px auto 0;
  }
  
  /* Form Styling */
  .contact-form {
    background-image: url('assets/img/hero-bg-5.jpg'); /* Replace with your image path */
  background-size: cover; /* Ensures the image covers the entire card */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Adds a light border */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
  color: #fff; /* Ensures text is readable on the image */
  position: relative;
  }
  
  .contact-form .form-label {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
  }
  
  .contact-form .form-control {
    border-radius: 4px;
    border: 1px solid #fca939;
    padding: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .contact-form .form-control:focus {
    border-color: #fca939;
    box-shadow: 0 0 5px #fca939;
    outline: none;
  }
  
  /* Button Styling */
  .contact-form .btn-primary {
    background-color: #fca939;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .contact-form .btn-primary:hover {
    background-color: #ff9100;
  transform: translateY(-3px);
  }

  .contact-form * {
    position: relative;
    z-index: 2; /* Ensures form elements are above the overlay */
  }

  .contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Adjust the transparency */
    border-radius: 8px;
    z-index: 1;
  
  /* Loading and Message Styling */
  .loading {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }
  
  .error-message {
    color: red;
    font-weight: bold;
  }
  
  .sent-message {
    color: rgb(69, 255, 69);
    font-weight: bold;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    #Panel .contact-form {
      padding: 20px;
    }
  
    #Panel .section-title h2 {
      font-size: 2rem;
    }
  
    .contact-form .btn-primary {
      padding: 10px 20px;
      font-size: 0.9rem;
    }
  }
}