.custom-form-wrapper {
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-width: 600px;
  width: 100%;
  margin: 0 auto !important; /* Force center horizontally */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f0f0f5;
  text-align: left !important;
  display: block !important;
}

.custom-lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left !important;
  width: 100%;
}

.custom-lead-form .form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.custom-lead-form .form-row .form-group {
  flex: 1;
}

.custom-lead-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left !important;
  width: 100%;
}

.custom-lead-form label {
  font-weight: 500;
  color: #e0e0e5;
  font-size: 14px;
  text-align: left !important;
  display: block !important;
  width: 100%;
}

.custom-lead-form input[type="text"],
.custom-lead-form input[type="email"],
.custom-lead-form input[type="tel"],
.custom-lead-form input[type="url"],
.custom-lead-form textarea {
  padding: 14px 16px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box;
}

.custom-lead-form .form-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: -4px 0 0 0;
  font-style: italic;
}

.custom-lead-form input::placeholder,
.custom-lead-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  text-align: left !important;
}

.custom-lead-form textarea {
  min-height: 100px;
  resize: vertical;
}

.custom-lead-form input:focus,
.custom-lead-form textarea:focus {
  outline: none;
  border-color: #63b3ff;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(99, 179, 255, 0.15);
}

/* Override browser autofill background */
.custom-lead-form input:-webkit-autofill,
.custom-lead-form input:-webkit-autofill:hover,
.custom-lead-form input:-webkit-autofill:focus,
.custom-lead-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 10, 20, 0.95) inset !important;
  box-shadow: 0 0 0 1000px rgba(10, 10, 20, 0.95) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.custom-lead-form .radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.custom-lead-form .radio-group label {
  display: flex !important;
  justify-content: flex-start !important; /* Force left alignment for flex items */
  align-items: center;
  gap: 12px;
  font-weight: 400;
  cursor: pointer;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
  color: #d0d0d5;
  width: 100%;
  box-sizing: border-box;
}

.custom-lead-form .radio-group label:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.custom-lead-form input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #63b3ff;
  cursor: pointer;
}

.custom-lead-form .submit-btn {
  background: linear-gradient(135deg, #63b3ff 0%, #a78bfa 100%);
  color: #0a0a0f;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

.custom-lead-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 179, 255, 0.3);
}

.custom-lead-form .submit-btn:active {
  transform: translateY(0);
}

.custom-lead-form .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .custom-lead-form .form-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .custom-form-wrapper {
    padding: 24px;
    border-radius: 12px;
  }
}
