    body,
    html {
        height: 100%;
        margin: 0;
        font-family: Arial, sans-serif;
        background-color: #f7f7f7;
    }

    .hero {
        background: url('../images/banneriraivi.png') no-repeat center center/cover;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 40px;
        flex-wrap: wrap;
    }

    .overlay {
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 10px;
        padding: 30px 20px;
        max-width: 700px;
        /* Increased from 550px */
        color: #fff;
        flex: 1 1 600px;
        /* Increased from 400px */
    }

    .overlay h2 {
        font-size: 24px;
        margin-bottom: 25px;
        text-align: center;
    }

    .matchmaking-form {
    flex-wrap: nowrap;
    justify-content: space-between;
    display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
    }

    .matchmaking-form-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
}

    .matchmaking-form select {
        padding: 10px;
        border: none;
        border-radius: 4px;
        font-size: 14px;
    }

    .matchmaking-form button {
        margin-top: 15px;
        padding: 12px 20px;
        border: none;
        border-radius: 5px;
        background-color: #6A1B9A;
         color: #fff;
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .matchmaking-form button:hover {
        background-color: #541379;
    }


    .floating-form-wrapper {
 background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(106, 27, 154, 0.1);
  font-family: 'Poppins', sans-serif;
 /* Decreased from 400px for balance */
        width: 100%;
        flex: 1 1 300px;
        /* Slightly decreased */
        
        
         }

    .floating-form-wrapper h2 {
        margin-top: 0;
       text-align: center;
  color: #6A1B9A;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 1px 1px rgba(106, 27, 154, 0.2);
    }


.floating-form-wrapper h2::after {
  content: '';
  display: block;
  margin: 8px auto 0;
  width: 50px;
  height: 3px;
  background: #FFD700;
  border-radius: 4px;
}
    .profile-form-group {
        margin-bottom: 18px;
    }

    .profile-form-group span {
                 display: block;
                margin-bottom: 6px;
                font-weight: 500;
                color: #333;
    }

    .profile-form-group input,
    .profile-form-group select {
   width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
    }

    .mobile-input-wrapper {
         display: flex;
  align-items: center;
  gap: 8px;
    }

    .mobile-input-wrapper img {
        width: 24px;
        height: 16px;
    }

    .register-btn {
       background-color: #6A1B9A;
        color: #fff;
        border: none;
        padding: 12px 18px;
        font-size: 15px;
        border-radius: 6px;
        cursor: pointer;
        width: 100%;
 transition: background-color 0.3s ease;
    }

    .register-btn:hover {
        background-color: #541379;
  cursor: pointer;
    }

    #education {
        width: 70%
    }

    #caste {
        width: 70%
    }

    #workcity {
        width: 70%;
        padding: 10px;
    }

    @media only screen and (max-width: 768px) {
        .hero {
            flex-direction: column-reverse !important;
            align-items: center;
        }

    }

    @media (max-width: 992px) {
        overlayinput .hero {
            flex-direction: column-reverse;
            align-items: center;
        }

        .overlay,
        .floating-form-wrapper {
            max-width: 100%;
            margin-bottom: 20px;
        }

        .hero {
            background: url('../images/res-bg.png') no-repeat center center/cover;

        }

        .matchmaking-form select {
            min-width: 90%;
        }
    }