/* Style for the form section */
.formcont {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 30px 10px;
    box-sizing: border-box;
    background-image: url("/assets/images/fm.jpg"); /* Replace with your image */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 15px;
    min-height: 400px; /* Minimum height for visual balance */
  }
  
  /* Add a transparent linear gradient with very light sky blue */
  .formcont::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 206, 250, 0.1), rgba(0, 172, 238, 0.1)); /* Very light transparent sky blue */
    z-index: 1;
  }
  
  /* Animated circles behind the form */
  @keyframes floatingCircles {
    0% {
      transform: translate(-20%, -20%);
    }
    100% {
      transform: translate(120%, 120%);
    }
  }
  
  .formcont::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
    animation: floatingCircles 20s linear infinite;
    opacity: 0.2;
  }
  
  .formcont::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 10%, transparent 30%);
    background-size: 30px 30px;
  }
  
  /* Form container style */
  .formcont form {
    background: linear-gradient(135deg, #a2c2e6, #76a9d7); /* Gradient background for the form */
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 500px; /* Limit max width to make it look like a big card */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    z-index: 2;
    align-items: center; /* Center the content horizontally */
    justify-content: center; /* Center the content vertically */
  }
  
  /* Input and Textarea styling */
  .formcont form input,
  .formcont form textarea {
    padding: 12px;
    font-size: 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    background-color: white;
    color: black;
    transition: all 0.3s ease-in-out;
    margin-bottom: 15px;
    width: 100%;
    max-width: 380px; /* Set a max-width to avoid overflowing */
    text-align: center; /* Centering text inside inputs */
  }
  
  /* Glow effect on inputs and textarea with rotating LED-like glow */
  .formcont form input:focus,
  .formcont form textarea:focus {
    border: 2px solid royalblue;
    animation: glowing 1.5s infinite linear, rotateGlow 2s infinite linear;
  }
  
  /* Rotating glow animation */
  @keyframes glowing {
    0% {
      box-shadow: 0 0 10px royalblue, 0 0 20px royalblue, 0 0 30px royalblue;
    }
    100% {
      box-shadow: 0 0 20px royalblue, 0 0 40px royalblue, 0 0 60px royalblue;
    }
  }
  
  @keyframes rotateGlow {
    0% {
      border-top: 2px solid royalblue;
      border-right: 2px solid royalblue;
      border-bottom: 2px solid transparent;
      border-left: 2px solid transparent;
    }
    25% {
      border-top: 2px solid transparent;
      border-right: 2px solid royalblue;
      border-bottom: 2px solid royalblue;
      border-left: 2px solid transparent;
    }
    50% {
      border-top: 2px solid transparent;
      border-right: 2px solid transparent;
      border-bottom: 2px solid royalblue;
      border-left: 2px solid royalblue;
    }
    75% {
      border-top: 2px solid royalblue;
      border-right: 2px solid transparent;
      border-bottom: 2px solid transparent;
      border-left: 2px solid royalblue;
    }
    100% {
      border-top: 2px solid royalblue;
      border-right: 2px solid royalblue;
      border-bottom: 2px solid transparent;
      border-left: 2px solid transparent;
    }
  }
  
  /* Button styling */
  .hero-btn {
    background-color: royalblue;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .hero-btn:hover {
    background-color: #1e5b99;
    transform: translateY(-3px);
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    .formcont form {
      padding: 20px;
      max-width: 100%;
    }
  
    .formcont form input,
    .formcont form textarea {
      padding: 10px;
      font-size: 14px;
    }
  
    .hero-btn {
      font-size: 16px;
      padding: 12px;
    }
  }
  