.contact-container {
    padding: 40px 30px; /* Reduced padding */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 30px; /* Slightly smaller for balance */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 650px; /* Reduced width */
    margin: 20px auto; /* Added top margin for balance */
    text-align: center;
}

.contact-heading .title {
    font-size: 2.2rem; /* Slightly smaller font size */
    font-weight: bold;
    color: #ffffff;
    animation: fadeInUp 1s ease-in-out;
    margin-top: 0; /* Remove any large top margin */
    margin-bottom: 10px;
}

.contact-heading .subheading {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

/* Form Layout */
.contact-form-container {
    padding: 30px; /* Slightly reduced inner padding */
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}


    .form-row {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .form-column {
        width: calc(50% - 10px);
        position: relative;
    }

    .form-column.full-width {
        width: 100%;
    }

    /* Input Field Styling */
    input, textarea {
            width: 100%;
            padding: 15px;
            border: none;
            border-bottom: 2px solid rgba(255, 255, 255, 0.4); /* Bottom border for minimalist look */
            background: rgba(255, 255, 255, 0.2); /* Slightly opaque for readability */
            color: #fff;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.3s ease;
        }

    input:focus, textarea:focus {
        border: 2px solid #fff;
    }

    /* Form Group Styling */
    .form-group {
        position: relative;
        margin-bottom: 30px;
    }

    label {
      position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #ccc;
    pointer-events: none;
    transition: all 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

input:focus ~ label,
input:valid ~ label,
textarea:focus ~ label,
textarea:valid ~ label {
    top: 10px;
    font-size: 0.9rem;
    color: #fff;
    opacity: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    background: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.2) inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Submit Button */
.submit-btn {
  background-color: transparent;
  color: #ffffff;
  padding: 12px 24px;
  border: 2px solid #1e1e1e;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  animation: fadeInUp 1.5s ease-out;
  overflow: hidden;
  position: relative;
}

/* Button Content */
.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: gap 0.4s ease;
}

/* Button Text */
.btn-text {
  transition: margin-right 0.4s ease;
}

/* Button Icon (Image) */
.btn-icon {
  width: 0;
  height: 24px;
  opacity: 0;
  transition: width 0.4s ease, opacity 0.4s ease, transform 0.6s ease;
}

/* Hover Effects */
.submit-btn:hover {
  background-color: #ffffff;
  color: #1e1e1e;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover .btn-content {
  gap: 12px;
}

.submit-btn:hover .btn-text {
  margin-right: 12px;
}

.submit-btn:hover .btn-icon {
  width: 24px;
  opacity: 1;
}

/* Sent State */
.submit-btn.sent {
  background-color: #4CAF50;
  color: #ffffff;
  border-color: #4CAF50;
  box-shadow: 0 0 10px #4CAF50;
  pointer-events: none;
}

/* Fly out animation */
.btn-icon.fly-out {
  transform: translate(300%, -100%) rotate(45deg);
  opacity: 0;
}


    /* Center the Submit Button */
    .form-column.text-center {
        width: 100%; /* Ensure this column takes the full width */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* WOW.js Animations */
    .wow {
        visibility: hidden;
    }

    .wow.fadeInUp {
        animation: fadeInUp 1s forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

/* Success Popup Background */
#successPopup.success-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Success Popup Content Box */
.success-popup-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

/* Success Popup Done Button */
.success-popup-button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
